DB_Danilov_V2DataSet1.Designer.cs 757 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace DB_Danilov_V1 {
  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("DB_Danilov_V2DataSet1")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class DB_Danilov_V2DataSet1 : global::System.Data.DataSet {
  22. private AttachedProductDataTable tableAttachedProduct;
  23. private ClientDataTable tableClient;
  24. private ClientServiceDataTable tableClientService;
  25. private DocumentByServiceDataTable tableDocumentByService;
  26. private GenderDataTable tableGender;
  27. private ManufacturerDataTable tableManufacturer;
  28. private ProductDataTable tableProduct;
  29. private ProductPhotoDataTable tableProductPhoto;
  30. private ProductSaleDataTable tableProductSale;
  31. private ServiceDataTable tableService;
  32. private ServicePhotoDataTable tableServicePhoto;
  33. private TagDataTable tableTag;
  34. private TagOfClientDataTable tableTagOfClient;
  35. private global::System.Data.DataRelation relationFK_AttachedProduct_Product;
  36. private global::System.Data.DataRelation relationFK_AttachedProduct_Product1;
  37. private global::System.Data.DataRelation relationFK_Client1_Gender;
  38. private global::System.Data.DataRelation relationFK_ClientService_Client1;
  39. private global::System.Data.DataRelation relationFK_ClientService_service_b;
  40. private global::System.Data.DataRelation relationFK_DocumentByService_ClientService;
  41. private global::System.Data.DataRelation relationFK_Product_Manufacturer;
  42. private global::System.Data.DataRelation relationFK_ProductPhoto_Product;
  43. private global::System.Data.DataRelation relationFK_ProductSale_ClientService;
  44. private global::System.Data.DataRelation relationFK_ProductSale_Product;
  45. private global::System.Data.DataRelation relationFK_ServicePhoto_service_b;
  46. private global::System.Data.DataRelation relationFK_TagOfClient_Client1;
  47. private global::System.Data.DataRelation relationFK_TagOfClient_Tag;
  48. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  49. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  50. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  51. public DB_Danilov_V2DataSet1() {
  52. this.BeginInit();
  53. this.InitClass();
  54. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  55. base.Tables.CollectionChanged += schemaChangedHandler;
  56. base.Relations.CollectionChanged += schemaChangedHandler;
  57. this.EndInit();
  58. }
  59. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  60. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  61. protected DB_Danilov_V2DataSet1(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  62. base(info, context, false) {
  63. if ((this.IsBinarySerialized(info, context) == true)) {
  64. this.InitVars(false);
  65. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  66. this.Tables.CollectionChanged += schemaChangedHandler1;
  67. this.Relations.CollectionChanged += schemaChangedHandler1;
  68. return;
  69. }
  70. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  71. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  72. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  73. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  74. if ((ds.Tables["AttachedProduct"] != null)) {
  75. base.Tables.Add(new AttachedProductDataTable(ds.Tables["AttachedProduct"]));
  76. }
  77. if ((ds.Tables["Client"] != null)) {
  78. base.Tables.Add(new ClientDataTable(ds.Tables["Client"]));
  79. }
  80. if ((ds.Tables["ClientService"] != null)) {
  81. base.Tables.Add(new ClientServiceDataTable(ds.Tables["ClientService"]));
  82. }
  83. if ((ds.Tables["DocumentByService"] != null)) {
  84. base.Tables.Add(new DocumentByServiceDataTable(ds.Tables["DocumentByService"]));
  85. }
  86. if ((ds.Tables["Gender"] != null)) {
  87. base.Tables.Add(new GenderDataTable(ds.Tables["Gender"]));
  88. }
  89. if ((ds.Tables["Manufacturer"] != null)) {
  90. base.Tables.Add(new ManufacturerDataTable(ds.Tables["Manufacturer"]));
  91. }
  92. if ((ds.Tables["Product"] != null)) {
  93. base.Tables.Add(new ProductDataTable(ds.Tables["Product"]));
  94. }
  95. if ((ds.Tables["ProductPhoto"] != null)) {
  96. base.Tables.Add(new ProductPhotoDataTable(ds.Tables["ProductPhoto"]));
  97. }
  98. if ((ds.Tables["ProductSale"] != null)) {
  99. base.Tables.Add(new ProductSaleDataTable(ds.Tables["ProductSale"]));
  100. }
  101. if ((ds.Tables["Service"] != null)) {
  102. base.Tables.Add(new ServiceDataTable(ds.Tables["Service"]));
  103. }
  104. if ((ds.Tables["ServicePhoto"] != null)) {
  105. base.Tables.Add(new ServicePhotoDataTable(ds.Tables["ServicePhoto"]));
  106. }
  107. if ((ds.Tables["Tag"] != null)) {
  108. base.Tables.Add(new TagDataTable(ds.Tables["Tag"]));
  109. }
  110. if ((ds.Tables["TagOfClient"] != null)) {
  111. base.Tables.Add(new TagOfClientDataTable(ds.Tables["TagOfClient"]));
  112. }
  113. this.DataSetName = ds.DataSetName;
  114. this.Prefix = ds.Prefix;
  115. this.Namespace = ds.Namespace;
  116. this.Locale = ds.Locale;
  117. this.CaseSensitive = ds.CaseSensitive;
  118. this.EnforceConstraints = ds.EnforceConstraints;
  119. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  120. this.InitVars();
  121. }
  122. else {
  123. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  124. }
  125. this.GetSerializationData(info, context);
  126. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  127. base.Tables.CollectionChanged += schemaChangedHandler;
  128. this.Relations.CollectionChanged += schemaChangedHandler;
  129. }
  130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  131. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  132. [global::System.ComponentModel.Browsable(false)]
  133. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  134. public AttachedProductDataTable AttachedProduct {
  135. get {
  136. return this.tableAttachedProduct;
  137. }
  138. }
  139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  141. [global::System.ComponentModel.Browsable(false)]
  142. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  143. public ClientDataTable Client {
  144. get {
  145. return this.tableClient;
  146. }
  147. }
  148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  150. [global::System.ComponentModel.Browsable(false)]
  151. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  152. public ClientServiceDataTable ClientService {
  153. get {
  154. return this.tableClientService;
  155. }
  156. }
  157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  159. [global::System.ComponentModel.Browsable(false)]
  160. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  161. public DocumentByServiceDataTable DocumentByService {
  162. get {
  163. return this.tableDocumentByService;
  164. }
  165. }
  166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  167. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  168. [global::System.ComponentModel.Browsable(false)]
  169. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  170. public GenderDataTable Gender {
  171. get {
  172. return this.tableGender;
  173. }
  174. }
  175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  176. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  177. [global::System.ComponentModel.Browsable(false)]
  178. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  179. public ManufacturerDataTable Manufacturer {
  180. get {
  181. return this.tableManufacturer;
  182. }
  183. }
  184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  186. [global::System.ComponentModel.Browsable(false)]
  187. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  188. public ProductDataTable Product {
  189. get {
  190. return this.tableProduct;
  191. }
  192. }
  193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  194. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  195. [global::System.ComponentModel.Browsable(false)]
  196. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  197. public ProductPhotoDataTable ProductPhoto {
  198. get {
  199. return this.tableProductPhoto;
  200. }
  201. }
  202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  204. [global::System.ComponentModel.Browsable(false)]
  205. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  206. public ProductSaleDataTable ProductSale {
  207. get {
  208. return this.tableProductSale;
  209. }
  210. }
  211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  213. [global::System.ComponentModel.Browsable(false)]
  214. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  215. public ServiceDataTable Service {
  216. get {
  217. return this.tableService;
  218. }
  219. }
  220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  221. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  222. [global::System.ComponentModel.Browsable(false)]
  223. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  224. public ServicePhotoDataTable ServicePhoto {
  225. get {
  226. return this.tableServicePhoto;
  227. }
  228. }
  229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  230. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  231. [global::System.ComponentModel.Browsable(false)]
  232. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  233. public TagDataTable Tag {
  234. get {
  235. return this.tableTag;
  236. }
  237. }
  238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  239. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  240. [global::System.ComponentModel.Browsable(false)]
  241. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  242. public TagOfClientDataTable TagOfClient {
  243. get {
  244. return this.tableTagOfClient;
  245. }
  246. }
  247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  249. [global::System.ComponentModel.BrowsableAttribute(true)]
  250. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  251. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  252. get {
  253. return this._schemaSerializationMode;
  254. }
  255. set {
  256. this._schemaSerializationMode = value;
  257. }
  258. }
  259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  260. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  261. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  262. public new global::System.Data.DataTableCollection Tables {
  263. get {
  264. return base.Tables;
  265. }
  266. }
  267. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  268. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  269. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  270. public new global::System.Data.DataRelationCollection Relations {
  271. get {
  272. return base.Relations;
  273. }
  274. }
  275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  276. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  277. protected override void InitializeDerivedDataSet() {
  278. this.BeginInit();
  279. this.InitClass();
  280. this.EndInit();
  281. }
  282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  284. public override global::System.Data.DataSet Clone() {
  285. DB_Danilov_V2DataSet1 cln = ((DB_Danilov_V2DataSet1)(base.Clone()));
  286. cln.InitVars();
  287. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  288. return cln;
  289. }
  290. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  291. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  292. protected override bool ShouldSerializeTables() {
  293. return false;
  294. }
  295. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  296. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  297. protected override bool ShouldSerializeRelations() {
  298. return false;
  299. }
  300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  301. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  302. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  303. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  304. this.Reset();
  305. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  306. ds.ReadXml(reader);
  307. if ((ds.Tables["AttachedProduct"] != null)) {
  308. base.Tables.Add(new AttachedProductDataTable(ds.Tables["AttachedProduct"]));
  309. }
  310. if ((ds.Tables["Client"] != null)) {
  311. base.Tables.Add(new ClientDataTable(ds.Tables["Client"]));
  312. }
  313. if ((ds.Tables["ClientService"] != null)) {
  314. base.Tables.Add(new ClientServiceDataTable(ds.Tables["ClientService"]));
  315. }
  316. if ((ds.Tables["DocumentByService"] != null)) {
  317. base.Tables.Add(new DocumentByServiceDataTable(ds.Tables["DocumentByService"]));
  318. }
  319. if ((ds.Tables["Gender"] != null)) {
  320. base.Tables.Add(new GenderDataTable(ds.Tables["Gender"]));
  321. }
  322. if ((ds.Tables["Manufacturer"] != null)) {
  323. base.Tables.Add(new ManufacturerDataTable(ds.Tables["Manufacturer"]));
  324. }
  325. if ((ds.Tables["Product"] != null)) {
  326. base.Tables.Add(new ProductDataTable(ds.Tables["Product"]));
  327. }
  328. if ((ds.Tables["ProductPhoto"] != null)) {
  329. base.Tables.Add(new ProductPhotoDataTable(ds.Tables["ProductPhoto"]));
  330. }
  331. if ((ds.Tables["ProductSale"] != null)) {
  332. base.Tables.Add(new ProductSaleDataTable(ds.Tables["ProductSale"]));
  333. }
  334. if ((ds.Tables["Service"] != null)) {
  335. base.Tables.Add(new ServiceDataTable(ds.Tables["Service"]));
  336. }
  337. if ((ds.Tables["ServicePhoto"] != null)) {
  338. base.Tables.Add(new ServicePhotoDataTable(ds.Tables["ServicePhoto"]));
  339. }
  340. if ((ds.Tables["Tag"] != null)) {
  341. base.Tables.Add(new TagDataTable(ds.Tables["Tag"]));
  342. }
  343. if ((ds.Tables["TagOfClient"] != null)) {
  344. base.Tables.Add(new TagOfClientDataTable(ds.Tables["TagOfClient"]));
  345. }
  346. this.DataSetName = ds.DataSetName;
  347. this.Prefix = ds.Prefix;
  348. this.Namespace = ds.Namespace;
  349. this.Locale = ds.Locale;
  350. this.CaseSensitive = ds.CaseSensitive;
  351. this.EnforceConstraints = ds.EnforceConstraints;
  352. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  353. this.InitVars();
  354. }
  355. else {
  356. this.ReadXml(reader);
  357. this.InitVars();
  358. }
  359. }
  360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  361. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  362. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  363. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  364. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  365. stream.Position = 0;
  366. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  367. }
  368. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  369. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  370. internal void InitVars() {
  371. this.InitVars(true);
  372. }
  373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  374. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  375. internal void InitVars(bool initTable) {
  376. this.tableAttachedProduct = ((AttachedProductDataTable)(base.Tables["AttachedProduct"]));
  377. if ((initTable == true)) {
  378. if ((this.tableAttachedProduct != null)) {
  379. this.tableAttachedProduct.InitVars();
  380. }
  381. }
  382. this.tableClient = ((ClientDataTable)(base.Tables["Client"]));
  383. if ((initTable == true)) {
  384. if ((this.tableClient != null)) {
  385. this.tableClient.InitVars();
  386. }
  387. }
  388. this.tableClientService = ((ClientServiceDataTable)(base.Tables["ClientService"]));
  389. if ((initTable == true)) {
  390. if ((this.tableClientService != null)) {
  391. this.tableClientService.InitVars();
  392. }
  393. }
  394. this.tableDocumentByService = ((DocumentByServiceDataTable)(base.Tables["DocumentByService"]));
  395. if ((initTable == true)) {
  396. if ((this.tableDocumentByService != null)) {
  397. this.tableDocumentByService.InitVars();
  398. }
  399. }
  400. this.tableGender = ((GenderDataTable)(base.Tables["Gender"]));
  401. if ((initTable == true)) {
  402. if ((this.tableGender != null)) {
  403. this.tableGender.InitVars();
  404. }
  405. }
  406. this.tableManufacturer = ((ManufacturerDataTable)(base.Tables["Manufacturer"]));
  407. if ((initTable == true)) {
  408. if ((this.tableManufacturer != null)) {
  409. this.tableManufacturer.InitVars();
  410. }
  411. }
  412. this.tableProduct = ((ProductDataTable)(base.Tables["Product"]));
  413. if ((initTable == true)) {
  414. if ((this.tableProduct != null)) {
  415. this.tableProduct.InitVars();
  416. }
  417. }
  418. this.tableProductPhoto = ((ProductPhotoDataTable)(base.Tables["ProductPhoto"]));
  419. if ((initTable == true)) {
  420. if ((this.tableProductPhoto != null)) {
  421. this.tableProductPhoto.InitVars();
  422. }
  423. }
  424. this.tableProductSale = ((ProductSaleDataTable)(base.Tables["ProductSale"]));
  425. if ((initTable == true)) {
  426. if ((this.tableProductSale != null)) {
  427. this.tableProductSale.InitVars();
  428. }
  429. }
  430. this.tableService = ((ServiceDataTable)(base.Tables["Service"]));
  431. if ((initTable == true)) {
  432. if ((this.tableService != null)) {
  433. this.tableService.InitVars();
  434. }
  435. }
  436. this.tableServicePhoto = ((ServicePhotoDataTable)(base.Tables["ServicePhoto"]));
  437. if ((initTable == true)) {
  438. if ((this.tableServicePhoto != null)) {
  439. this.tableServicePhoto.InitVars();
  440. }
  441. }
  442. this.tableTag = ((TagDataTable)(base.Tables["Tag"]));
  443. if ((initTable == true)) {
  444. if ((this.tableTag != null)) {
  445. this.tableTag.InitVars();
  446. }
  447. }
  448. this.tableTagOfClient = ((TagOfClientDataTable)(base.Tables["TagOfClient"]));
  449. if ((initTable == true)) {
  450. if ((this.tableTagOfClient != null)) {
  451. this.tableTagOfClient.InitVars();
  452. }
  453. }
  454. this.relationFK_AttachedProduct_Product = this.Relations["FK_AttachedProduct_Product"];
  455. this.relationFK_AttachedProduct_Product1 = this.Relations["FK_AttachedProduct_Product1"];
  456. this.relationFK_Client1_Gender = this.Relations["FK_Client1_Gender"];
  457. this.relationFK_ClientService_Client1 = this.Relations["FK_ClientService_Client1"];
  458. this.relationFK_ClientService_service_b = this.Relations["FK_ClientService_service_b"];
  459. this.relationFK_DocumentByService_ClientService = this.Relations["FK_DocumentByService_ClientService"];
  460. this.relationFK_Product_Manufacturer = this.Relations["FK_Product_Manufacturer"];
  461. this.relationFK_ProductPhoto_Product = this.Relations["FK_ProductPhoto_Product"];
  462. this.relationFK_ProductSale_ClientService = this.Relations["FK_ProductSale_ClientService"];
  463. this.relationFK_ProductSale_Product = this.Relations["FK_ProductSale_Product"];
  464. this.relationFK_ServicePhoto_service_b = this.Relations["FK_ServicePhoto_service_b"];
  465. this.relationFK_TagOfClient_Client1 = this.Relations["FK_TagOfClient_Client1"];
  466. this.relationFK_TagOfClient_Tag = this.Relations["FK_TagOfClient_Tag"];
  467. }
  468. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  469. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  470. private void InitClass() {
  471. this.DataSetName = "DB_Danilov_V2DataSet1";
  472. this.Prefix = "";
  473. this.Namespace = "http://tempuri.org/DB_Danilov_V2DataSet1.xsd";
  474. this.EnforceConstraints = true;
  475. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  476. this.tableAttachedProduct = new AttachedProductDataTable();
  477. base.Tables.Add(this.tableAttachedProduct);
  478. this.tableClient = new ClientDataTable();
  479. base.Tables.Add(this.tableClient);
  480. this.tableClientService = new ClientServiceDataTable();
  481. base.Tables.Add(this.tableClientService);
  482. this.tableDocumentByService = new DocumentByServiceDataTable();
  483. base.Tables.Add(this.tableDocumentByService);
  484. this.tableGender = new GenderDataTable();
  485. base.Tables.Add(this.tableGender);
  486. this.tableManufacturer = new ManufacturerDataTable();
  487. base.Tables.Add(this.tableManufacturer);
  488. this.tableProduct = new ProductDataTable();
  489. base.Tables.Add(this.tableProduct);
  490. this.tableProductPhoto = new ProductPhotoDataTable();
  491. base.Tables.Add(this.tableProductPhoto);
  492. this.tableProductSale = new ProductSaleDataTable();
  493. base.Tables.Add(this.tableProductSale);
  494. this.tableService = new ServiceDataTable();
  495. base.Tables.Add(this.tableService);
  496. this.tableServicePhoto = new ServicePhotoDataTable();
  497. base.Tables.Add(this.tableServicePhoto);
  498. this.tableTag = new TagDataTable();
  499. base.Tables.Add(this.tableTag);
  500. this.tableTagOfClient = new TagOfClientDataTable();
  501. base.Tables.Add(this.tableTagOfClient);
  502. this.relationFK_AttachedProduct_Product = new global::System.Data.DataRelation("FK_AttachedProduct_Product", new global::System.Data.DataColumn[] {
  503. this.tableProduct.IDColumn}, new global::System.Data.DataColumn[] {
  504. this.tableAttachedProduct.MainProductIDColumn}, false);
  505. this.Relations.Add(this.relationFK_AttachedProduct_Product);
  506. this.relationFK_AttachedProduct_Product1 = new global::System.Data.DataRelation("FK_AttachedProduct_Product1", new global::System.Data.DataColumn[] {
  507. this.tableProduct.IDColumn}, new global::System.Data.DataColumn[] {
  508. this.tableAttachedProduct.AttachedProductIDColumn}, false);
  509. this.Relations.Add(this.relationFK_AttachedProduct_Product1);
  510. this.relationFK_Client1_Gender = new global::System.Data.DataRelation("FK_Client1_Gender", new global::System.Data.DataColumn[] {
  511. this.tableGender.CodeColumn}, new global::System.Data.DataColumn[] {
  512. this.tableClient.GenderCodeColumn}, false);
  513. this.Relations.Add(this.relationFK_Client1_Gender);
  514. this.relationFK_ClientService_Client1 = new global::System.Data.DataRelation("FK_ClientService_Client1", new global::System.Data.DataColumn[] {
  515. this.tableClient.IDColumn}, new global::System.Data.DataColumn[] {
  516. this.tableClientService.ClientIDColumn}, false);
  517. this.Relations.Add(this.relationFK_ClientService_Client1);
  518. this.relationFK_ClientService_service_b = new global::System.Data.DataRelation("FK_ClientService_service_b", new global::System.Data.DataColumn[] {
  519. this.tableService.IDColumn}, new global::System.Data.DataColumn[] {
  520. this.tableClientService.ServiceIDColumn}, false);
  521. this.Relations.Add(this.relationFK_ClientService_service_b);
  522. this.relationFK_DocumentByService_ClientService = new global::System.Data.DataRelation("FK_DocumentByService_ClientService", new global::System.Data.DataColumn[] {
  523. this.tableClientService.IDColumn}, new global::System.Data.DataColumn[] {
  524. this.tableDocumentByService.ClientServiceIDColumn}, false);
  525. this.Relations.Add(this.relationFK_DocumentByService_ClientService);
  526. this.relationFK_Product_Manufacturer = new global::System.Data.DataRelation("FK_Product_Manufacturer", new global::System.Data.DataColumn[] {
  527. this.tableManufacturer.IDColumn}, new global::System.Data.DataColumn[] {
  528. this.tableProduct.ManufacturerIDColumn}, false);
  529. this.Relations.Add(this.relationFK_Product_Manufacturer);
  530. this.relationFK_ProductPhoto_Product = new global::System.Data.DataRelation("FK_ProductPhoto_Product", new global::System.Data.DataColumn[] {
  531. this.tableProduct.IDColumn}, new global::System.Data.DataColumn[] {
  532. this.tableProductPhoto.ProductIDColumn}, false);
  533. this.Relations.Add(this.relationFK_ProductPhoto_Product);
  534. this.relationFK_ProductSale_ClientService = new global::System.Data.DataRelation("FK_ProductSale_ClientService", new global::System.Data.DataColumn[] {
  535. this.tableClientService.IDColumn}, new global::System.Data.DataColumn[] {
  536. this.tableProductSale.ClientServiceIDColumn}, false);
  537. this.Relations.Add(this.relationFK_ProductSale_ClientService);
  538. this.relationFK_ProductSale_Product = new global::System.Data.DataRelation("FK_ProductSale_Product", new global::System.Data.DataColumn[] {
  539. this.tableProduct.IDColumn}, new global::System.Data.DataColumn[] {
  540. this.tableProductSale.ProductIDColumn}, false);
  541. this.Relations.Add(this.relationFK_ProductSale_Product);
  542. this.relationFK_ServicePhoto_service_b = new global::System.Data.DataRelation("FK_ServicePhoto_service_b", new global::System.Data.DataColumn[] {
  543. this.tableService.IDColumn}, new global::System.Data.DataColumn[] {
  544. this.tableServicePhoto.ServiceIDColumn}, false);
  545. this.Relations.Add(this.relationFK_ServicePhoto_service_b);
  546. this.relationFK_TagOfClient_Client1 = new global::System.Data.DataRelation("FK_TagOfClient_Client1", new global::System.Data.DataColumn[] {
  547. this.tableClient.IDColumn}, new global::System.Data.DataColumn[] {
  548. this.tableTagOfClient.ClientIDColumn}, false);
  549. this.Relations.Add(this.relationFK_TagOfClient_Client1);
  550. this.relationFK_TagOfClient_Tag = new global::System.Data.DataRelation("FK_TagOfClient_Tag", new global::System.Data.DataColumn[] {
  551. this.tableTag.IDColumn}, new global::System.Data.DataColumn[] {
  552. this.tableTagOfClient.TagIDColumn}, false);
  553. this.Relations.Add(this.relationFK_TagOfClient_Tag);
  554. }
  555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  556. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  557. private bool ShouldSerializeAttachedProduct() {
  558. return false;
  559. }
  560. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  561. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  562. private bool ShouldSerializeClient() {
  563. return false;
  564. }
  565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  567. private bool ShouldSerializeClientService() {
  568. return false;
  569. }
  570. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  571. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  572. private bool ShouldSerializeDocumentByService() {
  573. return false;
  574. }
  575. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  576. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  577. private bool ShouldSerializeGender() {
  578. return false;
  579. }
  580. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  581. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  582. private bool ShouldSerializeManufacturer() {
  583. return false;
  584. }
  585. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  586. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  587. private bool ShouldSerializeProduct() {
  588. return false;
  589. }
  590. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  591. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  592. private bool ShouldSerializeProductPhoto() {
  593. return false;
  594. }
  595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  596. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  597. private bool ShouldSerializeProductSale() {
  598. return false;
  599. }
  600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  601. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  602. private bool ShouldSerializeService() {
  603. return false;
  604. }
  605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  607. private bool ShouldSerializeServicePhoto() {
  608. return false;
  609. }
  610. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  611. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  612. private bool ShouldSerializeTag() {
  613. return false;
  614. }
  615. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  616. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  617. private bool ShouldSerializeTagOfClient() {
  618. return false;
  619. }
  620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  621. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  622. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  623. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  624. this.InitVars();
  625. }
  626. }
  627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  629. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  630. DB_Danilov_V2DataSet1 ds = new DB_Danilov_V2DataSet1();
  631. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  632. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  633. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  634. any.Namespace = ds.Namespace;
  635. sequence.Items.Add(any);
  636. type.Particle = sequence;
  637. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  638. if (xs.Contains(dsSchema.TargetNamespace)) {
  639. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  640. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  641. try {
  642. global::System.Xml.Schema.XmlSchema schema = null;
  643. dsSchema.Write(s1);
  644. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  645. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  646. s2.SetLength(0);
  647. schema.Write(s2);
  648. if ((s1.Length == s2.Length)) {
  649. s1.Position = 0;
  650. s2.Position = 0;
  651. for (; ((s1.Position != s1.Length)
  652. && (s1.ReadByte() == s2.ReadByte())); ) {
  653. ;
  654. }
  655. if ((s1.Position == s1.Length)) {
  656. return type;
  657. }
  658. }
  659. }
  660. }
  661. finally {
  662. if ((s1 != null)) {
  663. s1.Close();
  664. }
  665. if ((s2 != null)) {
  666. s2.Close();
  667. }
  668. }
  669. }
  670. xs.Add(dsSchema);
  671. return type;
  672. }
  673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  674. public delegate void AttachedProductRowChangeEventHandler(object sender, AttachedProductRowChangeEvent e);
  675. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  676. public delegate void ClientRowChangeEventHandler(object sender, ClientRowChangeEvent e);
  677. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  678. public delegate void ClientServiceRowChangeEventHandler(object sender, ClientServiceRowChangeEvent e);
  679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  680. public delegate void DocumentByServiceRowChangeEventHandler(object sender, DocumentByServiceRowChangeEvent e);
  681. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  682. public delegate void GenderRowChangeEventHandler(object sender, GenderRowChangeEvent e);
  683. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  684. public delegate void ManufacturerRowChangeEventHandler(object sender, ManufacturerRowChangeEvent e);
  685. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  686. public delegate void ProductRowChangeEventHandler(object sender, ProductRowChangeEvent e);
  687. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  688. public delegate void ProductPhotoRowChangeEventHandler(object sender, ProductPhotoRowChangeEvent e);
  689. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  690. public delegate void ProductSaleRowChangeEventHandler(object sender, ProductSaleRowChangeEvent e);
  691. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  692. public delegate void ServiceRowChangeEventHandler(object sender, ServiceRowChangeEvent e);
  693. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  694. public delegate void ServicePhotoRowChangeEventHandler(object sender, ServicePhotoRowChangeEvent e);
  695. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  696. public delegate void TagRowChangeEventHandler(object sender, TagRowChangeEvent e);
  697. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  698. public delegate void TagOfClientRowChangeEventHandler(object sender, TagOfClientRowChangeEvent e);
  699. /// <summary>
  700. ///Represents the strongly named DataTable class.
  701. ///</summary>
  702. [global::System.Serializable()]
  703. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  704. public partial class AttachedProductDataTable : global::System.Data.TypedTableBase<AttachedProductRow> {
  705. private global::System.Data.DataColumn columnMainProductID;
  706. private global::System.Data.DataColumn columnAttachedProductID;
  707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  709. public AttachedProductDataTable() {
  710. this.TableName = "AttachedProduct";
  711. this.BeginInit();
  712. this.InitClass();
  713. this.EndInit();
  714. }
  715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  717. internal AttachedProductDataTable(global::System.Data.DataTable table) {
  718. this.TableName = table.TableName;
  719. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  720. this.CaseSensitive = table.CaseSensitive;
  721. }
  722. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  723. this.Locale = table.Locale;
  724. }
  725. if ((table.Namespace != table.DataSet.Namespace)) {
  726. this.Namespace = table.Namespace;
  727. }
  728. this.Prefix = table.Prefix;
  729. this.MinimumCapacity = table.MinimumCapacity;
  730. }
  731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  732. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  733. protected AttachedProductDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  734. base(info, context) {
  735. this.InitVars();
  736. }
  737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  738. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  739. public global::System.Data.DataColumn MainProductIDColumn {
  740. get {
  741. return this.columnMainProductID;
  742. }
  743. }
  744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  746. public global::System.Data.DataColumn AttachedProductIDColumn {
  747. get {
  748. return this.columnAttachedProductID;
  749. }
  750. }
  751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  753. [global::System.ComponentModel.Browsable(false)]
  754. public int Count {
  755. get {
  756. return this.Rows.Count;
  757. }
  758. }
  759. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  760. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  761. public AttachedProductRow this[int index] {
  762. get {
  763. return ((AttachedProductRow)(this.Rows[index]));
  764. }
  765. }
  766. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  767. public event AttachedProductRowChangeEventHandler AttachedProductRowChanging;
  768. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  769. public event AttachedProductRowChangeEventHandler AttachedProductRowChanged;
  770. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  771. public event AttachedProductRowChangeEventHandler AttachedProductRowDeleting;
  772. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  773. public event AttachedProductRowChangeEventHandler AttachedProductRowDeleted;
  774. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  775. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  776. public void AddAttachedProductRow(AttachedProductRow row) {
  777. this.Rows.Add(row);
  778. }
  779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  781. public AttachedProductRow AddAttachedProductRow(ProductRow parentProductRowByFK_AttachedProduct_Product, ProductRow parentProductRowByFK_AttachedProduct_Product1) {
  782. AttachedProductRow rowAttachedProductRow = ((AttachedProductRow)(this.NewRow()));
  783. object[] columnValuesArray = new object[] {
  784. null,
  785. null};
  786. if ((parentProductRowByFK_AttachedProduct_Product != null)) {
  787. columnValuesArray[0] = parentProductRowByFK_AttachedProduct_Product[0];
  788. }
  789. if ((parentProductRowByFK_AttachedProduct_Product1 != null)) {
  790. columnValuesArray[1] = parentProductRowByFK_AttachedProduct_Product1[0];
  791. }
  792. rowAttachedProductRow.ItemArray = columnValuesArray;
  793. this.Rows.Add(rowAttachedProductRow);
  794. return rowAttachedProductRow;
  795. }
  796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  797. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  798. public AttachedProductRow FindByMainProductIDAttachedProductID(int MainProductID, int AttachedProductID) {
  799. return ((AttachedProductRow)(this.Rows.Find(new object[] {
  800. MainProductID,
  801. AttachedProductID})));
  802. }
  803. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  804. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  805. public override global::System.Data.DataTable Clone() {
  806. AttachedProductDataTable cln = ((AttachedProductDataTable)(base.Clone()));
  807. cln.InitVars();
  808. return cln;
  809. }
  810. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  811. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  812. protected override global::System.Data.DataTable CreateInstance() {
  813. return new AttachedProductDataTable();
  814. }
  815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  816. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  817. internal void InitVars() {
  818. this.columnMainProductID = base.Columns["MainProductID"];
  819. this.columnAttachedProductID = base.Columns["AttachedProductID"];
  820. }
  821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  822. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  823. private void InitClass() {
  824. this.columnMainProductID = new global::System.Data.DataColumn("MainProductID", typeof(int), null, global::System.Data.MappingType.Element);
  825. base.Columns.Add(this.columnMainProductID);
  826. this.columnAttachedProductID = new global::System.Data.DataColumn("AttachedProductID", typeof(int), null, global::System.Data.MappingType.Element);
  827. base.Columns.Add(this.columnAttachedProductID);
  828. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  829. this.columnMainProductID,
  830. this.columnAttachedProductID}, true));
  831. this.columnMainProductID.AllowDBNull = false;
  832. this.columnAttachedProductID.AllowDBNull = false;
  833. }
  834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  835. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  836. public AttachedProductRow NewAttachedProductRow() {
  837. return ((AttachedProductRow)(this.NewRow()));
  838. }
  839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  841. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  842. return new AttachedProductRow(builder);
  843. }
  844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  845. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  846. protected override global::System.Type GetRowType() {
  847. return typeof(AttachedProductRow);
  848. }
  849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  850. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  851. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  852. base.OnRowChanged(e);
  853. if ((this.AttachedProductRowChanged != null)) {
  854. this.AttachedProductRowChanged(this, new AttachedProductRowChangeEvent(((AttachedProductRow)(e.Row)), e.Action));
  855. }
  856. }
  857. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  858. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  859. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  860. base.OnRowChanging(e);
  861. if ((this.AttachedProductRowChanging != null)) {
  862. this.AttachedProductRowChanging(this, new AttachedProductRowChangeEvent(((AttachedProductRow)(e.Row)), e.Action));
  863. }
  864. }
  865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  867. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  868. base.OnRowDeleted(e);
  869. if ((this.AttachedProductRowDeleted != null)) {
  870. this.AttachedProductRowDeleted(this, new AttachedProductRowChangeEvent(((AttachedProductRow)(e.Row)), e.Action));
  871. }
  872. }
  873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  874. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  875. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  876. base.OnRowDeleting(e);
  877. if ((this.AttachedProductRowDeleting != null)) {
  878. this.AttachedProductRowDeleting(this, new AttachedProductRowChangeEvent(((AttachedProductRow)(e.Row)), e.Action));
  879. }
  880. }
  881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  883. public void RemoveAttachedProductRow(AttachedProductRow row) {
  884. this.Rows.Remove(row);
  885. }
  886. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  887. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  888. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  889. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  890. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  891. DB_Danilov_V2DataSet1 ds = new DB_Danilov_V2DataSet1();
  892. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  893. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  894. any1.MinOccurs = new decimal(0);
  895. any1.MaxOccurs = decimal.MaxValue;
  896. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  897. sequence.Items.Add(any1);
  898. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  899. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  900. any2.MinOccurs = new decimal(1);
  901. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  902. sequence.Items.Add(any2);
  903. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  904. attribute1.Name = "namespace";
  905. attribute1.FixedValue = ds.Namespace;
  906. type.Attributes.Add(attribute1);
  907. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  908. attribute2.Name = "tableTypeName";
  909. attribute2.FixedValue = "AttachedProductDataTable";
  910. type.Attributes.Add(attribute2);
  911. type.Particle = sequence;
  912. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  913. if (xs.Contains(dsSchema.TargetNamespace)) {
  914. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  915. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  916. try {
  917. global::System.Xml.Schema.XmlSchema schema = null;
  918. dsSchema.Write(s1);
  919. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  920. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  921. s2.SetLength(0);
  922. schema.Write(s2);
  923. if ((s1.Length == s2.Length)) {
  924. s1.Position = 0;
  925. s2.Position = 0;
  926. for (; ((s1.Position != s1.Length)
  927. && (s1.ReadByte() == s2.ReadByte())); ) {
  928. ;
  929. }
  930. if ((s1.Position == s1.Length)) {
  931. return type;
  932. }
  933. }
  934. }
  935. }
  936. finally {
  937. if ((s1 != null)) {
  938. s1.Close();
  939. }
  940. if ((s2 != null)) {
  941. s2.Close();
  942. }
  943. }
  944. }
  945. xs.Add(dsSchema);
  946. return type;
  947. }
  948. }
  949. /// <summary>
  950. ///Represents the strongly named DataTable class.
  951. ///</summary>
  952. [global::System.Serializable()]
  953. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  954. public partial class ClientDataTable : global::System.Data.TypedTableBase<ClientRow> {
  955. private global::System.Data.DataColumn columnID;
  956. private global::System.Data.DataColumn columnFirstName;
  957. private global::System.Data.DataColumn columnLastName;
  958. private global::System.Data.DataColumn columnPatronymic;
  959. private global::System.Data.DataColumn columnBirthday;
  960. private global::System.Data.DataColumn columnRegistrationDate;
  961. private global::System.Data.DataColumn columnEmail;
  962. private global::System.Data.DataColumn columnPhone;
  963. private global::System.Data.DataColumn columnGenderCode;
  964. private global::System.Data.DataColumn columnPhotoPath;
  965. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  966. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  967. public ClientDataTable() {
  968. this.TableName = "Client";
  969. this.BeginInit();
  970. this.InitClass();
  971. this.EndInit();
  972. }
  973. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  974. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  975. internal ClientDataTable(global::System.Data.DataTable table) {
  976. this.TableName = table.TableName;
  977. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  978. this.CaseSensitive = table.CaseSensitive;
  979. }
  980. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  981. this.Locale = table.Locale;
  982. }
  983. if ((table.Namespace != table.DataSet.Namespace)) {
  984. this.Namespace = table.Namespace;
  985. }
  986. this.Prefix = table.Prefix;
  987. this.MinimumCapacity = table.MinimumCapacity;
  988. }
  989. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  990. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  991. protected ClientDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  992. base(info, context) {
  993. this.InitVars();
  994. }
  995. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  996. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  997. public global::System.Data.DataColumn IDColumn {
  998. get {
  999. return this.columnID;
  1000. }
  1001. }
  1002. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1003. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1004. public global::System.Data.DataColumn FirstNameColumn {
  1005. get {
  1006. return this.columnFirstName;
  1007. }
  1008. }
  1009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1011. public global::System.Data.DataColumn LastNameColumn {
  1012. get {
  1013. return this.columnLastName;
  1014. }
  1015. }
  1016. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1017. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1018. public global::System.Data.DataColumn PatronymicColumn {
  1019. get {
  1020. return this.columnPatronymic;
  1021. }
  1022. }
  1023. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1024. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1025. public global::System.Data.DataColumn BirthdayColumn {
  1026. get {
  1027. return this.columnBirthday;
  1028. }
  1029. }
  1030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1032. public global::System.Data.DataColumn RegistrationDateColumn {
  1033. get {
  1034. return this.columnRegistrationDate;
  1035. }
  1036. }
  1037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1038. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1039. public global::System.Data.DataColumn EmailColumn {
  1040. get {
  1041. return this.columnEmail;
  1042. }
  1043. }
  1044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1046. public global::System.Data.DataColumn PhoneColumn {
  1047. get {
  1048. return this.columnPhone;
  1049. }
  1050. }
  1051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1053. public global::System.Data.DataColumn GenderCodeColumn {
  1054. get {
  1055. return this.columnGenderCode;
  1056. }
  1057. }
  1058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1059. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1060. public global::System.Data.DataColumn PhotoPathColumn {
  1061. get {
  1062. return this.columnPhotoPath;
  1063. }
  1064. }
  1065. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1066. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1067. [global::System.ComponentModel.Browsable(false)]
  1068. public int Count {
  1069. get {
  1070. return this.Rows.Count;
  1071. }
  1072. }
  1073. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1074. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1075. public ClientRow this[int index] {
  1076. get {
  1077. return ((ClientRow)(this.Rows[index]));
  1078. }
  1079. }
  1080. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1081. public event ClientRowChangeEventHandler ClientRowChanging;
  1082. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1083. public event ClientRowChangeEventHandler ClientRowChanged;
  1084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1085. public event ClientRowChangeEventHandler ClientRowDeleting;
  1086. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1087. public event ClientRowChangeEventHandler ClientRowDeleted;
  1088. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1089. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1090. public void AddClientRow(ClientRow row) {
  1091. this.Rows.Add(row);
  1092. }
  1093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1094. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1095. public ClientRow AddClientRow(string FirstName, string LastName, string Patronymic, System.DateTime Birthday, System.DateTime RegistrationDate, string Email, string Phone, GenderRow parentGenderRowByFK_Client1_Gender, string PhotoPath) {
  1096. ClientRow rowClientRow = ((ClientRow)(this.NewRow()));
  1097. object[] columnValuesArray = new object[] {
  1098. null,
  1099. FirstName,
  1100. LastName,
  1101. Patronymic,
  1102. Birthday,
  1103. RegistrationDate,
  1104. Email,
  1105. Phone,
  1106. null,
  1107. PhotoPath};
  1108. if ((parentGenderRowByFK_Client1_Gender != null)) {
  1109. columnValuesArray[8] = parentGenderRowByFK_Client1_Gender[0];
  1110. }
  1111. rowClientRow.ItemArray = columnValuesArray;
  1112. this.Rows.Add(rowClientRow);
  1113. return rowClientRow;
  1114. }
  1115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1116. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1117. public ClientRow FindByID(int ID) {
  1118. return ((ClientRow)(this.Rows.Find(new object[] {
  1119. ID})));
  1120. }
  1121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1123. public override global::System.Data.DataTable Clone() {
  1124. ClientDataTable cln = ((ClientDataTable)(base.Clone()));
  1125. cln.InitVars();
  1126. return cln;
  1127. }
  1128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1129. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1130. protected override global::System.Data.DataTable CreateInstance() {
  1131. return new ClientDataTable();
  1132. }
  1133. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1134. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1135. internal void InitVars() {
  1136. this.columnID = base.Columns["ID"];
  1137. this.columnFirstName = base.Columns["FirstName"];
  1138. this.columnLastName = base.Columns["LastName"];
  1139. this.columnPatronymic = base.Columns["Patronymic"];
  1140. this.columnBirthday = base.Columns["Birthday"];
  1141. this.columnRegistrationDate = base.Columns["RegistrationDate"];
  1142. this.columnEmail = base.Columns["Email"];
  1143. this.columnPhone = base.Columns["Phone"];
  1144. this.columnGenderCode = base.Columns["GenderCode"];
  1145. this.columnPhotoPath = base.Columns["PhotoPath"];
  1146. }
  1147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1149. private void InitClass() {
  1150. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  1151. base.Columns.Add(this.columnID);
  1152. this.columnFirstName = new global::System.Data.DataColumn("FirstName", typeof(string), null, global::System.Data.MappingType.Element);
  1153. base.Columns.Add(this.columnFirstName);
  1154. this.columnLastName = new global::System.Data.DataColumn("LastName", typeof(string), null, global::System.Data.MappingType.Element);
  1155. base.Columns.Add(this.columnLastName);
  1156. this.columnPatronymic = new global::System.Data.DataColumn("Patronymic", typeof(string), null, global::System.Data.MappingType.Element);
  1157. base.Columns.Add(this.columnPatronymic);
  1158. this.columnBirthday = new global::System.Data.DataColumn("Birthday", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1159. base.Columns.Add(this.columnBirthday);
  1160. this.columnRegistrationDate = new global::System.Data.DataColumn("RegistrationDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1161. base.Columns.Add(this.columnRegistrationDate);
  1162. this.columnEmail = new global::System.Data.DataColumn("Email", typeof(string), null, global::System.Data.MappingType.Element);
  1163. base.Columns.Add(this.columnEmail);
  1164. this.columnPhone = new global::System.Data.DataColumn("Phone", typeof(string), null, global::System.Data.MappingType.Element);
  1165. base.Columns.Add(this.columnPhone);
  1166. this.columnGenderCode = new global::System.Data.DataColumn("GenderCode", typeof(string), null, global::System.Data.MappingType.Element);
  1167. base.Columns.Add(this.columnGenderCode);
  1168. this.columnPhotoPath = new global::System.Data.DataColumn("PhotoPath", typeof(string), null, global::System.Data.MappingType.Element);
  1169. base.Columns.Add(this.columnPhotoPath);
  1170. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1171. this.columnID}, true));
  1172. this.columnID.AutoIncrement = true;
  1173. this.columnID.AutoIncrementSeed = -1;
  1174. this.columnID.AutoIncrementStep = -1;
  1175. this.columnID.AllowDBNull = false;
  1176. this.columnID.ReadOnly = true;
  1177. this.columnID.Unique = true;
  1178. this.columnFirstName.AllowDBNull = false;
  1179. this.columnFirstName.MaxLength = 50;
  1180. this.columnLastName.MaxLength = 50;
  1181. this.columnPatronymic.MaxLength = 50;
  1182. this.columnRegistrationDate.AllowDBNull = false;
  1183. this.columnEmail.MaxLength = 255;
  1184. this.columnPhone.AllowDBNull = false;
  1185. this.columnPhone.MaxLength = 20;
  1186. this.columnGenderCode.AllowDBNull = false;
  1187. this.columnGenderCode.MaxLength = 1;
  1188. this.columnPhotoPath.MaxLength = 1000;
  1189. }
  1190. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1191. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1192. public ClientRow NewClientRow() {
  1193. return ((ClientRow)(this.NewRow()));
  1194. }
  1195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1197. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1198. return new ClientRow(builder);
  1199. }
  1200. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1201. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1202. protected override global::System.Type GetRowType() {
  1203. return typeof(ClientRow);
  1204. }
  1205. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1206. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1207. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1208. base.OnRowChanged(e);
  1209. if ((this.ClientRowChanged != null)) {
  1210. this.ClientRowChanged(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  1211. }
  1212. }
  1213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1214. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1215. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1216. base.OnRowChanging(e);
  1217. if ((this.ClientRowChanging != null)) {
  1218. this.ClientRowChanging(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  1219. }
  1220. }
  1221. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1222. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1223. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1224. base.OnRowDeleted(e);
  1225. if ((this.ClientRowDeleted != null)) {
  1226. this.ClientRowDeleted(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  1227. }
  1228. }
  1229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1230. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1231. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1232. base.OnRowDeleting(e);
  1233. if ((this.ClientRowDeleting != null)) {
  1234. this.ClientRowDeleting(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  1235. }
  1236. }
  1237. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1238. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1239. public void RemoveClientRow(ClientRow row) {
  1240. this.Rows.Remove(row);
  1241. }
  1242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1243. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1244. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1245. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1246. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1247. DB_Danilov_V2DataSet1 ds = new DB_Danilov_V2DataSet1();
  1248. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1249. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1250. any1.MinOccurs = new decimal(0);
  1251. any1.MaxOccurs = decimal.MaxValue;
  1252. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1253. sequence.Items.Add(any1);
  1254. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1255. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1256. any2.MinOccurs = new decimal(1);
  1257. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1258. sequence.Items.Add(any2);
  1259. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1260. attribute1.Name = "namespace";
  1261. attribute1.FixedValue = ds.Namespace;
  1262. type.Attributes.Add(attribute1);
  1263. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1264. attribute2.Name = "tableTypeName";
  1265. attribute2.FixedValue = "ClientDataTable";
  1266. type.Attributes.Add(attribute2);
  1267. type.Particle = sequence;
  1268. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1269. if (xs.Contains(dsSchema.TargetNamespace)) {
  1270. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1271. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1272. try {
  1273. global::System.Xml.Schema.XmlSchema schema = null;
  1274. dsSchema.Write(s1);
  1275. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1276. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1277. s2.SetLength(0);
  1278. schema.Write(s2);
  1279. if ((s1.Length == s2.Length)) {
  1280. s1.Position = 0;
  1281. s2.Position = 0;
  1282. for (; ((s1.Position != s1.Length)
  1283. && (s1.ReadByte() == s2.ReadByte())); ) {
  1284. ;
  1285. }
  1286. if ((s1.Position == s1.Length)) {
  1287. return type;
  1288. }
  1289. }
  1290. }
  1291. }
  1292. finally {
  1293. if ((s1 != null)) {
  1294. s1.Close();
  1295. }
  1296. if ((s2 != null)) {
  1297. s2.Close();
  1298. }
  1299. }
  1300. }
  1301. xs.Add(dsSchema);
  1302. return type;
  1303. }
  1304. }
  1305. /// <summary>
  1306. ///Represents the strongly named DataTable class.
  1307. ///</summary>
  1308. [global::System.Serializable()]
  1309. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1310. public partial class ClientServiceDataTable : global::System.Data.TypedTableBase<ClientServiceRow> {
  1311. private global::System.Data.DataColumn columnID;
  1312. private global::System.Data.DataColumn columnClientID;
  1313. private global::System.Data.DataColumn columnServiceID;
  1314. private global::System.Data.DataColumn columnStartTime;
  1315. private global::System.Data.DataColumn columnComment;
  1316. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1317. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1318. public ClientServiceDataTable() {
  1319. this.TableName = "ClientService";
  1320. this.BeginInit();
  1321. this.InitClass();
  1322. this.EndInit();
  1323. }
  1324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1326. internal ClientServiceDataTable(global::System.Data.DataTable table) {
  1327. this.TableName = table.TableName;
  1328. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1329. this.CaseSensitive = table.CaseSensitive;
  1330. }
  1331. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1332. this.Locale = table.Locale;
  1333. }
  1334. if ((table.Namespace != table.DataSet.Namespace)) {
  1335. this.Namespace = table.Namespace;
  1336. }
  1337. this.Prefix = table.Prefix;
  1338. this.MinimumCapacity = table.MinimumCapacity;
  1339. }
  1340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1341. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1342. protected ClientServiceDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1343. base(info, context) {
  1344. this.InitVars();
  1345. }
  1346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1347. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1348. public global::System.Data.DataColumn IDColumn {
  1349. get {
  1350. return this.columnID;
  1351. }
  1352. }
  1353. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1354. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1355. public global::System.Data.DataColumn ClientIDColumn {
  1356. get {
  1357. return this.columnClientID;
  1358. }
  1359. }
  1360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1361. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1362. public global::System.Data.DataColumn ServiceIDColumn {
  1363. get {
  1364. return this.columnServiceID;
  1365. }
  1366. }
  1367. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1368. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1369. public global::System.Data.DataColumn StartTimeColumn {
  1370. get {
  1371. return this.columnStartTime;
  1372. }
  1373. }
  1374. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1375. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1376. public global::System.Data.DataColumn CommentColumn {
  1377. get {
  1378. return this.columnComment;
  1379. }
  1380. }
  1381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1382. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1383. [global::System.ComponentModel.Browsable(false)]
  1384. public int Count {
  1385. get {
  1386. return this.Rows.Count;
  1387. }
  1388. }
  1389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1390. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1391. public ClientServiceRow this[int index] {
  1392. get {
  1393. return ((ClientServiceRow)(this.Rows[index]));
  1394. }
  1395. }
  1396. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1397. public event ClientServiceRowChangeEventHandler ClientServiceRowChanging;
  1398. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1399. public event ClientServiceRowChangeEventHandler ClientServiceRowChanged;
  1400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1401. public event ClientServiceRowChangeEventHandler ClientServiceRowDeleting;
  1402. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1403. public event ClientServiceRowChangeEventHandler ClientServiceRowDeleted;
  1404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1406. public void AddClientServiceRow(ClientServiceRow row) {
  1407. this.Rows.Add(row);
  1408. }
  1409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1411. public ClientServiceRow AddClientServiceRow(ClientRow parentClientRowByFK_ClientService_Client1, ServiceRow parentServiceRowByFK_ClientService_service_b, System.DateTime StartTime, string Comment) {
  1412. ClientServiceRow rowClientServiceRow = ((ClientServiceRow)(this.NewRow()));
  1413. object[] columnValuesArray = new object[] {
  1414. null,
  1415. null,
  1416. null,
  1417. StartTime,
  1418. Comment};
  1419. if ((parentClientRowByFK_ClientService_Client1 != null)) {
  1420. columnValuesArray[1] = parentClientRowByFK_ClientService_Client1[0];
  1421. }
  1422. if ((parentServiceRowByFK_ClientService_service_b != null)) {
  1423. columnValuesArray[2] = parentServiceRowByFK_ClientService_service_b[0];
  1424. }
  1425. rowClientServiceRow.ItemArray = columnValuesArray;
  1426. this.Rows.Add(rowClientServiceRow);
  1427. return rowClientServiceRow;
  1428. }
  1429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1431. public ClientServiceRow FindByID(int ID) {
  1432. return ((ClientServiceRow)(this.Rows.Find(new object[] {
  1433. ID})));
  1434. }
  1435. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1436. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1437. public override global::System.Data.DataTable Clone() {
  1438. ClientServiceDataTable cln = ((ClientServiceDataTable)(base.Clone()));
  1439. cln.InitVars();
  1440. return cln;
  1441. }
  1442. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1443. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1444. protected override global::System.Data.DataTable CreateInstance() {
  1445. return new ClientServiceDataTable();
  1446. }
  1447. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1448. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1449. internal void InitVars() {
  1450. this.columnID = base.Columns["ID"];
  1451. this.columnClientID = base.Columns["ClientID"];
  1452. this.columnServiceID = base.Columns["ServiceID"];
  1453. this.columnStartTime = base.Columns["StartTime"];
  1454. this.columnComment = base.Columns["Comment"];
  1455. }
  1456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1457. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1458. private void InitClass() {
  1459. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  1460. base.Columns.Add(this.columnID);
  1461. this.columnClientID = new global::System.Data.DataColumn("ClientID", typeof(int), null, global::System.Data.MappingType.Element);
  1462. base.Columns.Add(this.columnClientID);
  1463. this.columnServiceID = new global::System.Data.DataColumn("ServiceID", typeof(int), null, global::System.Data.MappingType.Element);
  1464. base.Columns.Add(this.columnServiceID);
  1465. this.columnStartTime = new global::System.Data.DataColumn("StartTime", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1466. base.Columns.Add(this.columnStartTime);
  1467. this.columnComment = new global::System.Data.DataColumn("Comment", typeof(string), null, global::System.Data.MappingType.Element);
  1468. base.Columns.Add(this.columnComment);
  1469. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1470. this.columnID}, true));
  1471. this.columnID.AutoIncrement = true;
  1472. this.columnID.AutoIncrementSeed = -1;
  1473. this.columnID.AutoIncrementStep = -1;
  1474. this.columnID.AllowDBNull = false;
  1475. this.columnID.ReadOnly = true;
  1476. this.columnID.Unique = true;
  1477. this.columnClientID.AllowDBNull = false;
  1478. this.columnServiceID.AllowDBNull = false;
  1479. this.columnStartTime.AllowDBNull = false;
  1480. this.columnComment.MaxLength = 2147483647;
  1481. }
  1482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1484. public ClientServiceRow NewClientServiceRow() {
  1485. return ((ClientServiceRow)(this.NewRow()));
  1486. }
  1487. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1488. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1489. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1490. return new ClientServiceRow(builder);
  1491. }
  1492. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1493. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1494. protected override global::System.Type GetRowType() {
  1495. return typeof(ClientServiceRow);
  1496. }
  1497. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1498. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1499. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1500. base.OnRowChanged(e);
  1501. if ((this.ClientServiceRowChanged != null)) {
  1502. this.ClientServiceRowChanged(this, new ClientServiceRowChangeEvent(((ClientServiceRow)(e.Row)), e.Action));
  1503. }
  1504. }
  1505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1507. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1508. base.OnRowChanging(e);
  1509. if ((this.ClientServiceRowChanging != null)) {
  1510. this.ClientServiceRowChanging(this, new ClientServiceRowChangeEvent(((ClientServiceRow)(e.Row)), e.Action));
  1511. }
  1512. }
  1513. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1514. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1515. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1516. base.OnRowDeleted(e);
  1517. if ((this.ClientServiceRowDeleted != null)) {
  1518. this.ClientServiceRowDeleted(this, new ClientServiceRowChangeEvent(((ClientServiceRow)(e.Row)), e.Action));
  1519. }
  1520. }
  1521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1523. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1524. base.OnRowDeleting(e);
  1525. if ((this.ClientServiceRowDeleting != null)) {
  1526. this.ClientServiceRowDeleting(this, new ClientServiceRowChangeEvent(((ClientServiceRow)(e.Row)), e.Action));
  1527. }
  1528. }
  1529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1530. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1531. public void RemoveClientServiceRow(ClientServiceRow row) {
  1532. this.Rows.Remove(row);
  1533. }
  1534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1535. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1536. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1537. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1538. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1539. DB_Danilov_V2DataSet1 ds = new DB_Danilov_V2DataSet1();
  1540. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1541. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1542. any1.MinOccurs = new decimal(0);
  1543. any1.MaxOccurs = decimal.MaxValue;
  1544. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1545. sequence.Items.Add(any1);
  1546. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1547. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1548. any2.MinOccurs = new decimal(1);
  1549. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1550. sequence.Items.Add(any2);
  1551. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1552. attribute1.Name = "namespace";
  1553. attribute1.FixedValue = ds.Namespace;
  1554. type.Attributes.Add(attribute1);
  1555. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1556. attribute2.Name = "tableTypeName";
  1557. attribute2.FixedValue = "ClientServiceDataTable";
  1558. type.Attributes.Add(attribute2);
  1559. type.Particle = sequence;
  1560. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1561. if (xs.Contains(dsSchema.TargetNamespace)) {
  1562. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1563. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1564. try {
  1565. global::System.Xml.Schema.XmlSchema schema = null;
  1566. dsSchema.Write(s1);
  1567. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1568. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1569. s2.SetLength(0);
  1570. schema.Write(s2);
  1571. if ((s1.Length == s2.Length)) {
  1572. s1.Position = 0;
  1573. s2.Position = 0;
  1574. for (; ((s1.Position != s1.Length)
  1575. && (s1.ReadByte() == s2.ReadByte())); ) {
  1576. ;
  1577. }
  1578. if ((s1.Position == s1.Length)) {
  1579. return type;
  1580. }
  1581. }
  1582. }
  1583. }
  1584. finally {
  1585. if ((s1 != null)) {
  1586. s1.Close();
  1587. }
  1588. if ((s2 != null)) {
  1589. s2.Close();
  1590. }
  1591. }
  1592. }
  1593. xs.Add(dsSchema);
  1594. return type;
  1595. }
  1596. }
  1597. /// <summary>
  1598. ///Represents the strongly named DataTable class.
  1599. ///</summary>
  1600. [global::System.Serializable()]
  1601. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1602. public partial class DocumentByServiceDataTable : global::System.Data.TypedTableBase<DocumentByServiceRow> {
  1603. private global::System.Data.DataColumn columnID;
  1604. private global::System.Data.DataColumn columnClientServiceID;
  1605. private global::System.Data.DataColumn columnDocumentPath;
  1606. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1607. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1608. public DocumentByServiceDataTable() {
  1609. this.TableName = "DocumentByService";
  1610. this.BeginInit();
  1611. this.InitClass();
  1612. this.EndInit();
  1613. }
  1614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1615. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1616. internal DocumentByServiceDataTable(global::System.Data.DataTable table) {
  1617. this.TableName = table.TableName;
  1618. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1619. this.CaseSensitive = table.CaseSensitive;
  1620. }
  1621. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1622. this.Locale = table.Locale;
  1623. }
  1624. if ((table.Namespace != table.DataSet.Namespace)) {
  1625. this.Namespace = table.Namespace;
  1626. }
  1627. this.Prefix = table.Prefix;
  1628. this.MinimumCapacity = table.MinimumCapacity;
  1629. }
  1630. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1631. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1632. protected DocumentByServiceDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1633. base(info, context) {
  1634. this.InitVars();
  1635. }
  1636. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1637. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1638. public global::System.Data.DataColumn IDColumn {
  1639. get {
  1640. return this.columnID;
  1641. }
  1642. }
  1643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1644. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1645. public global::System.Data.DataColumn ClientServiceIDColumn {
  1646. get {
  1647. return this.columnClientServiceID;
  1648. }
  1649. }
  1650. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1651. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1652. public global::System.Data.DataColumn DocumentPathColumn {
  1653. get {
  1654. return this.columnDocumentPath;
  1655. }
  1656. }
  1657. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1658. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1659. [global::System.ComponentModel.Browsable(false)]
  1660. public int Count {
  1661. get {
  1662. return this.Rows.Count;
  1663. }
  1664. }
  1665. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1666. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1667. public DocumentByServiceRow this[int index] {
  1668. get {
  1669. return ((DocumentByServiceRow)(this.Rows[index]));
  1670. }
  1671. }
  1672. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1673. public event DocumentByServiceRowChangeEventHandler DocumentByServiceRowChanging;
  1674. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1675. public event DocumentByServiceRowChangeEventHandler DocumentByServiceRowChanged;
  1676. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1677. public event DocumentByServiceRowChangeEventHandler DocumentByServiceRowDeleting;
  1678. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1679. public event DocumentByServiceRowChangeEventHandler DocumentByServiceRowDeleted;
  1680. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1681. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1682. public void AddDocumentByServiceRow(DocumentByServiceRow row) {
  1683. this.Rows.Add(row);
  1684. }
  1685. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1686. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1687. public DocumentByServiceRow AddDocumentByServiceRow(ClientServiceRow parentClientServiceRowByFK_DocumentByService_ClientService, string DocumentPath) {
  1688. DocumentByServiceRow rowDocumentByServiceRow = ((DocumentByServiceRow)(this.NewRow()));
  1689. object[] columnValuesArray = new object[] {
  1690. null,
  1691. null,
  1692. DocumentPath};
  1693. if ((parentClientServiceRowByFK_DocumentByService_ClientService != null)) {
  1694. columnValuesArray[1] = parentClientServiceRowByFK_DocumentByService_ClientService[0];
  1695. }
  1696. rowDocumentByServiceRow.ItemArray = columnValuesArray;
  1697. this.Rows.Add(rowDocumentByServiceRow);
  1698. return rowDocumentByServiceRow;
  1699. }
  1700. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1701. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1702. public DocumentByServiceRow FindByID(int ID) {
  1703. return ((DocumentByServiceRow)(this.Rows.Find(new object[] {
  1704. ID})));
  1705. }
  1706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1708. public override global::System.Data.DataTable Clone() {
  1709. DocumentByServiceDataTable cln = ((DocumentByServiceDataTable)(base.Clone()));
  1710. cln.InitVars();
  1711. return cln;
  1712. }
  1713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1715. protected override global::System.Data.DataTable CreateInstance() {
  1716. return new DocumentByServiceDataTable();
  1717. }
  1718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1719. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1720. internal void InitVars() {
  1721. this.columnID = base.Columns["ID"];
  1722. this.columnClientServiceID = base.Columns["ClientServiceID"];
  1723. this.columnDocumentPath = base.Columns["DocumentPath"];
  1724. }
  1725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1726. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1727. private void InitClass() {
  1728. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  1729. base.Columns.Add(this.columnID);
  1730. this.columnClientServiceID = new global::System.Data.DataColumn("ClientServiceID", typeof(int), null, global::System.Data.MappingType.Element);
  1731. base.Columns.Add(this.columnClientServiceID);
  1732. this.columnDocumentPath = new global::System.Data.DataColumn("DocumentPath", typeof(string), null, global::System.Data.MappingType.Element);
  1733. base.Columns.Add(this.columnDocumentPath);
  1734. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1735. this.columnID}, true));
  1736. this.columnID.AutoIncrement = true;
  1737. this.columnID.AutoIncrementSeed = -1;
  1738. this.columnID.AutoIncrementStep = -1;
  1739. this.columnID.AllowDBNull = false;
  1740. this.columnID.ReadOnly = true;
  1741. this.columnID.Unique = true;
  1742. this.columnClientServiceID.AllowDBNull = false;
  1743. this.columnDocumentPath.AllowDBNull = false;
  1744. this.columnDocumentPath.MaxLength = 1000;
  1745. }
  1746. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1747. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1748. public DocumentByServiceRow NewDocumentByServiceRow() {
  1749. return ((DocumentByServiceRow)(this.NewRow()));
  1750. }
  1751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1753. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1754. return new DocumentByServiceRow(builder);
  1755. }
  1756. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1757. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1758. protected override global::System.Type GetRowType() {
  1759. return typeof(DocumentByServiceRow);
  1760. }
  1761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1763. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1764. base.OnRowChanged(e);
  1765. if ((this.DocumentByServiceRowChanged != null)) {
  1766. this.DocumentByServiceRowChanged(this, new DocumentByServiceRowChangeEvent(((DocumentByServiceRow)(e.Row)), e.Action));
  1767. }
  1768. }
  1769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1770. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1771. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1772. base.OnRowChanging(e);
  1773. if ((this.DocumentByServiceRowChanging != null)) {
  1774. this.DocumentByServiceRowChanging(this, new DocumentByServiceRowChangeEvent(((DocumentByServiceRow)(e.Row)), e.Action));
  1775. }
  1776. }
  1777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1779. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1780. base.OnRowDeleted(e);
  1781. if ((this.DocumentByServiceRowDeleted != null)) {
  1782. this.DocumentByServiceRowDeleted(this, new DocumentByServiceRowChangeEvent(((DocumentByServiceRow)(e.Row)), e.Action));
  1783. }
  1784. }
  1785. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1786. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1787. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1788. base.OnRowDeleting(e);
  1789. if ((this.DocumentByServiceRowDeleting != null)) {
  1790. this.DocumentByServiceRowDeleting(this, new DocumentByServiceRowChangeEvent(((DocumentByServiceRow)(e.Row)), e.Action));
  1791. }
  1792. }
  1793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1794. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1795. public void RemoveDocumentByServiceRow(DocumentByServiceRow row) {
  1796. this.Rows.Remove(row);
  1797. }
  1798. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1799. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1800. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1801. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1802. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1803. DB_Danilov_V2DataSet1 ds = new DB_Danilov_V2DataSet1();
  1804. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1805. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1806. any1.MinOccurs = new decimal(0);
  1807. any1.MaxOccurs = decimal.MaxValue;
  1808. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1809. sequence.Items.Add(any1);
  1810. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1811. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1812. any2.MinOccurs = new decimal(1);
  1813. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1814. sequence.Items.Add(any2);
  1815. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1816. attribute1.Name = "namespace";
  1817. attribute1.FixedValue = ds.Namespace;
  1818. type.Attributes.Add(attribute1);
  1819. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1820. attribute2.Name = "tableTypeName";
  1821. attribute2.FixedValue = "DocumentByServiceDataTable";
  1822. type.Attributes.Add(attribute2);
  1823. type.Particle = sequence;
  1824. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1825. if (xs.Contains(dsSchema.TargetNamespace)) {
  1826. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1827. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1828. try {
  1829. global::System.Xml.Schema.XmlSchema schema = null;
  1830. dsSchema.Write(s1);
  1831. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1832. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1833. s2.SetLength(0);
  1834. schema.Write(s2);
  1835. if ((s1.Length == s2.Length)) {
  1836. s1.Position = 0;
  1837. s2.Position = 0;
  1838. for (; ((s1.Position != s1.Length)
  1839. && (s1.ReadByte() == s2.ReadByte())); ) {
  1840. ;
  1841. }
  1842. if ((s1.Position == s1.Length)) {
  1843. return type;
  1844. }
  1845. }
  1846. }
  1847. }
  1848. finally {
  1849. if ((s1 != null)) {
  1850. s1.Close();
  1851. }
  1852. if ((s2 != null)) {
  1853. s2.Close();
  1854. }
  1855. }
  1856. }
  1857. xs.Add(dsSchema);
  1858. return type;
  1859. }
  1860. }
  1861. /// <summary>
  1862. ///Represents the strongly named DataTable class.
  1863. ///</summary>
  1864. [global::System.Serializable()]
  1865. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1866. public partial class GenderDataTable : global::System.Data.TypedTableBase<GenderRow> {
  1867. private global::System.Data.DataColumn columnCode;
  1868. private global::System.Data.DataColumn columnName;
  1869. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1870. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1871. public GenderDataTable() {
  1872. this.TableName = "Gender";
  1873. this.BeginInit();
  1874. this.InitClass();
  1875. this.EndInit();
  1876. }
  1877. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1878. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1879. internal GenderDataTable(global::System.Data.DataTable table) {
  1880. this.TableName = table.TableName;
  1881. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1882. this.CaseSensitive = table.CaseSensitive;
  1883. }
  1884. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1885. this.Locale = table.Locale;
  1886. }
  1887. if ((table.Namespace != table.DataSet.Namespace)) {
  1888. this.Namespace = table.Namespace;
  1889. }
  1890. this.Prefix = table.Prefix;
  1891. this.MinimumCapacity = table.MinimumCapacity;
  1892. }
  1893. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1894. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1895. protected GenderDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1896. base(info, context) {
  1897. this.InitVars();
  1898. }
  1899. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1900. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1901. public global::System.Data.DataColumn CodeColumn {
  1902. get {
  1903. return this.columnCode;
  1904. }
  1905. }
  1906. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1907. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1908. public global::System.Data.DataColumn NameColumn {
  1909. get {
  1910. return this.columnName;
  1911. }
  1912. }
  1913. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1914. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1915. [global::System.ComponentModel.Browsable(false)]
  1916. public int Count {
  1917. get {
  1918. return this.Rows.Count;
  1919. }
  1920. }
  1921. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1922. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1923. public GenderRow this[int index] {
  1924. get {
  1925. return ((GenderRow)(this.Rows[index]));
  1926. }
  1927. }
  1928. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1929. public event GenderRowChangeEventHandler GenderRowChanging;
  1930. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1931. public event GenderRowChangeEventHandler GenderRowChanged;
  1932. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1933. public event GenderRowChangeEventHandler GenderRowDeleting;
  1934. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1935. public event GenderRowChangeEventHandler GenderRowDeleted;
  1936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1937. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1938. public void AddGenderRow(GenderRow row) {
  1939. this.Rows.Add(row);
  1940. }
  1941. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1942. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1943. public GenderRow AddGenderRow(string Code, string Name) {
  1944. GenderRow rowGenderRow = ((GenderRow)(this.NewRow()));
  1945. object[] columnValuesArray = new object[] {
  1946. Code,
  1947. Name};
  1948. rowGenderRow.ItemArray = columnValuesArray;
  1949. this.Rows.Add(rowGenderRow);
  1950. return rowGenderRow;
  1951. }
  1952. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1953. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1954. public GenderRow FindByCode(string Code) {
  1955. return ((GenderRow)(this.Rows.Find(new object[] {
  1956. Code})));
  1957. }
  1958. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1959. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1960. public override global::System.Data.DataTable Clone() {
  1961. GenderDataTable cln = ((GenderDataTable)(base.Clone()));
  1962. cln.InitVars();
  1963. return cln;
  1964. }
  1965. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1966. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1967. protected override global::System.Data.DataTable CreateInstance() {
  1968. return new GenderDataTable();
  1969. }
  1970. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1971. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1972. internal void InitVars() {
  1973. this.columnCode = base.Columns["Code"];
  1974. this.columnName = base.Columns["Name"];
  1975. }
  1976. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1977. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1978. private void InitClass() {
  1979. this.columnCode = new global::System.Data.DataColumn("Code", typeof(string), null, global::System.Data.MappingType.Element);
  1980. base.Columns.Add(this.columnCode);
  1981. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  1982. base.Columns.Add(this.columnName);
  1983. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1984. this.columnCode}, true));
  1985. this.columnCode.AllowDBNull = false;
  1986. this.columnCode.Unique = true;
  1987. this.columnCode.MaxLength = 1;
  1988. this.columnName.MaxLength = 10;
  1989. }
  1990. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1991. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1992. public GenderRow NewGenderRow() {
  1993. return ((GenderRow)(this.NewRow()));
  1994. }
  1995. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1996. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1997. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1998. return new GenderRow(builder);
  1999. }
  2000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2001. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2002. protected override global::System.Type GetRowType() {
  2003. return typeof(GenderRow);
  2004. }
  2005. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2006. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2007. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2008. base.OnRowChanged(e);
  2009. if ((this.GenderRowChanged != null)) {
  2010. this.GenderRowChanged(this, new GenderRowChangeEvent(((GenderRow)(e.Row)), e.Action));
  2011. }
  2012. }
  2013. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2014. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2015. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2016. base.OnRowChanging(e);
  2017. if ((this.GenderRowChanging != null)) {
  2018. this.GenderRowChanging(this, new GenderRowChangeEvent(((GenderRow)(e.Row)), e.Action));
  2019. }
  2020. }
  2021. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2022. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2023. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2024. base.OnRowDeleted(e);
  2025. if ((this.GenderRowDeleted != null)) {
  2026. this.GenderRowDeleted(this, new GenderRowChangeEvent(((GenderRow)(e.Row)), e.Action));
  2027. }
  2028. }
  2029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2031. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2032. base.OnRowDeleting(e);
  2033. if ((this.GenderRowDeleting != null)) {
  2034. this.GenderRowDeleting(this, new GenderRowChangeEvent(((GenderRow)(e.Row)), e.Action));
  2035. }
  2036. }
  2037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2038. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2039. public void RemoveGenderRow(GenderRow row) {
  2040. this.Rows.Remove(row);
  2041. }
  2042. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2043. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2044. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2045. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2046. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2047. DB_Danilov_V2DataSet1 ds = new DB_Danilov_V2DataSet1();
  2048. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2049. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2050. any1.MinOccurs = new decimal(0);
  2051. any1.MaxOccurs = decimal.MaxValue;
  2052. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2053. sequence.Items.Add(any1);
  2054. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2055. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2056. any2.MinOccurs = new decimal(1);
  2057. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2058. sequence.Items.Add(any2);
  2059. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2060. attribute1.Name = "namespace";
  2061. attribute1.FixedValue = ds.Namespace;
  2062. type.Attributes.Add(attribute1);
  2063. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2064. attribute2.Name = "tableTypeName";
  2065. attribute2.FixedValue = "GenderDataTable";
  2066. type.Attributes.Add(attribute2);
  2067. type.Particle = sequence;
  2068. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2069. if (xs.Contains(dsSchema.TargetNamespace)) {
  2070. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2071. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2072. try {
  2073. global::System.Xml.Schema.XmlSchema schema = null;
  2074. dsSchema.Write(s1);
  2075. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2076. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2077. s2.SetLength(0);
  2078. schema.Write(s2);
  2079. if ((s1.Length == s2.Length)) {
  2080. s1.Position = 0;
  2081. s2.Position = 0;
  2082. for (; ((s1.Position != s1.Length)
  2083. && (s1.ReadByte() == s2.ReadByte())); ) {
  2084. ;
  2085. }
  2086. if ((s1.Position == s1.Length)) {
  2087. return type;
  2088. }
  2089. }
  2090. }
  2091. }
  2092. finally {
  2093. if ((s1 != null)) {
  2094. s1.Close();
  2095. }
  2096. if ((s2 != null)) {
  2097. s2.Close();
  2098. }
  2099. }
  2100. }
  2101. xs.Add(dsSchema);
  2102. return type;
  2103. }
  2104. }
  2105. /// <summary>
  2106. ///Represents the strongly named DataTable class.
  2107. ///</summary>
  2108. [global::System.Serializable()]
  2109. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2110. public partial class ManufacturerDataTable : global::System.Data.TypedTableBase<ManufacturerRow> {
  2111. private global::System.Data.DataColumn columnID;
  2112. private global::System.Data.DataColumn columnName;
  2113. private global::System.Data.DataColumn columnStartDate;
  2114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2115. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2116. public ManufacturerDataTable() {
  2117. this.TableName = "Manufacturer";
  2118. this.BeginInit();
  2119. this.InitClass();
  2120. this.EndInit();
  2121. }
  2122. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2123. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2124. internal ManufacturerDataTable(global::System.Data.DataTable table) {
  2125. this.TableName = table.TableName;
  2126. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2127. this.CaseSensitive = table.CaseSensitive;
  2128. }
  2129. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2130. this.Locale = table.Locale;
  2131. }
  2132. if ((table.Namespace != table.DataSet.Namespace)) {
  2133. this.Namespace = table.Namespace;
  2134. }
  2135. this.Prefix = table.Prefix;
  2136. this.MinimumCapacity = table.MinimumCapacity;
  2137. }
  2138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2139. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2140. protected ManufacturerDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2141. base(info, context) {
  2142. this.InitVars();
  2143. }
  2144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2146. public global::System.Data.DataColumn IDColumn {
  2147. get {
  2148. return this.columnID;
  2149. }
  2150. }
  2151. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2152. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2153. public global::System.Data.DataColumn NameColumn {
  2154. get {
  2155. return this.columnName;
  2156. }
  2157. }
  2158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2159. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2160. public global::System.Data.DataColumn StartDateColumn {
  2161. get {
  2162. return this.columnStartDate;
  2163. }
  2164. }
  2165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2167. [global::System.ComponentModel.Browsable(false)]
  2168. public int Count {
  2169. get {
  2170. return this.Rows.Count;
  2171. }
  2172. }
  2173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2175. public ManufacturerRow this[int index] {
  2176. get {
  2177. return ((ManufacturerRow)(this.Rows[index]));
  2178. }
  2179. }
  2180. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2181. public event ManufacturerRowChangeEventHandler ManufacturerRowChanging;
  2182. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2183. public event ManufacturerRowChangeEventHandler ManufacturerRowChanged;
  2184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2185. public event ManufacturerRowChangeEventHandler ManufacturerRowDeleting;
  2186. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2187. public event ManufacturerRowChangeEventHandler ManufacturerRowDeleted;
  2188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2190. public void AddManufacturerRow(ManufacturerRow row) {
  2191. this.Rows.Add(row);
  2192. }
  2193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2194. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2195. public ManufacturerRow AddManufacturerRow(string Name, System.DateTime StartDate) {
  2196. ManufacturerRow rowManufacturerRow = ((ManufacturerRow)(this.NewRow()));
  2197. object[] columnValuesArray = new object[] {
  2198. null,
  2199. Name,
  2200. StartDate};
  2201. rowManufacturerRow.ItemArray = columnValuesArray;
  2202. this.Rows.Add(rowManufacturerRow);
  2203. return rowManufacturerRow;
  2204. }
  2205. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2206. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2207. public ManufacturerRow FindByID(int ID) {
  2208. return ((ManufacturerRow)(this.Rows.Find(new object[] {
  2209. ID})));
  2210. }
  2211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2213. public override global::System.Data.DataTable Clone() {
  2214. ManufacturerDataTable cln = ((ManufacturerDataTable)(base.Clone()));
  2215. cln.InitVars();
  2216. return cln;
  2217. }
  2218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2219. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2220. protected override global::System.Data.DataTable CreateInstance() {
  2221. return new ManufacturerDataTable();
  2222. }
  2223. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2224. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2225. internal void InitVars() {
  2226. this.columnID = base.Columns["ID"];
  2227. this.columnName = base.Columns["Name"];
  2228. this.columnStartDate = base.Columns["StartDate"];
  2229. }
  2230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2232. private void InitClass() {
  2233. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  2234. base.Columns.Add(this.columnID);
  2235. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  2236. base.Columns.Add(this.columnName);
  2237. this.columnStartDate = new global::System.Data.DataColumn("StartDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  2238. base.Columns.Add(this.columnStartDate);
  2239. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2240. this.columnID}, true));
  2241. this.columnID.AutoIncrement = true;
  2242. this.columnID.AutoIncrementSeed = -1;
  2243. this.columnID.AutoIncrementStep = -1;
  2244. this.columnID.AllowDBNull = false;
  2245. this.columnID.ReadOnly = true;
  2246. this.columnID.Unique = true;
  2247. this.columnName.AllowDBNull = false;
  2248. this.columnName.MaxLength = 100;
  2249. }
  2250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2252. public ManufacturerRow NewManufacturerRow() {
  2253. return ((ManufacturerRow)(this.NewRow()));
  2254. }
  2255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2256. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2257. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2258. return new ManufacturerRow(builder);
  2259. }
  2260. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2261. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2262. protected override global::System.Type GetRowType() {
  2263. return typeof(ManufacturerRow);
  2264. }
  2265. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2266. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2267. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2268. base.OnRowChanged(e);
  2269. if ((this.ManufacturerRowChanged != null)) {
  2270. this.ManufacturerRowChanged(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  2271. }
  2272. }
  2273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2274. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2275. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2276. base.OnRowChanging(e);
  2277. if ((this.ManufacturerRowChanging != null)) {
  2278. this.ManufacturerRowChanging(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  2279. }
  2280. }
  2281. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2282. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2283. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2284. base.OnRowDeleted(e);
  2285. if ((this.ManufacturerRowDeleted != null)) {
  2286. this.ManufacturerRowDeleted(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  2287. }
  2288. }
  2289. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2290. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2291. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2292. base.OnRowDeleting(e);
  2293. if ((this.ManufacturerRowDeleting != null)) {
  2294. this.ManufacturerRowDeleting(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  2295. }
  2296. }
  2297. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2298. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2299. public void RemoveManufacturerRow(ManufacturerRow row) {
  2300. this.Rows.Remove(row);
  2301. }
  2302. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2303. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2304. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2305. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2306. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2307. DB_Danilov_V2DataSet1 ds = new DB_Danilov_V2DataSet1();
  2308. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2309. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2310. any1.MinOccurs = new decimal(0);
  2311. any1.MaxOccurs = decimal.MaxValue;
  2312. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2313. sequence.Items.Add(any1);
  2314. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2315. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2316. any2.MinOccurs = new decimal(1);
  2317. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2318. sequence.Items.Add(any2);
  2319. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2320. attribute1.Name = "namespace";
  2321. attribute1.FixedValue = ds.Namespace;
  2322. type.Attributes.Add(attribute1);
  2323. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2324. attribute2.Name = "tableTypeName";
  2325. attribute2.FixedValue = "ManufacturerDataTable";
  2326. type.Attributes.Add(attribute2);
  2327. type.Particle = sequence;
  2328. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2329. if (xs.Contains(dsSchema.TargetNamespace)) {
  2330. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2331. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2332. try {
  2333. global::System.Xml.Schema.XmlSchema schema = null;
  2334. dsSchema.Write(s1);
  2335. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2336. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2337. s2.SetLength(0);
  2338. schema.Write(s2);
  2339. if ((s1.Length == s2.Length)) {
  2340. s1.Position = 0;
  2341. s2.Position = 0;
  2342. for (; ((s1.Position != s1.Length)
  2343. && (s1.ReadByte() == s2.ReadByte())); ) {
  2344. ;
  2345. }
  2346. if ((s1.Position == s1.Length)) {
  2347. return type;
  2348. }
  2349. }
  2350. }
  2351. }
  2352. finally {
  2353. if ((s1 != null)) {
  2354. s1.Close();
  2355. }
  2356. if ((s2 != null)) {
  2357. s2.Close();
  2358. }
  2359. }
  2360. }
  2361. xs.Add(dsSchema);
  2362. return type;
  2363. }
  2364. }
  2365. /// <summary>
  2366. ///Represents the strongly named DataTable class.
  2367. ///</summary>
  2368. [global::System.Serializable()]
  2369. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2370. public partial class ProductDataTable : global::System.Data.TypedTableBase<ProductRow> {
  2371. private global::System.Data.DataColumn columnID;
  2372. private global::System.Data.DataColumn columnTitle;
  2373. private global::System.Data.DataColumn columnCost;
  2374. private global::System.Data.DataColumn columnDescription;
  2375. private global::System.Data.DataColumn columnMainImagePath;
  2376. private global::System.Data.DataColumn columnIsActive;
  2377. private global::System.Data.DataColumn columnManufacturerID;
  2378. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2379. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2380. public ProductDataTable() {
  2381. this.TableName = "Product";
  2382. this.BeginInit();
  2383. this.InitClass();
  2384. this.EndInit();
  2385. }
  2386. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2387. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2388. internal ProductDataTable(global::System.Data.DataTable table) {
  2389. this.TableName = table.TableName;
  2390. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2391. this.CaseSensitive = table.CaseSensitive;
  2392. }
  2393. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2394. this.Locale = table.Locale;
  2395. }
  2396. if ((table.Namespace != table.DataSet.Namespace)) {
  2397. this.Namespace = table.Namespace;
  2398. }
  2399. this.Prefix = table.Prefix;
  2400. this.MinimumCapacity = table.MinimumCapacity;
  2401. }
  2402. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2403. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2404. protected ProductDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2405. base(info, context) {
  2406. this.InitVars();
  2407. }
  2408. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2409. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2410. public global::System.Data.DataColumn IDColumn {
  2411. get {
  2412. return this.columnID;
  2413. }
  2414. }
  2415. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2416. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2417. public global::System.Data.DataColumn TitleColumn {
  2418. get {
  2419. return this.columnTitle;
  2420. }
  2421. }
  2422. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2423. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2424. public global::System.Data.DataColumn CostColumn {
  2425. get {
  2426. return this.columnCost;
  2427. }
  2428. }
  2429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2431. public global::System.Data.DataColumn DescriptionColumn {
  2432. get {
  2433. return this.columnDescription;
  2434. }
  2435. }
  2436. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2437. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2438. public global::System.Data.DataColumn MainImagePathColumn {
  2439. get {
  2440. return this.columnMainImagePath;
  2441. }
  2442. }
  2443. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2444. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2445. public global::System.Data.DataColumn IsActiveColumn {
  2446. get {
  2447. return this.columnIsActive;
  2448. }
  2449. }
  2450. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2451. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2452. public global::System.Data.DataColumn ManufacturerIDColumn {
  2453. get {
  2454. return this.columnManufacturerID;
  2455. }
  2456. }
  2457. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2458. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2459. [global::System.ComponentModel.Browsable(false)]
  2460. public int Count {
  2461. get {
  2462. return this.Rows.Count;
  2463. }
  2464. }
  2465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2466. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2467. public ProductRow this[int index] {
  2468. get {
  2469. return ((ProductRow)(this.Rows[index]));
  2470. }
  2471. }
  2472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2473. public event ProductRowChangeEventHandler ProductRowChanging;
  2474. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2475. public event ProductRowChangeEventHandler ProductRowChanged;
  2476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2477. public event ProductRowChangeEventHandler ProductRowDeleting;
  2478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2479. public event ProductRowChangeEventHandler ProductRowDeleted;
  2480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2482. public void AddProductRow(ProductRow row) {
  2483. this.Rows.Add(row);
  2484. }
  2485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2486. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2487. public ProductRow AddProductRow(string Title, decimal Cost, string Description, string MainImagePath, bool IsActive, ManufacturerRow parentManufacturerRowByFK_Product_Manufacturer) {
  2488. ProductRow rowProductRow = ((ProductRow)(this.NewRow()));
  2489. object[] columnValuesArray = new object[] {
  2490. null,
  2491. Title,
  2492. Cost,
  2493. Description,
  2494. MainImagePath,
  2495. IsActive,
  2496. null};
  2497. if ((parentManufacturerRowByFK_Product_Manufacturer != null)) {
  2498. columnValuesArray[6] = parentManufacturerRowByFK_Product_Manufacturer[0];
  2499. }
  2500. rowProductRow.ItemArray = columnValuesArray;
  2501. this.Rows.Add(rowProductRow);
  2502. return rowProductRow;
  2503. }
  2504. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2505. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2506. public ProductRow FindByID(int ID) {
  2507. return ((ProductRow)(this.Rows.Find(new object[] {
  2508. ID})));
  2509. }
  2510. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2511. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2512. public override global::System.Data.DataTable Clone() {
  2513. ProductDataTable cln = ((ProductDataTable)(base.Clone()));
  2514. cln.InitVars();
  2515. return cln;
  2516. }
  2517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2518. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2519. protected override global::System.Data.DataTable CreateInstance() {
  2520. return new ProductDataTable();
  2521. }
  2522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2524. internal void InitVars() {
  2525. this.columnID = base.Columns["ID"];
  2526. this.columnTitle = base.Columns["Title"];
  2527. this.columnCost = base.Columns["Cost"];
  2528. this.columnDescription = base.Columns["Description"];
  2529. this.columnMainImagePath = base.Columns["MainImagePath"];
  2530. this.columnIsActive = base.Columns["IsActive"];
  2531. this.columnManufacturerID = base.Columns["ManufacturerID"];
  2532. }
  2533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2535. private void InitClass() {
  2536. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  2537. base.Columns.Add(this.columnID);
  2538. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  2539. base.Columns.Add(this.columnTitle);
  2540. this.columnCost = new global::System.Data.DataColumn("Cost", typeof(decimal), null, global::System.Data.MappingType.Element);
  2541. base.Columns.Add(this.columnCost);
  2542. this.columnDescription = new global::System.Data.DataColumn("Description", typeof(string), null, global::System.Data.MappingType.Element);
  2543. base.Columns.Add(this.columnDescription);
  2544. this.columnMainImagePath = new global::System.Data.DataColumn("MainImagePath", typeof(string), null, global::System.Data.MappingType.Element);
  2545. base.Columns.Add(this.columnMainImagePath);
  2546. this.columnIsActive = new global::System.Data.DataColumn("IsActive", typeof(bool), null, global::System.Data.MappingType.Element);
  2547. base.Columns.Add(this.columnIsActive);
  2548. this.columnManufacturerID = new global::System.Data.DataColumn("ManufacturerID", typeof(int), null, global::System.Data.MappingType.Element);
  2549. base.Columns.Add(this.columnManufacturerID);
  2550. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2551. this.columnID}, true));
  2552. this.columnID.AutoIncrement = true;
  2553. this.columnID.AutoIncrementSeed = -1;
  2554. this.columnID.AutoIncrementStep = -1;
  2555. this.columnID.AllowDBNull = false;
  2556. this.columnID.ReadOnly = true;
  2557. this.columnID.Unique = true;
  2558. this.columnTitle.AllowDBNull = false;
  2559. this.columnTitle.MaxLength = 100;
  2560. this.columnCost.AllowDBNull = false;
  2561. this.columnDescription.MaxLength = 2147483647;
  2562. this.columnMainImagePath.MaxLength = 1000;
  2563. this.columnIsActive.AllowDBNull = false;
  2564. }
  2565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2567. public ProductRow NewProductRow() {
  2568. return ((ProductRow)(this.NewRow()));
  2569. }
  2570. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2571. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2572. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2573. return new ProductRow(builder);
  2574. }
  2575. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2576. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2577. protected override global::System.Type GetRowType() {
  2578. return typeof(ProductRow);
  2579. }
  2580. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2581. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2582. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2583. base.OnRowChanged(e);
  2584. if ((this.ProductRowChanged != null)) {
  2585. this.ProductRowChanged(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2586. }
  2587. }
  2588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2589. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2590. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2591. base.OnRowChanging(e);
  2592. if ((this.ProductRowChanging != null)) {
  2593. this.ProductRowChanging(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2594. }
  2595. }
  2596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2597. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2598. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2599. base.OnRowDeleted(e);
  2600. if ((this.ProductRowDeleted != null)) {
  2601. this.ProductRowDeleted(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2602. }
  2603. }
  2604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2606. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2607. base.OnRowDeleting(e);
  2608. if ((this.ProductRowDeleting != null)) {
  2609. this.ProductRowDeleting(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2610. }
  2611. }
  2612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2614. public void RemoveProductRow(ProductRow row) {
  2615. this.Rows.Remove(row);
  2616. }
  2617. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2618. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2619. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2620. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2621. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2622. DB_Danilov_V2DataSet1 ds = new DB_Danilov_V2DataSet1();
  2623. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2624. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2625. any1.MinOccurs = new decimal(0);
  2626. any1.MaxOccurs = decimal.MaxValue;
  2627. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2628. sequence.Items.Add(any1);
  2629. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2630. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2631. any2.MinOccurs = new decimal(1);
  2632. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2633. sequence.Items.Add(any2);
  2634. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2635. attribute1.Name = "namespace";
  2636. attribute1.FixedValue = ds.Namespace;
  2637. type.Attributes.Add(attribute1);
  2638. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2639. attribute2.Name = "tableTypeName";
  2640. attribute2.FixedValue = "ProductDataTable";
  2641. type.Attributes.Add(attribute2);
  2642. type.Particle = sequence;
  2643. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2644. if (xs.Contains(dsSchema.TargetNamespace)) {
  2645. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2646. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2647. try {
  2648. global::System.Xml.Schema.XmlSchema schema = null;
  2649. dsSchema.Write(s1);
  2650. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2651. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2652. s2.SetLength(0);
  2653. schema.Write(s2);
  2654. if ((s1.Length == s2.Length)) {
  2655. s1.Position = 0;
  2656. s2.Position = 0;
  2657. for (; ((s1.Position != s1.Length)
  2658. && (s1.ReadByte() == s2.ReadByte())); ) {
  2659. ;
  2660. }
  2661. if ((s1.Position == s1.Length)) {
  2662. return type;
  2663. }
  2664. }
  2665. }
  2666. }
  2667. finally {
  2668. if ((s1 != null)) {
  2669. s1.Close();
  2670. }
  2671. if ((s2 != null)) {
  2672. s2.Close();
  2673. }
  2674. }
  2675. }
  2676. xs.Add(dsSchema);
  2677. return type;
  2678. }
  2679. }
  2680. /// <summary>
  2681. ///Represents the strongly named DataTable class.
  2682. ///</summary>
  2683. [global::System.Serializable()]
  2684. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2685. public partial class ProductPhotoDataTable : global::System.Data.TypedTableBase<ProductPhotoRow> {
  2686. private global::System.Data.DataColumn columnID;
  2687. private global::System.Data.DataColumn columnProductID;
  2688. private global::System.Data.DataColumn columnPhotoPath;
  2689. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2690. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2691. public ProductPhotoDataTable() {
  2692. this.TableName = "ProductPhoto";
  2693. this.BeginInit();
  2694. this.InitClass();
  2695. this.EndInit();
  2696. }
  2697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2698. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2699. internal ProductPhotoDataTable(global::System.Data.DataTable table) {
  2700. this.TableName = table.TableName;
  2701. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2702. this.CaseSensitive = table.CaseSensitive;
  2703. }
  2704. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2705. this.Locale = table.Locale;
  2706. }
  2707. if ((table.Namespace != table.DataSet.Namespace)) {
  2708. this.Namespace = table.Namespace;
  2709. }
  2710. this.Prefix = table.Prefix;
  2711. this.MinimumCapacity = table.MinimumCapacity;
  2712. }
  2713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2715. protected ProductPhotoDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2716. base(info, context) {
  2717. this.InitVars();
  2718. }
  2719. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2720. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2721. public global::System.Data.DataColumn IDColumn {
  2722. get {
  2723. return this.columnID;
  2724. }
  2725. }
  2726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2728. public global::System.Data.DataColumn ProductIDColumn {
  2729. get {
  2730. return this.columnProductID;
  2731. }
  2732. }
  2733. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2734. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2735. public global::System.Data.DataColumn PhotoPathColumn {
  2736. get {
  2737. return this.columnPhotoPath;
  2738. }
  2739. }
  2740. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2741. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2742. [global::System.ComponentModel.Browsable(false)]
  2743. public int Count {
  2744. get {
  2745. return this.Rows.Count;
  2746. }
  2747. }
  2748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2750. public ProductPhotoRow this[int index] {
  2751. get {
  2752. return ((ProductPhotoRow)(this.Rows[index]));
  2753. }
  2754. }
  2755. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2756. public event ProductPhotoRowChangeEventHandler ProductPhotoRowChanging;
  2757. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2758. public event ProductPhotoRowChangeEventHandler ProductPhotoRowChanged;
  2759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2760. public event ProductPhotoRowChangeEventHandler ProductPhotoRowDeleting;
  2761. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2762. public event ProductPhotoRowChangeEventHandler ProductPhotoRowDeleted;
  2763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2764. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2765. public void AddProductPhotoRow(ProductPhotoRow row) {
  2766. this.Rows.Add(row);
  2767. }
  2768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2770. public ProductPhotoRow AddProductPhotoRow(ProductRow parentProductRowByFK_ProductPhoto_Product, string PhotoPath) {
  2771. ProductPhotoRow rowProductPhotoRow = ((ProductPhotoRow)(this.NewRow()));
  2772. object[] columnValuesArray = new object[] {
  2773. null,
  2774. null,
  2775. PhotoPath};
  2776. if ((parentProductRowByFK_ProductPhoto_Product != null)) {
  2777. columnValuesArray[1] = parentProductRowByFK_ProductPhoto_Product[0];
  2778. }
  2779. rowProductPhotoRow.ItemArray = columnValuesArray;
  2780. this.Rows.Add(rowProductPhotoRow);
  2781. return rowProductPhotoRow;
  2782. }
  2783. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2784. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2785. public ProductPhotoRow FindByID(int ID) {
  2786. return ((ProductPhotoRow)(this.Rows.Find(new object[] {
  2787. ID})));
  2788. }
  2789. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2790. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2791. public override global::System.Data.DataTable Clone() {
  2792. ProductPhotoDataTable cln = ((ProductPhotoDataTable)(base.Clone()));
  2793. cln.InitVars();
  2794. return cln;
  2795. }
  2796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2797. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2798. protected override global::System.Data.DataTable CreateInstance() {
  2799. return new ProductPhotoDataTable();
  2800. }
  2801. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2802. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2803. internal void InitVars() {
  2804. this.columnID = base.Columns["ID"];
  2805. this.columnProductID = base.Columns["ProductID"];
  2806. this.columnPhotoPath = base.Columns["PhotoPath"];
  2807. }
  2808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2810. private void InitClass() {
  2811. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  2812. base.Columns.Add(this.columnID);
  2813. this.columnProductID = new global::System.Data.DataColumn("ProductID", typeof(int), null, global::System.Data.MappingType.Element);
  2814. base.Columns.Add(this.columnProductID);
  2815. this.columnPhotoPath = new global::System.Data.DataColumn("PhotoPath", typeof(string), null, global::System.Data.MappingType.Element);
  2816. base.Columns.Add(this.columnPhotoPath);
  2817. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2818. this.columnID}, true));
  2819. this.columnID.AutoIncrement = true;
  2820. this.columnID.AutoIncrementSeed = -1;
  2821. this.columnID.AutoIncrementStep = -1;
  2822. this.columnID.AllowDBNull = false;
  2823. this.columnID.ReadOnly = true;
  2824. this.columnID.Unique = true;
  2825. this.columnProductID.AllowDBNull = false;
  2826. this.columnPhotoPath.AllowDBNull = false;
  2827. this.columnPhotoPath.MaxLength = 1000;
  2828. }
  2829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2830. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2831. public ProductPhotoRow NewProductPhotoRow() {
  2832. return ((ProductPhotoRow)(this.NewRow()));
  2833. }
  2834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2835. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2836. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2837. return new ProductPhotoRow(builder);
  2838. }
  2839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2841. protected override global::System.Type GetRowType() {
  2842. return typeof(ProductPhotoRow);
  2843. }
  2844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2845. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2846. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2847. base.OnRowChanged(e);
  2848. if ((this.ProductPhotoRowChanged != null)) {
  2849. this.ProductPhotoRowChanged(this, new ProductPhotoRowChangeEvent(((ProductPhotoRow)(e.Row)), e.Action));
  2850. }
  2851. }
  2852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2853. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2854. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2855. base.OnRowChanging(e);
  2856. if ((this.ProductPhotoRowChanging != null)) {
  2857. this.ProductPhotoRowChanging(this, new ProductPhotoRowChangeEvent(((ProductPhotoRow)(e.Row)), e.Action));
  2858. }
  2859. }
  2860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2862. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2863. base.OnRowDeleted(e);
  2864. if ((this.ProductPhotoRowDeleted != null)) {
  2865. this.ProductPhotoRowDeleted(this, new ProductPhotoRowChangeEvent(((ProductPhotoRow)(e.Row)), e.Action));
  2866. }
  2867. }
  2868. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2869. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2870. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2871. base.OnRowDeleting(e);
  2872. if ((this.ProductPhotoRowDeleting != null)) {
  2873. this.ProductPhotoRowDeleting(this, new ProductPhotoRowChangeEvent(((ProductPhotoRow)(e.Row)), e.Action));
  2874. }
  2875. }
  2876. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2877. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2878. public void RemoveProductPhotoRow(ProductPhotoRow row) {
  2879. this.Rows.Remove(row);
  2880. }
  2881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2883. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2884. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2885. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2886. DB_Danilov_V2DataSet1 ds = new DB_Danilov_V2DataSet1();
  2887. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2888. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2889. any1.MinOccurs = new decimal(0);
  2890. any1.MaxOccurs = decimal.MaxValue;
  2891. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2892. sequence.Items.Add(any1);
  2893. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2894. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2895. any2.MinOccurs = new decimal(1);
  2896. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2897. sequence.Items.Add(any2);
  2898. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2899. attribute1.Name = "namespace";
  2900. attribute1.FixedValue = ds.Namespace;
  2901. type.Attributes.Add(attribute1);
  2902. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2903. attribute2.Name = "tableTypeName";
  2904. attribute2.FixedValue = "ProductPhotoDataTable";
  2905. type.Attributes.Add(attribute2);
  2906. type.Particle = sequence;
  2907. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2908. if (xs.Contains(dsSchema.TargetNamespace)) {
  2909. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2910. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2911. try {
  2912. global::System.Xml.Schema.XmlSchema schema = null;
  2913. dsSchema.Write(s1);
  2914. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2915. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2916. s2.SetLength(0);
  2917. schema.Write(s2);
  2918. if ((s1.Length == s2.Length)) {
  2919. s1.Position = 0;
  2920. s2.Position = 0;
  2921. for (; ((s1.Position != s1.Length)
  2922. && (s1.ReadByte() == s2.ReadByte())); ) {
  2923. ;
  2924. }
  2925. if ((s1.Position == s1.Length)) {
  2926. return type;
  2927. }
  2928. }
  2929. }
  2930. }
  2931. finally {
  2932. if ((s1 != null)) {
  2933. s1.Close();
  2934. }
  2935. if ((s2 != null)) {
  2936. s2.Close();
  2937. }
  2938. }
  2939. }
  2940. xs.Add(dsSchema);
  2941. return type;
  2942. }
  2943. }
  2944. /// <summary>
  2945. ///Represents the strongly named DataTable class.
  2946. ///</summary>
  2947. [global::System.Serializable()]
  2948. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2949. public partial class ProductSaleDataTable : global::System.Data.TypedTableBase<ProductSaleRow> {
  2950. private global::System.Data.DataColumn columnID;
  2951. private global::System.Data.DataColumn columnSaleDate;
  2952. private global::System.Data.DataColumn columnProductID;
  2953. private global::System.Data.DataColumn columnQuantity;
  2954. private global::System.Data.DataColumn columnClientServiceID;
  2955. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2956. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2957. public ProductSaleDataTable() {
  2958. this.TableName = "ProductSale";
  2959. this.BeginInit();
  2960. this.InitClass();
  2961. this.EndInit();
  2962. }
  2963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2965. internal ProductSaleDataTable(global::System.Data.DataTable table) {
  2966. this.TableName = table.TableName;
  2967. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2968. this.CaseSensitive = table.CaseSensitive;
  2969. }
  2970. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2971. this.Locale = table.Locale;
  2972. }
  2973. if ((table.Namespace != table.DataSet.Namespace)) {
  2974. this.Namespace = table.Namespace;
  2975. }
  2976. this.Prefix = table.Prefix;
  2977. this.MinimumCapacity = table.MinimumCapacity;
  2978. }
  2979. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2980. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2981. protected ProductSaleDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2982. base(info, context) {
  2983. this.InitVars();
  2984. }
  2985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2986. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2987. public global::System.Data.DataColumn IDColumn {
  2988. get {
  2989. return this.columnID;
  2990. }
  2991. }
  2992. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2993. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2994. public global::System.Data.DataColumn SaleDateColumn {
  2995. get {
  2996. return this.columnSaleDate;
  2997. }
  2998. }
  2999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3001. public global::System.Data.DataColumn ProductIDColumn {
  3002. get {
  3003. return this.columnProductID;
  3004. }
  3005. }
  3006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3008. public global::System.Data.DataColumn QuantityColumn {
  3009. get {
  3010. return this.columnQuantity;
  3011. }
  3012. }
  3013. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3014. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3015. public global::System.Data.DataColumn ClientServiceIDColumn {
  3016. get {
  3017. return this.columnClientServiceID;
  3018. }
  3019. }
  3020. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3021. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3022. [global::System.ComponentModel.Browsable(false)]
  3023. public int Count {
  3024. get {
  3025. return this.Rows.Count;
  3026. }
  3027. }
  3028. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3029. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3030. public ProductSaleRow this[int index] {
  3031. get {
  3032. return ((ProductSaleRow)(this.Rows[index]));
  3033. }
  3034. }
  3035. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3036. public event ProductSaleRowChangeEventHandler ProductSaleRowChanging;
  3037. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3038. public event ProductSaleRowChangeEventHandler ProductSaleRowChanged;
  3039. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3040. public event ProductSaleRowChangeEventHandler ProductSaleRowDeleting;
  3041. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3042. public event ProductSaleRowChangeEventHandler ProductSaleRowDeleted;
  3043. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3044. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3045. public void AddProductSaleRow(ProductSaleRow row) {
  3046. this.Rows.Add(row);
  3047. }
  3048. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3049. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3050. public ProductSaleRow AddProductSaleRow(System.DateTime SaleDate, ProductRow parentProductRowByFK_ProductSale_Product, int Quantity, ClientServiceRow parentClientServiceRowByFK_ProductSale_ClientService) {
  3051. ProductSaleRow rowProductSaleRow = ((ProductSaleRow)(this.NewRow()));
  3052. object[] columnValuesArray = new object[] {
  3053. null,
  3054. SaleDate,
  3055. null,
  3056. Quantity,
  3057. null};
  3058. if ((parentProductRowByFK_ProductSale_Product != null)) {
  3059. columnValuesArray[2] = parentProductRowByFK_ProductSale_Product[0];
  3060. }
  3061. if ((parentClientServiceRowByFK_ProductSale_ClientService != null)) {
  3062. columnValuesArray[4] = parentClientServiceRowByFK_ProductSale_ClientService[0];
  3063. }
  3064. rowProductSaleRow.ItemArray = columnValuesArray;
  3065. this.Rows.Add(rowProductSaleRow);
  3066. return rowProductSaleRow;
  3067. }
  3068. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3069. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3070. public ProductSaleRow FindByID(int ID) {
  3071. return ((ProductSaleRow)(this.Rows.Find(new object[] {
  3072. ID})));
  3073. }
  3074. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3075. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3076. public override global::System.Data.DataTable Clone() {
  3077. ProductSaleDataTable cln = ((ProductSaleDataTable)(base.Clone()));
  3078. cln.InitVars();
  3079. return cln;
  3080. }
  3081. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3082. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3083. protected override global::System.Data.DataTable CreateInstance() {
  3084. return new ProductSaleDataTable();
  3085. }
  3086. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3087. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3088. internal void InitVars() {
  3089. this.columnID = base.Columns["ID"];
  3090. this.columnSaleDate = base.Columns["SaleDate"];
  3091. this.columnProductID = base.Columns["ProductID"];
  3092. this.columnQuantity = base.Columns["Quantity"];
  3093. this.columnClientServiceID = base.Columns["ClientServiceID"];
  3094. }
  3095. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3096. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3097. private void InitClass() {
  3098. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3099. base.Columns.Add(this.columnID);
  3100. this.columnSaleDate = new global::System.Data.DataColumn("SaleDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  3101. base.Columns.Add(this.columnSaleDate);
  3102. this.columnProductID = new global::System.Data.DataColumn("ProductID", typeof(int), null, global::System.Data.MappingType.Element);
  3103. base.Columns.Add(this.columnProductID);
  3104. this.columnQuantity = new global::System.Data.DataColumn("Quantity", typeof(int), null, global::System.Data.MappingType.Element);
  3105. base.Columns.Add(this.columnQuantity);
  3106. this.columnClientServiceID = new global::System.Data.DataColumn("ClientServiceID", typeof(int), null, global::System.Data.MappingType.Element);
  3107. base.Columns.Add(this.columnClientServiceID);
  3108. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3109. this.columnID}, true));
  3110. this.columnID.AutoIncrement = true;
  3111. this.columnID.AutoIncrementSeed = -1;
  3112. this.columnID.AutoIncrementStep = -1;
  3113. this.columnID.AllowDBNull = false;
  3114. this.columnID.ReadOnly = true;
  3115. this.columnID.Unique = true;
  3116. this.columnSaleDate.AllowDBNull = false;
  3117. this.columnProductID.AllowDBNull = false;
  3118. this.columnQuantity.AllowDBNull = false;
  3119. }
  3120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3121. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3122. public ProductSaleRow NewProductSaleRow() {
  3123. return ((ProductSaleRow)(this.NewRow()));
  3124. }
  3125. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3126. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3127. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3128. return new ProductSaleRow(builder);
  3129. }
  3130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3131. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3132. protected override global::System.Type GetRowType() {
  3133. return typeof(ProductSaleRow);
  3134. }
  3135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3136. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3137. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3138. base.OnRowChanged(e);
  3139. if ((this.ProductSaleRowChanged != null)) {
  3140. this.ProductSaleRowChanged(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  3141. }
  3142. }
  3143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3144. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3145. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3146. base.OnRowChanging(e);
  3147. if ((this.ProductSaleRowChanging != null)) {
  3148. this.ProductSaleRowChanging(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  3149. }
  3150. }
  3151. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3152. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3153. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3154. base.OnRowDeleted(e);
  3155. if ((this.ProductSaleRowDeleted != null)) {
  3156. this.ProductSaleRowDeleted(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  3157. }
  3158. }
  3159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3160. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3161. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3162. base.OnRowDeleting(e);
  3163. if ((this.ProductSaleRowDeleting != null)) {
  3164. this.ProductSaleRowDeleting(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  3165. }
  3166. }
  3167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3169. public void RemoveProductSaleRow(ProductSaleRow row) {
  3170. this.Rows.Remove(row);
  3171. }
  3172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3174. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3175. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3176. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3177. DB_Danilov_V2DataSet1 ds = new DB_Danilov_V2DataSet1();
  3178. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3179. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3180. any1.MinOccurs = new decimal(0);
  3181. any1.MaxOccurs = decimal.MaxValue;
  3182. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3183. sequence.Items.Add(any1);
  3184. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3185. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3186. any2.MinOccurs = new decimal(1);
  3187. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3188. sequence.Items.Add(any2);
  3189. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3190. attribute1.Name = "namespace";
  3191. attribute1.FixedValue = ds.Namespace;
  3192. type.Attributes.Add(attribute1);
  3193. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3194. attribute2.Name = "tableTypeName";
  3195. attribute2.FixedValue = "ProductSaleDataTable";
  3196. type.Attributes.Add(attribute2);
  3197. type.Particle = sequence;
  3198. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3199. if (xs.Contains(dsSchema.TargetNamespace)) {
  3200. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3201. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3202. try {
  3203. global::System.Xml.Schema.XmlSchema schema = null;
  3204. dsSchema.Write(s1);
  3205. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3206. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3207. s2.SetLength(0);
  3208. schema.Write(s2);
  3209. if ((s1.Length == s2.Length)) {
  3210. s1.Position = 0;
  3211. s2.Position = 0;
  3212. for (; ((s1.Position != s1.Length)
  3213. && (s1.ReadByte() == s2.ReadByte())); ) {
  3214. ;
  3215. }
  3216. if ((s1.Position == s1.Length)) {
  3217. return type;
  3218. }
  3219. }
  3220. }
  3221. }
  3222. finally {
  3223. if ((s1 != null)) {
  3224. s1.Close();
  3225. }
  3226. if ((s2 != null)) {
  3227. s2.Close();
  3228. }
  3229. }
  3230. }
  3231. xs.Add(dsSchema);
  3232. return type;
  3233. }
  3234. }
  3235. /// <summary>
  3236. ///Represents the strongly named DataTable class.
  3237. ///</summary>
  3238. [global::System.Serializable()]
  3239. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3240. public partial class ServiceDataTable : global::System.Data.TypedTableBase<ServiceRow> {
  3241. private global::System.Data.DataColumn columnID;
  3242. private global::System.Data.DataColumn columnTitle;
  3243. private global::System.Data.DataColumn columnCost;
  3244. private global::System.Data.DataColumn columnDurationInSeconds;
  3245. private global::System.Data.DataColumn columnDescription;
  3246. private global::System.Data.DataColumn columnDiscount;
  3247. private global::System.Data.DataColumn columnMainImagePath;
  3248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3249. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3250. public ServiceDataTable() {
  3251. this.TableName = "Service";
  3252. this.BeginInit();
  3253. this.InitClass();
  3254. this.EndInit();
  3255. }
  3256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3258. internal ServiceDataTable(global::System.Data.DataTable table) {
  3259. this.TableName = table.TableName;
  3260. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3261. this.CaseSensitive = table.CaseSensitive;
  3262. }
  3263. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3264. this.Locale = table.Locale;
  3265. }
  3266. if ((table.Namespace != table.DataSet.Namespace)) {
  3267. this.Namespace = table.Namespace;
  3268. }
  3269. this.Prefix = table.Prefix;
  3270. this.MinimumCapacity = table.MinimumCapacity;
  3271. }
  3272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3274. protected ServiceDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3275. base(info, context) {
  3276. this.InitVars();
  3277. }
  3278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3279. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3280. public global::System.Data.DataColumn IDColumn {
  3281. get {
  3282. return this.columnID;
  3283. }
  3284. }
  3285. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3286. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3287. public global::System.Data.DataColumn TitleColumn {
  3288. get {
  3289. return this.columnTitle;
  3290. }
  3291. }
  3292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3293. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3294. public global::System.Data.DataColumn CostColumn {
  3295. get {
  3296. return this.columnCost;
  3297. }
  3298. }
  3299. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3300. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3301. public global::System.Data.DataColumn DurationInSecondsColumn {
  3302. get {
  3303. return this.columnDurationInSeconds;
  3304. }
  3305. }
  3306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3307. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3308. public global::System.Data.DataColumn DescriptionColumn {
  3309. get {
  3310. return this.columnDescription;
  3311. }
  3312. }
  3313. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3314. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3315. public global::System.Data.DataColumn DiscountColumn {
  3316. get {
  3317. return this.columnDiscount;
  3318. }
  3319. }
  3320. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3321. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3322. public global::System.Data.DataColumn MainImagePathColumn {
  3323. get {
  3324. return this.columnMainImagePath;
  3325. }
  3326. }
  3327. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3328. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3329. [global::System.ComponentModel.Browsable(false)]
  3330. public int Count {
  3331. get {
  3332. return this.Rows.Count;
  3333. }
  3334. }
  3335. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3336. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3337. public ServiceRow this[int index] {
  3338. get {
  3339. return ((ServiceRow)(this.Rows[index]));
  3340. }
  3341. }
  3342. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3343. public event ServiceRowChangeEventHandler ServiceRowChanging;
  3344. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3345. public event ServiceRowChangeEventHandler ServiceRowChanged;
  3346. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3347. public event ServiceRowChangeEventHandler ServiceRowDeleting;
  3348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3349. public event ServiceRowChangeEventHandler ServiceRowDeleted;
  3350. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3351. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3352. public void AddServiceRow(ServiceRow row) {
  3353. this.Rows.Add(row);
  3354. }
  3355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3357. public ServiceRow AddServiceRow(string Title, string Cost, string DurationInSeconds, string Description, string Discount, string MainImagePath) {
  3358. ServiceRow rowServiceRow = ((ServiceRow)(this.NewRow()));
  3359. object[] columnValuesArray = new object[] {
  3360. null,
  3361. Title,
  3362. Cost,
  3363. DurationInSeconds,
  3364. Description,
  3365. Discount,
  3366. MainImagePath};
  3367. rowServiceRow.ItemArray = columnValuesArray;
  3368. this.Rows.Add(rowServiceRow);
  3369. return rowServiceRow;
  3370. }
  3371. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3372. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3373. public ServiceRow FindByID(int ID) {
  3374. return ((ServiceRow)(this.Rows.Find(new object[] {
  3375. ID})));
  3376. }
  3377. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3378. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3379. public override global::System.Data.DataTable Clone() {
  3380. ServiceDataTable cln = ((ServiceDataTable)(base.Clone()));
  3381. cln.InitVars();
  3382. return cln;
  3383. }
  3384. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3385. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3386. protected override global::System.Data.DataTable CreateInstance() {
  3387. return new ServiceDataTable();
  3388. }
  3389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3390. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3391. internal void InitVars() {
  3392. this.columnID = base.Columns["ID"];
  3393. this.columnTitle = base.Columns["Title"];
  3394. this.columnCost = base.Columns["Cost"];
  3395. this.columnDurationInSeconds = base.Columns["DurationInSeconds"];
  3396. this.columnDescription = base.Columns["Description"];
  3397. this.columnDiscount = base.Columns["Discount"];
  3398. this.columnMainImagePath = base.Columns["MainImagePath"];
  3399. }
  3400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3402. private void InitClass() {
  3403. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3404. base.Columns.Add(this.columnID);
  3405. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  3406. base.Columns.Add(this.columnTitle);
  3407. this.columnCost = new global::System.Data.DataColumn("Cost", typeof(string), null, global::System.Data.MappingType.Element);
  3408. base.Columns.Add(this.columnCost);
  3409. this.columnDurationInSeconds = new global::System.Data.DataColumn("DurationInSeconds", typeof(string), null, global::System.Data.MappingType.Element);
  3410. base.Columns.Add(this.columnDurationInSeconds);
  3411. this.columnDescription = new global::System.Data.DataColumn("Description", typeof(string), null, global::System.Data.MappingType.Element);
  3412. base.Columns.Add(this.columnDescription);
  3413. this.columnDiscount = new global::System.Data.DataColumn("Discount", typeof(string), null, global::System.Data.MappingType.Element);
  3414. base.Columns.Add(this.columnDiscount);
  3415. this.columnMainImagePath = new global::System.Data.DataColumn("MainImagePath", typeof(string), null, global::System.Data.MappingType.Element);
  3416. base.Columns.Add(this.columnMainImagePath);
  3417. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3418. this.columnID}, true));
  3419. this.columnID.AutoIncrement = true;
  3420. this.columnID.AutoIncrementSeed = -1;
  3421. this.columnID.AutoIncrementStep = -1;
  3422. this.columnID.AllowDBNull = false;
  3423. this.columnID.ReadOnly = true;
  3424. this.columnID.Unique = true;
  3425. this.columnTitle.AllowDBNull = false;
  3426. this.columnTitle.MaxLength = 100;
  3427. this.columnCost.AllowDBNull = false;
  3428. this.columnCost.MaxLength = 50;
  3429. this.columnDurationInSeconds.AllowDBNull = false;
  3430. this.columnDurationInSeconds.MaxLength = 50;
  3431. this.columnDescription.MaxLength = 2147483647;
  3432. this.columnDiscount.MaxLength = 50;
  3433. this.columnMainImagePath.MaxLength = 1000;
  3434. }
  3435. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3436. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3437. public ServiceRow NewServiceRow() {
  3438. return ((ServiceRow)(this.NewRow()));
  3439. }
  3440. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3441. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3442. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3443. return new ServiceRow(builder);
  3444. }
  3445. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3446. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3447. protected override global::System.Type GetRowType() {
  3448. return typeof(ServiceRow);
  3449. }
  3450. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3451. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3452. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3453. base.OnRowChanged(e);
  3454. if ((this.ServiceRowChanged != null)) {
  3455. this.ServiceRowChanged(this, new ServiceRowChangeEvent(((ServiceRow)(e.Row)), e.Action));
  3456. }
  3457. }
  3458. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3459. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3460. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3461. base.OnRowChanging(e);
  3462. if ((this.ServiceRowChanging != null)) {
  3463. this.ServiceRowChanging(this, new ServiceRowChangeEvent(((ServiceRow)(e.Row)), e.Action));
  3464. }
  3465. }
  3466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3468. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3469. base.OnRowDeleted(e);
  3470. if ((this.ServiceRowDeleted != null)) {
  3471. this.ServiceRowDeleted(this, new ServiceRowChangeEvent(((ServiceRow)(e.Row)), e.Action));
  3472. }
  3473. }
  3474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3476. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3477. base.OnRowDeleting(e);
  3478. if ((this.ServiceRowDeleting != null)) {
  3479. this.ServiceRowDeleting(this, new ServiceRowChangeEvent(((ServiceRow)(e.Row)), e.Action));
  3480. }
  3481. }
  3482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3484. public void RemoveServiceRow(ServiceRow row) {
  3485. this.Rows.Remove(row);
  3486. }
  3487. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3488. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3489. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3490. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3491. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3492. DB_Danilov_V2DataSet1 ds = new DB_Danilov_V2DataSet1();
  3493. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3494. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3495. any1.MinOccurs = new decimal(0);
  3496. any1.MaxOccurs = decimal.MaxValue;
  3497. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3498. sequence.Items.Add(any1);
  3499. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3500. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3501. any2.MinOccurs = new decimal(1);
  3502. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3503. sequence.Items.Add(any2);
  3504. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3505. attribute1.Name = "namespace";
  3506. attribute1.FixedValue = ds.Namespace;
  3507. type.Attributes.Add(attribute1);
  3508. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3509. attribute2.Name = "tableTypeName";
  3510. attribute2.FixedValue = "ServiceDataTable";
  3511. type.Attributes.Add(attribute2);
  3512. type.Particle = sequence;
  3513. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3514. if (xs.Contains(dsSchema.TargetNamespace)) {
  3515. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3516. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3517. try {
  3518. global::System.Xml.Schema.XmlSchema schema = null;
  3519. dsSchema.Write(s1);
  3520. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3521. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3522. s2.SetLength(0);
  3523. schema.Write(s2);
  3524. if ((s1.Length == s2.Length)) {
  3525. s1.Position = 0;
  3526. s2.Position = 0;
  3527. for (; ((s1.Position != s1.Length)
  3528. && (s1.ReadByte() == s2.ReadByte())); ) {
  3529. ;
  3530. }
  3531. if ((s1.Position == s1.Length)) {
  3532. return type;
  3533. }
  3534. }
  3535. }
  3536. }
  3537. finally {
  3538. if ((s1 != null)) {
  3539. s1.Close();
  3540. }
  3541. if ((s2 != null)) {
  3542. s2.Close();
  3543. }
  3544. }
  3545. }
  3546. xs.Add(dsSchema);
  3547. return type;
  3548. }
  3549. }
  3550. /// <summary>
  3551. ///Represents the strongly named DataTable class.
  3552. ///</summary>
  3553. [global::System.Serializable()]
  3554. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3555. public partial class ServicePhotoDataTable : global::System.Data.TypedTableBase<ServicePhotoRow> {
  3556. private global::System.Data.DataColumn columnID;
  3557. private global::System.Data.DataColumn columnServiceID;
  3558. private global::System.Data.DataColumn columnPhotoPath;
  3559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3561. public ServicePhotoDataTable() {
  3562. this.TableName = "ServicePhoto";
  3563. this.BeginInit();
  3564. this.InitClass();
  3565. this.EndInit();
  3566. }
  3567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3569. internal ServicePhotoDataTable(global::System.Data.DataTable table) {
  3570. this.TableName = table.TableName;
  3571. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3572. this.CaseSensitive = table.CaseSensitive;
  3573. }
  3574. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3575. this.Locale = table.Locale;
  3576. }
  3577. if ((table.Namespace != table.DataSet.Namespace)) {
  3578. this.Namespace = table.Namespace;
  3579. }
  3580. this.Prefix = table.Prefix;
  3581. this.MinimumCapacity = table.MinimumCapacity;
  3582. }
  3583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3585. protected ServicePhotoDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3586. base(info, context) {
  3587. this.InitVars();
  3588. }
  3589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3590. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3591. public global::System.Data.DataColumn IDColumn {
  3592. get {
  3593. return this.columnID;
  3594. }
  3595. }
  3596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3597. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3598. public global::System.Data.DataColumn ServiceIDColumn {
  3599. get {
  3600. return this.columnServiceID;
  3601. }
  3602. }
  3603. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3604. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3605. public global::System.Data.DataColumn PhotoPathColumn {
  3606. get {
  3607. return this.columnPhotoPath;
  3608. }
  3609. }
  3610. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3611. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3612. [global::System.ComponentModel.Browsable(false)]
  3613. public int Count {
  3614. get {
  3615. return this.Rows.Count;
  3616. }
  3617. }
  3618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3619. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3620. public ServicePhotoRow this[int index] {
  3621. get {
  3622. return ((ServicePhotoRow)(this.Rows[index]));
  3623. }
  3624. }
  3625. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3626. public event ServicePhotoRowChangeEventHandler ServicePhotoRowChanging;
  3627. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3628. public event ServicePhotoRowChangeEventHandler ServicePhotoRowChanged;
  3629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3630. public event ServicePhotoRowChangeEventHandler ServicePhotoRowDeleting;
  3631. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3632. public event ServicePhotoRowChangeEventHandler ServicePhotoRowDeleted;
  3633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3635. public void AddServicePhotoRow(ServicePhotoRow row) {
  3636. this.Rows.Add(row);
  3637. }
  3638. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3639. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3640. public ServicePhotoRow AddServicePhotoRow(ServiceRow parentServiceRowByFK_ServicePhoto_service_b, string PhotoPath) {
  3641. ServicePhotoRow rowServicePhotoRow = ((ServicePhotoRow)(this.NewRow()));
  3642. object[] columnValuesArray = new object[] {
  3643. null,
  3644. null,
  3645. PhotoPath};
  3646. if ((parentServiceRowByFK_ServicePhoto_service_b != null)) {
  3647. columnValuesArray[1] = parentServiceRowByFK_ServicePhoto_service_b[0];
  3648. }
  3649. rowServicePhotoRow.ItemArray = columnValuesArray;
  3650. this.Rows.Add(rowServicePhotoRow);
  3651. return rowServicePhotoRow;
  3652. }
  3653. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3654. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3655. public ServicePhotoRow FindByID(int ID) {
  3656. return ((ServicePhotoRow)(this.Rows.Find(new object[] {
  3657. ID})));
  3658. }
  3659. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3660. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3661. public override global::System.Data.DataTable Clone() {
  3662. ServicePhotoDataTable cln = ((ServicePhotoDataTable)(base.Clone()));
  3663. cln.InitVars();
  3664. return cln;
  3665. }
  3666. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3667. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3668. protected override global::System.Data.DataTable CreateInstance() {
  3669. return new ServicePhotoDataTable();
  3670. }
  3671. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3672. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3673. internal void InitVars() {
  3674. this.columnID = base.Columns["ID"];
  3675. this.columnServiceID = base.Columns["ServiceID"];
  3676. this.columnPhotoPath = base.Columns["PhotoPath"];
  3677. }
  3678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3680. private void InitClass() {
  3681. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3682. base.Columns.Add(this.columnID);
  3683. this.columnServiceID = new global::System.Data.DataColumn("ServiceID", typeof(int), null, global::System.Data.MappingType.Element);
  3684. base.Columns.Add(this.columnServiceID);
  3685. this.columnPhotoPath = new global::System.Data.DataColumn("PhotoPath", typeof(string), null, global::System.Data.MappingType.Element);
  3686. base.Columns.Add(this.columnPhotoPath);
  3687. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3688. this.columnID}, true));
  3689. this.columnID.AutoIncrement = true;
  3690. this.columnID.AutoIncrementSeed = -1;
  3691. this.columnID.AutoIncrementStep = -1;
  3692. this.columnID.AllowDBNull = false;
  3693. this.columnID.ReadOnly = true;
  3694. this.columnID.Unique = true;
  3695. this.columnServiceID.AllowDBNull = false;
  3696. this.columnPhotoPath.AllowDBNull = false;
  3697. this.columnPhotoPath.MaxLength = 1000;
  3698. }
  3699. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3700. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3701. public ServicePhotoRow NewServicePhotoRow() {
  3702. return ((ServicePhotoRow)(this.NewRow()));
  3703. }
  3704. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3705. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3706. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3707. return new ServicePhotoRow(builder);
  3708. }
  3709. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3710. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3711. protected override global::System.Type GetRowType() {
  3712. return typeof(ServicePhotoRow);
  3713. }
  3714. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3715. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3716. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3717. base.OnRowChanged(e);
  3718. if ((this.ServicePhotoRowChanged != null)) {
  3719. this.ServicePhotoRowChanged(this, new ServicePhotoRowChangeEvent(((ServicePhotoRow)(e.Row)), e.Action));
  3720. }
  3721. }
  3722. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3723. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3724. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3725. base.OnRowChanging(e);
  3726. if ((this.ServicePhotoRowChanging != null)) {
  3727. this.ServicePhotoRowChanging(this, new ServicePhotoRowChangeEvent(((ServicePhotoRow)(e.Row)), e.Action));
  3728. }
  3729. }
  3730. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3731. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3732. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3733. base.OnRowDeleted(e);
  3734. if ((this.ServicePhotoRowDeleted != null)) {
  3735. this.ServicePhotoRowDeleted(this, new ServicePhotoRowChangeEvent(((ServicePhotoRow)(e.Row)), e.Action));
  3736. }
  3737. }
  3738. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3739. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3740. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3741. base.OnRowDeleting(e);
  3742. if ((this.ServicePhotoRowDeleting != null)) {
  3743. this.ServicePhotoRowDeleting(this, new ServicePhotoRowChangeEvent(((ServicePhotoRow)(e.Row)), e.Action));
  3744. }
  3745. }
  3746. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3747. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3748. public void RemoveServicePhotoRow(ServicePhotoRow row) {
  3749. this.Rows.Remove(row);
  3750. }
  3751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3753. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3754. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3755. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3756. DB_Danilov_V2DataSet1 ds = new DB_Danilov_V2DataSet1();
  3757. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3758. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3759. any1.MinOccurs = new decimal(0);
  3760. any1.MaxOccurs = decimal.MaxValue;
  3761. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3762. sequence.Items.Add(any1);
  3763. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3764. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3765. any2.MinOccurs = new decimal(1);
  3766. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3767. sequence.Items.Add(any2);
  3768. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3769. attribute1.Name = "namespace";
  3770. attribute1.FixedValue = ds.Namespace;
  3771. type.Attributes.Add(attribute1);
  3772. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3773. attribute2.Name = "tableTypeName";
  3774. attribute2.FixedValue = "ServicePhotoDataTable";
  3775. type.Attributes.Add(attribute2);
  3776. type.Particle = sequence;
  3777. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3778. if (xs.Contains(dsSchema.TargetNamespace)) {
  3779. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3780. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3781. try {
  3782. global::System.Xml.Schema.XmlSchema schema = null;
  3783. dsSchema.Write(s1);
  3784. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3785. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3786. s2.SetLength(0);
  3787. schema.Write(s2);
  3788. if ((s1.Length == s2.Length)) {
  3789. s1.Position = 0;
  3790. s2.Position = 0;
  3791. for (; ((s1.Position != s1.Length)
  3792. && (s1.ReadByte() == s2.ReadByte())); ) {
  3793. ;
  3794. }
  3795. if ((s1.Position == s1.Length)) {
  3796. return type;
  3797. }
  3798. }
  3799. }
  3800. }
  3801. finally {
  3802. if ((s1 != null)) {
  3803. s1.Close();
  3804. }
  3805. if ((s2 != null)) {
  3806. s2.Close();
  3807. }
  3808. }
  3809. }
  3810. xs.Add(dsSchema);
  3811. return type;
  3812. }
  3813. }
  3814. /// <summary>
  3815. ///Represents the strongly named DataTable class.
  3816. ///</summary>
  3817. [global::System.Serializable()]
  3818. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3819. public partial class TagDataTable : global::System.Data.TypedTableBase<TagRow> {
  3820. private global::System.Data.DataColumn columnID;
  3821. private global::System.Data.DataColumn columnTitle;
  3822. private global::System.Data.DataColumn columnColor;
  3823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3824. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3825. public TagDataTable() {
  3826. this.TableName = "Tag";
  3827. this.BeginInit();
  3828. this.InitClass();
  3829. this.EndInit();
  3830. }
  3831. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3832. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3833. internal TagDataTable(global::System.Data.DataTable table) {
  3834. this.TableName = table.TableName;
  3835. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3836. this.CaseSensitive = table.CaseSensitive;
  3837. }
  3838. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3839. this.Locale = table.Locale;
  3840. }
  3841. if ((table.Namespace != table.DataSet.Namespace)) {
  3842. this.Namespace = table.Namespace;
  3843. }
  3844. this.Prefix = table.Prefix;
  3845. this.MinimumCapacity = table.MinimumCapacity;
  3846. }
  3847. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3848. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3849. protected TagDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3850. base(info, context) {
  3851. this.InitVars();
  3852. }
  3853. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3854. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3855. public global::System.Data.DataColumn IDColumn {
  3856. get {
  3857. return this.columnID;
  3858. }
  3859. }
  3860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3862. public global::System.Data.DataColumn TitleColumn {
  3863. get {
  3864. return this.columnTitle;
  3865. }
  3866. }
  3867. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3868. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3869. public global::System.Data.DataColumn ColorColumn {
  3870. get {
  3871. return this.columnColor;
  3872. }
  3873. }
  3874. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3875. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3876. [global::System.ComponentModel.Browsable(false)]
  3877. public int Count {
  3878. get {
  3879. return this.Rows.Count;
  3880. }
  3881. }
  3882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3883. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3884. public TagRow this[int index] {
  3885. get {
  3886. return ((TagRow)(this.Rows[index]));
  3887. }
  3888. }
  3889. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3890. public event TagRowChangeEventHandler TagRowChanging;
  3891. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3892. public event TagRowChangeEventHandler TagRowChanged;
  3893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3894. public event TagRowChangeEventHandler TagRowDeleting;
  3895. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3896. public event TagRowChangeEventHandler TagRowDeleted;
  3897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3898. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3899. public void AddTagRow(TagRow row) {
  3900. this.Rows.Add(row);
  3901. }
  3902. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3903. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3904. public TagRow AddTagRow(string Title, string Color) {
  3905. TagRow rowTagRow = ((TagRow)(this.NewRow()));
  3906. object[] columnValuesArray = new object[] {
  3907. null,
  3908. Title,
  3909. Color};
  3910. rowTagRow.ItemArray = columnValuesArray;
  3911. this.Rows.Add(rowTagRow);
  3912. return rowTagRow;
  3913. }
  3914. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3915. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3916. public TagRow FindByID(int ID) {
  3917. return ((TagRow)(this.Rows.Find(new object[] {
  3918. ID})));
  3919. }
  3920. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3921. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3922. public override global::System.Data.DataTable Clone() {
  3923. TagDataTable cln = ((TagDataTable)(base.Clone()));
  3924. cln.InitVars();
  3925. return cln;
  3926. }
  3927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3928. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3929. protected override global::System.Data.DataTable CreateInstance() {
  3930. return new TagDataTable();
  3931. }
  3932. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3933. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3934. internal void InitVars() {
  3935. this.columnID = base.Columns["ID"];
  3936. this.columnTitle = base.Columns["Title"];
  3937. this.columnColor = base.Columns["Color"];
  3938. }
  3939. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3940. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3941. private void InitClass() {
  3942. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3943. base.Columns.Add(this.columnID);
  3944. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  3945. base.Columns.Add(this.columnTitle);
  3946. this.columnColor = new global::System.Data.DataColumn("Color", typeof(string), null, global::System.Data.MappingType.Element);
  3947. base.Columns.Add(this.columnColor);
  3948. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3949. this.columnID}, true));
  3950. this.columnID.AutoIncrement = true;
  3951. this.columnID.AutoIncrementSeed = -1;
  3952. this.columnID.AutoIncrementStep = -1;
  3953. this.columnID.AllowDBNull = false;
  3954. this.columnID.ReadOnly = true;
  3955. this.columnID.Unique = true;
  3956. this.columnTitle.AllowDBNull = false;
  3957. this.columnTitle.MaxLength = 30;
  3958. this.columnColor.AllowDBNull = false;
  3959. this.columnColor.MaxLength = 6;
  3960. }
  3961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3962. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3963. public TagRow NewTagRow() {
  3964. return ((TagRow)(this.NewRow()));
  3965. }
  3966. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3967. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3968. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3969. return new TagRow(builder);
  3970. }
  3971. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3972. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3973. protected override global::System.Type GetRowType() {
  3974. return typeof(TagRow);
  3975. }
  3976. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3977. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3978. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3979. base.OnRowChanged(e);
  3980. if ((this.TagRowChanged != null)) {
  3981. this.TagRowChanged(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  3982. }
  3983. }
  3984. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3985. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3986. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3987. base.OnRowChanging(e);
  3988. if ((this.TagRowChanging != null)) {
  3989. this.TagRowChanging(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  3990. }
  3991. }
  3992. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3993. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3994. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3995. base.OnRowDeleted(e);
  3996. if ((this.TagRowDeleted != null)) {
  3997. this.TagRowDeleted(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  3998. }
  3999. }
  4000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4001. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4002. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  4003. base.OnRowDeleting(e);
  4004. if ((this.TagRowDeleting != null)) {
  4005. this.TagRowDeleting(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  4006. }
  4007. }
  4008. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4009. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4010. public void RemoveTagRow(TagRow row) {
  4011. this.Rows.Remove(row);
  4012. }
  4013. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4014. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4015. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  4016. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  4017. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  4018. DB_Danilov_V2DataSet1 ds = new DB_Danilov_V2DataSet1();
  4019. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  4020. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  4021. any1.MinOccurs = new decimal(0);
  4022. any1.MaxOccurs = decimal.MaxValue;
  4023. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4024. sequence.Items.Add(any1);
  4025. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  4026. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  4027. any2.MinOccurs = new decimal(1);
  4028. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4029. sequence.Items.Add(any2);
  4030. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4031. attribute1.Name = "namespace";
  4032. attribute1.FixedValue = ds.Namespace;
  4033. type.Attributes.Add(attribute1);
  4034. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4035. attribute2.Name = "tableTypeName";
  4036. attribute2.FixedValue = "TagDataTable";
  4037. type.Attributes.Add(attribute2);
  4038. type.Particle = sequence;
  4039. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  4040. if (xs.Contains(dsSchema.TargetNamespace)) {
  4041. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  4042. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  4043. try {
  4044. global::System.Xml.Schema.XmlSchema schema = null;
  4045. dsSchema.Write(s1);
  4046. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  4047. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  4048. s2.SetLength(0);
  4049. schema.Write(s2);
  4050. if ((s1.Length == s2.Length)) {
  4051. s1.Position = 0;
  4052. s2.Position = 0;
  4053. for (; ((s1.Position != s1.Length)
  4054. && (s1.ReadByte() == s2.ReadByte())); ) {
  4055. ;
  4056. }
  4057. if ((s1.Position == s1.Length)) {
  4058. return type;
  4059. }
  4060. }
  4061. }
  4062. }
  4063. finally {
  4064. if ((s1 != null)) {
  4065. s1.Close();
  4066. }
  4067. if ((s2 != null)) {
  4068. s2.Close();
  4069. }
  4070. }
  4071. }
  4072. xs.Add(dsSchema);
  4073. return type;
  4074. }
  4075. }
  4076. /// <summary>
  4077. ///Represents the strongly named DataTable class.
  4078. ///</summary>
  4079. [global::System.Serializable()]
  4080. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  4081. public partial class TagOfClientDataTable : global::System.Data.TypedTableBase<TagOfClientRow> {
  4082. private global::System.Data.DataColumn columnClientID;
  4083. private global::System.Data.DataColumn columnTagID;
  4084. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4085. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4086. public TagOfClientDataTable() {
  4087. this.TableName = "TagOfClient";
  4088. this.BeginInit();
  4089. this.InitClass();
  4090. this.EndInit();
  4091. }
  4092. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4093. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4094. internal TagOfClientDataTable(global::System.Data.DataTable table) {
  4095. this.TableName = table.TableName;
  4096. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  4097. this.CaseSensitive = table.CaseSensitive;
  4098. }
  4099. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  4100. this.Locale = table.Locale;
  4101. }
  4102. if ((table.Namespace != table.DataSet.Namespace)) {
  4103. this.Namespace = table.Namespace;
  4104. }
  4105. this.Prefix = table.Prefix;
  4106. this.MinimumCapacity = table.MinimumCapacity;
  4107. }
  4108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4110. protected TagOfClientDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  4111. base(info, context) {
  4112. this.InitVars();
  4113. }
  4114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4115. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4116. public global::System.Data.DataColumn ClientIDColumn {
  4117. get {
  4118. return this.columnClientID;
  4119. }
  4120. }
  4121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4123. public global::System.Data.DataColumn TagIDColumn {
  4124. get {
  4125. return this.columnTagID;
  4126. }
  4127. }
  4128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4129. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4130. [global::System.ComponentModel.Browsable(false)]
  4131. public int Count {
  4132. get {
  4133. return this.Rows.Count;
  4134. }
  4135. }
  4136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4137. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4138. public TagOfClientRow this[int index] {
  4139. get {
  4140. return ((TagOfClientRow)(this.Rows[index]));
  4141. }
  4142. }
  4143. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4144. public event TagOfClientRowChangeEventHandler TagOfClientRowChanging;
  4145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4146. public event TagOfClientRowChangeEventHandler TagOfClientRowChanged;
  4147. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4148. public event TagOfClientRowChangeEventHandler TagOfClientRowDeleting;
  4149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4150. public event TagOfClientRowChangeEventHandler TagOfClientRowDeleted;
  4151. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4152. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4153. public void AddTagOfClientRow(TagOfClientRow row) {
  4154. this.Rows.Add(row);
  4155. }
  4156. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4157. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4158. public TagOfClientRow AddTagOfClientRow(ClientRow parentClientRowByFK_TagOfClient_Client1, TagRow parentTagRowByFK_TagOfClient_Tag) {
  4159. TagOfClientRow rowTagOfClientRow = ((TagOfClientRow)(this.NewRow()));
  4160. object[] columnValuesArray = new object[] {
  4161. null,
  4162. null};
  4163. if ((parentClientRowByFK_TagOfClient_Client1 != null)) {
  4164. columnValuesArray[0] = parentClientRowByFK_TagOfClient_Client1[0];
  4165. }
  4166. if ((parentTagRowByFK_TagOfClient_Tag != null)) {
  4167. columnValuesArray[1] = parentTagRowByFK_TagOfClient_Tag[0];
  4168. }
  4169. rowTagOfClientRow.ItemArray = columnValuesArray;
  4170. this.Rows.Add(rowTagOfClientRow);
  4171. return rowTagOfClientRow;
  4172. }
  4173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4175. public TagOfClientRow FindByClientIDTagID(int ClientID, int TagID) {
  4176. return ((TagOfClientRow)(this.Rows.Find(new object[] {
  4177. ClientID,
  4178. TagID})));
  4179. }
  4180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4181. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4182. public override global::System.Data.DataTable Clone() {
  4183. TagOfClientDataTable cln = ((TagOfClientDataTable)(base.Clone()));
  4184. cln.InitVars();
  4185. return cln;
  4186. }
  4187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4188. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4189. protected override global::System.Data.DataTable CreateInstance() {
  4190. return new TagOfClientDataTable();
  4191. }
  4192. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4193. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4194. internal void InitVars() {
  4195. this.columnClientID = base.Columns["ClientID"];
  4196. this.columnTagID = base.Columns["TagID"];
  4197. }
  4198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4199. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4200. private void InitClass() {
  4201. this.columnClientID = new global::System.Data.DataColumn("ClientID", typeof(int), null, global::System.Data.MappingType.Element);
  4202. base.Columns.Add(this.columnClientID);
  4203. this.columnTagID = new global::System.Data.DataColumn("TagID", typeof(int), null, global::System.Data.MappingType.Element);
  4204. base.Columns.Add(this.columnTagID);
  4205. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  4206. this.columnClientID,
  4207. this.columnTagID}, true));
  4208. this.columnClientID.AllowDBNull = false;
  4209. this.columnTagID.AllowDBNull = false;
  4210. }
  4211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4213. public TagOfClientRow NewTagOfClientRow() {
  4214. return ((TagOfClientRow)(this.NewRow()));
  4215. }
  4216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4218. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  4219. return new TagOfClientRow(builder);
  4220. }
  4221. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4222. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4223. protected override global::System.Type GetRowType() {
  4224. return typeof(TagOfClientRow);
  4225. }
  4226. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4227. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4228. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  4229. base.OnRowChanged(e);
  4230. if ((this.TagOfClientRowChanged != null)) {
  4231. this.TagOfClientRowChanged(this, new TagOfClientRowChangeEvent(((TagOfClientRow)(e.Row)), e.Action));
  4232. }
  4233. }
  4234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4235. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4236. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  4237. base.OnRowChanging(e);
  4238. if ((this.TagOfClientRowChanging != null)) {
  4239. this.TagOfClientRowChanging(this, new TagOfClientRowChangeEvent(((TagOfClientRow)(e.Row)), e.Action));
  4240. }
  4241. }
  4242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4243. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4244. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  4245. base.OnRowDeleted(e);
  4246. if ((this.TagOfClientRowDeleted != null)) {
  4247. this.TagOfClientRowDeleted(this, new TagOfClientRowChangeEvent(((TagOfClientRow)(e.Row)), e.Action));
  4248. }
  4249. }
  4250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4252. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  4253. base.OnRowDeleting(e);
  4254. if ((this.TagOfClientRowDeleting != null)) {
  4255. this.TagOfClientRowDeleting(this, new TagOfClientRowChangeEvent(((TagOfClientRow)(e.Row)), e.Action));
  4256. }
  4257. }
  4258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4260. public void RemoveTagOfClientRow(TagOfClientRow row) {
  4261. this.Rows.Remove(row);
  4262. }
  4263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4264. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4265. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  4266. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  4267. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  4268. DB_Danilov_V2DataSet1 ds = new DB_Danilov_V2DataSet1();
  4269. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  4270. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  4271. any1.MinOccurs = new decimal(0);
  4272. any1.MaxOccurs = decimal.MaxValue;
  4273. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4274. sequence.Items.Add(any1);
  4275. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  4276. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  4277. any2.MinOccurs = new decimal(1);
  4278. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4279. sequence.Items.Add(any2);
  4280. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4281. attribute1.Name = "namespace";
  4282. attribute1.FixedValue = ds.Namespace;
  4283. type.Attributes.Add(attribute1);
  4284. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4285. attribute2.Name = "tableTypeName";
  4286. attribute2.FixedValue = "TagOfClientDataTable";
  4287. type.Attributes.Add(attribute2);
  4288. type.Particle = sequence;
  4289. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  4290. if (xs.Contains(dsSchema.TargetNamespace)) {
  4291. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  4292. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  4293. try {
  4294. global::System.Xml.Schema.XmlSchema schema = null;
  4295. dsSchema.Write(s1);
  4296. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  4297. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  4298. s2.SetLength(0);
  4299. schema.Write(s2);
  4300. if ((s1.Length == s2.Length)) {
  4301. s1.Position = 0;
  4302. s2.Position = 0;
  4303. for (; ((s1.Position != s1.Length)
  4304. && (s1.ReadByte() == s2.ReadByte())); ) {
  4305. ;
  4306. }
  4307. if ((s1.Position == s1.Length)) {
  4308. return type;
  4309. }
  4310. }
  4311. }
  4312. }
  4313. finally {
  4314. if ((s1 != null)) {
  4315. s1.Close();
  4316. }
  4317. if ((s2 != null)) {
  4318. s2.Close();
  4319. }
  4320. }
  4321. }
  4322. xs.Add(dsSchema);
  4323. return type;
  4324. }
  4325. }
  4326. /// <summary>
  4327. ///Represents strongly named DataRow class.
  4328. ///</summary>
  4329. public partial class AttachedProductRow : global::System.Data.DataRow {
  4330. private AttachedProductDataTable tableAttachedProduct;
  4331. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4332. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4333. internal AttachedProductRow(global::System.Data.DataRowBuilder rb) :
  4334. base(rb) {
  4335. this.tableAttachedProduct = ((AttachedProductDataTable)(this.Table));
  4336. }
  4337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4339. public int MainProductID {
  4340. get {
  4341. return ((int)(this[this.tableAttachedProduct.MainProductIDColumn]));
  4342. }
  4343. set {
  4344. this[this.tableAttachedProduct.MainProductIDColumn] = value;
  4345. }
  4346. }
  4347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4349. public int AttachedProductID {
  4350. get {
  4351. return ((int)(this[this.tableAttachedProduct.AttachedProductIDColumn]));
  4352. }
  4353. set {
  4354. this[this.tableAttachedProduct.AttachedProductIDColumn] = value;
  4355. }
  4356. }
  4357. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4358. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4359. public ProductRow ProductRowByFK_AttachedProduct_Product {
  4360. get {
  4361. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_AttachedProduct_Product"])));
  4362. }
  4363. set {
  4364. this.SetParentRow(value, this.Table.ParentRelations["FK_AttachedProduct_Product"]);
  4365. }
  4366. }
  4367. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4368. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4369. public ProductRow ProductRowByFK_AttachedProduct_Product1 {
  4370. get {
  4371. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_AttachedProduct_Product1"])));
  4372. }
  4373. set {
  4374. this.SetParentRow(value, this.Table.ParentRelations["FK_AttachedProduct_Product1"]);
  4375. }
  4376. }
  4377. }
  4378. /// <summary>
  4379. ///Represents strongly named DataRow class.
  4380. ///</summary>
  4381. public partial class ClientRow : global::System.Data.DataRow {
  4382. private ClientDataTable tableClient;
  4383. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4384. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4385. internal ClientRow(global::System.Data.DataRowBuilder rb) :
  4386. base(rb) {
  4387. this.tableClient = ((ClientDataTable)(this.Table));
  4388. }
  4389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4390. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4391. public int ID {
  4392. get {
  4393. return ((int)(this[this.tableClient.IDColumn]));
  4394. }
  4395. set {
  4396. this[this.tableClient.IDColumn] = value;
  4397. }
  4398. }
  4399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4401. public string FirstName {
  4402. get {
  4403. return ((string)(this[this.tableClient.FirstNameColumn]));
  4404. }
  4405. set {
  4406. this[this.tableClient.FirstNameColumn] = value;
  4407. }
  4408. }
  4409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4411. public string LastName {
  4412. get {
  4413. try {
  4414. return ((string)(this[this.tableClient.LastNameColumn]));
  4415. }
  4416. catch (global::System.InvalidCastException e) {
  4417. throw new global::System.Data.StrongTypingException("Значение для столбца \'LastName\' в таблице \'Client\' равно DBNull.", e);
  4418. }
  4419. }
  4420. set {
  4421. this[this.tableClient.LastNameColumn] = value;
  4422. }
  4423. }
  4424. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4425. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4426. public string Patronymic {
  4427. get {
  4428. try {
  4429. return ((string)(this[this.tableClient.PatronymicColumn]));
  4430. }
  4431. catch (global::System.InvalidCastException e) {
  4432. throw new global::System.Data.StrongTypingException("Значение для столбца \'Patronymic\' в таблице \'Client\' равно DBNull.", e);
  4433. }
  4434. }
  4435. set {
  4436. this[this.tableClient.PatronymicColumn] = value;
  4437. }
  4438. }
  4439. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4440. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4441. public System.DateTime Birthday {
  4442. get {
  4443. try {
  4444. return ((global::System.DateTime)(this[this.tableClient.BirthdayColumn]));
  4445. }
  4446. catch (global::System.InvalidCastException e) {
  4447. throw new global::System.Data.StrongTypingException("Значение для столбца \'Birthday\' в таблице \'Client\' равно DBNull.", e);
  4448. }
  4449. }
  4450. set {
  4451. this[this.tableClient.BirthdayColumn] = value;
  4452. }
  4453. }
  4454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4455. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4456. public System.DateTime RegistrationDate {
  4457. get {
  4458. return ((global::System.DateTime)(this[this.tableClient.RegistrationDateColumn]));
  4459. }
  4460. set {
  4461. this[this.tableClient.RegistrationDateColumn] = value;
  4462. }
  4463. }
  4464. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4465. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4466. public string Email {
  4467. get {
  4468. try {
  4469. return ((string)(this[this.tableClient.EmailColumn]));
  4470. }
  4471. catch (global::System.InvalidCastException e) {
  4472. throw new global::System.Data.StrongTypingException("Значение для столбца \'Email\' в таблице \'Client\' равно DBNull.", e);
  4473. }
  4474. }
  4475. set {
  4476. this[this.tableClient.EmailColumn] = value;
  4477. }
  4478. }
  4479. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4480. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4481. public string Phone {
  4482. get {
  4483. return ((string)(this[this.tableClient.PhoneColumn]));
  4484. }
  4485. set {
  4486. this[this.tableClient.PhoneColumn] = value;
  4487. }
  4488. }
  4489. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4490. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4491. public string GenderCode {
  4492. get {
  4493. return ((string)(this[this.tableClient.GenderCodeColumn]));
  4494. }
  4495. set {
  4496. this[this.tableClient.GenderCodeColumn] = value;
  4497. }
  4498. }
  4499. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4500. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4501. public string PhotoPath {
  4502. get {
  4503. try {
  4504. return ((string)(this[this.tableClient.PhotoPathColumn]));
  4505. }
  4506. catch (global::System.InvalidCastException e) {
  4507. throw new global::System.Data.StrongTypingException("Значение для столбца \'PhotoPath\' в таблице \'Client\' равно DBNull.", e);
  4508. }
  4509. }
  4510. set {
  4511. this[this.tableClient.PhotoPathColumn] = value;
  4512. }
  4513. }
  4514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4515. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4516. public GenderRow GenderRow {
  4517. get {
  4518. return ((GenderRow)(this.GetParentRow(this.Table.ParentRelations["FK_Client1_Gender"])));
  4519. }
  4520. set {
  4521. this.SetParentRow(value, this.Table.ParentRelations["FK_Client1_Gender"]);
  4522. }
  4523. }
  4524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4525. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4526. public bool IsLastNameNull() {
  4527. return this.IsNull(this.tableClient.LastNameColumn);
  4528. }
  4529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4530. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4531. public void SetLastNameNull() {
  4532. this[this.tableClient.LastNameColumn] = global::System.Convert.DBNull;
  4533. }
  4534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4535. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4536. public bool IsPatronymicNull() {
  4537. return this.IsNull(this.tableClient.PatronymicColumn);
  4538. }
  4539. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4540. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4541. public void SetPatronymicNull() {
  4542. this[this.tableClient.PatronymicColumn] = global::System.Convert.DBNull;
  4543. }
  4544. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4545. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4546. public bool IsBirthdayNull() {
  4547. return this.IsNull(this.tableClient.BirthdayColumn);
  4548. }
  4549. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4550. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4551. public void SetBirthdayNull() {
  4552. this[this.tableClient.BirthdayColumn] = global::System.Convert.DBNull;
  4553. }
  4554. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4555. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4556. public bool IsEmailNull() {
  4557. return this.IsNull(this.tableClient.EmailColumn);
  4558. }
  4559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4561. public void SetEmailNull() {
  4562. this[this.tableClient.EmailColumn] = global::System.Convert.DBNull;
  4563. }
  4564. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4565. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4566. public bool IsPhotoPathNull() {
  4567. return this.IsNull(this.tableClient.PhotoPathColumn);
  4568. }
  4569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4570. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4571. public void SetPhotoPathNull() {
  4572. this[this.tableClient.PhotoPathColumn] = global::System.Convert.DBNull;
  4573. }
  4574. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4575. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4576. public ClientServiceRow[] GetClientServiceRows() {
  4577. if ((this.Table.ChildRelations["FK_ClientService_Client1"] == null)) {
  4578. return new ClientServiceRow[0];
  4579. }
  4580. else {
  4581. return ((ClientServiceRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ClientService_Client1"])));
  4582. }
  4583. }
  4584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4586. public TagOfClientRow[] GetTagOfClientRows() {
  4587. if ((this.Table.ChildRelations["FK_TagOfClient_Client1"] == null)) {
  4588. return new TagOfClientRow[0];
  4589. }
  4590. else {
  4591. return ((TagOfClientRow[])(base.GetChildRows(this.Table.ChildRelations["FK_TagOfClient_Client1"])));
  4592. }
  4593. }
  4594. }
  4595. /// <summary>
  4596. ///Represents strongly named DataRow class.
  4597. ///</summary>
  4598. public partial class ClientServiceRow : global::System.Data.DataRow {
  4599. private ClientServiceDataTable tableClientService;
  4600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4601. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4602. internal ClientServiceRow(global::System.Data.DataRowBuilder rb) :
  4603. base(rb) {
  4604. this.tableClientService = ((ClientServiceDataTable)(this.Table));
  4605. }
  4606. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4607. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4608. public int ID {
  4609. get {
  4610. return ((int)(this[this.tableClientService.IDColumn]));
  4611. }
  4612. set {
  4613. this[this.tableClientService.IDColumn] = value;
  4614. }
  4615. }
  4616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4617. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4618. public int ClientID {
  4619. get {
  4620. return ((int)(this[this.tableClientService.ClientIDColumn]));
  4621. }
  4622. set {
  4623. this[this.tableClientService.ClientIDColumn] = value;
  4624. }
  4625. }
  4626. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4627. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4628. public int ServiceID {
  4629. get {
  4630. return ((int)(this[this.tableClientService.ServiceIDColumn]));
  4631. }
  4632. set {
  4633. this[this.tableClientService.ServiceIDColumn] = value;
  4634. }
  4635. }
  4636. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4637. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4638. public System.DateTime StartTime {
  4639. get {
  4640. return ((global::System.DateTime)(this[this.tableClientService.StartTimeColumn]));
  4641. }
  4642. set {
  4643. this[this.tableClientService.StartTimeColumn] = value;
  4644. }
  4645. }
  4646. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4647. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4648. public string Comment {
  4649. get {
  4650. try {
  4651. return ((string)(this[this.tableClientService.CommentColumn]));
  4652. }
  4653. catch (global::System.InvalidCastException e) {
  4654. throw new global::System.Data.StrongTypingException("Значение для столбца \'Comment\' в таблице \'ClientService\' равно DBNull.", e);
  4655. }
  4656. }
  4657. set {
  4658. this[this.tableClientService.CommentColumn] = value;
  4659. }
  4660. }
  4661. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4662. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4663. public ClientRow ClientRow {
  4664. get {
  4665. return ((ClientRow)(this.GetParentRow(this.Table.ParentRelations["FK_ClientService_Client1"])));
  4666. }
  4667. set {
  4668. this.SetParentRow(value, this.Table.ParentRelations["FK_ClientService_Client1"]);
  4669. }
  4670. }
  4671. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4672. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4673. public ServiceRow ServiceRow {
  4674. get {
  4675. return ((ServiceRow)(this.GetParentRow(this.Table.ParentRelations["FK_ClientService_service_b"])));
  4676. }
  4677. set {
  4678. this.SetParentRow(value, this.Table.ParentRelations["FK_ClientService_service_b"]);
  4679. }
  4680. }
  4681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4682. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4683. public bool IsCommentNull() {
  4684. return this.IsNull(this.tableClientService.CommentColumn);
  4685. }
  4686. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4687. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4688. public void SetCommentNull() {
  4689. this[this.tableClientService.CommentColumn] = global::System.Convert.DBNull;
  4690. }
  4691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4692. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4693. public DocumentByServiceRow[] GetDocumentByServiceRows() {
  4694. if ((this.Table.ChildRelations["FK_DocumentByService_ClientService"] == null)) {
  4695. return new DocumentByServiceRow[0];
  4696. }
  4697. else {
  4698. return ((DocumentByServiceRow[])(base.GetChildRows(this.Table.ChildRelations["FK_DocumentByService_ClientService"])));
  4699. }
  4700. }
  4701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4702. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4703. public ProductSaleRow[] GetProductSaleRows() {
  4704. if ((this.Table.ChildRelations["FK_ProductSale_ClientService"] == null)) {
  4705. return new ProductSaleRow[0];
  4706. }
  4707. else {
  4708. return ((ProductSaleRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductSale_ClientService"])));
  4709. }
  4710. }
  4711. }
  4712. /// <summary>
  4713. ///Represents strongly named DataRow class.
  4714. ///</summary>
  4715. public partial class DocumentByServiceRow : global::System.Data.DataRow {
  4716. private DocumentByServiceDataTable tableDocumentByService;
  4717. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4718. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4719. internal DocumentByServiceRow(global::System.Data.DataRowBuilder rb) :
  4720. base(rb) {
  4721. this.tableDocumentByService = ((DocumentByServiceDataTable)(this.Table));
  4722. }
  4723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4724. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4725. public int ID {
  4726. get {
  4727. return ((int)(this[this.tableDocumentByService.IDColumn]));
  4728. }
  4729. set {
  4730. this[this.tableDocumentByService.IDColumn] = value;
  4731. }
  4732. }
  4733. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4734. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4735. public int ClientServiceID {
  4736. get {
  4737. return ((int)(this[this.tableDocumentByService.ClientServiceIDColumn]));
  4738. }
  4739. set {
  4740. this[this.tableDocumentByService.ClientServiceIDColumn] = value;
  4741. }
  4742. }
  4743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4745. public string DocumentPath {
  4746. get {
  4747. return ((string)(this[this.tableDocumentByService.DocumentPathColumn]));
  4748. }
  4749. set {
  4750. this[this.tableDocumentByService.DocumentPathColumn] = value;
  4751. }
  4752. }
  4753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4755. public ClientServiceRow ClientServiceRow {
  4756. get {
  4757. return ((ClientServiceRow)(this.GetParentRow(this.Table.ParentRelations["FK_DocumentByService_ClientService"])));
  4758. }
  4759. set {
  4760. this.SetParentRow(value, this.Table.ParentRelations["FK_DocumentByService_ClientService"]);
  4761. }
  4762. }
  4763. }
  4764. /// <summary>
  4765. ///Represents strongly named DataRow class.
  4766. ///</summary>
  4767. public partial class GenderRow : global::System.Data.DataRow {
  4768. private GenderDataTable tableGender;
  4769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4770. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4771. internal GenderRow(global::System.Data.DataRowBuilder rb) :
  4772. base(rb) {
  4773. this.tableGender = ((GenderDataTable)(this.Table));
  4774. }
  4775. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4776. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4777. public string Code {
  4778. get {
  4779. return ((string)(this[this.tableGender.CodeColumn]));
  4780. }
  4781. set {
  4782. this[this.tableGender.CodeColumn] = value;
  4783. }
  4784. }
  4785. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4786. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4787. public string Name {
  4788. get {
  4789. try {
  4790. return ((string)(this[this.tableGender.NameColumn]));
  4791. }
  4792. catch (global::System.InvalidCastException e) {
  4793. throw new global::System.Data.StrongTypingException("Значение для столбца \'Name\' в таблице \'Gender\' равно DBNull.", e);
  4794. }
  4795. }
  4796. set {
  4797. this[this.tableGender.NameColumn] = value;
  4798. }
  4799. }
  4800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4802. public bool IsNameNull() {
  4803. return this.IsNull(this.tableGender.NameColumn);
  4804. }
  4805. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4806. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4807. public void SetNameNull() {
  4808. this[this.tableGender.NameColumn] = global::System.Convert.DBNull;
  4809. }
  4810. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4811. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4812. public ClientRow[] GetClientRows() {
  4813. if ((this.Table.ChildRelations["FK_Client1_Gender"] == null)) {
  4814. return new ClientRow[0];
  4815. }
  4816. else {
  4817. return ((ClientRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Client1_Gender"])));
  4818. }
  4819. }
  4820. }
  4821. /// <summary>
  4822. ///Represents strongly named DataRow class.
  4823. ///</summary>
  4824. public partial class ManufacturerRow : global::System.Data.DataRow {
  4825. private ManufacturerDataTable tableManufacturer;
  4826. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4827. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4828. internal ManufacturerRow(global::System.Data.DataRowBuilder rb) :
  4829. base(rb) {
  4830. this.tableManufacturer = ((ManufacturerDataTable)(this.Table));
  4831. }
  4832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4833. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4834. public int ID {
  4835. get {
  4836. return ((int)(this[this.tableManufacturer.IDColumn]));
  4837. }
  4838. set {
  4839. this[this.tableManufacturer.IDColumn] = value;
  4840. }
  4841. }
  4842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4844. public string Name {
  4845. get {
  4846. return ((string)(this[this.tableManufacturer.NameColumn]));
  4847. }
  4848. set {
  4849. this[this.tableManufacturer.NameColumn] = value;
  4850. }
  4851. }
  4852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4853. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4854. public System.DateTime StartDate {
  4855. get {
  4856. try {
  4857. return ((global::System.DateTime)(this[this.tableManufacturer.StartDateColumn]));
  4858. }
  4859. catch (global::System.InvalidCastException e) {
  4860. throw new global::System.Data.StrongTypingException("Значение для столбца \'StartDate\' в таблице \'Manufacturer\' равно DBNull.", e);
  4861. }
  4862. }
  4863. set {
  4864. this[this.tableManufacturer.StartDateColumn] = value;
  4865. }
  4866. }
  4867. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4868. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4869. public bool IsStartDateNull() {
  4870. return this.IsNull(this.tableManufacturer.StartDateColumn);
  4871. }
  4872. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4873. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4874. public void SetStartDateNull() {
  4875. this[this.tableManufacturer.StartDateColumn] = global::System.Convert.DBNull;
  4876. }
  4877. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4878. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4879. public ProductRow[] GetProductRows() {
  4880. if ((this.Table.ChildRelations["FK_Product_Manufacturer"] == null)) {
  4881. return new ProductRow[0];
  4882. }
  4883. else {
  4884. return ((ProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Product_Manufacturer"])));
  4885. }
  4886. }
  4887. }
  4888. /// <summary>
  4889. ///Represents strongly named DataRow class.
  4890. ///</summary>
  4891. public partial class ProductRow : global::System.Data.DataRow {
  4892. private ProductDataTable tableProduct;
  4893. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4894. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4895. internal ProductRow(global::System.Data.DataRowBuilder rb) :
  4896. base(rb) {
  4897. this.tableProduct = ((ProductDataTable)(this.Table));
  4898. }
  4899. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4900. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4901. public int ID {
  4902. get {
  4903. return ((int)(this[this.tableProduct.IDColumn]));
  4904. }
  4905. set {
  4906. this[this.tableProduct.IDColumn] = value;
  4907. }
  4908. }
  4909. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4910. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4911. public string Title {
  4912. get {
  4913. return ((string)(this[this.tableProduct.TitleColumn]));
  4914. }
  4915. set {
  4916. this[this.tableProduct.TitleColumn] = value;
  4917. }
  4918. }
  4919. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4920. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4921. public decimal Cost {
  4922. get {
  4923. return ((decimal)(this[this.tableProduct.CostColumn]));
  4924. }
  4925. set {
  4926. this[this.tableProduct.CostColumn] = value;
  4927. }
  4928. }
  4929. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4930. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4931. public string Description {
  4932. get {
  4933. try {
  4934. return ((string)(this[this.tableProduct.DescriptionColumn]));
  4935. }
  4936. catch (global::System.InvalidCastException e) {
  4937. throw new global::System.Data.StrongTypingException("Значение для столбца \'Description\' в таблице \'Product\' равно DBNull.", e);
  4938. }
  4939. }
  4940. set {
  4941. this[this.tableProduct.DescriptionColumn] = value;
  4942. }
  4943. }
  4944. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4945. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4946. public string MainImagePath {
  4947. get {
  4948. try {
  4949. return ((string)(this[this.tableProduct.MainImagePathColumn]));
  4950. }
  4951. catch (global::System.InvalidCastException e) {
  4952. throw new global::System.Data.StrongTypingException("Значение для столбца \'MainImagePath\' в таблице \'Product\' равно DBNull.", e);
  4953. }
  4954. }
  4955. set {
  4956. this[this.tableProduct.MainImagePathColumn] = value;
  4957. }
  4958. }
  4959. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4960. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4961. public bool IsActive {
  4962. get {
  4963. return ((bool)(this[this.tableProduct.IsActiveColumn]));
  4964. }
  4965. set {
  4966. this[this.tableProduct.IsActiveColumn] = value;
  4967. }
  4968. }
  4969. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4970. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4971. public int ManufacturerID {
  4972. get {
  4973. try {
  4974. return ((int)(this[this.tableProduct.ManufacturerIDColumn]));
  4975. }
  4976. catch (global::System.InvalidCastException e) {
  4977. throw new global::System.Data.StrongTypingException("Значение для столбца \'ManufacturerID\' в таблице \'Product\' равно DBNull.", e);
  4978. }
  4979. }
  4980. set {
  4981. this[this.tableProduct.ManufacturerIDColumn] = value;
  4982. }
  4983. }
  4984. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4985. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4986. public ManufacturerRow ManufacturerRow {
  4987. get {
  4988. return ((ManufacturerRow)(this.GetParentRow(this.Table.ParentRelations["FK_Product_Manufacturer"])));
  4989. }
  4990. set {
  4991. this.SetParentRow(value, this.Table.ParentRelations["FK_Product_Manufacturer"]);
  4992. }
  4993. }
  4994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4995. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4996. public bool IsDescriptionNull() {
  4997. return this.IsNull(this.tableProduct.DescriptionColumn);
  4998. }
  4999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5001. public void SetDescriptionNull() {
  5002. this[this.tableProduct.DescriptionColumn] = global::System.Convert.DBNull;
  5003. }
  5004. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5005. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5006. public bool IsMainImagePathNull() {
  5007. return this.IsNull(this.tableProduct.MainImagePathColumn);
  5008. }
  5009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5011. public void SetMainImagePathNull() {
  5012. this[this.tableProduct.MainImagePathColumn] = global::System.Convert.DBNull;
  5013. }
  5014. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5015. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5016. public bool IsManufacturerIDNull() {
  5017. return this.IsNull(this.tableProduct.ManufacturerIDColumn);
  5018. }
  5019. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5020. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5021. public void SetManufacturerIDNull() {
  5022. this[this.tableProduct.ManufacturerIDColumn] = global::System.Convert.DBNull;
  5023. }
  5024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5025. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5026. public AttachedProductRow[] GetAttachedProductRowsByFK_AttachedProduct_Product() {
  5027. if ((this.Table.ChildRelations["FK_AttachedProduct_Product"] == null)) {
  5028. return new AttachedProductRow[0];
  5029. }
  5030. else {
  5031. return ((AttachedProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK_AttachedProduct_Product"])));
  5032. }
  5033. }
  5034. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5035. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5036. public AttachedProductRow[] GetAttachedProductRowsByFK_AttachedProduct_Product1() {
  5037. if ((this.Table.ChildRelations["FK_AttachedProduct_Product1"] == null)) {
  5038. return new AttachedProductRow[0];
  5039. }
  5040. else {
  5041. return ((AttachedProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK_AttachedProduct_Product1"])));
  5042. }
  5043. }
  5044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5046. public ProductPhotoRow[] GetProductPhotoRows() {
  5047. if ((this.Table.ChildRelations["FK_ProductPhoto_Product"] == null)) {
  5048. return new ProductPhotoRow[0];
  5049. }
  5050. else {
  5051. return ((ProductPhotoRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductPhoto_Product"])));
  5052. }
  5053. }
  5054. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5055. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5056. public ProductSaleRow[] GetProductSaleRows() {
  5057. if ((this.Table.ChildRelations["FK_ProductSale_Product"] == null)) {
  5058. return new ProductSaleRow[0];
  5059. }
  5060. else {
  5061. return ((ProductSaleRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductSale_Product"])));
  5062. }
  5063. }
  5064. }
  5065. /// <summary>
  5066. ///Represents strongly named DataRow class.
  5067. ///</summary>
  5068. public partial class ProductPhotoRow : global::System.Data.DataRow {
  5069. private ProductPhotoDataTable tableProductPhoto;
  5070. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5071. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5072. internal ProductPhotoRow(global::System.Data.DataRowBuilder rb) :
  5073. base(rb) {
  5074. this.tableProductPhoto = ((ProductPhotoDataTable)(this.Table));
  5075. }
  5076. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5077. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5078. public int ID {
  5079. get {
  5080. return ((int)(this[this.tableProductPhoto.IDColumn]));
  5081. }
  5082. set {
  5083. this[this.tableProductPhoto.IDColumn] = value;
  5084. }
  5085. }
  5086. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5087. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5088. public int ProductID {
  5089. get {
  5090. return ((int)(this[this.tableProductPhoto.ProductIDColumn]));
  5091. }
  5092. set {
  5093. this[this.tableProductPhoto.ProductIDColumn] = value;
  5094. }
  5095. }
  5096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5097. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5098. public string PhotoPath {
  5099. get {
  5100. return ((string)(this[this.tableProductPhoto.PhotoPathColumn]));
  5101. }
  5102. set {
  5103. this[this.tableProductPhoto.PhotoPathColumn] = value;
  5104. }
  5105. }
  5106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5108. public ProductRow ProductRow {
  5109. get {
  5110. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_ProductPhoto_Product"])));
  5111. }
  5112. set {
  5113. this.SetParentRow(value, this.Table.ParentRelations["FK_ProductPhoto_Product"]);
  5114. }
  5115. }
  5116. }
  5117. /// <summary>
  5118. ///Represents strongly named DataRow class.
  5119. ///</summary>
  5120. public partial class ProductSaleRow : global::System.Data.DataRow {
  5121. private ProductSaleDataTable tableProductSale;
  5122. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5123. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5124. internal ProductSaleRow(global::System.Data.DataRowBuilder rb) :
  5125. base(rb) {
  5126. this.tableProductSale = ((ProductSaleDataTable)(this.Table));
  5127. }
  5128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5129. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5130. public int ID {
  5131. get {
  5132. return ((int)(this[this.tableProductSale.IDColumn]));
  5133. }
  5134. set {
  5135. this[this.tableProductSale.IDColumn] = value;
  5136. }
  5137. }
  5138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5139. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5140. public System.DateTime SaleDate {
  5141. get {
  5142. return ((global::System.DateTime)(this[this.tableProductSale.SaleDateColumn]));
  5143. }
  5144. set {
  5145. this[this.tableProductSale.SaleDateColumn] = value;
  5146. }
  5147. }
  5148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5150. public int ProductID {
  5151. get {
  5152. return ((int)(this[this.tableProductSale.ProductIDColumn]));
  5153. }
  5154. set {
  5155. this[this.tableProductSale.ProductIDColumn] = value;
  5156. }
  5157. }
  5158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5159. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5160. public int Quantity {
  5161. get {
  5162. return ((int)(this[this.tableProductSale.QuantityColumn]));
  5163. }
  5164. set {
  5165. this[this.tableProductSale.QuantityColumn] = value;
  5166. }
  5167. }
  5168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5169. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5170. public int ClientServiceID {
  5171. get {
  5172. try {
  5173. return ((int)(this[this.tableProductSale.ClientServiceIDColumn]));
  5174. }
  5175. catch (global::System.InvalidCastException e) {
  5176. throw new global::System.Data.StrongTypingException("Значение для столбца \'ClientServiceID\' в таблице \'ProductSale\' равно DBNull.", e);
  5177. }
  5178. }
  5179. set {
  5180. this[this.tableProductSale.ClientServiceIDColumn] = value;
  5181. }
  5182. }
  5183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5185. public ClientServiceRow ClientServiceRow {
  5186. get {
  5187. return ((ClientServiceRow)(this.GetParentRow(this.Table.ParentRelations["FK_ProductSale_ClientService"])));
  5188. }
  5189. set {
  5190. this.SetParentRow(value, this.Table.ParentRelations["FK_ProductSale_ClientService"]);
  5191. }
  5192. }
  5193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5194. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5195. public ProductRow ProductRow {
  5196. get {
  5197. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_ProductSale_Product"])));
  5198. }
  5199. set {
  5200. this.SetParentRow(value, this.Table.ParentRelations["FK_ProductSale_Product"]);
  5201. }
  5202. }
  5203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5204. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5205. public bool IsClientServiceIDNull() {
  5206. return this.IsNull(this.tableProductSale.ClientServiceIDColumn);
  5207. }
  5208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5209. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5210. public void SetClientServiceIDNull() {
  5211. this[this.tableProductSale.ClientServiceIDColumn] = global::System.Convert.DBNull;
  5212. }
  5213. }
  5214. /// <summary>
  5215. ///Represents strongly named DataRow class.
  5216. ///</summary>
  5217. public partial class ServiceRow : global::System.Data.DataRow {
  5218. private ServiceDataTable tableService;
  5219. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5220. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5221. internal ServiceRow(global::System.Data.DataRowBuilder rb) :
  5222. base(rb) {
  5223. this.tableService = ((ServiceDataTable)(this.Table));
  5224. }
  5225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5227. public int ID {
  5228. get {
  5229. return ((int)(this[this.tableService.IDColumn]));
  5230. }
  5231. set {
  5232. this[this.tableService.IDColumn] = value;
  5233. }
  5234. }
  5235. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5236. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5237. public string Title {
  5238. get {
  5239. return ((string)(this[this.tableService.TitleColumn]));
  5240. }
  5241. set {
  5242. this[this.tableService.TitleColumn] = value;
  5243. }
  5244. }
  5245. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5246. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5247. public string Cost {
  5248. get {
  5249. return ((string)(this[this.tableService.CostColumn]));
  5250. }
  5251. set {
  5252. this[this.tableService.CostColumn] = value;
  5253. }
  5254. }
  5255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5256. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5257. public string DurationInSeconds {
  5258. get {
  5259. return ((string)(this[this.tableService.DurationInSecondsColumn]));
  5260. }
  5261. set {
  5262. this[this.tableService.DurationInSecondsColumn] = value;
  5263. }
  5264. }
  5265. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5266. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5267. public string Description {
  5268. get {
  5269. try {
  5270. return ((string)(this[this.tableService.DescriptionColumn]));
  5271. }
  5272. catch (global::System.InvalidCastException e) {
  5273. throw new global::System.Data.StrongTypingException("Значение для столбца \'Description\' в таблице \'Service\' равно DBNull.", e);
  5274. }
  5275. }
  5276. set {
  5277. this[this.tableService.DescriptionColumn] = value;
  5278. }
  5279. }
  5280. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5281. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5282. public string Discount {
  5283. get {
  5284. try {
  5285. return ((string)(this[this.tableService.DiscountColumn]));
  5286. }
  5287. catch (global::System.InvalidCastException e) {
  5288. throw new global::System.Data.StrongTypingException("Значение для столбца \'Discount\' в таблице \'Service\' равно DBNull.", e);
  5289. }
  5290. }
  5291. set {
  5292. this[this.tableService.DiscountColumn] = value;
  5293. }
  5294. }
  5295. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5296. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5297. public string MainImagePath {
  5298. get {
  5299. try {
  5300. return ((string)(this[this.tableService.MainImagePathColumn]));
  5301. }
  5302. catch (global::System.InvalidCastException e) {
  5303. throw new global::System.Data.StrongTypingException("Значение для столбца \'MainImagePath\' в таблице \'Service\' равно DBNull.", e);
  5304. }
  5305. }
  5306. set {
  5307. this[this.tableService.MainImagePathColumn] = value;
  5308. }
  5309. }
  5310. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5311. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5312. public bool IsDescriptionNull() {
  5313. return this.IsNull(this.tableService.DescriptionColumn);
  5314. }
  5315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5316. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5317. public void SetDescriptionNull() {
  5318. this[this.tableService.DescriptionColumn] = global::System.Convert.DBNull;
  5319. }
  5320. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5321. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5322. public bool IsDiscountNull() {
  5323. return this.IsNull(this.tableService.DiscountColumn);
  5324. }
  5325. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5326. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5327. public void SetDiscountNull() {
  5328. this[this.tableService.DiscountColumn] = global::System.Convert.DBNull;
  5329. }
  5330. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5331. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5332. public bool IsMainImagePathNull() {
  5333. return this.IsNull(this.tableService.MainImagePathColumn);
  5334. }
  5335. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5336. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5337. public void SetMainImagePathNull() {
  5338. this[this.tableService.MainImagePathColumn] = global::System.Convert.DBNull;
  5339. }
  5340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5341. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5342. public ClientServiceRow[] GetClientServiceRows() {
  5343. if ((this.Table.ChildRelations["FK_ClientService_service_b"] == null)) {
  5344. return new ClientServiceRow[0];
  5345. }
  5346. else {
  5347. return ((ClientServiceRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ClientService_service_b"])));
  5348. }
  5349. }
  5350. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5351. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5352. public ServicePhotoRow[] GetServicePhotoRows() {
  5353. if ((this.Table.ChildRelations["FK_ServicePhoto_service_b"] == null)) {
  5354. return new ServicePhotoRow[0];
  5355. }
  5356. else {
  5357. return ((ServicePhotoRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ServicePhoto_service_b"])));
  5358. }
  5359. }
  5360. }
  5361. /// <summary>
  5362. ///Represents strongly named DataRow class.
  5363. ///</summary>
  5364. public partial class ServicePhotoRow : global::System.Data.DataRow {
  5365. private ServicePhotoDataTable tableServicePhoto;
  5366. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5367. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5368. internal ServicePhotoRow(global::System.Data.DataRowBuilder rb) :
  5369. base(rb) {
  5370. this.tableServicePhoto = ((ServicePhotoDataTable)(this.Table));
  5371. }
  5372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5374. public int ID {
  5375. get {
  5376. return ((int)(this[this.tableServicePhoto.IDColumn]));
  5377. }
  5378. set {
  5379. this[this.tableServicePhoto.IDColumn] = value;
  5380. }
  5381. }
  5382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5383. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5384. public int ServiceID {
  5385. get {
  5386. return ((int)(this[this.tableServicePhoto.ServiceIDColumn]));
  5387. }
  5388. set {
  5389. this[this.tableServicePhoto.ServiceIDColumn] = value;
  5390. }
  5391. }
  5392. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5393. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5394. public string PhotoPath {
  5395. get {
  5396. return ((string)(this[this.tableServicePhoto.PhotoPathColumn]));
  5397. }
  5398. set {
  5399. this[this.tableServicePhoto.PhotoPathColumn] = value;
  5400. }
  5401. }
  5402. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5403. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5404. public ServiceRow ServiceRow {
  5405. get {
  5406. return ((ServiceRow)(this.GetParentRow(this.Table.ParentRelations["FK_ServicePhoto_service_b"])));
  5407. }
  5408. set {
  5409. this.SetParentRow(value, this.Table.ParentRelations["FK_ServicePhoto_service_b"]);
  5410. }
  5411. }
  5412. }
  5413. /// <summary>
  5414. ///Represents strongly named DataRow class.
  5415. ///</summary>
  5416. public partial class TagRow : global::System.Data.DataRow {
  5417. private TagDataTable tableTag;
  5418. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5419. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5420. internal TagRow(global::System.Data.DataRowBuilder rb) :
  5421. base(rb) {
  5422. this.tableTag = ((TagDataTable)(this.Table));
  5423. }
  5424. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5425. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5426. public int ID {
  5427. get {
  5428. return ((int)(this[this.tableTag.IDColumn]));
  5429. }
  5430. set {
  5431. this[this.tableTag.IDColumn] = value;
  5432. }
  5433. }
  5434. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5435. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5436. public string Title {
  5437. get {
  5438. return ((string)(this[this.tableTag.TitleColumn]));
  5439. }
  5440. set {
  5441. this[this.tableTag.TitleColumn] = value;
  5442. }
  5443. }
  5444. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5445. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5446. public string Color {
  5447. get {
  5448. return ((string)(this[this.tableTag.ColorColumn]));
  5449. }
  5450. set {
  5451. this[this.tableTag.ColorColumn] = value;
  5452. }
  5453. }
  5454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5455. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5456. public TagOfClientRow[] GetTagOfClientRows() {
  5457. if ((this.Table.ChildRelations["FK_TagOfClient_Tag"] == null)) {
  5458. return new TagOfClientRow[0];
  5459. }
  5460. else {
  5461. return ((TagOfClientRow[])(base.GetChildRows(this.Table.ChildRelations["FK_TagOfClient_Tag"])));
  5462. }
  5463. }
  5464. }
  5465. /// <summary>
  5466. ///Represents strongly named DataRow class.
  5467. ///</summary>
  5468. public partial class TagOfClientRow : global::System.Data.DataRow {
  5469. private TagOfClientDataTable tableTagOfClient;
  5470. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5471. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5472. internal TagOfClientRow(global::System.Data.DataRowBuilder rb) :
  5473. base(rb) {
  5474. this.tableTagOfClient = ((TagOfClientDataTable)(this.Table));
  5475. }
  5476. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5477. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5478. public int ClientID {
  5479. get {
  5480. return ((int)(this[this.tableTagOfClient.ClientIDColumn]));
  5481. }
  5482. set {
  5483. this[this.tableTagOfClient.ClientIDColumn] = value;
  5484. }
  5485. }
  5486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5488. public int TagID {
  5489. get {
  5490. return ((int)(this[this.tableTagOfClient.TagIDColumn]));
  5491. }
  5492. set {
  5493. this[this.tableTagOfClient.TagIDColumn] = value;
  5494. }
  5495. }
  5496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5497. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5498. public ClientRow ClientRow {
  5499. get {
  5500. return ((ClientRow)(this.GetParentRow(this.Table.ParentRelations["FK_TagOfClient_Client1"])));
  5501. }
  5502. set {
  5503. this.SetParentRow(value, this.Table.ParentRelations["FK_TagOfClient_Client1"]);
  5504. }
  5505. }
  5506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5508. public TagRow TagRow {
  5509. get {
  5510. return ((TagRow)(this.GetParentRow(this.Table.ParentRelations["FK_TagOfClient_Tag"])));
  5511. }
  5512. set {
  5513. this.SetParentRow(value, this.Table.ParentRelations["FK_TagOfClient_Tag"]);
  5514. }
  5515. }
  5516. }
  5517. /// <summary>
  5518. ///Row event argument class
  5519. ///</summary>
  5520. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5521. public class AttachedProductRowChangeEvent : global::System.EventArgs {
  5522. private AttachedProductRow eventRow;
  5523. private global::System.Data.DataRowAction eventAction;
  5524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5525. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5526. public AttachedProductRowChangeEvent(AttachedProductRow row, global::System.Data.DataRowAction action) {
  5527. this.eventRow = row;
  5528. this.eventAction = action;
  5529. }
  5530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5532. public AttachedProductRow Row {
  5533. get {
  5534. return this.eventRow;
  5535. }
  5536. }
  5537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5538. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5539. public global::System.Data.DataRowAction Action {
  5540. get {
  5541. return this.eventAction;
  5542. }
  5543. }
  5544. }
  5545. /// <summary>
  5546. ///Row event argument class
  5547. ///</summary>
  5548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5549. public class ClientRowChangeEvent : global::System.EventArgs {
  5550. private ClientRow eventRow;
  5551. private global::System.Data.DataRowAction eventAction;
  5552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5554. public ClientRowChangeEvent(ClientRow row, global::System.Data.DataRowAction action) {
  5555. this.eventRow = row;
  5556. this.eventAction = action;
  5557. }
  5558. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5559. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5560. public ClientRow Row {
  5561. get {
  5562. return this.eventRow;
  5563. }
  5564. }
  5565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5567. public global::System.Data.DataRowAction Action {
  5568. get {
  5569. return this.eventAction;
  5570. }
  5571. }
  5572. }
  5573. /// <summary>
  5574. ///Row event argument class
  5575. ///</summary>
  5576. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5577. public class ClientServiceRowChangeEvent : global::System.EventArgs {
  5578. private ClientServiceRow eventRow;
  5579. private global::System.Data.DataRowAction eventAction;
  5580. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5581. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5582. public ClientServiceRowChangeEvent(ClientServiceRow row, global::System.Data.DataRowAction action) {
  5583. this.eventRow = row;
  5584. this.eventAction = action;
  5585. }
  5586. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5587. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5588. public ClientServiceRow Row {
  5589. get {
  5590. return this.eventRow;
  5591. }
  5592. }
  5593. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5594. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5595. public global::System.Data.DataRowAction Action {
  5596. get {
  5597. return this.eventAction;
  5598. }
  5599. }
  5600. }
  5601. /// <summary>
  5602. ///Row event argument class
  5603. ///</summary>
  5604. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5605. public class DocumentByServiceRowChangeEvent : global::System.EventArgs {
  5606. private DocumentByServiceRow eventRow;
  5607. private global::System.Data.DataRowAction eventAction;
  5608. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5609. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5610. public DocumentByServiceRowChangeEvent(DocumentByServiceRow row, global::System.Data.DataRowAction action) {
  5611. this.eventRow = row;
  5612. this.eventAction = action;
  5613. }
  5614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5615. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5616. public DocumentByServiceRow Row {
  5617. get {
  5618. return this.eventRow;
  5619. }
  5620. }
  5621. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5622. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5623. public global::System.Data.DataRowAction Action {
  5624. get {
  5625. return this.eventAction;
  5626. }
  5627. }
  5628. }
  5629. /// <summary>
  5630. ///Row event argument class
  5631. ///</summary>
  5632. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5633. public class GenderRowChangeEvent : global::System.EventArgs {
  5634. private GenderRow eventRow;
  5635. private global::System.Data.DataRowAction eventAction;
  5636. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5637. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5638. public GenderRowChangeEvent(GenderRow row, global::System.Data.DataRowAction action) {
  5639. this.eventRow = row;
  5640. this.eventAction = action;
  5641. }
  5642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5644. public GenderRow Row {
  5645. get {
  5646. return this.eventRow;
  5647. }
  5648. }
  5649. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5650. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5651. public global::System.Data.DataRowAction Action {
  5652. get {
  5653. return this.eventAction;
  5654. }
  5655. }
  5656. }
  5657. /// <summary>
  5658. ///Row event argument class
  5659. ///</summary>
  5660. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5661. public class ManufacturerRowChangeEvent : global::System.EventArgs {
  5662. private ManufacturerRow eventRow;
  5663. private global::System.Data.DataRowAction eventAction;
  5664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5666. public ManufacturerRowChangeEvent(ManufacturerRow row, global::System.Data.DataRowAction action) {
  5667. this.eventRow = row;
  5668. this.eventAction = action;
  5669. }
  5670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5671. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5672. public ManufacturerRow Row {
  5673. get {
  5674. return this.eventRow;
  5675. }
  5676. }
  5677. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5678. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5679. public global::System.Data.DataRowAction Action {
  5680. get {
  5681. return this.eventAction;
  5682. }
  5683. }
  5684. }
  5685. /// <summary>
  5686. ///Row event argument class
  5687. ///</summary>
  5688. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5689. public class ProductRowChangeEvent : global::System.EventArgs {
  5690. private ProductRow eventRow;
  5691. private global::System.Data.DataRowAction eventAction;
  5692. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5693. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5694. public ProductRowChangeEvent(ProductRow row, global::System.Data.DataRowAction action) {
  5695. this.eventRow = row;
  5696. this.eventAction = action;
  5697. }
  5698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5699. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5700. public ProductRow Row {
  5701. get {
  5702. return this.eventRow;
  5703. }
  5704. }
  5705. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5706. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5707. public global::System.Data.DataRowAction Action {
  5708. get {
  5709. return this.eventAction;
  5710. }
  5711. }
  5712. }
  5713. /// <summary>
  5714. ///Row event argument class
  5715. ///</summary>
  5716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5717. public class ProductPhotoRowChangeEvent : global::System.EventArgs {
  5718. private ProductPhotoRow eventRow;
  5719. private global::System.Data.DataRowAction eventAction;
  5720. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5721. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5722. public ProductPhotoRowChangeEvent(ProductPhotoRow row, global::System.Data.DataRowAction action) {
  5723. this.eventRow = row;
  5724. this.eventAction = action;
  5725. }
  5726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5728. public ProductPhotoRow Row {
  5729. get {
  5730. return this.eventRow;
  5731. }
  5732. }
  5733. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5734. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5735. public global::System.Data.DataRowAction Action {
  5736. get {
  5737. return this.eventAction;
  5738. }
  5739. }
  5740. }
  5741. /// <summary>
  5742. ///Row event argument class
  5743. ///</summary>
  5744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5745. public class ProductSaleRowChangeEvent : global::System.EventArgs {
  5746. private ProductSaleRow eventRow;
  5747. private global::System.Data.DataRowAction eventAction;
  5748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5750. public ProductSaleRowChangeEvent(ProductSaleRow row, global::System.Data.DataRowAction action) {
  5751. this.eventRow = row;
  5752. this.eventAction = action;
  5753. }
  5754. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5755. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5756. public ProductSaleRow Row {
  5757. get {
  5758. return this.eventRow;
  5759. }
  5760. }
  5761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5763. public global::System.Data.DataRowAction Action {
  5764. get {
  5765. return this.eventAction;
  5766. }
  5767. }
  5768. }
  5769. /// <summary>
  5770. ///Row event argument class
  5771. ///</summary>
  5772. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5773. public class ServiceRowChangeEvent : global::System.EventArgs {
  5774. private ServiceRow eventRow;
  5775. private global::System.Data.DataRowAction eventAction;
  5776. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5777. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5778. public ServiceRowChangeEvent(ServiceRow row, global::System.Data.DataRowAction action) {
  5779. this.eventRow = row;
  5780. this.eventAction = action;
  5781. }
  5782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5783. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5784. public ServiceRow Row {
  5785. get {
  5786. return this.eventRow;
  5787. }
  5788. }
  5789. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5790. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5791. public global::System.Data.DataRowAction Action {
  5792. get {
  5793. return this.eventAction;
  5794. }
  5795. }
  5796. }
  5797. /// <summary>
  5798. ///Row event argument class
  5799. ///</summary>
  5800. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5801. public class ServicePhotoRowChangeEvent : global::System.EventArgs {
  5802. private ServicePhotoRow eventRow;
  5803. private global::System.Data.DataRowAction eventAction;
  5804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5806. public ServicePhotoRowChangeEvent(ServicePhotoRow row, global::System.Data.DataRowAction action) {
  5807. this.eventRow = row;
  5808. this.eventAction = action;
  5809. }
  5810. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5811. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5812. public ServicePhotoRow Row {
  5813. get {
  5814. return this.eventRow;
  5815. }
  5816. }
  5817. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5818. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5819. public global::System.Data.DataRowAction Action {
  5820. get {
  5821. return this.eventAction;
  5822. }
  5823. }
  5824. }
  5825. /// <summary>
  5826. ///Row event argument class
  5827. ///</summary>
  5828. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5829. public class TagRowChangeEvent : global::System.EventArgs {
  5830. private TagRow eventRow;
  5831. private global::System.Data.DataRowAction eventAction;
  5832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5833. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5834. public TagRowChangeEvent(TagRow row, global::System.Data.DataRowAction action) {
  5835. this.eventRow = row;
  5836. this.eventAction = action;
  5837. }
  5838. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5839. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5840. public TagRow Row {
  5841. get {
  5842. return this.eventRow;
  5843. }
  5844. }
  5845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5846. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5847. public global::System.Data.DataRowAction Action {
  5848. get {
  5849. return this.eventAction;
  5850. }
  5851. }
  5852. }
  5853. /// <summary>
  5854. ///Row event argument class
  5855. ///</summary>
  5856. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5857. public class TagOfClientRowChangeEvent : global::System.EventArgs {
  5858. private TagOfClientRow eventRow;
  5859. private global::System.Data.DataRowAction eventAction;
  5860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5862. public TagOfClientRowChangeEvent(TagOfClientRow row, global::System.Data.DataRowAction action) {
  5863. this.eventRow = row;
  5864. this.eventAction = action;
  5865. }
  5866. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5867. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5868. public TagOfClientRow Row {
  5869. get {
  5870. return this.eventRow;
  5871. }
  5872. }
  5873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5874. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5875. public global::System.Data.DataRowAction Action {
  5876. get {
  5877. return this.eventAction;
  5878. }
  5879. }
  5880. }
  5881. }
  5882. }
  5883. namespace DB_Danilov_V1.DB_Danilov_V2DataSet1TableAdapters {
  5884. /// <summary>
  5885. ///Represents the connection and commands used to retrieve and save data.
  5886. ///</summary>
  5887. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5888. [global::System.ComponentModel.ToolboxItem(true)]
  5889. [global::System.ComponentModel.DataObjectAttribute(true)]
  5890. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5891. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5892. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5893. public partial class AttachedProductTableAdapter : global::System.ComponentModel.Component {
  5894. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5895. private global::System.Data.SqlClient.SqlConnection _connection;
  5896. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5897. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5898. private bool _clearBeforeFill;
  5899. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5900. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5901. public AttachedProductTableAdapter() {
  5902. this.ClearBeforeFill = true;
  5903. }
  5904. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5905. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5906. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5907. get {
  5908. if ((this._adapter == null)) {
  5909. this.InitAdapter();
  5910. }
  5911. return this._adapter;
  5912. }
  5913. }
  5914. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5915. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5916. internal global::System.Data.SqlClient.SqlConnection Connection {
  5917. get {
  5918. if ((this._connection == null)) {
  5919. this.InitConnection();
  5920. }
  5921. return this._connection;
  5922. }
  5923. set {
  5924. this._connection = value;
  5925. if ((this.Adapter.InsertCommand != null)) {
  5926. this.Adapter.InsertCommand.Connection = value;
  5927. }
  5928. if ((this.Adapter.DeleteCommand != null)) {
  5929. this.Adapter.DeleteCommand.Connection = value;
  5930. }
  5931. if ((this.Adapter.UpdateCommand != null)) {
  5932. this.Adapter.UpdateCommand.Connection = value;
  5933. }
  5934. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5935. if ((this.CommandCollection[i] != null)) {
  5936. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5937. }
  5938. }
  5939. }
  5940. }
  5941. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5942. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5943. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5944. get {
  5945. return this._transaction;
  5946. }
  5947. set {
  5948. this._transaction = value;
  5949. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5950. this.CommandCollection[i].Transaction = this._transaction;
  5951. }
  5952. if (((this.Adapter != null)
  5953. && (this.Adapter.DeleteCommand != null))) {
  5954. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5955. }
  5956. if (((this.Adapter != null)
  5957. && (this.Adapter.InsertCommand != null))) {
  5958. this.Adapter.InsertCommand.Transaction = this._transaction;
  5959. }
  5960. if (((this.Adapter != null)
  5961. && (this.Adapter.UpdateCommand != null))) {
  5962. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5963. }
  5964. }
  5965. }
  5966. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5967. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5968. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5969. get {
  5970. if ((this._commandCollection == null)) {
  5971. this.InitCommandCollection();
  5972. }
  5973. return this._commandCollection;
  5974. }
  5975. }
  5976. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5977. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5978. public bool ClearBeforeFill {
  5979. get {
  5980. return this._clearBeforeFill;
  5981. }
  5982. set {
  5983. this._clearBeforeFill = value;
  5984. }
  5985. }
  5986. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5987. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5988. private void InitAdapter() {
  5989. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5990. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5991. tableMapping.SourceTable = "Table";
  5992. tableMapping.DataSetTable = "AttachedProduct";
  5993. tableMapping.ColumnMappings.Add("MainProductID", "MainProductID");
  5994. tableMapping.ColumnMappings.Add("AttachedProductID", "AttachedProductID");
  5995. this._adapter.TableMappings.Add(tableMapping);
  5996. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5997. this._adapter.DeleteCommand.Connection = this.Connection;
  5998. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[AttachedProduct] WHERE (([MainProductID] = @Original_MainProdu" +
  5999. "ctID) AND ([AttachedProductID] = @Original_AttachedProductID))";
  6000. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6001. 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, "", "", ""));
  6002. 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, "", "", ""));
  6003. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6004. this._adapter.InsertCommand.Connection = this.Connection;
  6005. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[AttachedProduct] ([MainProductID], [AttachedProductID]) VALUES (@MainProductID, @AttachedProductID);
  6006. SELECT MainProductID, AttachedProductID FROM AttachedProduct WHERE (AttachedProductID = @AttachedProductID) AND (MainProductID = @MainProductID)";
  6007. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6008. 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, "", "", ""));
  6009. 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, "", "", ""));
  6010. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6011. this._adapter.UpdateCommand.Connection = this.Connection;
  6012. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[AttachedProduct] SET [MainProductID] = @MainProductID, [AttachedProductID] = @AttachedProductID WHERE (([MainProductID] = @Original_MainProductID) AND ([AttachedProductID] = @Original_AttachedProductID));
  6013. SELECT MainProductID, AttachedProductID FROM AttachedProduct WHERE (AttachedProductID = @AttachedProductID) AND (MainProductID = @MainProductID)";
  6014. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6015. 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, "", "", ""));
  6016. 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, "", "", ""));
  6017. 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, "", "", ""));
  6018. 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, "", "", ""));
  6019. }
  6020. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6021. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6022. private void InitConnection() {
  6023. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6024. this._connection.ConnectionString = global::DB_Danilov_V1.Properties.Settings.Default.DB_Danilov_V2ConnectionString;
  6025. }
  6026. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6027. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6028. private void InitCommandCollection() {
  6029. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6030. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6031. this._commandCollection[0].Connection = this.Connection;
  6032. this._commandCollection[0].CommandText = "SELECT MainProductID, AttachedProductID FROM dbo.AttachedProduct";
  6033. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6034. }
  6035. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6036. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6037. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6038. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6039. public virtual int Fill(DB_Danilov_V2DataSet1.AttachedProductDataTable dataTable) {
  6040. this.Adapter.SelectCommand = this.CommandCollection[0];
  6041. if ((this.ClearBeforeFill == true)) {
  6042. dataTable.Clear();
  6043. }
  6044. int returnValue = this.Adapter.Fill(dataTable);
  6045. return returnValue;
  6046. }
  6047. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6048. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6049. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6050. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6051. public virtual DB_Danilov_V2DataSet1.AttachedProductDataTable GetData() {
  6052. this.Adapter.SelectCommand = this.CommandCollection[0];
  6053. DB_Danilov_V2DataSet1.AttachedProductDataTable dataTable = new DB_Danilov_V2DataSet1.AttachedProductDataTable();
  6054. this.Adapter.Fill(dataTable);
  6055. return dataTable;
  6056. }
  6057. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6058. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6059. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6060. public virtual int Update(DB_Danilov_V2DataSet1.AttachedProductDataTable dataTable) {
  6061. return this.Adapter.Update(dataTable);
  6062. }
  6063. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6064. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6065. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6066. public virtual int Update(DB_Danilov_V2DataSet1 dataSet) {
  6067. return this.Adapter.Update(dataSet, "AttachedProduct");
  6068. }
  6069. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6070. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6071. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6072. public virtual int Update(global::System.Data.DataRow dataRow) {
  6073. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6074. dataRow});
  6075. }
  6076. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6077. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6078. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6079. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6080. return this.Adapter.Update(dataRows);
  6081. }
  6082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6084. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6085. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6086. public virtual int Delete(int Original_MainProductID, int Original_AttachedProductID) {
  6087. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_MainProductID));
  6088. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_AttachedProductID));
  6089. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6090. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6091. != global::System.Data.ConnectionState.Open)) {
  6092. this.Adapter.DeleteCommand.Connection.Open();
  6093. }
  6094. try {
  6095. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6096. return returnValue;
  6097. }
  6098. finally {
  6099. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6100. this.Adapter.DeleteCommand.Connection.Close();
  6101. }
  6102. }
  6103. }
  6104. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6105. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6106. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6107. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6108. public virtual int Insert(int MainProductID, int AttachedProductID) {
  6109. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(MainProductID));
  6110. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(AttachedProductID));
  6111. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6112. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6113. != global::System.Data.ConnectionState.Open)) {
  6114. this.Adapter.InsertCommand.Connection.Open();
  6115. }
  6116. try {
  6117. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6118. return returnValue;
  6119. }
  6120. finally {
  6121. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6122. this.Adapter.InsertCommand.Connection.Close();
  6123. }
  6124. }
  6125. }
  6126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6128. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6129. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6130. public virtual int Update(int MainProductID, int AttachedProductID, int Original_MainProductID, int Original_AttachedProductID) {
  6131. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(MainProductID));
  6132. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(AttachedProductID));
  6133. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_MainProductID));
  6134. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_AttachedProductID));
  6135. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6136. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6137. != global::System.Data.ConnectionState.Open)) {
  6138. this.Adapter.UpdateCommand.Connection.Open();
  6139. }
  6140. try {
  6141. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6142. return returnValue;
  6143. }
  6144. finally {
  6145. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6146. this.Adapter.UpdateCommand.Connection.Close();
  6147. }
  6148. }
  6149. }
  6150. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6151. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6152. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6153. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6154. public virtual int Update(int Original_MainProductID, int Original_AttachedProductID) {
  6155. return this.Update(Original_MainProductID, Original_AttachedProductID, Original_MainProductID, Original_AttachedProductID);
  6156. }
  6157. }
  6158. /// <summary>
  6159. ///Represents the connection and commands used to retrieve and save data.
  6160. ///</summary>
  6161. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6162. [global::System.ComponentModel.ToolboxItem(true)]
  6163. [global::System.ComponentModel.DataObjectAttribute(true)]
  6164. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6165. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6166. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6167. public partial class ClientTableAdapter : global::System.ComponentModel.Component {
  6168. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6169. private global::System.Data.SqlClient.SqlConnection _connection;
  6170. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6171. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6172. private bool _clearBeforeFill;
  6173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6175. public ClientTableAdapter() {
  6176. this.ClearBeforeFill = true;
  6177. }
  6178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6180. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6181. get {
  6182. if ((this._adapter == null)) {
  6183. this.InitAdapter();
  6184. }
  6185. return this._adapter;
  6186. }
  6187. }
  6188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6190. internal global::System.Data.SqlClient.SqlConnection Connection {
  6191. get {
  6192. if ((this._connection == null)) {
  6193. this.InitConnection();
  6194. }
  6195. return this._connection;
  6196. }
  6197. set {
  6198. this._connection = value;
  6199. if ((this.Adapter.InsertCommand != null)) {
  6200. this.Adapter.InsertCommand.Connection = value;
  6201. }
  6202. if ((this.Adapter.DeleteCommand != null)) {
  6203. this.Adapter.DeleteCommand.Connection = value;
  6204. }
  6205. if ((this.Adapter.UpdateCommand != null)) {
  6206. this.Adapter.UpdateCommand.Connection = value;
  6207. }
  6208. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6209. if ((this.CommandCollection[i] != null)) {
  6210. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6211. }
  6212. }
  6213. }
  6214. }
  6215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6216. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6217. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6218. get {
  6219. return this._transaction;
  6220. }
  6221. set {
  6222. this._transaction = value;
  6223. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6224. this.CommandCollection[i].Transaction = this._transaction;
  6225. }
  6226. if (((this.Adapter != null)
  6227. && (this.Adapter.DeleteCommand != null))) {
  6228. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6229. }
  6230. if (((this.Adapter != null)
  6231. && (this.Adapter.InsertCommand != null))) {
  6232. this.Adapter.InsertCommand.Transaction = this._transaction;
  6233. }
  6234. if (((this.Adapter != null)
  6235. && (this.Adapter.UpdateCommand != null))) {
  6236. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6237. }
  6238. }
  6239. }
  6240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6241. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6242. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6243. get {
  6244. if ((this._commandCollection == null)) {
  6245. this.InitCommandCollection();
  6246. }
  6247. return this._commandCollection;
  6248. }
  6249. }
  6250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6252. public bool ClearBeforeFill {
  6253. get {
  6254. return this._clearBeforeFill;
  6255. }
  6256. set {
  6257. this._clearBeforeFill = value;
  6258. }
  6259. }
  6260. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6261. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6262. private void InitAdapter() {
  6263. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6264. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6265. tableMapping.SourceTable = "Table";
  6266. tableMapping.DataSetTable = "Client";
  6267. tableMapping.ColumnMappings.Add("ID", "ID");
  6268. tableMapping.ColumnMappings.Add("FirstName", "FirstName");
  6269. tableMapping.ColumnMappings.Add("LastName", "LastName");
  6270. tableMapping.ColumnMappings.Add("Patronymic", "Patronymic");
  6271. tableMapping.ColumnMappings.Add("Birthday", "Birthday");
  6272. tableMapping.ColumnMappings.Add("RegistrationDate", "RegistrationDate");
  6273. tableMapping.ColumnMappings.Add("Email", "Email");
  6274. tableMapping.ColumnMappings.Add("Phone", "Phone");
  6275. tableMapping.ColumnMappings.Add("GenderCode", "GenderCode");
  6276. tableMapping.ColumnMappings.Add("PhotoPath", "PhotoPath");
  6277. this._adapter.TableMappings.Add(tableMapping);
  6278. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6279. this._adapter.DeleteCommand.Connection = this.Connection;
  6280. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Client] WHERE (([ID] = @Original_ID) AND ([FirstName] = @Original_FirstName) AND ((@IsNull_LastName = 1 AND [LastName] IS NULL) OR ([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)))";
  6281. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6282. 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, "", "", ""));
  6283. 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, "", "", ""));
  6284. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_LastName", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastName", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6285. 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, "", "", ""));
  6286. 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, "", "", ""));
  6287. 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, "", "", ""));
  6288. 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, "", "", ""));
  6289. 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, "", "", ""));
  6290. 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, "", "", ""));
  6291. 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, "", "", ""));
  6292. 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, "", "", ""));
  6293. 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, "", "", ""));
  6294. 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, "", "", ""));
  6295. 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, "", "", ""));
  6296. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PhotoPath", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhotoPath", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6297. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6298. this._adapter.InsertCommand.Connection = this.Connection;
  6299. 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);
  6300. SELECT ID, FirstName, LastName, Patronymic, Birthday, RegistrationDate, Email, Phone, GenderCode, PhotoPath FROM Client WHERE (ID = SCOPE_IDENTITY())";
  6301. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6302. 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, "", "", ""));
  6303. 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, "", "", ""));
  6304. 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, "", "", ""));
  6305. 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, "", "", ""));
  6306. 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, "", "", ""));
  6307. 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, "", "", ""));
  6308. 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, "", "", ""));
  6309. 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, "", "", ""));
  6310. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PhotoPath", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhotoPath", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6311. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6312. this._adapter.UpdateCommand.Connection = this.Connection;
  6313. 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 ((@IsNull_LastName = 1 AND [LastName] IS NULL) OR ([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)));
  6314. SELECT ID, FirstName, LastName, Patronymic, Birthday, RegistrationDate, Email, Phone, GenderCode, PhotoPath FROM Client WHERE (ID = @ID)";
  6315. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6316. 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, "", "", ""));
  6317. 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, "", "", ""));
  6318. 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, "", "", ""));
  6319. 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, "", "", ""));
  6320. 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, "", "", ""));
  6321. 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, "", "", ""));
  6322. 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, "", "", ""));
  6323. 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, "", "", ""));
  6324. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PhotoPath", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhotoPath", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6325. 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, "", "", ""));
  6326. 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, "", "", ""));
  6327. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_LastName", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastName", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6328. 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, "", "", ""));
  6329. 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, "", "", ""));
  6330. 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, "", "", ""));
  6331. 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, "", "", ""));
  6332. 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, "", "", ""));
  6333. 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, "", "", ""));
  6334. 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, "", "", ""));
  6335. 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, "", "", ""));
  6336. 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, "", "", ""));
  6337. 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, "", "", ""));
  6338. 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, "", "", ""));
  6339. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PhotoPath", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhotoPath", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6340. 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, "", "", ""));
  6341. }
  6342. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6343. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6344. private void InitConnection() {
  6345. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6346. this._connection.ConnectionString = global::DB_Danilov_V1.Properties.Settings.Default.DB_Danilov_V2ConnectionString;
  6347. }
  6348. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6349. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6350. private void InitCommandCollection() {
  6351. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6352. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6353. this._commandCollection[0].Connection = this.Connection;
  6354. this._commandCollection[0].CommandText = "SELECT ID, FirstName, LastName, Patronymic, Birthday, RegistrationDate, Email, Ph" +
  6355. "one, GenderCode, PhotoPath FROM dbo.Client";
  6356. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6357. }
  6358. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6359. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6360. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6361. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6362. public virtual int Fill(DB_Danilov_V2DataSet1.ClientDataTable dataTable) {
  6363. this.Adapter.SelectCommand = this.CommandCollection[0];
  6364. if ((this.ClearBeforeFill == true)) {
  6365. dataTable.Clear();
  6366. }
  6367. int returnValue = this.Adapter.Fill(dataTable);
  6368. return returnValue;
  6369. }
  6370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6371. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6372. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6373. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6374. public virtual DB_Danilov_V2DataSet1.ClientDataTable GetData() {
  6375. this.Adapter.SelectCommand = this.CommandCollection[0];
  6376. DB_Danilov_V2DataSet1.ClientDataTable dataTable = new DB_Danilov_V2DataSet1.ClientDataTable();
  6377. this.Adapter.Fill(dataTable);
  6378. return dataTable;
  6379. }
  6380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6382. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6383. public virtual int Update(DB_Danilov_V2DataSet1.ClientDataTable dataTable) {
  6384. return this.Adapter.Update(dataTable);
  6385. }
  6386. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6387. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6388. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6389. public virtual int Update(DB_Danilov_V2DataSet1 dataSet) {
  6390. return this.Adapter.Update(dataSet, "Client");
  6391. }
  6392. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6393. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6394. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6395. public virtual int Update(global::System.Data.DataRow dataRow) {
  6396. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6397. dataRow});
  6398. }
  6399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6401. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6402. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6403. return this.Adapter.Update(dataRows);
  6404. }
  6405. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6406. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6407. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6408. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6409. 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) {
  6410. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  6411. if ((Original_FirstName == null)) {
  6412. throw new global::System.ArgumentNullException("Original_FirstName");
  6413. }
  6414. else {
  6415. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_FirstName));
  6416. }
  6417. if ((Original_LastName == null)) {
  6418. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
  6419. this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
  6420. }
  6421. else {
  6422. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
  6423. this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_LastName));
  6424. }
  6425. if ((Original_Patronymic == null)) {
  6426. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
  6427. this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
  6428. }
  6429. else {
  6430. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
  6431. this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_Patronymic));
  6432. }
  6433. if ((Original_Birthday.HasValue == true)) {
  6434. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0));
  6435. this.Adapter.DeleteCommand.Parameters[7].Value = ((System.DateTime)(Original_Birthday.Value));
  6436. }
  6437. else {
  6438. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1));
  6439. this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value;
  6440. }
  6441. this.Adapter.DeleteCommand.Parameters[8].Value = ((System.DateTime)(Original_RegistrationDate));
  6442. if ((Original_Email == null)) {
  6443. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  6444. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  6445. }
  6446. else {
  6447. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  6448. this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_Email));
  6449. }
  6450. if ((Original_Phone == null)) {
  6451. throw new global::System.ArgumentNullException("Original_Phone");
  6452. }
  6453. else {
  6454. this.Adapter.DeleteCommand.Parameters[11].Value = ((string)(Original_Phone));
  6455. }
  6456. if ((Original_GenderCode == null)) {
  6457. throw new global::System.ArgumentNullException("Original_GenderCode");
  6458. }
  6459. else {
  6460. this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_GenderCode));
  6461. }
  6462. if ((Original_PhotoPath == null)) {
  6463. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
  6464. this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
  6465. }
  6466. else {
  6467. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
  6468. this.Adapter.DeleteCommand.Parameters[14].Value = ((string)(Original_PhotoPath));
  6469. }
  6470. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6471. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6472. != global::System.Data.ConnectionState.Open)) {
  6473. this.Adapter.DeleteCommand.Connection.Open();
  6474. }
  6475. try {
  6476. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6477. return returnValue;
  6478. }
  6479. finally {
  6480. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6481. this.Adapter.DeleteCommand.Connection.Close();
  6482. }
  6483. }
  6484. }
  6485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6486. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6487. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6488. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6489. 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) {
  6490. if ((FirstName == null)) {
  6491. throw new global::System.ArgumentNullException("FirstName");
  6492. }
  6493. else {
  6494. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(FirstName));
  6495. }
  6496. if ((LastName == null)) {
  6497. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  6498. }
  6499. else {
  6500. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(LastName));
  6501. }
  6502. if ((Patronymic == null)) {
  6503. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  6504. }
  6505. else {
  6506. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Patronymic));
  6507. }
  6508. if ((Birthday.HasValue == true)) {
  6509. this.Adapter.InsertCommand.Parameters[3].Value = ((System.DateTime)(Birthday.Value));
  6510. }
  6511. else {
  6512. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  6513. }
  6514. this.Adapter.InsertCommand.Parameters[4].Value = ((System.DateTime)(RegistrationDate));
  6515. if ((Email == null)) {
  6516. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  6517. }
  6518. else {
  6519. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Email));
  6520. }
  6521. if ((Phone == null)) {
  6522. throw new global::System.ArgumentNullException("Phone");
  6523. }
  6524. else {
  6525. this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Phone));
  6526. }
  6527. if ((GenderCode == null)) {
  6528. throw new global::System.ArgumentNullException("GenderCode");
  6529. }
  6530. else {
  6531. this.Adapter.InsertCommand.Parameters[7].Value = ((string)(GenderCode));
  6532. }
  6533. if ((PhotoPath == null)) {
  6534. this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
  6535. }
  6536. else {
  6537. this.Adapter.InsertCommand.Parameters[8].Value = ((string)(PhotoPath));
  6538. }
  6539. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6540. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6541. != global::System.Data.ConnectionState.Open)) {
  6542. this.Adapter.InsertCommand.Connection.Open();
  6543. }
  6544. try {
  6545. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6546. return returnValue;
  6547. }
  6548. finally {
  6549. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6550. this.Adapter.InsertCommand.Connection.Close();
  6551. }
  6552. }
  6553. }
  6554. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6555. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6556. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6557. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6558. public virtual int Update(
  6559. string FirstName,
  6560. string LastName,
  6561. string Patronymic,
  6562. global::System.Nullable<global::System.DateTime> Birthday,
  6563. System.DateTime RegistrationDate,
  6564. string Email,
  6565. string Phone,
  6566. string GenderCode,
  6567. string PhotoPath,
  6568. int Original_ID,
  6569. string Original_FirstName,
  6570. string Original_LastName,
  6571. string Original_Patronymic,
  6572. global::System.Nullable<global::System.DateTime> Original_Birthday,
  6573. System.DateTime Original_RegistrationDate,
  6574. string Original_Email,
  6575. string Original_Phone,
  6576. string Original_GenderCode,
  6577. string Original_PhotoPath,
  6578. int ID) {
  6579. if ((FirstName == null)) {
  6580. throw new global::System.ArgumentNullException("FirstName");
  6581. }
  6582. else {
  6583. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(FirstName));
  6584. }
  6585. if ((LastName == null)) {
  6586. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  6587. }
  6588. else {
  6589. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(LastName));
  6590. }
  6591. if ((Patronymic == null)) {
  6592. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  6593. }
  6594. else {
  6595. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Patronymic));
  6596. }
  6597. if ((Birthday.HasValue == true)) {
  6598. this.Adapter.UpdateCommand.Parameters[3].Value = ((System.DateTime)(Birthday.Value));
  6599. }
  6600. else {
  6601. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  6602. }
  6603. this.Adapter.UpdateCommand.Parameters[4].Value = ((System.DateTime)(RegistrationDate));
  6604. if ((Email == null)) {
  6605. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  6606. }
  6607. else {
  6608. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Email));
  6609. }
  6610. if ((Phone == null)) {
  6611. throw new global::System.ArgumentNullException("Phone");
  6612. }
  6613. else {
  6614. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Phone));
  6615. }
  6616. if ((GenderCode == null)) {
  6617. throw new global::System.ArgumentNullException("GenderCode");
  6618. }
  6619. else {
  6620. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(GenderCode));
  6621. }
  6622. if ((PhotoPath == null)) {
  6623. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  6624. }
  6625. else {
  6626. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(PhotoPath));
  6627. }
  6628. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_ID));
  6629. if ((Original_FirstName == null)) {
  6630. throw new global::System.ArgumentNullException("Original_FirstName");
  6631. }
  6632. else {
  6633. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_FirstName));
  6634. }
  6635. if ((Original_LastName == null)) {
  6636. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  6637. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  6638. }
  6639. else {
  6640. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  6641. this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_LastName));
  6642. }
  6643. if ((Original_Patronymic == null)) {
  6644. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
  6645. this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
  6646. }
  6647. else {
  6648. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
  6649. this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_Patronymic));
  6650. }
  6651. if ((Original_Birthday.HasValue == true)) {
  6652. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
  6653. this.Adapter.UpdateCommand.Parameters[16].Value = ((System.DateTime)(Original_Birthday.Value));
  6654. }
  6655. else {
  6656. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
  6657. this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
  6658. }
  6659. this.Adapter.UpdateCommand.Parameters[17].Value = ((System.DateTime)(Original_RegistrationDate));
  6660. if ((Original_Email == null)) {
  6661. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
  6662. this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
  6663. }
  6664. else {
  6665. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
  6666. this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_Email));
  6667. }
  6668. if ((Original_Phone == null)) {
  6669. throw new global::System.ArgumentNullException("Original_Phone");
  6670. }
  6671. else {
  6672. this.Adapter.UpdateCommand.Parameters[20].Value = ((string)(Original_Phone));
  6673. }
  6674. if ((Original_GenderCode == null)) {
  6675. throw new global::System.ArgumentNullException("Original_GenderCode");
  6676. }
  6677. else {
  6678. this.Adapter.UpdateCommand.Parameters[21].Value = ((string)(Original_GenderCode));
  6679. }
  6680. if ((Original_PhotoPath == null)) {
  6681. this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1));
  6682. this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value;
  6683. }
  6684. else {
  6685. this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0));
  6686. this.Adapter.UpdateCommand.Parameters[23].Value = ((string)(Original_PhotoPath));
  6687. }
  6688. this.Adapter.UpdateCommand.Parameters[24].Value = ((int)(ID));
  6689. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6690. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6691. != global::System.Data.ConnectionState.Open)) {
  6692. this.Adapter.UpdateCommand.Connection.Open();
  6693. }
  6694. try {
  6695. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6696. return returnValue;
  6697. }
  6698. finally {
  6699. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6700. this.Adapter.UpdateCommand.Connection.Close();
  6701. }
  6702. }
  6703. }
  6704. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6705. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6706. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6707. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6708. public virtual int Update(
  6709. string FirstName,
  6710. string LastName,
  6711. string Patronymic,
  6712. global::System.Nullable<global::System.DateTime> Birthday,
  6713. System.DateTime RegistrationDate,
  6714. string Email,
  6715. string Phone,
  6716. string GenderCode,
  6717. string PhotoPath,
  6718. int Original_ID,
  6719. string Original_FirstName,
  6720. string Original_LastName,
  6721. string Original_Patronymic,
  6722. global::System.Nullable<global::System.DateTime> Original_Birthday,
  6723. System.DateTime Original_RegistrationDate,
  6724. string Original_Email,
  6725. string Original_Phone,
  6726. string Original_GenderCode,
  6727. string Original_PhotoPath) {
  6728. 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);
  6729. }
  6730. }
  6731. /// <summary>
  6732. ///Represents the connection and commands used to retrieve and save data.
  6733. ///</summary>
  6734. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6735. [global::System.ComponentModel.ToolboxItem(true)]
  6736. [global::System.ComponentModel.DataObjectAttribute(true)]
  6737. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6738. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6739. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6740. public partial class ClientServiceTableAdapter : global::System.ComponentModel.Component {
  6741. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6742. private global::System.Data.SqlClient.SqlConnection _connection;
  6743. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6744. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6745. private bool _clearBeforeFill;
  6746. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6747. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6748. public ClientServiceTableAdapter() {
  6749. this.ClearBeforeFill = true;
  6750. }
  6751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6753. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6754. get {
  6755. if ((this._adapter == null)) {
  6756. this.InitAdapter();
  6757. }
  6758. return this._adapter;
  6759. }
  6760. }
  6761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6763. internal global::System.Data.SqlClient.SqlConnection Connection {
  6764. get {
  6765. if ((this._connection == null)) {
  6766. this.InitConnection();
  6767. }
  6768. return this._connection;
  6769. }
  6770. set {
  6771. this._connection = value;
  6772. if ((this.Adapter.InsertCommand != null)) {
  6773. this.Adapter.InsertCommand.Connection = value;
  6774. }
  6775. if ((this.Adapter.DeleteCommand != null)) {
  6776. this.Adapter.DeleteCommand.Connection = value;
  6777. }
  6778. if ((this.Adapter.UpdateCommand != null)) {
  6779. this.Adapter.UpdateCommand.Connection = value;
  6780. }
  6781. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6782. if ((this.CommandCollection[i] != null)) {
  6783. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6784. }
  6785. }
  6786. }
  6787. }
  6788. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6789. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6790. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6791. get {
  6792. return this._transaction;
  6793. }
  6794. set {
  6795. this._transaction = value;
  6796. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6797. this.CommandCollection[i].Transaction = this._transaction;
  6798. }
  6799. if (((this.Adapter != null)
  6800. && (this.Adapter.DeleteCommand != null))) {
  6801. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6802. }
  6803. if (((this.Adapter != null)
  6804. && (this.Adapter.InsertCommand != null))) {
  6805. this.Adapter.InsertCommand.Transaction = this._transaction;
  6806. }
  6807. if (((this.Adapter != null)
  6808. && (this.Adapter.UpdateCommand != null))) {
  6809. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6810. }
  6811. }
  6812. }
  6813. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6814. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6815. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6816. get {
  6817. if ((this._commandCollection == null)) {
  6818. this.InitCommandCollection();
  6819. }
  6820. return this._commandCollection;
  6821. }
  6822. }
  6823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6824. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6825. public bool ClearBeforeFill {
  6826. get {
  6827. return this._clearBeforeFill;
  6828. }
  6829. set {
  6830. this._clearBeforeFill = value;
  6831. }
  6832. }
  6833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6835. private void InitAdapter() {
  6836. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6837. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6838. tableMapping.SourceTable = "Table";
  6839. tableMapping.DataSetTable = "ClientService";
  6840. tableMapping.ColumnMappings.Add("ID", "ID");
  6841. tableMapping.ColumnMappings.Add("ClientID", "ClientID");
  6842. tableMapping.ColumnMappings.Add("ServiceID", "ServiceID");
  6843. tableMapping.ColumnMappings.Add("StartTime", "StartTime");
  6844. tableMapping.ColumnMappings.Add("Comment", "Comment");
  6845. this._adapter.TableMappings.Add(tableMapping);
  6846. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6847. this._adapter.DeleteCommand.Connection = this.Connection;
  6848. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ClientService] WHERE (([ID] = @Original_ID) AND ([ClientID] = " +
  6849. "@Original_ClientID) AND ([ServiceID] = @Original_ServiceID) AND ([StartTime] = @" +
  6850. "Original_StartTime))";
  6851. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6852. 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, "", "", ""));
  6853. 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, "", "", ""));
  6854. 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, "", "", ""));
  6855. 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, "", "", ""));
  6856. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6857. this._adapter.InsertCommand.Connection = this.Connection;
  6858. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ClientService] ([ClientID], [ServiceID], [StartTime], [Comment" +
  6859. "]) VALUES (@ClientID, @ServiceID, @StartTime, @Comment);\r\nSELECT ID, ClientID, S" +
  6860. "erviceID, StartTime, Comment FROM ClientService WHERE (ID = SCOPE_IDENTITY())";
  6861. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6862. 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, "", "", ""));
  6863. 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, "", "", ""));
  6864. 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, "", "", ""));
  6865. 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, "", "", ""));
  6866. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6867. this._adapter.UpdateCommand.Connection = this.Connection;
  6868. 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));
  6869. SELECT ID, ClientID, ServiceID, StartTime, Comment FROM ClientService WHERE (ID = @ID)";
  6870. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6871. 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, "", "", ""));
  6872. 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, "", "", ""));
  6873. 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, "", "", ""));
  6874. 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, "", "", ""));
  6875. 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, "", "", ""));
  6876. 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, "", "", ""));
  6877. 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, "", "", ""));
  6878. 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, "", "", ""));
  6879. 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, "", "", ""));
  6880. }
  6881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6883. private void InitConnection() {
  6884. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6885. this._connection.ConnectionString = global::DB_Danilov_V1.Properties.Settings.Default.DB_Danilov_V2ConnectionString;
  6886. }
  6887. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6888. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6889. private void InitCommandCollection() {
  6890. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6891. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6892. this._commandCollection[0].Connection = this.Connection;
  6893. this._commandCollection[0].CommandText = "SELECT ID, ClientID, ServiceID, StartTime, Comment FROM dbo.ClientService";
  6894. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6895. }
  6896. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6897. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6898. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6899. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6900. public virtual int Fill(DB_Danilov_V2DataSet1.ClientServiceDataTable dataTable) {
  6901. this.Adapter.SelectCommand = this.CommandCollection[0];
  6902. if ((this.ClearBeforeFill == true)) {
  6903. dataTable.Clear();
  6904. }
  6905. int returnValue = this.Adapter.Fill(dataTable);
  6906. return returnValue;
  6907. }
  6908. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6909. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6910. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6911. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6912. public virtual DB_Danilov_V2DataSet1.ClientServiceDataTable GetData() {
  6913. this.Adapter.SelectCommand = this.CommandCollection[0];
  6914. DB_Danilov_V2DataSet1.ClientServiceDataTable dataTable = new DB_Danilov_V2DataSet1.ClientServiceDataTable();
  6915. this.Adapter.Fill(dataTable);
  6916. return dataTable;
  6917. }
  6918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6919. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6920. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6921. public virtual int Update(DB_Danilov_V2DataSet1.ClientServiceDataTable dataTable) {
  6922. return this.Adapter.Update(dataTable);
  6923. }
  6924. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6925. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6926. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6927. public virtual int Update(DB_Danilov_V2DataSet1 dataSet) {
  6928. return this.Adapter.Update(dataSet, "ClientService");
  6929. }
  6930. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6931. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6932. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6933. public virtual int Update(global::System.Data.DataRow dataRow) {
  6934. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6935. dataRow});
  6936. }
  6937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6938. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6939. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6940. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6941. return this.Adapter.Update(dataRows);
  6942. }
  6943. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6944. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6945. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6946. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6947. public virtual int Delete(int Original_ID, int Original_ClientID, int Original_ServiceID, System.DateTime Original_StartTime) {
  6948. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  6949. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ClientID));
  6950. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_ServiceID));
  6951. this.Adapter.DeleteCommand.Parameters[3].Value = ((System.DateTime)(Original_StartTime));
  6952. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6953. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6954. != global::System.Data.ConnectionState.Open)) {
  6955. this.Adapter.DeleteCommand.Connection.Open();
  6956. }
  6957. try {
  6958. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6959. return returnValue;
  6960. }
  6961. finally {
  6962. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6963. this.Adapter.DeleteCommand.Connection.Close();
  6964. }
  6965. }
  6966. }
  6967. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6968. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6969. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6970. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6971. public virtual int Insert(int ClientID, int ServiceID, System.DateTime StartTime, string Comment) {
  6972. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ClientID));
  6973. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(ServiceID));
  6974. this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(StartTime));
  6975. if ((Comment == null)) {
  6976. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  6977. }
  6978. else {
  6979. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Comment));
  6980. }
  6981. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6982. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6983. != global::System.Data.ConnectionState.Open)) {
  6984. this.Adapter.InsertCommand.Connection.Open();
  6985. }
  6986. try {
  6987. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6988. return returnValue;
  6989. }
  6990. finally {
  6991. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6992. this.Adapter.InsertCommand.Connection.Close();
  6993. }
  6994. }
  6995. }
  6996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6997. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6998. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6999. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7000. 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) {
  7001. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ClientID));
  7002. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(ServiceID));
  7003. this.Adapter.UpdateCommand.Parameters[2].Value = ((System.DateTime)(StartTime));
  7004. if ((Comment == null)) {
  7005. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  7006. }
  7007. else {
  7008. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Comment));
  7009. }
  7010. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_ID));
  7011. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_ClientID));
  7012. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ServiceID));
  7013. this.Adapter.UpdateCommand.Parameters[7].Value = ((System.DateTime)(Original_StartTime));
  7014. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(ID));
  7015. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7016. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7017. != global::System.Data.ConnectionState.Open)) {
  7018. this.Adapter.UpdateCommand.Connection.Open();
  7019. }
  7020. try {
  7021. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7022. return returnValue;
  7023. }
  7024. finally {
  7025. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7026. this.Adapter.UpdateCommand.Connection.Close();
  7027. }
  7028. }
  7029. }
  7030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7032. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7033. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7034. 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) {
  7035. return this.Update(ClientID, ServiceID, StartTime, Comment, Original_ID, Original_ClientID, Original_ServiceID, Original_StartTime, Original_ID);
  7036. }
  7037. }
  7038. /// <summary>
  7039. ///Represents the connection and commands used to retrieve and save data.
  7040. ///</summary>
  7041. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7042. [global::System.ComponentModel.ToolboxItem(true)]
  7043. [global::System.ComponentModel.DataObjectAttribute(true)]
  7044. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7045. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7046. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7047. public partial class DocumentByServiceTableAdapter : global::System.ComponentModel.Component {
  7048. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7049. private global::System.Data.SqlClient.SqlConnection _connection;
  7050. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7051. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7052. private bool _clearBeforeFill;
  7053. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7054. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7055. public DocumentByServiceTableAdapter() {
  7056. this.ClearBeforeFill = true;
  7057. }
  7058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7059. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7060. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7061. get {
  7062. if ((this._adapter == null)) {
  7063. this.InitAdapter();
  7064. }
  7065. return this._adapter;
  7066. }
  7067. }
  7068. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7069. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7070. internal global::System.Data.SqlClient.SqlConnection Connection {
  7071. get {
  7072. if ((this._connection == null)) {
  7073. this.InitConnection();
  7074. }
  7075. return this._connection;
  7076. }
  7077. set {
  7078. this._connection = value;
  7079. if ((this.Adapter.InsertCommand != null)) {
  7080. this.Adapter.InsertCommand.Connection = value;
  7081. }
  7082. if ((this.Adapter.DeleteCommand != null)) {
  7083. this.Adapter.DeleteCommand.Connection = value;
  7084. }
  7085. if ((this.Adapter.UpdateCommand != null)) {
  7086. this.Adapter.UpdateCommand.Connection = value;
  7087. }
  7088. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7089. if ((this.CommandCollection[i] != null)) {
  7090. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7091. }
  7092. }
  7093. }
  7094. }
  7095. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7096. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7097. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7098. get {
  7099. return this._transaction;
  7100. }
  7101. set {
  7102. this._transaction = value;
  7103. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7104. this.CommandCollection[i].Transaction = this._transaction;
  7105. }
  7106. if (((this.Adapter != null)
  7107. && (this.Adapter.DeleteCommand != null))) {
  7108. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7109. }
  7110. if (((this.Adapter != null)
  7111. && (this.Adapter.InsertCommand != null))) {
  7112. this.Adapter.InsertCommand.Transaction = this._transaction;
  7113. }
  7114. if (((this.Adapter != null)
  7115. && (this.Adapter.UpdateCommand != null))) {
  7116. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7117. }
  7118. }
  7119. }
  7120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7121. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7122. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7123. get {
  7124. if ((this._commandCollection == null)) {
  7125. this.InitCommandCollection();
  7126. }
  7127. return this._commandCollection;
  7128. }
  7129. }
  7130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7131. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7132. public bool ClearBeforeFill {
  7133. get {
  7134. return this._clearBeforeFill;
  7135. }
  7136. set {
  7137. this._clearBeforeFill = value;
  7138. }
  7139. }
  7140. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7141. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7142. private void InitAdapter() {
  7143. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7144. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7145. tableMapping.SourceTable = "Table";
  7146. tableMapping.DataSetTable = "DocumentByService";
  7147. tableMapping.ColumnMappings.Add("ID", "ID");
  7148. tableMapping.ColumnMappings.Add("ClientServiceID", "ClientServiceID");
  7149. tableMapping.ColumnMappings.Add("DocumentPath", "DocumentPath");
  7150. this._adapter.TableMappings.Add(tableMapping);
  7151. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7152. this._adapter.DeleteCommand.Connection = this.Connection;
  7153. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[DocumentByService] WHERE (([ID] = @Original_ID) AND ([ClientSe" +
  7154. "rviceID] = @Original_ClientServiceID) AND ([DocumentPath] = @Original_DocumentPa" +
  7155. "th))";
  7156. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7157. 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, "", "", ""));
  7158. 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, "", "", ""));
  7159. 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, "", "", ""));
  7160. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7161. this._adapter.InsertCommand.Connection = this.Connection;
  7162. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[DocumentByService] ([ClientServiceID], [DocumentPath]) VALUES " +
  7163. "(@ClientServiceID, @DocumentPath);\r\nSELECT ID, ClientServiceID, DocumentPath FRO" +
  7164. "M DocumentByService WHERE (ID = SCOPE_IDENTITY())";
  7165. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7166. 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, "", "", ""));
  7167. 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, "", "", ""));
  7168. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7169. this._adapter.UpdateCommand.Connection = this.Connection;
  7170. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[DocumentByService] SET [ClientServiceID] = @ClientServiceID, [DocumentPath] = @DocumentPath WHERE (([ID] = @Original_ID) AND ([ClientServiceID] = @Original_ClientServiceID) AND ([DocumentPath] = @Original_DocumentPath));
  7171. SELECT ID, ClientServiceID, DocumentPath FROM DocumentByService WHERE (ID = @ID)";
  7172. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7173. 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, "", "", ""));
  7174. 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, "", "", ""));
  7175. 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, "", "", ""));
  7176. 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, "", "", ""));
  7177. 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, "", "", ""));
  7178. 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, "", "", ""));
  7179. }
  7180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7181. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7182. private void InitConnection() {
  7183. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7184. this._connection.ConnectionString = global::DB_Danilov_V1.Properties.Settings.Default.DB_Danilov_V2ConnectionString;
  7185. }
  7186. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7187. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7188. private void InitCommandCollection() {
  7189. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7190. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7191. this._commandCollection[0].Connection = this.Connection;
  7192. this._commandCollection[0].CommandText = "SELECT ID, ClientServiceID, DocumentPath FROM dbo.DocumentByService";
  7193. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7194. }
  7195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7197. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7198. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7199. public virtual int Fill(DB_Danilov_V2DataSet1.DocumentByServiceDataTable dataTable) {
  7200. this.Adapter.SelectCommand = this.CommandCollection[0];
  7201. if ((this.ClearBeforeFill == true)) {
  7202. dataTable.Clear();
  7203. }
  7204. int returnValue = this.Adapter.Fill(dataTable);
  7205. return returnValue;
  7206. }
  7207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7208. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7209. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7210. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7211. public virtual DB_Danilov_V2DataSet1.DocumentByServiceDataTable GetData() {
  7212. this.Adapter.SelectCommand = this.CommandCollection[0];
  7213. DB_Danilov_V2DataSet1.DocumentByServiceDataTable dataTable = new DB_Danilov_V2DataSet1.DocumentByServiceDataTable();
  7214. this.Adapter.Fill(dataTable);
  7215. return dataTable;
  7216. }
  7217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7218. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7219. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7220. public virtual int Update(DB_Danilov_V2DataSet1.DocumentByServiceDataTable dataTable) {
  7221. return this.Adapter.Update(dataTable);
  7222. }
  7223. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7224. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7225. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7226. public virtual int Update(DB_Danilov_V2DataSet1 dataSet) {
  7227. return this.Adapter.Update(dataSet, "DocumentByService");
  7228. }
  7229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7230. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7231. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7232. public virtual int Update(global::System.Data.DataRow dataRow) {
  7233. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7234. dataRow});
  7235. }
  7236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7237. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7238. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7239. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7240. return this.Adapter.Update(dataRows);
  7241. }
  7242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7243. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7244. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7245. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7246. public virtual int Delete(int Original_ID, int Original_ClientServiceID, string Original_DocumentPath) {
  7247. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  7248. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ClientServiceID));
  7249. if ((Original_DocumentPath == null)) {
  7250. throw new global::System.ArgumentNullException("Original_DocumentPath");
  7251. }
  7252. else {
  7253. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_DocumentPath));
  7254. }
  7255. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7256. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7257. != global::System.Data.ConnectionState.Open)) {
  7258. this.Adapter.DeleteCommand.Connection.Open();
  7259. }
  7260. try {
  7261. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7262. return returnValue;
  7263. }
  7264. finally {
  7265. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7266. this.Adapter.DeleteCommand.Connection.Close();
  7267. }
  7268. }
  7269. }
  7270. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7271. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7272. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7273. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7274. public virtual int Insert(int ClientServiceID, string DocumentPath) {
  7275. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ClientServiceID));
  7276. if ((DocumentPath == null)) {
  7277. throw new global::System.ArgumentNullException("DocumentPath");
  7278. }
  7279. else {
  7280. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(DocumentPath));
  7281. }
  7282. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7283. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7284. != global::System.Data.ConnectionState.Open)) {
  7285. this.Adapter.InsertCommand.Connection.Open();
  7286. }
  7287. try {
  7288. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7289. return returnValue;
  7290. }
  7291. finally {
  7292. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7293. this.Adapter.InsertCommand.Connection.Close();
  7294. }
  7295. }
  7296. }
  7297. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7298. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7299. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7300. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7301. public virtual int Update(int ClientServiceID, string DocumentPath, int Original_ID, int Original_ClientServiceID, string Original_DocumentPath, int ID) {
  7302. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ClientServiceID));
  7303. if ((DocumentPath == null)) {
  7304. throw new global::System.ArgumentNullException("DocumentPath");
  7305. }
  7306. else {
  7307. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(DocumentPath));
  7308. }
  7309. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  7310. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ClientServiceID));
  7311. if ((Original_DocumentPath == null)) {
  7312. throw new global::System.ArgumentNullException("Original_DocumentPath");
  7313. }
  7314. else {
  7315. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_DocumentPath));
  7316. }
  7317. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID));
  7318. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7319. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7320. != global::System.Data.ConnectionState.Open)) {
  7321. this.Adapter.UpdateCommand.Connection.Open();
  7322. }
  7323. try {
  7324. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7325. return returnValue;
  7326. }
  7327. finally {
  7328. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7329. this.Adapter.UpdateCommand.Connection.Close();
  7330. }
  7331. }
  7332. }
  7333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7334. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7335. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7336. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7337. public virtual int Update(int ClientServiceID, string DocumentPath, int Original_ID, int Original_ClientServiceID, string Original_DocumentPath) {
  7338. return this.Update(ClientServiceID, DocumentPath, Original_ID, Original_ClientServiceID, Original_DocumentPath, Original_ID);
  7339. }
  7340. }
  7341. /// <summary>
  7342. ///Represents the connection and commands used to retrieve and save data.
  7343. ///</summary>
  7344. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7345. [global::System.ComponentModel.ToolboxItem(true)]
  7346. [global::System.ComponentModel.DataObjectAttribute(true)]
  7347. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7348. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7349. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7350. public partial class GenderTableAdapter : global::System.ComponentModel.Component {
  7351. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7352. private global::System.Data.SqlClient.SqlConnection _connection;
  7353. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7354. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7355. private bool _clearBeforeFill;
  7356. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7357. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7358. public GenderTableAdapter() {
  7359. this.ClearBeforeFill = true;
  7360. }
  7361. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7362. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7363. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7364. get {
  7365. if ((this._adapter == null)) {
  7366. this.InitAdapter();
  7367. }
  7368. return this._adapter;
  7369. }
  7370. }
  7371. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7372. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7373. internal global::System.Data.SqlClient.SqlConnection Connection {
  7374. get {
  7375. if ((this._connection == null)) {
  7376. this.InitConnection();
  7377. }
  7378. return this._connection;
  7379. }
  7380. set {
  7381. this._connection = value;
  7382. if ((this.Adapter.InsertCommand != null)) {
  7383. this.Adapter.InsertCommand.Connection = value;
  7384. }
  7385. if ((this.Adapter.DeleteCommand != null)) {
  7386. this.Adapter.DeleteCommand.Connection = value;
  7387. }
  7388. if ((this.Adapter.UpdateCommand != null)) {
  7389. this.Adapter.UpdateCommand.Connection = value;
  7390. }
  7391. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7392. if ((this.CommandCollection[i] != null)) {
  7393. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7394. }
  7395. }
  7396. }
  7397. }
  7398. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7399. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7400. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7401. get {
  7402. return this._transaction;
  7403. }
  7404. set {
  7405. this._transaction = value;
  7406. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7407. this.CommandCollection[i].Transaction = this._transaction;
  7408. }
  7409. if (((this.Adapter != null)
  7410. && (this.Adapter.DeleteCommand != null))) {
  7411. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7412. }
  7413. if (((this.Adapter != null)
  7414. && (this.Adapter.InsertCommand != null))) {
  7415. this.Adapter.InsertCommand.Transaction = this._transaction;
  7416. }
  7417. if (((this.Adapter != null)
  7418. && (this.Adapter.UpdateCommand != null))) {
  7419. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7420. }
  7421. }
  7422. }
  7423. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7424. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7425. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7426. get {
  7427. if ((this._commandCollection == null)) {
  7428. this.InitCommandCollection();
  7429. }
  7430. return this._commandCollection;
  7431. }
  7432. }
  7433. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7434. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7435. public bool ClearBeforeFill {
  7436. get {
  7437. return this._clearBeforeFill;
  7438. }
  7439. set {
  7440. this._clearBeforeFill = value;
  7441. }
  7442. }
  7443. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7444. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7445. private void InitAdapter() {
  7446. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7447. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7448. tableMapping.SourceTable = "Table";
  7449. tableMapping.DataSetTable = "Gender";
  7450. tableMapping.ColumnMappings.Add("Code", "Code");
  7451. tableMapping.ColumnMappings.Add("Name", "Name");
  7452. this._adapter.TableMappings.Add(tableMapping);
  7453. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7454. this._adapter.DeleteCommand.Connection = this.Connection;
  7455. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Gender] WHERE (([Code] = @Original_Code) AND ((@IsNull_Name = " +
  7456. "1 AND [Name] IS NULL) OR ([Name] = @Original_Name)))";
  7457. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7458. 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, "", "", ""));
  7459. 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, "", "", ""));
  7460. 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, "", "", ""));
  7461. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7462. this._adapter.InsertCommand.Connection = this.Connection;
  7463. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Gender] ([Code], [Name]) VALUES (@Code, @Name);\r\nSELECT Code, " +
  7464. "Name FROM Gender WHERE (Code = @Code)";
  7465. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7466. 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, "", "", ""));
  7467. 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, "", "", ""));
  7468. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7469. this._adapter.UpdateCommand.Connection = this.Connection;
  7470. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Gender] SET [Code] = @Code, [Name] = @Name WHERE (([Code] = @Origin" +
  7471. "al_Code) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)" +
  7472. "));\r\nSELECT Code, Name FROM Gender WHERE (Code = @Code)";
  7473. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7474. 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, "", "", ""));
  7475. 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, "", "", ""));
  7476. 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, "", "", ""));
  7477. 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, "", "", ""));
  7478. 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, "", "", ""));
  7479. }
  7480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7482. private void InitConnection() {
  7483. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7484. this._connection.ConnectionString = global::DB_Danilov_V1.Properties.Settings.Default.DB_Danilov_V2ConnectionString;
  7485. }
  7486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7488. private void InitCommandCollection() {
  7489. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7490. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7491. this._commandCollection[0].Connection = this.Connection;
  7492. this._commandCollection[0].CommandText = "SELECT Code, Name FROM dbo.Gender";
  7493. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7494. }
  7495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7497. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7498. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7499. public virtual int Fill(DB_Danilov_V2DataSet1.GenderDataTable dataTable) {
  7500. this.Adapter.SelectCommand = this.CommandCollection[0];
  7501. if ((this.ClearBeforeFill == true)) {
  7502. dataTable.Clear();
  7503. }
  7504. int returnValue = this.Adapter.Fill(dataTable);
  7505. return returnValue;
  7506. }
  7507. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7508. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7509. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7510. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7511. public virtual DB_Danilov_V2DataSet1.GenderDataTable GetData() {
  7512. this.Adapter.SelectCommand = this.CommandCollection[0];
  7513. DB_Danilov_V2DataSet1.GenderDataTable dataTable = new DB_Danilov_V2DataSet1.GenderDataTable();
  7514. this.Adapter.Fill(dataTable);
  7515. return dataTable;
  7516. }
  7517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7518. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7519. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7520. public virtual int Update(DB_Danilov_V2DataSet1.GenderDataTable dataTable) {
  7521. return this.Adapter.Update(dataTable);
  7522. }
  7523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7524. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7525. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7526. public virtual int Update(DB_Danilov_V2DataSet1 dataSet) {
  7527. return this.Adapter.Update(dataSet, "Gender");
  7528. }
  7529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7530. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7531. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7532. public virtual int Update(global::System.Data.DataRow dataRow) {
  7533. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7534. dataRow});
  7535. }
  7536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7537. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7538. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7539. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7540. return this.Adapter.Update(dataRows);
  7541. }
  7542. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7543. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7544. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7545. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7546. public virtual int Delete(string Original_Code, string Original_Name) {
  7547. if ((Original_Code == null)) {
  7548. throw new global::System.ArgumentNullException("Original_Code");
  7549. }
  7550. else {
  7551. this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_Code));
  7552. }
  7553. if ((Original_Name == null)) {
  7554. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  7555. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  7556. }
  7557. else {
  7558. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  7559. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Name));
  7560. }
  7561. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7562. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7563. != global::System.Data.ConnectionState.Open)) {
  7564. this.Adapter.DeleteCommand.Connection.Open();
  7565. }
  7566. try {
  7567. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7568. return returnValue;
  7569. }
  7570. finally {
  7571. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7572. this.Adapter.DeleteCommand.Connection.Close();
  7573. }
  7574. }
  7575. }
  7576. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7577. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7578. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7579. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7580. public virtual int Insert(string Code, string Name) {
  7581. if ((Code == null)) {
  7582. throw new global::System.ArgumentNullException("Code");
  7583. }
  7584. else {
  7585. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Code));
  7586. }
  7587. if ((Name == null)) {
  7588. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  7589. }
  7590. else {
  7591. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Name));
  7592. }
  7593. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7594. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7595. != global::System.Data.ConnectionState.Open)) {
  7596. this.Adapter.InsertCommand.Connection.Open();
  7597. }
  7598. try {
  7599. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7600. return returnValue;
  7601. }
  7602. finally {
  7603. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7604. this.Adapter.InsertCommand.Connection.Close();
  7605. }
  7606. }
  7607. }
  7608. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7609. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7610. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7611. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7612. public virtual int Update(string Code, string Name, string Original_Code, string Original_Name) {
  7613. if ((Code == null)) {
  7614. throw new global::System.ArgumentNullException("Code");
  7615. }
  7616. else {
  7617. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Code));
  7618. }
  7619. if ((Name == null)) {
  7620. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  7621. }
  7622. else {
  7623. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Name));
  7624. }
  7625. if ((Original_Code == null)) {
  7626. throw new global::System.ArgumentNullException("Original_Code");
  7627. }
  7628. else {
  7629. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Original_Code));
  7630. }
  7631. if ((Original_Name == null)) {
  7632. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  7633. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  7634. }
  7635. else {
  7636. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  7637. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Name));
  7638. }
  7639. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7640. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7641. != global::System.Data.ConnectionState.Open)) {
  7642. this.Adapter.UpdateCommand.Connection.Open();
  7643. }
  7644. try {
  7645. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7646. return returnValue;
  7647. }
  7648. finally {
  7649. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7650. this.Adapter.UpdateCommand.Connection.Close();
  7651. }
  7652. }
  7653. }
  7654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7655. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7656. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7657. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7658. public virtual int Update(string Name, string Original_Code, string Original_Name) {
  7659. return this.Update(Original_Code, Name, Original_Code, Original_Name);
  7660. }
  7661. }
  7662. /// <summary>
  7663. ///Represents the connection and commands used to retrieve and save data.
  7664. ///</summary>
  7665. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7666. [global::System.ComponentModel.ToolboxItem(true)]
  7667. [global::System.ComponentModel.DataObjectAttribute(true)]
  7668. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7669. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7670. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7671. public partial class ManufacturerTableAdapter : global::System.ComponentModel.Component {
  7672. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7673. private global::System.Data.SqlClient.SqlConnection _connection;
  7674. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7675. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7676. private bool _clearBeforeFill;
  7677. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7678. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7679. public ManufacturerTableAdapter() {
  7680. this.ClearBeforeFill = true;
  7681. }
  7682. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7683. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7684. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7685. get {
  7686. if ((this._adapter == null)) {
  7687. this.InitAdapter();
  7688. }
  7689. return this._adapter;
  7690. }
  7691. }
  7692. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7693. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7694. internal global::System.Data.SqlClient.SqlConnection Connection {
  7695. get {
  7696. if ((this._connection == null)) {
  7697. this.InitConnection();
  7698. }
  7699. return this._connection;
  7700. }
  7701. set {
  7702. this._connection = value;
  7703. if ((this.Adapter.InsertCommand != null)) {
  7704. this.Adapter.InsertCommand.Connection = value;
  7705. }
  7706. if ((this.Adapter.DeleteCommand != null)) {
  7707. this.Adapter.DeleteCommand.Connection = value;
  7708. }
  7709. if ((this.Adapter.UpdateCommand != null)) {
  7710. this.Adapter.UpdateCommand.Connection = value;
  7711. }
  7712. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7713. if ((this.CommandCollection[i] != null)) {
  7714. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7715. }
  7716. }
  7717. }
  7718. }
  7719. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7720. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7721. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7722. get {
  7723. return this._transaction;
  7724. }
  7725. set {
  7726. this._transaction = value;
  7727. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7728. this.CommandCollection[i].Transaction = this._transaction;
  7729. }
  7730. if (((this.Adapter != null)
  7731. && (this.Adapter.DeleteCommand != null))) {
  7732. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7733. }
  7734. if (((this.Adapter != null)
  7735. && (this.Adapter.InsertCommand != null))) {
  7736. this.Adapter.InsertCommand.Transaction = this._transaction;
  7737. }
  7738. if (((this.Adapter != null)
  7739. && (this.Adapter.UpdateCommand != null))) {
  7740. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7741. }
  7742. }
  7743. }
  7744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7746. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7747. get {
  7748. if ((this._commandCollection == null)) {
  7749. this.InitCommandCollection();
  7750. }
  7751. return this._commandCollection;
  7752. }
  7753. }
  7754. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7755. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7756. public bool ClearBeforeFill {
  7757. get {
  7758. return this._clearBeforeFill;
  7759. }
  7760. set {
  7761. this._clearBeforeFill = value;
  7762. }
  7763. }
  7764. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7765. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7766. private void InitAdapter() {
  7767. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7768. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7769. tableMapping.SourceTable = "Table";
  7770. tableMapping.DataSetTable = "Manufacturer";
  7771. tableMapping.ColumnMappings.Add("ID", "ID");
  7772. tableMapping.ColumnMappings.Add("Name", "Name");
  7773. tableMapping.ColumnMappings.Add("StartDate", "StartDate");
  7774. this._adapter.TableMappings.Add(tableMapping);
  7775. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7776. this._adapter.DeleteCommand.Connection = this.Connection;
  7777. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Manufacturer] WHERE (([ID] = @Original_ID) AND ([Name] = @Orig" +
  7778. "inal_Name) AND ((@IsNull_StartDate = 1 AND [StartDate] IS NULL) OR ([StartDate] " +
  7779. "= @Original_StartDate)))";
  7780. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7781. 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, "", "", ""));
  7782. 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, "", "", ""));
  7783. 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, "", "", ""));
  7784. 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, "", "", ""));
  7785. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7786. this._adapter.InsertCommand.Connection = this.Connection;
  7787. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Manufacturer] ([Name], [StartDate]) VALUES (@Name, @StartDate)" +
  7788. ";\r\nSELECT ID, Name, StartDate FROM Manufacturer WHERE (ID = SCOPE_IDENTITY())";
  7789. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7790. 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, "", "", ""));
  7791. 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, "", "", ""));
  7792. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7793. this._adapter.UpdateCommand.Connection = this.Connection;
  7794. 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)));
  7795. SELECT ID, Name, StartDate FROM Manufacturer WHERE (ID = @ID)";
  7796. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7797. 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, "", "", ""));
  7798. 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, "", "", ""));
  7799. 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, "", "", ""));
  7800. 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, "", "", ""));
  7801. 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, "", "", ""));
  7802. 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, "", "", ""));
  7803. 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, "", "", ""));
  7804. }
  7805. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7806. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7807. private void InitConnection() {
  7808. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7809. this._connection.ConnectionString = global::DB_Danilov_V1.Properties.Settings.Default.DB_Danilov_V2ConnectionString;
  7810. }
  7811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7812. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7813. private void InitCommandCollection() {
  7814. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7815. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7816. this._commandCollection[0].Connection = this.Connection;
  7817. this._commandCollection[0].CommandText = "SELECT ID, Name, StartDate FROM dbo.Manufacturer";
  7818. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7819. }
  7820. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7821. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7822. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7823. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7824. public virtual int Fill(DB_Danilov_V2DataSet1.ManufacturerDataTable dataTable) {
  7825. this.Adapter.SelectCommand = this.CommandCollection[0];
  7826. if ((this.ClearBeforeFill == true)) {
  7827. dataTable.Clear();
  7828. }
  7829. int returnValue = this.Adapter.Fill(dataTable);
  7830. return returnValue;
  7831. }
  7832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7833. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7834. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7835. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7836. public virtual DB_Danilov_V2DataSet1.ManufacturerDataTable GetData() {
  7837. this.Adapter.SelectCommand = this.CommandCollection[0];
  7838. DB_Danilov_V2DataSet1.ManufacturerDataTable dataTable = new DB_Danilov_V2DataSet1.ManufacturerDataTable();
  7839. this.Adapter.Fill(dataTable);
  7840. return dataTable;
  7841. }
  7842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7844. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7845. public virtual int Update(DB_Danilov_V2DataSet1.ManufacturerDataTable dataTable) {
  7846. return this.Adapter.Update(dataTable);
  7847. }
  7848. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7849. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7850. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7851. public virtual int Update(DB_Danilov_V2DataSet1 dataSet) {
  7852. return this.Adapter.Update(dataSet, "Manufacturer");
  7853. }
  7854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7855. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7856. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7857. public virtual int Update(global::System.Data.DataRow dataRow) {
  7858. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7859. dataRow});
  7860. }
  7861. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7862. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7863. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7864. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7865. return this.Adapter.Update(dataRows);
  7866. }
  7867. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7868. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7869. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7870. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7871. public virtual int Delete(int Original_ID, string Original_Name, global::System.Nullable<global::System.DateTime> Original_StartDate) {
  7872. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  7873. if ((Original_Name == null)) {
  7874. throw new global::System.ArgumentNullException("Original_Name");
  7875. }
  7876. else {
  7877. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Name));
  7878. }
  7879. if ((Original_StartDate.HasValue == true)) {
  7880. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
  7881. this.Adapter.DeleteCommand.Parameters[3].Value = ((System.DateTime)(Original_StartDate.Value));
  7882. }
  7883. else {
  7884. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
  7885. this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
  7886. }
  7887. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7888. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7889. != global::System.Data.ConnectionState.Open)) {
  7890. this.Adapter.DeleteCommand.Connection.Open();
  7891. }
  7892. try {
  7893. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7894. return returnValue;
  7895. }
  7896. finally {
  7897. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7898. this.Adapter.DeleteCommand.Connection.Close();
  7899. }
  7900. }
  7901. }
  7902. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7903. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7904. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7905. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7906. public virtual int Insert(string Name, global::System.Nullable<global::System.DateTime> StartDate) {
  7907. if ((Name == null)) {
  7908. throw new global::System.ArgumentNullException("Name");
  7909. }
  7910. else {
  7911. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Name));
  7912. }
  7913. if ((StartDate.HasValue == true)) {
  7914. this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(StartDate.Value));
  7915. }
  7916. else {
  7917. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  7918. }
  7919. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7920. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7921. != global::System.Data.ConnectionState.Open)) {
  7922. this.Adapter.InsertCommand.Connection.Open();
  7923. }
  7924. try {
  7925. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7926. return returnValue;
  7927. }
  7928. finally {
  7929. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7930. this.Adapter.InsertCommand.Connection.Close();
  7931. }
  7932. }
  7933. }
  7934. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7935. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7936. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7937. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7938. 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) {
  7939. if ((Name == null)) {
  7940. throw new global::System.ArgumentNullException("Name");
  7941. }
  7942. else {
  7943. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Name));
  7944. }
  7945. if ((StartDate.HasValue == true)) {
  7946. this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(StartDate.Value));
  7947. }
  7948. else {
  7949. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  7950. }
  7951. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  7952. if ((Original_Name == null)) {
  7953. throw new global::System.ArgumentNullException("Original_Name");
  7954. }
  7955. else {
  7956. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Name));
  7957. }
  7958. if ((Original_StartDate.HasValue == true)) {
  7959. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  7960. this.Adapter.UpdateCommand.Parameters[5].Value = ((System.DateTime)(Original_StartDate.Value));
  7961. }
  7962. else {
  7963. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  7964. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  7965. }
  7966. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(ID));
  7967. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7968. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7969. != global::System.Data.ConnectionState.Open)) {
  7970. this.Adapter.UpdateCommand.Connection.Open();
  7971. }
  7972. try {
  7973. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7974. return returnValue;
  7975. }
  7976. finally {
  7977. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7978. this.Adapter.UpdateCommand.Connection.Close();
  7979. }
  7980. }
  7981. }
  7982. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7983. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7984. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7985. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7986. 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) {
  7987. return this.Update(Name, StartDate, Original_ID, Original_Name, Original_StartDate, Original_ID);
  7988. }
  7989. }
  7990. /// <summary>
  7991. ///Represents the connection and commands used to retrieve and save data.
  7992. ///</summary>
  7993. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7994. [global::System.ComponentModel.ToolboxItem(true)]
  7995. [global::System.ComponentModel.DataObjectAttribute(true)]
  7996. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7997. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7998. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7999. public partial class ProductTableAdapter : global::System.ComponentModel.Component {
  8000. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8001. private global::System.Data.SqlClient.SqlConnection _connection;
  8002. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8003. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8004. private bool _clearBeforeFill;
  8005. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8006. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8007. public ProductTableAdapter() {
  8008. this.ClearBeforeFill = true;
  8009. }
  8010. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8011. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8012. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8013. get {
  8014. if ((this._adapter == null)) {
  8015. this.InitAdapter();
  8016. }
  8017. return this._adapter;
  8018. }
  8019. }
  8020. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8021. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8022. internal global::System.Data.SqlClient.SqlConnection Connection {
  8023. get {
  8024. if ((this._connection == null)) {
  8025. this.InitConnection();
  8026. }
  8027. return this._connection;
  8028. }
  8029. set {
  8030. this._connection = value;
  8031. if ((this.Adapter.InsertCommand != null)) {
  8032. this.Adapter.InsertCommand.Connection = value;
  8033. }
  8034. if ((this.Adapter.DeleteCommand != null)) {
  8035. this.Adapter.DeleteCommand.Connection = value;
  8036. }
  8037. if ((this.Adapter.UpdateCommand != null)) {
  8038. this.Adapter.UpdateCommand.Connection = value;
  8039. }
  8040. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8041. if ((this.CommandCollection[i] != null)) {
  8042. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8043. }
  8044. }
  8045. }
  8046. }
  8047. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8048. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8049. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8050. get {
  8051. return this._transaction;
  8052. }
  8053. set {
  8054. this._transaction = value;
  8055. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8056. this.CommandCollection[i].Transaction = this._transaction;
  8057. }
  8058. if (((this.Adapter != null)
  8059. && (this.Adapter.DeleteCommand != null))) {
  8060. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8061. }
  8062. if (((this.Adapter != null)
  8063. && (this.Adapter.InsertCommand != null))) {
  8064. this.Adapter.InsertCommand.Transaction = this._transaction;
  8065. }
  8066. if (((this.Adapter != null)
  8067. && (this.Adapter.UpdateCommand != null))) {
  8068. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8069. }
  8070. }
  8071. }
  8072. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8073. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8074. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8075. get {
  8076. if ((this._commandCollection == null)) {
  8077. this.InitCommandCollection();
  8078. }
  8079. return this._commandCollection;
  8080. }
  8081. }
  8082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8084. public bool ClearBeforeFill {
  8085. get {
  8086. return this._clearBeforeFill;
  8087. }
  8088. set {
  8089. this._clearBeforeFill = value;
  8090. }
  8091. }
  8092. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8093. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8094. private void InitAdapter() {
  8095. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8096. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8097. tableMapping.SourceTable = "Table";
  8098. tableMapping.DataSetTable = "Product";
  8099. tableMapping.ColumnMappings.Add("ID", "ID");
  8100. tableMapping.ColumnMappings.Add("Title", "Title");
  8101. tableMapping.ColumnMappings.Add("Cost", "Cost");
  8102. tableMapping.ColumnMappings.Add("Description", "Description");
  8103. tableMapping.ColumnMappings.Add("MainImagePath", "MainImagePath");
  8104. tableMapping.ColumnMappings.Add("IsActive", "IsActive");
  8105. tableMapping.ColumnMappings.Add("ManufacturerID", "ManufacturerID");
  8106. this._adapter.TableMappings.Add(tableMapping);
  8107. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8108. this._adapter.DeleteCommand.Connection = this.Connection;
  8109. 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)))";
  8110. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8111. 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, "", "", ""));
  8112. 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, "", "", ""));
  8113. 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, "", "", ""));
  8114. 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, "", "", ""));
  8115. 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, "", "", ""));
  8116. 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, "", "", ""));
  8117. 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, "", "", ""));
  8118. 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, "", "", ""));
  8119. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8120. this._adapter.InsertCommand.Connection = this.Connection;
  8121. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Product] ([Title], [Cost], [Description], [MainImagePath], [IsActive], [ManufacturerID]) VALUES (@Title, @Cost, @Description, @MainImagePath, @IsActive, @ManufacturerID);
  8122. SELECT ID, Title, Cost, Description, MainImagePath, IsActive, ManufacturerID FROM Product WHERE (ID = SCOPE_IDENTITY())";
  8123. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8124. 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, "", "", ""));
  8125. 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, "", "", ""));
  8126. 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, "", "", ""));
  8127. 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, "", "", ""));
  8128. 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, "", "", ""));
  8129. 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, "", "", ""));
  8130. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8131. this._adapter.UpdateCommand.Connection = this.Connection;
  8132. 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)));
  8133. SELECT ID, Title, Cost, Description, MainImagePath, IsActive, ManufacturerID FROM Product WHERE (ID = @ID)";
  8134. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8135. 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, "", "", ""));
  8136. 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, "", "", ""));
  8137. 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, "", "", ""));
  8138. 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, "", "", ""));
  8139. 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, "", "", ""));
  8140. 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, "", "", ""));
  8141. 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, "", "", ""));
  8142. 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, "", "", ""));
  8143. 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, "", "", ""));
  8144. 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, "", "", ""));
  8145. 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, "", "", ""));
  8146. 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, "", "", ""));
  8147. 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, "", "", ""));
  8148. 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, "", "", ""));
  8149. 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, "", "", ""));
  8150. }
  8151. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8152. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8153. private void InitConnection() {
  8154. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8155. this._connection.ConnectionString = global::DB_Danilov_V1.Properties.Settings.Default.DB_Danilov_V2ConnectionString;
  8156. }
  8157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8159. private void InitCommandCollection() {
  8160. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8161. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8162. this._commandCollection[0].Connection = this.Connection;
  8163. this._commandCollection[0].CommandText = "SELECT ID, Title, Cost, Description, MainImagePath, IsActive, ManufacturerID FROM" +
  8164. " dbo.Product";
  8165. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8166. }
  8167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8169. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8170. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8171. public virtual int Fill(DB_Danilov_V2DataSet1.ProductDataTable dataTable) {
  8172. this.Adapter.SelectCommand = this.CommandCollection[0];
  8173. if ((this.ClearBeforeFill == true)) {
  8174. dataTable.Clear();
  8175. }
  8176. int returnValue = this.Adapter.Fill(dataTable);
  8177. return returnValue;
  8178. }
  8179. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8180. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8181. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8182. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8183. public virtual DB_Danilov_V2DataSet1.ProductDataTable GetData() {
  8184. this.Adapter.SelectCommand = this.CommandCollection[0];
  8185. DB_Danilov_V2DataSet1.ProductDataTable dataTable = new DB_Danilov_V2DataSet1.ProductDataTable();
  8186. this.Adapter.Fill(dataTable);
  8187. return dataTable;
  8188. }
  8189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8191. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8192. public virtual int Update(DB_Danilov_V2DataSet1.ProductDataTable dataTable) {
  8193. return this.Adapter.Update(dataTable);
  8194. }
  8195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8197. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8198. public virtual int Update(DB_Danilov_V2DataSet1 dataSet) {
  8199. return this.Adapter.Update(dataSet, "Product");
  8200. }
  8201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8203. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8204. public virtual int Update(global::System.Data.DataRow dataRow) {
  8205. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8206. dataRow});
  8207. }
  8208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8209. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8210. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8211. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8212. return this.Adapter.Update(dataRows);
  8213. }
  8214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8215. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8216. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8217. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8218. 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) {
  8219. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  8220. if ((Original_Title == null)) {
  8221. throw new global::System.ArgumentNullException("Original_Title");
  8222. }
  8223. else {
  8224. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Title));
  8225. }
  8226. this.Adapter.DeleteCommand.Parameters[2].Value = ((decimal)(Original_Cost));
  8227. if ((Original_MainImagePath == null)) {
  8228. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  8229. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  8230. }
  8231. else {
  8232. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  8233. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_MainImagePath));
  8234. }
  8235. this.Adapter.DeleteCommand.Parameters[5].Value = ((bool)(Original_IsActive));
  8236. if ((Original_ManufacturerID.HasValue == true)) {
  8237. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0));
  8238. this.Adapter.DeleteCommand.Parameters[7].Value = ((int)(Original_ManufacturerID.Value));
  8239. }
  8240. else {
  8241. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1));
  8242. this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value;
  8243. }
  8244. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8245. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8246. != global::System.Data.ConnectionState.Open)) {
  8247. this.Adapter.DeleteCommand.Connection.Open();
  8248. }
  8249. try {
  8250. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8251. return returnValue;
  8252. }
  8253. finally {
  8254. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8255. this.Adapter.DeleteCommand.Connection.Close();
  8256. }
  8257. }
  8258. }
  8259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8260. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8261. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8262. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8263. public virtual int Insert(string Title, decimal Cost, string Description, string MainImagePath, bool IsActive, global::System.Nullable<int> ManufacturerID) {
  8264. if ((Title == null)) {
  8265. throw new global::System.ArgumentNullException("Title");
  8266. }
  8267. else {
  8268. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  8269. }
  8270. this.Adapter.InsertCommand.Parameters[1].Value = ((decimal)(Cost));
  8271. if ((Description == null)) {
  8272. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  8273. }
  8274. else {
  8275. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Description));
  8276. }
  8277. if ((MainImagePath == null)) {
  8278. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  8279. }
  8280. else {
  8281. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(MainImagePath));
  8282. }
  8283. this.Adapter.InsertCommand.Parameters[4].Value = ((bool)(IsActive));
  8284. if ((ManufacturerID.HasValue == true)) {
  8285. this.Adapter.InsertCommand.Parameters[5].Value = ((int)(ManufacturerID.Value));
  8286. }
  8287. else {
  8288. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  8289. }
  8290. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8291. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8292. != global::System.Data.ConnectionState.Open)) {
  8293. this.Adapter.InsertCommand.Connection.Open();
  8294. }
  8295. try {
  8296. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8297. return returnValue;
  8298. }
  8299. finally {
  8300. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8301. this.Adapter.InsertCommand.Connection.Close();
  8302. }
  8303. }
  8304. }
  8305. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8306. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8307. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8308. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8309. 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) {
  8310. if ((Title == null)) {
  8311. throw new global::System.ArgumentNullException("Title");
  8312. }
  8313. else {
  8314. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  8315. }
  8316. this.Adapter.UpdateCommand.Parameters[1].Value = ((decimal)(Cost));
  8317. if ((Description == null)) {
  8318. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  8319. }
  8320. else {
  8321. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Description));
  8322. }
  8323. if ((MainImagePath == null)) {
  8324. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  8325. }
  8326. else {
  8327. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(MainImagePath));
  8328. }
  8329. this.Adapter.UpdateCommand.Parameters[4].Value = ((bool)(IsActive));
  8330. if ((ManufacturerID.HasValue == true)) {
  8331. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ManufacturerID.Value));
  8332. }
  8333. else {
  8334. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  8335. }
  8336. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ID));
  8337. if ((Original_Title == null)) {
  8338. throw new global::System.ArgumentNullException("Original_Title");
  8339. }
  8340. else {
  8341. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Title));
  8342. }
  8343. this.Adapter.UpdateCommand.Parameters[8].Value = ((decimal)(Original_Cost));
  8344. if ((Original_MainImagePath == null)) {
  8345. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  8346. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  8347. }
  8348. else {
  8349. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  8350. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_MainImagePath));
  8351. }
  8352. this.Adapter.UpdateCommand.Parameters[11].Value = ((bool)(Original_IsActive));
  8353. if ((Original_ManufacturerID.HasValue == true)) {
  8354. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  8355. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Original_ManufacturerID.Value));
  8356. }
  8357. else {
  8358. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  8359. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  8360. }
  8361. this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(ID));
  8362. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8363. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8364. != global::System.Data.ConnectionState.Open)) {
  8365. this.Adapter.UpdateCommand.Connection.Open();
  8366. }
  8367. try {
  8368. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8369. return returnValue;
  8370. }
  8371. finally {
  8372. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8373. this.Adapter.UpdateCommand.Connection.Close();
  8374. }
  8375. }
  8376. }
  8377. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8378. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8379. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8380. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8381. 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) {
  8382. return this.Update(Title, Cost, Description, MainImagePath, IsActive, ManufacturerID, Original_ID, Original_Title, Original_Cost, Original_MainImagePath, Original_IsActive, Original_ManufacturerID, Original_ID);
  8383. }
  8384. }
  8385. /// <summary>
  8386. ///Represents the connection and commands used to retrieve and save data.
  8387. ///</summary>
  8388. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8389. [global::System.ComponentModel.ToolboxItem(true)]
  8390. [global::System.ComponentModel.DataObjectAttribute(true)]
  8391. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8392. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8393. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8394. public partial class ProductPhotoTableAdapter : global::System.ComponentModel.Component {
  8395. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8396. private global::System.Data.SqlClient.SqlConnection _connection;
  8397. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8398. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8399. private bool _clearBeforeFill;
  8400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8402. public ProductPhotoTableAdapter() {
  8403. this.ClearBeforeFill = true;
  8404. }
  8405. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8406. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8407. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8408. get {
  8409. if ((this._adapter == null)) {
  8410. this.InitAdapter();
  8411. }
  8412. return this._adapter;
  8413. }
  8414. }
  8415. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8416. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8417. internal global::System.Data.SqlClient.SqlConnection Connection {
  8418. get {
  8419. if ((this._connection == null)) {
  8420. this.InitConnection();
  8421. }
  8422. return this._connection;
  8423. }
  8424. set {
  8425. this._connection = value;
  8426. if ((this.Adapter.InsertCommand != null)) {
  8427. this.Adapter.InsertCommand.Connection = value;
  8428. }
  8429. if ((this.Adapter.DeleteCommand != null)) {
  8430. this.Adapter.DeleteCommand.Connection = value;
  8431. }
  8432. if ((this.Adapter.UpdateCommand != null)) {
  8433. this.Adapter.UpdateCommand.Connection = value;
  8434. }
  8435. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8436. if ((this.CommandCollection[i] != null)) {
  8437. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8438. }
  8439. }
  8440. }
  8441. }
  8442. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8443. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8444. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8445. get {
  8446. return this._transaction;
  8447. }
  8448. set {
  8449. this._transaction = value;
  8450. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8451. this.CommandCollection[i].Transaction = this._transaction;
  8452. }
  8453. if (((this.Adapter != null)
  8454. && (this.Adapter.DeleteCommand != null))) {
  8455. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8456. }
  8457. if (((this.Adapter != null)
  8458. && (this.Adapter.InsertCommand != null))) {
  8459. this.Adapter.InsertCommand.Transaction = this._transaction;
  8460. }
  8461. if (((this.Adapter != null)
  8462. && (this.Adapter.UpdateCommand != null))) {
  8463. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8464. }
  8465. }
  8466. }
  8467. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8468. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8469. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8470. get {
  8471. if ((this._commandCollection == null)) {
  8472. this.InitCommandCollection();
  8473. }
  8474. return this._commandCollection;
  8475. }
  8476. }
  8477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8479. public bool ClearBeforeFill {
  8480. get {
  8481. return this._clearBeforeFill;
  8482. }
  8483. set {
  8484. this._clearBeforeFill = value;
  8485. }
  8486. }
  8487. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8488. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8489. private void InitAdapter() {
  8490. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8491. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8492. tableMapping.SourceTable = "Table";
  8493. tableMapping.DataSetTable = "ProductPhoto";
  8494. tableMapping.ColumnMappings.Add("ID", "ID");
  8495. tableMapping.ColumnMappings.Add("ProductID", "ProductID");
  8496. tableMapping.ColumnMappings.Add("PhotoPath", "PhotoPath");
  8497. this._adapter.TableMappings.Add(tableMapping);
  8498. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8499. this._adapter.DeleteCommand.Connection = this.Connection;
  8500. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ProductPhoto] WHERE (([ID] = @Original_ID) AND ([ProductID] = " +
  8501. "@Original_ProductID) AND ([PhotoPath] = @Original_PhotoPath))";
  8502. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8503. 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, "", "", ""));
  8504. 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, "", "", ""));
  8505. 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, "", "", ""));
  8506. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8507. this._adapter.InsertCommand.Connection = this.Connection;
  8508. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ProductPhoto] ([ProductID], [PhotoPath]) VALUES (@ProductID, @" +
  8509. "PhotoPath);\r\nSELECT ID, ProductID, PhotoPath FROM ProductPhoto WHERE (ID = SCOPE" +
  8510. "_IDENTITY())";
  8511. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8512. 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, "", "", ""));
  8513. 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, "", "", ""));
  8514. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8515. this._adapter.UpdateCommand.Connection = this.Connection;
  8516. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ProductPhoto] SET [ProductID] = @ProductID, [PhotoPath] = @PhotoPath WHERE (([ID] = @Original_ID) AND ([ProductID] = @Original_ProductID) AND ([PhotoPath] = @Original_PhotoPath));
  8517. SELECT ID, ProductID, PhotoPath FROM ProductPhoto WHERE (ID = @ID)";
  8518. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8519. 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, "", "", ""));
  8520. 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, "", "", ""));
  8521. 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, "", "", ""));
  8522. 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, "", "", ""));
  8523. 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, "", "", ""));
  8524. 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, "", "", ""));
  8525. }
  8526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8528. private void InitConnection() {
  8529. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8530. this._connection.ConnectionString = global::DB_Danilov_V1.Properties.Settings.Default.DB_Danilov_V2ConnectionString;
  8531. }
  8532. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8533. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8534. private void InitCommandCollection() {
  8535. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8536. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8537. this._commandCollection[0].Connection = this.Connection;
  8538. this._commandCollection[0].CommandText = "SELECT ID, ProductID, PhotoPath FROM dbo.ProductPhoto";
  8539. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8540. }
  8541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8543. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8544. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8545. public virtual int Fill(DB_Danilov_V2DataSet1.ProductPhotoDataTable dataTable) {
  8546. this.Adapter.SelectCommand = this.CommandCollection[0];
  8547. if ((this.ClearBeforeFill == true)) {
  8548. dataTable.Clear();
  8549. }
  8550. int returnValue = this.Adapter.Fill(dataTable);
  8551. return returnValue;
  8552. }
  8553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8555. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8556. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8557. public virtual DB_Danilov_V2DataSet1.ProductPhotoDataTable GetData() {
  8558. this.Adapter.SelectCommand = this.CommandCollection[0];
  8559. DB_Danilov_V2DataSet1.ProductPhotoDataTable dataTable = new DB_Danilov_V2DataSet1.ProductPhotoDataTable();
  8560. this.Adapter.Fill(dataTable);
  8561. return dataTable;
  8562. }
  8563. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8564. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8565. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8566. public virtual int Update(DB_Danilov_V2DataSet1.ProductPhotoDataTable dataTable) {
  8567. return this.Adapter.Update(dataTable);
  8568. }
  8569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8570. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8571. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8572. public virtual int Update(DB_Danilov_V2DataSet1 dataSet) {
  8573. return this.Adapter.Update(dataSet, "ProductPhoto");
  8574. }
  8575. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8576. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8577. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8578. public virtual int Update(global::System.Data.DataRow dataRow) {
  8579. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8580. dataRow});
  8581. }
  8582. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8583. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8584. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8585. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8586. return this.Adapter.Update(dataRows);
  8587. }
  8588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8589. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8590. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8591. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8592. public virtual int Delete(int Original_ID, int Original_ProductID, string Original_PhotoPath) {
  8593. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  8594. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ProductID));
  8595. if ((Original_PhotoPath == null)) {
  8596. throw new global::System.ArgumentNullException("Original_PhotoPath");
  8597. }
  8598. else {
  8599. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_PhotoPath));
  8600. }
  8601. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8602. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8603. != global::System.Data.ConnectionState.Open)) {
  8604. this.Adapter.DeleteCommand.Connection.Open();
  8605. }
  8606. try {
  8607. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8608. return returnValue;
  8609. }
  8610. finally {
  8611. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8612. this.Adapter.DeleteCommand.Connection.Close();
  8613. }
  8614. }
  8615. }
  8616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8617. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8618. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8619. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8620. public virtual int Insert(int ProductID, string PhotoPath) {
  8621. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ProductID));
  8622. if ((PhotoPath == null)) {
  8623. throw new global::System.ArgumentNullException("PhotoPath");
  8624. }
  8625. else {
  8626. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(PhotoPath));
  8627. }
  8628. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8629. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8630. != global::System.Data.ConnectionState.Open)) {
  8631. this.Adapter.InsertCommand.Connection.Open();
  8632. }
  8633. try {
  8634. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8635. return returnValue;
  8636. }
  8637. finally {
  8638. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8639. this.Adapter.InsertCommand.Connection.Close();
  8640. }
  8641. }
  8642. }
  8643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8644. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8645. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8646. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8647. public virtual int Update(int ProductID, string PhotoPath, int Original_ID, int Original_ProductID, string Original_PhotoPath, int ID) {
  8648. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ProductID));
  8649. if ((PhotoPath == null)) {
  8650. throw new global::System.ArgumentNullException("PhotoPath");
  8651. }
  8652. else {
  8653. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(PhotoPath));
  8654. }
  8655. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  8656. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ProductID));
  8657. if ((Original_PhotoPath == null)) {
  8658. throw new global::System.ArgumentNullException("Original_PhotoPath");
  8659. }
  8660. else {
  8661. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_PhotoPath));
  8662. }
  8663. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID));
  8664. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8665. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8666. != global::System.Data.ConnectionState.Open)) {
  8667. this.Adapter.UpdateCommand.Connection.Open();
  8668. }
  8669. try {
  8670. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8671. return returnValue;
  8672. }
  8673. finally {
  8674. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8675. this.Adapter.UpdateCommand.Connection.Close();
  8676. }
  8677. }
  8678. }
  8679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8680. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8681. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8682. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8683. public virtual int Update(int ProductID, string PhotoPath, int Original_ID, int Original_ProductID, string Original_PhotoPath) {
  8684. return this.Update(ProductID, PhotoPath, Original_ID, Original_ProductID, Original_PhotoPath, Original_ID);
  8685. }
  8686. }
  8687. /// <summary>
  8688. ///Represents the connection and commands used to retrieve and save data.
  8689. ///</summary>
  8690. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8691. [global::System.ComponentModel.ToolboxItem(true)]
  8692. [global::System.ComponentModel.DataObjectAttribute(true)]
  8693. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8694. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8695. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8696. public partial class ProductSaleTableAdapter : global::System.ComponentModel.Component {
  8697. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8698. private global::System.Data.SqlClient.SqlConnection _connection;
  8699. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8700. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8701. private bool _clearBeforeFill;
  8702. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8703. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8704. public ProductSaleTableAdapter() {
  8705. this.ClearBeforeFill = true;
  8706. }
  8707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8709. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8710. get {
  8711. if ((this._adapter == null)) {
  8712. this.InitAdapter();
  8713. }
  8714. return this._adapter;
  8715. }
  8716. }
  8717. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8718. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8719. internal global::System.Data.SqlClient.SqlConnection Connection {
  8720. get {
  8721. if ((this._connection == null)) {
  8722. this.InitConnection();
  8723. }
  8724. return this._connection;
  8725. }
  8726. set {
  8727. this._connection = value;
  8728. if ((this.Adapter.InsertCommand != null)) {
  8729. this.Adapter.InsertCommand.Connection = value;
  8730. }
  8731. if ((this.Adapter.DeleteCommand != null)) {
  8732. this.Adapter.DeleteCommand.Connection = value;
  8733. }
  8734. if ((this.Adapter.UpdateCommand != null)) {
  8735. this.Adapter.UpdateCommand.Connection = value;
  8736. }
  8737. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8738. if ((this.CommandCollection[i] != null)) {
  8739. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8740. }
  8741. }
  8742. }
  8743. }
  8744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8746. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8747. get {
  8748. return this._transaction;
  8749. }
  8750. set {
  8751. this._transaction = value;
  8752. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8753. this.CommandCollection[i].Transaction = this._transaction;
  8754. }
  8755. if (((this.Adapter != null)
  8756. && (this.Adapter.DeleteCommand != null))) {
  8757. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8758. }
  8759. if (((this.Adapter != null)
  8760. && (this.Adapter.InsertCommand != null))) {
  8761. this.Adapter.InsertCommand.Transaction = this._transaction;
  8762. }
  8763. if (((this.Adapter != null)
  8764. && (this.Adapter.UpdateCommand != null))) {
  8765. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8766. }
  8767. }
  8768. }
  8769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8770. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8771. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8772. get {
  8773. if ((this._commandCollection == null)) {
  8774. this.InitCommandCollection();
  8775. }
  8776. return this._commandCollection;
  8777. }
  8778. }
  8779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8781. public bool ClearBeforeFill {
  8782. get {
  8783. return this._clearBeforeFill;
  8784. }
  8785. set {
  8786. this._clearBeforeFill = value;
  8787. }
  8788. }
  8789. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8790. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8791. private void InitAdapter() {
  8792. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8793. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8794. tableMapping.SourceTable = "Table";
  8795. tableMapping.DataSetTable = "ProductSale";
  8796. tableMapping.ColumnMappings.Add("ID", "ID");
  8797. tableMapping.ColumnMappings.Add("SaleDate", "SaleDate");
  8798. tableMapping.ColumnMappings.Add("ProductID", "ProductID");
  8799. tableMapping.ColumnMappings.Add("Quantity", "Quantity");
  8800. tableMapping.ColumnMappings.Add("ClientServiceID", "ClientServiceID");
  8801. this._adapter.TableMappings.Add(tableMapping);
  8802. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8803. this._adapter.DeleteCommand.Connection = this.Connection;
  8804. 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)))";
  8805. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8806. 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, "", "", ""));
  8807. 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, "", "", ""));
  8808. 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, "", "", ""));
  8809. 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, "", "", ""));
  8810. 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, "", "", ""));
  8811. 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, "", "", ""));
  8812. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8813. this._adapter.InsertCommand.Connection = this.Connection;
  8814. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ProductSale] ([SaleDate], [ProductID], [Quantity], [ClientServ" +
  8815. "iceID]) VALUES (@SaleDate, @ProductID, @Quantity, @ClientServiceID);\r\nSELECT ID," +
  8816. " SaleDate, ProductID, Quantity, ClientServiceID FROM ProductSale WHERE (ID = SCO" +
  8817. "PE_IDENTITY())";
  8818. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8819. 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, "", "", ""));
  8820. 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, "", "", ""));
  8821. 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, "", "", ""));
  8822. 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, "", "", ""));
  8823. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8824. this._adapter.UpdateCommand.Connection = this.Connection;
  8825. 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)));
  8826. SELECT ID, SaleDate, ProductID, Quantity, ClientServiceID FROM ProductSale WHERE (ID = @ID)";
  8827. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8828. 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, "", "", ""));
  8829. 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, "", "", ""));
  8830. 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, "", "", ""));
  8831. 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, "", "", ""));
  8832. 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, "", "", ""));
  8833. 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, "", "", ""));
  8834. 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, "", "", ""));
  8835. 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, "", "", ""));
  8836. 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, "", "", ""));
  8837. 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, "", "", ""));
  8838. 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, "", "", ""));
  8839. }
  8840. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8841. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8842. private void InitConnection() {
  8843. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8844. this._connection.ConnectionString = global::DB_Danilov_V1.Properties.Settings.Default.DB_Danilov_V2ConnectionString;
  8845. }
  8846. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8847. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8848. private void InitCommandCollection() {
  8849. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8850. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8851. this._commandCollection[0].Connection = this.Connection;
  8852. this._commandCollection[0].CommandText = "SELECT ID, SaleDate, ProductID, Quantity, ClientServiceID FROM dbo.ProductSale";
  8853. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8854. }
  8855. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8856. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8857. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8858. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8859. public virtual int Fill(DB_Danilov_V2DataSet1.ProductSaleDataTable dataTable) {
  8860. this.Adapter.SelectCommand = this.CommandCollection[0];
  8861. if ((this.ClearBeforeFill == true)) {
  8862. dataTable.Clear();
  8863. }
  8864. int returnValue = this.Adapter.Fill(dataTable);
  8865. return returnValue;
  8866. }
  8867. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8868. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8869. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8870. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8871. public virtual DB_Danilov_V2DataSet1.ProductSaleDataTable GetData() {
  8872. this.Adapter.SelectCommand = this.CommandCollection[0];
  8873. DB_Danilov_V2DataSet1.ProductSaleDataTable dataTable = new DB_Danilov_V2DataSet1.ProductSaleDataTable();
  8874. this.Adapter.Fill(dataTable);
  8875. return dataTable;
  8876. }
  8877. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8878. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8879. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8880. public virtual int Update(DB_Danilov_V2DataSet1.ProductSaleDataTable dataTable) {
  8881. return this.Adapter.Update(dataTable);
  8882. }
  8883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8884. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8885. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8886. public virtual int Update(DB_Danilov_V2DataSet1 dataSet) {
  8887. return this.Adapter.Update(dataSet, "ProductSale");
  8888. }
  8889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8890. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8891. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8892. public virtual int Update(global::System.Data.DataRow dataRow) {
  8893. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8894. dataRow});
  8895. }
  8896. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8897. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8898. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8899. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8900. return this.Adapter.Update(dataRows);
  8901. }
  8902. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8903. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8904. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8905. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8906. public virtual int Delete(int Original_ID, System.DateTime Original_SaleDate, int Original_ProductID, int Original_Quantity, global::System.Nullable<int> Original_ClientServiceID) {
  8907. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  8908. this.Adapter.DeleteCommand.Parameters[1].Value = ((System.DateTime)(Original_SaleDate));
  8909. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_ProductID));
  8910. this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_Quantity));
  8911. if ((Original_ClientServiceID.HasValue == true)) {
  8912. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
  8913. this.Adapter.DeleteCommand.Parameters[5].Value = ((int)(Original_ClientServiceID.Value));
  8914. }
  8915. else {
  8916. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
  8917. this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
  8918. }
  8919. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8920. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8921. != global::System.Data.ConnectionState.Open)) {
  8922. this.Adapter.DeleteCommand.Connection.Open();
  8923. }
  8924. try {
  8925. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8926. return returnValue;
  8927. }
  8928. finally {
  8929. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8930. this.Adapter.DeleteCommand.Connection.Close();
  8931. }
  8932. }
  8933. }
  8934. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8935. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8936. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8937. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8938. public virtual int Insert(System.DateTime SaleDate, int ProductID, int Quantity, global::System.Nullable<int> ClientServiceID) {
  8939. this.Adapter.InsertCommand.Parameters[0].Value = ((System.DateTime)(SaleDate));
  8940. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(ProductID));
  8941. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Quantity));
  8942. if ((ClientServiceID.HasValue == true)) {
  8943. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(ClientServiceID.Value));
  8944. }
  8945. else {
  8946. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  8947. }
  8948. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8949. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8950. != global::System.Data.ConnectionState.Open)) {
  8951. this.Adapter.InsertCommand.Connection.Open();
  8952. }
  8953. try {
  8954. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8955. return returnValue;
  8956. }
  8957. finally {
  8958. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8959. this.Adapter.InsertCommand.Connection.Close();
  8960. }
  8961. }
  8962. }
  8963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8965. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8966. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8967. 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) {
  8968. this.Adapter.UpdateCommand.Parameters[0].Value = ((System.DateTime)(SaleDate));
  8969. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(ProductID));
  8970. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Quantity));
  8971. if ((ClientServiceID.HasValue == true)) {
  8972. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(ClientServiceID.Value));
  8973. }
  8974. else {
  8975. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  8976. }
  8977. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_ID));
  8978. this.Adapter.UpdateCommand.Parameters[5].Value = ((System.DateTime)(Original_SaleDate));
  8979. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ProductID));
  8980. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_Quantity));
  8981. if ((Original_ClientServiceID.HasValue == true)) {
  8982. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  8983. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_ClientServiceID.Value));
  8984. }
  8985. else {
  8986. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  8987. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  8988. }
  8989. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(ID));
  8990. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8991. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8992. != global::System.Data.ConnectionState.Open)) {
  8993. this.Adapter.UpdateCommand.Connection.Open();
  8994. }
  8995. try {
  8996. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8997. return returnValue;
  8998. }
  8999. finally {
  9000. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9001. this.Adapter.UpdateCommand.Connection.Close();
  9002. }
  9003. }
  9004. }
  9005. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9006. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9007. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9008. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9009. 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) {
  9010. return this.Update(SaleDate, ProductID, Quantity, ClientServiceID, Original_ID, Original_SaleDate, Original_ProductID, Original_Quantity, Original_ClientServiceID, Original_ID);
  9011. }
  9012. }
  9013. /// <summary>
  9014. ///Represents the connection and commands used to retrieve and save data.
  9015. ///</summary>
  9016. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9017. [global::System.ComponentModel.ToolboxItem(true)]
  9018. [global::System.ComponentModel.DataObjectAttribute(true)]
  9019. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9020. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9021. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9022. public partial class ServiceTableAdapter : global::System.ComponentModel.Component {
  9023. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9024. private global::System.Data.SqlClient.SqlConnection _connection;
  9025. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9026. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9027. private bool _clearBeforeFill;
  9028. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9029. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9030. public ServiceTableAdapter() {
  9031. this.ClearBeforeFill = true;
  9032. }
  9033. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9034. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9035. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9036. get {
  9037. if ((this._adapter == null)) {
  9038. this.InitAdapter();
  9039. }
  9040. return this._adapter;
  9041. }
  9042. }
  9043. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9044. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9045. internal global::System.Data.SqlClient.SqlConnection Connection {
  9046. get {
  9047. if ((this._connection == null)) {
  9048. this.InitConnection();
  9049. }
  9050. return this._connection;
  9051. }
  9052. set {
  9053. this._connection = value;
  9054. if ((this.Adapter.InsertCommand != null)) {
  9055. this.Adapter.InsertCommand.Connection = value;
  9056. }
  9057. if ((this.Adapter.DeleteCommand != null)) {
  9058. this.Adapter.DeleteCommand.Connection = value;
  9059. }
  9060. if ((this.Adapter.UpdateCommand != null)) {
  9061. this.Adapter.UpdateCommand.Connection = value;
  9062. }
  9063. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9064. if ((this.CommandCollection[i] != null)) {
  9065. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9066. }
  9067. }
  9068. }
  9069. }
  9070. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9071. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9072. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9073. get {
  9074. return this._transaction;
  9075. }
  9076. set {
  9077. this._transaction = value;
  9078. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9079. this.CommandCollection[i].Transaction = this._transaction;
  9080. }
  9081. if (((this.Adapter != null)
  9082. && (this.Adapter.DeleteCommand != null))) {
  9083. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9084. }
  9085. if (((this.Adapter != null)
  9086. && (this.Adapter.InsertCommand != null))) {
  9087. this.Adapter.InsertCommand.Transaction = this._transaction;
  9088. }
  9089. if (((this.Adapter != null)
  9090. && (this.Adapter.UpdateCommand != null))) {
  9091. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9092. }
  9093. }
  9094. }
  9095. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9096. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9097. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9098. get {
  9099. if ((this._commandCollection == null)) {
  9100. this.InitCommandCollection();
  9101. }
  9102. return this._commandCollection;
  9103. }
  9104. }
  9105. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9106. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9107. public bool ClearBeforeFill {
  9108. get {
  9109. return this._clearBeforeFill;
  9110. }
  9111. set {
  9112. this._clearBeforeFill = value;
  9113. }
  9114. }
  9115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9116. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9117. private void InitAdapter() {
  9118. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9119. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9120. tableMapping.SourceTable = "Table";
  9121. tableMapping.DataSetTable = "Service";
  9122. tableMapping.ColumnMappings.Add("ID", "ID");
  9123. tableMapping.ColumnMappings.Add("Title", "Title");
  9124. tableMapping.ColumnMappings.Add("Cost", "Cost");
  9125. tableMapping.ColumnMappings.Add("DurationInSeconds", "DurationInSeconds");
  9126. tableMapping.ColumnMappings.Add("Description", "Description");
  9127. tableMapping.ColumnMappings.Add("Discount", "Discount");
  9128. tableMapping.ColumnMappings.Add("MainImagePath", "MainImagePath");
  9129. this._adapter.TableMappings.Add(tableMapping);
  9130. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9131. this._adapter.DeleteCommand.Connection = this.Connection;
  9132. 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)))";
  9133. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9134. 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, "", "", ""));
  9135. 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, "", "", ""));
  9136. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Cost", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cost", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9137. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DurationInSeconds", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DurationInSeconds", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9138. 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, "", "", ""));
  9139. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Discount", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Discount", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9140. 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, "", "", ""));
  9141. 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, "", "", ""));
  9142. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9143. this._adapter.InsertCommand.Connection = this.Connection;
  9144. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Service] ([Title], [Cost], [DurationInSeconds], [Description], [Discount], [MainImagePath]) VALUES (@Title, @Cost, @DurationInSeconds, @Description, @Discount, @MainImagePath);
  9145. SELECT ID, Title, Cost, DurationInSeconds, Description, Discount, MainImagePath FROM Service WHERE (ID = SCOPE_IDENTITY())";
  9146. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9147. 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, "", "", ""));
  9148. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cost", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cost", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9149. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DurationInSeconds", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DurationInSeconds", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9150. 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, "", "", ""));
  9151. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Discount", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Discount", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9152. 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, "", "", ""));
  9153. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9154. this._adapter.UpdateCommand.Connection = this.Connection;
  9155. 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)));
  9156. SELECT ID, Title, Cost, DurationInSeconds, Description, Discount, MainImagePath FROM Service WHERE (ID = @ID)";
  9157. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9158. 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, "", "", ""));
  9159. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cost", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cost", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9160. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DurationInSeconds", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DurationInSeconds", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9161. 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, "", "", ""));
  9162. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Discount", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Discount", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9163. 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, "", "", ""));
  9164. 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, "", "", ""));
  9165. 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, "", "", ""));
  9166. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Cost", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cost", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9167. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DurationInSeconds", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DurationInSeconds", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9168. 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, "", "", ""));
  9169. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Discount", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Discount", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9170. 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, "", "", ""));
  9171. 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, "", "", ""));
  9172. 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, "", "", ""));
  9173. }
  9174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9175. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9176. private void InitConnection() {
  9177. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9178. this._connection.ConnectionString = global::DB_Danilov_V1.Properties.Settings.Default.DB_Danilov_V2ConnectionString;
  9179. }
  9180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9181. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9182. private void InitCommandCollection() {
  9183. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9184. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9185. this._commandCollection[0].Connection = this.Connection;
  9186. this._commandCollection[0].CommandText = "SELECT ID, Title, Cost, DurationInSeconds, Description, Discount, MainImagePath F" +
  9187. "ROM dbo.Service";
  9188. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9189. }
  9190. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9191. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9192. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9193. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9194. public virtual int Fill(DB_Danilov_V2DataSet1.ServiceDataTable dataTable) {
  9195. this.Adapter.SelectCommand = this.CommandCollection[0];
  9196. if ((this.ClearBeforeFill == true)) {
  9197. dataTable.Clear();
  9198. }
  9199. int returnValue = this.Adapter.Fill(dataTable);
  9200. return returnValue;
  9201. }
  9202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9204. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9205. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9206. public virtual DB_Danilov_V2DataSet1.ServiceDataTable GetData() {
  9207. this.Adapter.SelectCommand = this.CommandCollection[0];
  9208. DB_Danilov_V2DataSet1.ServiceDataTable dataTable = new DB_Danilov_V2DataSet1.ServiceDataTable();
  9209. this.Adapter.Fill(dataTable);
  9210. return dataTable;
  9211. }
  9212. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9213. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9214. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9215. public virtual int Update(DB_Danilov_V2DataSet1.ServiceDataTable dataTable) {
  9216. return this.Adapter.Update(dataTable);
  9217. }
  9218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9219. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9220. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9221. public virtual int Update(DB_Danilov_V2DataSet1 dataSet) {
  9222. return this.Adapter.Update(dataSet, "Service");
  9223. }
  9224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9225. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9226. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9227. public virtual int Update(global::System.Data.DataRow dataRow) {
  9228. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9229. dataRow});
  9230. }
  9231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9233. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9234. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9235. return this.Adapter.Update(dataRows);
  9236. }
  9237. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9238. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9239. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9240. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9241. public virtual int Delete(int Original_ID, string Original_Title, string Original_Cost, string Original_DurationInSeconds, string Original_Discount, string Original_MainImagePath) {
  9242. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  9243. if ((Original_Title == null)) {
  9244. throw new global::System.ArgumentNullException("Original_Title");
  9245. }
  9246. else {
  9247. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Title));
  9248. }
  9249. if ((Original_Cost == null)) {
  9250. throw new global::System.ArgumentNullException("Original_Cost");
  9251. }
  9252. else {
  9253. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Cost));
  9254. }
  9255. if ((Original_DurationInSeconds == null)) {
  9256. throw new global::System.ArgumentNullException("Original_DurationInSeconds");
  9257. }
  9258. else {
  9259. this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_DurationInSeconds));
  9260. }
  9261. if ((Original_Discount == null)) {
  9262. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
  9263. this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
  9264. }
  9265. else {
  9266. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
  9267. this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_Discount));
  9268. }
  9269. if ((Original_MainImagePath == null)) {
  9270. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1));
  9271. this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value;
  9272. }
  9273. else {
  9274. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0));
  9275. this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_MainImagePath));
  9276. }
  9277. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9278. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9279. != global::System.Data.ConnectionState.Open)) {
  9280. this.Adapter.DeleteCommand.Connection.Open();
  9281. }
  9282. try {
  9283. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9284. return returnValue;
  9285. }
  9286. finally {
  9287. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9288. this.Adapter.DeleteCommand.Connection.Close();
  9289. }
  9290. }
  9291. }
  9292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9293. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9294. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9295. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9296. public virtual int Insert(string Title, string Cost, string DurationInSeconds, string Description, string Discount, string MainImagePath) {
  9297. if ((Title == null)) {
  9298. throw new global::System.ArgumentNullException("Title");
  9299. }
  9300. else {
  9301. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  9302. }
  9303. if ((Cost == null)) {
  9304. throw new global::System.ArgumentNullException("Cost");
  9305. }
  9306. else {
  9307. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Cost));
  9308. }
  9309. if ((DurationInSeconds == null)) {
  9310. throw new global::System.ArgumentNullException("DurationInSeconds");
  9311. }
  9312. else {
  9313. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(DurationInSeconds));
  9314. }
  9315. if ((Description == null)) {
  9316. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  9317. }
  9318. else {
  9319. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Description));
  9320. }
  9321. if ((Discount == null)) {
  9322. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  9323. }
  9324. else {
  9325. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Discount));
  9326. }
  9327. if ((MainImagePath == null)) {
  9328. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  9329. }
  9330. else {
  9331. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(MainImagePath));
  9332. }
  9333. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9334. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9335. != global::System.Data.ConnectionState.Open)) {
  9336. this.Adapter.InsertCommand.Connection.Open();
  9337. }
  9338. try {
  9339. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9340. return returnValue;
  9341. }
  9342. finally {
  9343. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9344. this.Adapter.InsertCommand.Connection.Close();
  9345. }
  9346. }
  9347. }
  9348. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9349. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9350. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9351. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9352. public virtual int Update(string Title, string Cost, string DurationInSeconds, string Description, string Discount, string MainImagePath, int Original_ID, string Original_Title, string Original_Cost, string Original_DurationInSeconds, string Original_Discount, string Original_MainImagePath, int ID) {
  9353. if ((Title == null)) {
  9354. throw new global::System.ArgumentNullException("Title");
  9355. }
  9356. else {
  9357. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  9358. }
  9359. if ((Cost == null)) {
  9360. throw new global::System.ArgumentNullException("Cost");
  9361. }
  9362. else {
  9363. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Cost));
  9364. }
  9365. if ((DurationInSeconds == null)) {
  9366. throw new global::System.ArgumentNullException("DurationInSeconds");
  9367. }
  9368. else {
  9369. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(DurationInSeconds));
  9370. }
  9371. if ((Description == null)) {
  9372. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  9373. }
  9374. else {
  9375. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Description));
  9376. }
  9377. if ((Discount == null)) {
  9378. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  9379. }
  9380. else {
  9381. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Discount));
  9382. }
  9383. if ((MainImagePath == null)) {
  9384. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  9385. }
  9386. else {
  9387. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(MainImagePath));
  9388. }
  9389. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ID));
  9390. if ((Original_Title == null)) {
  9391. throw new global::System.ArgumentNullException("Original_Title");
  9392. }
  9393. else {
  9394. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Title));
  9395. }
  9396. if ((Original_Cost == null)) {
  9397. throw new global::System.ArgumentNullException("Original_Cost");
  9398. }
  9399. else {
  9400. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_Cost));
  9401. }
  9402. if ((Original_DurationInSeconds == null)) {
  9403. throw new global::System.ArgumentNullException("Original_DurationInSeconds");
  9404. }
  9405. else {
  9406. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_DurationInSeconds));
  9407. }
  9408. if ((Original_Discount == null)) {
  9409. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  9410. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  9411. }
  9412. else {
  9413. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  9414. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_Discount));
  9415. }
  9416. if ((Original_MainImagePath == null)) {
  9417. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  9418. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  9419. }
  9420. else {
  9421. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  9422. this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_MainImagePath));
  9423. }
  9424. this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(ID));
  9425. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9426. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9427. != global::System.Data.ConnectionState.Open)) {
  9428. this.Adapter.UpdateCommand.Connection.Open();
  9429. }
  9430. try {
  9431. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9432. return returnValue;
  9433. }
  9434. finally {
  9435. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9436. this.Adapter.UpdateCommand.Connection.Close();
  9437. }
  9438. }
  9439. }
  9440. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9441. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9442. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9443. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9444. public virtual int Update(string Title, string Cost, string DurationInSeconds, string Description, string Discount, string MainImagePath, int Original_ID, string Original_Title, string Original_Cost, string Original_DurationInSeconds, string Original_Discount, string Original_MainImagePath) {
  9445. return this.Update(Title, Cost, DurationInSeconds, Description, Discount, MainImagePath, Original_ID, Original_Title, Original_Cost, Original_DurationInSeconds, Original_Discount, Original_MainImagePath, Original_ID);
  9446. }
  9447. }
  9448. /// <summary>
  9449. ///Represents the connection and commands used to retrieve and save data.
  9450. ///</summary>
  9451. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9452. [global::System.ComponentModel.ToolboxItem(true)]
  9453. [global::System.ComponentModel.DataObjectAttribute(true)]
  9454. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9455. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9456. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9457. public partial class ServicePhotoTableAdapter : global::System.ComponentModel.Component {
  9458. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9459. private global::System.Data.SqlClient.SqlConnection _connection;
  9460. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9461. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9462. private bool _clearBeforeFill;
  9463. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9464. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9465. public ServicePhotoTableAdapter() {
  9466. this.ClearBeforeFill = true;
  9467. }
  9468. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9469. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9470. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9471. get {
  9472. if ((this._adapter == null)) {
  9473. this.InitAdapter();
  9474. }
  9475. return this._adapter;
  9476. }
  9477. }
  9478. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9479. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9480. internal global::System.Data.SqlClient.SqlConnection Connection {
  9481. get {
  9482. if ((this._connection == null)) {
  9483. this.InitConnection();
  9484. }
  9485. return this._connection;
  9486. }
  9487. set {
  9488. this._connection = value;
  9489. if ((this.Adapter.InsertCommand != null)) {
  9490. this.Adapter.InsertCommand.Connection = value;
  9491. }
  9492. if ((this.Adapter.DeleteCommand != null)) {
  9493. this.Adapter.DeleteCommand.Connection = value;
  9494. }
  9495. if ((this.Adapter.UpdateCommand != null)) {
  9496. this.Adapter.UpdateCommand.Connection = value;
  9497. }
  9498. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9499. if ((this.CommandCollection[i] != null)) {
  9500. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9501. }
  9502. }
  9503. }
  9504. }
  9505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9507. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9508. get {
  9509. return this._transaction;
  9510. }
  9511. set {
  9512. this._transaction = value;
  9513. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9514. this.CommandCollection[i].Transaction = this._transaction;
  9515. }
  9516. if (((this.Adapter != null)
  9517. && (this.Adapter.DeleteCommand != null))) {
  9518. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9519. }
  9520. if (((this.Adapter != null)
  9521. && (this.Adapter.InsertCommand != null))) {
  9522. this.Adapter.InsertCommand.Transaction = this._transaction;
  9523. }
  9524. if (((this.Adapter != null)
  9525. && (this.Adapter.UpdateCommand != null))) {
  9526. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9527. }
  9528. }
  9529. }
  9530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9532. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9533. get {
  9534. if ((this._commandCollection == null)) {
  9535. this.InitCommandCollection();
  9536. }
  9537. return this._commandCollection;
  9538. }
  9539. }
  9540. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9541. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9542. public bool ClearBeforeFill {
  9543. get {
  9544. return this._clearBeforeFill;
  9545. }
  9546. set {
  9547. this._clearBeforeFill = value;
  9548. }
  9549. }
  9550. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9551. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9552. private void InitAdapter() {
  9553. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9554. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9555. tableMapping.SourceTable = "Table";
  9556. tableMapping.DataSetTable = "ServicePhoto";
  9557. tableMapping.ColumnMappings.Add("ID", "ID");
  9558. tableMapping.ColumnMappings.Add("ServiceID", "ServiceID");
  9559. tableMapping.ColumnMappings.Add("PhotoPath", "PhotoPath");
  9560. this._adapter.TableMappings.Add(tableMapping);
  9561. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9562. this._adapter.DeleteCommand.Connection = this.Connection;
  9563. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ServicePhoto] WHERE (([ID] = @Original_ID) AND ([ServiceID] = " +
  9564. "@Original_ServiceID) AND ([PhotoPath] = @Original_PhotoPath))";
  9565. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9566. 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, "", "", ""));
  9567. 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, "", "", ""));
  9568. 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, "", "", ""));
  9569. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9570. this._adapter.InsertCommand.Connection = this.Connection;
  9571. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ServicePhoto] ([ServiceID], [PhotoPath]) VALUES (@ServiceID, @" +
  9572. "PhotoPath);\r\nSELECT ID, ServiceID, PhotoPath FROM ServicePhoto WHERE (ID = SCOPE" +
  9573. "_IDENTITY())";
  9574. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9575. 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, "", "", ""));
  9576. 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, "", "", ""));
  9577. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9578. this._adapter.UpdateCommand.Connection = this.Connection;
  9579. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ServicePhoto] SET [ServiceID] = @ServiceID, [PhotoPath] = @PhotoPath WHERE (([ID] = @Original_ID) AND ([ServiceID] = @Original_ServiceID) AND ([PhotoPath] = @Original_PhotoPath));
  9580. SELECT ID, ServiceID, PhotoPath FROM ServicePhoto WHERE (ID = @ID)";
  9581. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9582. 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, "", "", ""));
  9583. 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, "", "", ""));
  9584. 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, "", "", ""));
  9585. 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, "", "", ""));
  9586. 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, "", "", ""));
  9587. 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, "", "", ""));
  9588. }
  9589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9590. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9591. private void InitConnection() {
  9592. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9593. this._connection.ConnectionString = global::DB_Danilov_V1.Properties.Settings.Default.DB_Danilov_V2ConnectionString;
  9594. }
  9595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9596. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9597. private void InitCommandCollection() {
  9598. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9599. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9600. this._commandCollection[0].Connection = this.Connection;
  9601. this._commandCollection[0].CommandText = "SELECT ID, ServiceID, PhotoPath FROM dbo.ServicePhoto";
  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(DB_Danilov_V2DataSet1.ServicePhotoDataTable 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 DB_Danilov_V2DataSet1.ServicePhotoDataTable GetData() {
  9621. this.Adapter.SelectCommand = this.CommandCollection[0];
  9622. DB_Danilov_V2DataSet1.ServicePhotoDataTable dataTable = new DB_Danilov_V2DataSet1.ServicePhotoDataTable();
  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(DB_Danilov_V2DataSet1.ServicePhotoDataTable 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(DB_Danilov_V2DataSet1 dataSet) {
  9636. return this.Adapter.Update(dataSet, "ServicePhoto");
  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(int Original_ID, int Original_ServiceID, string Original_PhotoPath) {
  9656. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  9657. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ServiceID));
  9658. if ((Original_PhotoPath == null)) {
  9659. throw new global::System.ArgumentNullException("Original_PhotoPath");
  9660. }
  9661. else {
  9662. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_PhotoPath));
  9663. }
  9664. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9665. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9666. != global::System.Data.ConnectionState.Open)) {
  9667. this.Adapter.DeleteCommand.Connection.Open();
  9668. }
  9669. try {
  9670. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9671. return returnValue;
  9672. }
  9673. finally {
  9674. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9675. this.Adapter.DeleteCommand.Connection.Close();
  9676. }
  9677. }
  9678. }
  9679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9680. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9681. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9682. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9683. public virtual int Insert(int ServiceID, string PhotoPath) {
  9684. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ServiceID));
  9685. if ((PhotoPath == null)) {
  9686. throw new global::System.ArgumentNullException("PhotoPath");
  9687. }
  9688. else {
  9689. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(PhotoPath));
  9690. }
  9691. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9692. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9693. != global::System.Data.ConnectionState.Open)) {
  9694. this.Adapter.InsertCommand.Connection.Open();
  9695. }
  9696. try {
  9697. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9698. return returnValue;
  9699. }
  9700. finally {
  9701. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9702. this.Adapter.InsertCommand.Connection.Close();
  9703. }
  9704. }
  9705. }
  9706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9708. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9709. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9710. public virtual int Update(int ServiceID, string PhotoPath, int Original_ID, int Original_ServiceID, string Original_PhotoPath, int ID) {
  9711. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ServiceID));
  9712. if ((PhotoPath == null)) {
  9713. throw new global::System.ArgumentNullException("PhotoPath");
  9714. }
  9715. else {
  9716. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(PhotoPath));
  9717. }
  9718. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  9719. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ServiceID));
  9720. if ((Original_PhotoPath == null)) {
  9721. throw new global::System.ArgumentNullException("Original_PhotoPath");
  9722. }
  9723. else {
  9724. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_PhotoPath));
  9725. }
  9726. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID));
  9727. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9728. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9729. != global::System.Data.ConnectionState.Open)) {
  9730. this.Adapter.UpdateCommand.Connection.Open();
  9731. }
  9732. try {
  9733. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9734. return returnValue;
  9735. }
  9736. finally {
  9737. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9738. this.Adapter.UpdateCommand.Connection.Close();
  9739. }
  9740. }
  9741. }
  9742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9743. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9744. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9745. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9746. public virtual int Update(int ServiceID, string PhotoPath, int Original_ID, int Original_ServiceID, string Original_PhotoPath) {
  9747. return this.Update(ServiceID, PhotoPath, Original_ID, Original_ServiceID, Original_PhotoPath, Original_ID);
  9748. }
  9749. }
  9750. /// <summary>
  9751. ///Represents the connection and commands used to retrieve and save data.
  9752. ///</summary>
  9753. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9754. [global::System.ComponentModel.ToolboxItem(true)]
  9755. [global::System.ComponentModel.DataObjectAttribute(true)]
  9756. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9757. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9758. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9759. public partial class TagTableAdapter : global::System.ComponentModel.Component {
  9760. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9761. private global::System.Data.SqlClient.SqlConnection _connection;
  9762. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9763. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9764. private bool _clearBeforeFill;
  9765. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9766. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9767. public TagTableAdapter() {
  9768. this.ClearBeforeFill = true;
  9769. }
  9770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9771. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9772. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9773. get {
  9774. if ((this._adapter == null)) {
  9775. this.InitAdapter();
  9776. }
  9777. return this._adapter;
  9778. }
  9779. }
  9780. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9781. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9782. internal global::System.Data.SqlClient.SqlConnection Connection {
  9783. get {
  9784. if ((this._connection == null)) {
  9785. this.InitConnection();
  9786. }
  9787. return this._connection;
  9788. }
  9789. set {
  9790. this._connection = value;
  9791. if ((this.Adapter.InsertCommand != null)) {
  9792. this.Adapter.InsertCommand.Connection = value;
  9793. }
  9794. if ((this.Adapter.DeleteCommand != null)) {
  9795. this.Adapter.DeleteCommand.Connection = value;
  9796. }
  9797. if ((this.Adapter.UpdateCommand != null)) {
  9798. this.Adapter.UpdateCommand.Connection = value;
  9799. }
  9800. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9801. if ((this.CommandCollection[i] != null)) {
  9802. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9803. }
  9804. }
  9805. }
  9806. }
  9807. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9808. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9809. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9810. get {
  9811. return this._transaction;
  9812. }
  9813. set {
  9814. this._transaction = value;
  9815. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9816. this.CommandCollection[i].Transaction = this._transaction;
  9817. }
  9818. if (((this.Adapter != null)
  9819. && (this.Adapter.DeleteCommand != null))) {
  9820. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9821. }
  9822. if (((this.Adapter != null)
  9823. && (this.Adapter.InsertCommand != null))) {
  9824. this.Adapter.InsertCommand.Transaction = this._transaction;
  9825. }
  9826. if (((this.Adapter != null)
  9827. && (this.Adapter.UpdateCommand != null))) {
  9828. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9829. }
  9830. }
  9831. }
  9832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9833. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9834. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9835. get {
  9836. if ((this._commandCollection == null)) {
  9837. this.InitCommandCollection();
  9838. }
  9839. return this._commandCollection;
  9840. }
  9841. }
  9842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9844. public bool ClearBeforeFill {
  9845. get {
  9846. return this._clearBeforeFill;
  9847. }
  9848. set {
  9849. this._clearBeforeFill = value;
  9850. }
  9851. }
  9852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9853. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9854. private void InitAdapter() {
  9855. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9856. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9857. tableMapping.SourceTable = "Table";
  9858. tableMapping.DataSetTable = "Tag";
  9859. tableMapping.ColumnMappings.Add("ID", "ID");
  9860. tableMapping.ColumnMappings.Add("Title", "Title");
  9861. tableMapping.ColumnMappings.Add("Color", "Color");
  9862. this._adapter.TableMappings.Add(tableMapping);
  9863. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9864. this._adapter.DeleteCommand.Connection = this.Connection;
  9865. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Tag] WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Tit" +
  9866. "le) AND ([Color] = @Original_Color))";
  9867. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9868. 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, "", "", ""));
  9869. 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, "", "", ""));
  9870. 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, "", "", ""));
  9871. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9872. this._adapter.InsertCommand.Connection = this.Connection;
  9873. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Tag] ([Title], [Color]) VALUES (@Title, @Color);\r\nSELECT ID, T" +
  9874. "itle, Color FROM Tag WHERE (ID = SCOPE_IDENTITY())";
  9875. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9876. 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, "", "", ""));
  9877. 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, "", "", ""));
  9878. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9879. this._adapter.UpdateCommand.Connection = this.Connection;
  9880. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Tag] SET [Title] = @Title, [Color] = @Color WHERE (([ID] = @Origina" +
  9881. "l_ID) AND ([Title] = @Original_Title) AND ([Color] = @Original_Color));\r\nSELECT " +
  9882. "ID, Title, Color FROM Tag WHERE (ID = @ID)";
  9883. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9884. 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, "", "", ""));
  9885. 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, "", "", ""));
  9886. 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, "", "", ""));
  9887. 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, "", "", ""));
  9888. 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, "", "", ""));
  9889. 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, "", "", ""));
  9890. }
  9891. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9892. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9893. private void InitConnection() {
  9894. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9895. this._connection.ConnectionString = global::DB_Danilov_V1.Properties.Settings.Default.DB_Danilov_V2ConnectionString;
  9896. }
  9897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9898. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9899. private void InitCommandCollection() {
  9900. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9901. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9902. this._commandCollection[0].Connection = this.Connection;
  9903. this._commandCollection[0].CommandText = "SELECT ID, Title, Color FROM dbo.Tag";
  9904. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9905. }
  9906. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9907. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9908. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9909. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9910. public virtual int Fill(DB_Danilov_V2DataSet1.TagDataTable dataTable) {
  9911. this.Adapter.SelectCommand = this.CommandCollection[0];
  9912. if ((this.ClearBeforeFill == true)) {
  9913. dataTable.Clear();
  9914. }
  9915. int returnValue = this.Adapter.Fill(dataTable);
  9916. return returnValue;
  9917. }
  9918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9919. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9920. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9921. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9922. public virtual DB_Danilov_V2DataSet1.TagDataTable GetData() {
  9923. this.Adapter.SelectCommand = this.CommandCollection[0];
  9924. DB_Danilov_V2DataSet1.TagDataTable dataTable = new DB_Danilov_V2DataSet1.TagDataTable();
  9925. this.Adapter.Fill(dataTable);
  9926. return dataTable;
  9927. }
  9928. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9929. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9930. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9931. public virtual int Update(DB_Danilov_V2DataSet1.TagDataTable dataTable) {
  9932. return this.Adapter.Update(dataTable);
  9933. }
  9934. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9935. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9936. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9937. public virtual int Update(DB_Danilov_V2DataSet1 dataSet) {
  9938. return this.Adapter.Update(dataSet, "Tag");
  9939. }
  9940. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9941. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9942. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9943. public virtual int Update(global::System.Data.DataRow dataRow) {
  9944. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9945. dataRow});
  9946. }
  9947. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9948. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9949. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9950. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9951. return this.Adapter.Update(dataRows);
  9952. }
  9953. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9954. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9955. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9956. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9957. public virtual int Delete(int Original_ID, string Original_Title, string Original_Color) {
  9958. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  9959. if ((Original_Title == null)) {
  9960. throw new global::System.ArgumentNullException("Original_Title");
  9961. }
  9962. else {
  9963. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Title));
  9964. }
  9965. if ((Original_Color == null)) {
  9966. throw new global::System.ArgumentNullException("Original_Color");
  9967. }
  9968. else {
  9969. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Color));
  9970. }
  9971. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9972. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9973. != global::System.Data.ConnectionState.Open)) {
  9974. this.Adapter.DeleteCommand.Connection.Open();
  9975. }
  9976. try {
  9977. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9978. return returnValue;
  9979. }
  9980. finally {
  9981. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9982. this.Adapter.DeleteCommand.Connection.Close();
  9983. }
  9984. }
  9985. }
  9986. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9987. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9988. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9989. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9990. public virtual int Insert(string Title, string Color) {
  9991. if ((Title == null)) {
  9992. throw new global::System.ArgumentNullException("Title");
  9993. }
  9994. else {
  9995. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  9996. }
  9997. if ((Color == null)) {
  9998. throw new global::System.ArgumentNullException("Color");
  9999. }
  10000. else {
  10001. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Color));
  10002. }
  10003. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  10004. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10005. != global::System.Data.ConnectionState.Open)) {
  10006. this.Adapter.InsertCommand.Connection.Open();
  10007. }
  10008. try {
  10009. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  10010. return returnValue;
  10011. }
  10012. finally {
  10013. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10014. this.Adapter.InsertCommand.Connection.Close();
  10015. }
  10016. }
  10017. }
  10018. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10019. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10020. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10021. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10022. public virtual int Update(string Title, string Color, int Original_ID, string Original_Title, string Original_Color, int ID) {
  10023. if ((Title == null)) {
  10024. throw new global::System.ArgumentNullException("Title");
  10025. }
  10026. else {
  10027. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  10028. }
  10029. if ((Color == null)) {
  10030. throw new global::System.ArgumentNullException("Color");
  10031. }
  10032. else {
  10033. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Color));
  10034. }
  10035. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  10036. if ((Original_Title == null)) {
  10037. throw new global::System.ArgumentNullException("Original_Title");
  10038. }
  10039. else {
  10040. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Title));
  10041. }
  10042. if ((Original_Color == null)) {
  10043. throw new global::System.ArgumentNullException("Original_Color");
  10044. }
  10045. else {
  10046. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Color));
  10047. }
  10048. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID));
  10049. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  10050. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10051. != global::System.Data.ConnectionState.Open)) {
  10052. this.Adapter.UpdateCommand.Connection.Open();
  10053. }
  10054. try {
  10055. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  10056. return returnValue;
  10057. }
  10058. finally {
  10059. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10060. this.Adapter.UpdateCommand.Connection.Close();
  10061. }
  10062. }
  10063. }
  10064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10065. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10066. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10067. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10068. public virtual int Update(string Title, string Color, int Original_ID, string Original_Title, string Original_Color) {
  10069. return this.Update(Title, Color, Original_ID, Original_Title, Original_Color, Original_ID);
  10070. }
  10071. }
  10072. /// <summary>
  10073. ///Represents the connection and commands used to retrieve and save data.
  10074. ///</summary>
  10075. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10076. [global::System.ComponentModel.ToolboxItem(true)]
  10077. [global::System.ComponentModel.DataObjectAttribute(true)]
  10078. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  10079. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10080. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10081. public partial class TagOfClientTableAdapter : global::System.ComponentModel.Component {
  10082. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  10083. private global::System.Data.SqlClient.SqlConnection _connection;
  10084. private global::System.Data.SqlClient.SqlTransaction _transaction;
  10085. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  10086. private bool _clearBeforeFill;
  10087. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10088. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10089. public TagOfClientTableAdapter() {
  10090. this.ClearBeforeFill = true;
  10091. }
  10092. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10093. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10094. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  10095. get {
  10096. if ((this._adapter == null)) {
  10097. this.InitAdapter();
  10098. }
  10099. return this._adapter;
  10100. }
  10101. }
  10102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10103. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10104. internal global::System.Data.SqlClient.SqlConnection Connection {
  10105. get {
  10106. if ((this._connection == null)) {
  10107. this.InitConnection();
  10108. }
  10109. return this._connection;
  10110. }
  10111. set {
  10112. this._connection = value;
  10113. if ((this.Adapter.InsertCommand != null)) {
  10114. this.Adapter.InsertCommand.Connection = value;
  10115. }
  10116. if ((this.Adapter.DeleteCommand != null)) {
  10117. this.Adapter.DeleteCommand.Connection = value;
  10118. }
  10119. if ((this.Adapter.UpdateCommand != null)) {
  10120. this.Adapter.UpdateCommand.Connection = value;
  10121. }
  10122. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10123. if ((this.CommandCollection[i] != null)) {
  10124. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  10125. }
  10126. }
  10127. }
  10128. }
  10129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10131. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  10132. get {
  10133. return this._transaction;
  10134. }
  10135. set {
  10136. this._transaction = value;
  10137. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10138. this.CommandCollection[i].Transaction = this._transaction;
  10139. }
  10140. if (((this.Adapter != null)
  10141. && (this.Adapter.DeleteCommand != null))) {
  10142. this.Adapter.DeleteCommand.Transaction = this._transaction;
  10143. }
  10144. if (((this.Adapter != null)
  10145. && (this.Adapter.InsertCommand != null))) {
  10146. this.Adapter.InsertCommand.Transaction = this._transaction;
  10147. }
  10148. if (((this.Adapter != null)
  10149. && (this.Adapter.UpdateCommand != null))) {
  10150. this.Adapter.UpdateCommand.Transaction = this._transaction;
  10151. }
  10152. }
  10153. }
  10154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10155. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10156. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  10157. get {
  10158. if ((this._commandCollection == null)) {
  10159. this.InitCommandCollection();
  10160. }
  10161. return this._commandCollection;
  10162. }
  10163. }
  10164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10165. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10166. public bool ClearBeforeFill {
  10167. get {
  10168. return this._clearBeforeFill;
  10169. }
  10170. set {
  10171. this._clearBeforeFill = value;
  10172. }
  10173. }
  10174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10175. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10176. private void InitAdapter() {
  10177. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  10178. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  10179. tableMapping.SourceTable = "Table";
  10180. tableMapping.DataSetTable = "TagOfClient";
  10181. tableMapping.ColumnMappings.Add("ClientID", "ClientID");
  10182. tableMapping.ColumnMappings.Add("TagID", "TagID");
  10183. this._adapter.TableMappings.Add(tableMapping);
  10184. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  10185. this._adapter.DeleteCommand.Connection = this.Connection;
  10186. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[TagOfClient] WHERE (([ClientID] = @Original_ClientID) AND ([Ta" +
  10187. "gID] = @Original_TagID))";
  10188. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  10189. 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, "", "", ""));
  10190. 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, "", "", ""));
  10191. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  10192. this._adapter.InsertCommand.Connection = this.Connection;
  10193. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[TagOfClient] ([ClientID], [TagID]) VALUES (@ClientID, @TagID);" +
  10194. "\r\nSELECT ClientID, TagID FROM TagOfClient WHERE (ClientID = @ClientID) AND (TagI" +
  10195. "D = @TagID)";
  10196. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  10197. 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, "", "", ""));
  10198. 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, "", "", ""));
  10199. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  10200. this._adapter.UpdateCommand.Connection = this.Connection;
  10201. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[TagOfClient] SET [ClientID] = @ClientID, [TagID] = @TagID WHERE (([" +
  10202. "ClientID] = @Original_ClientID) AND ([TagID] = @Original_TagID));\r\nSELECT Client" +
  10203. "ID, TagID FROM TagOfClient WHERE (ClientID = @ClientID) AND (TagID = @TagID)";
  10204. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  10205. 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, "", "", ""));
  10206. 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, "", "", ""));
  10207. 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, "", "", ""));
  10208. 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, "", "", ""));
  10209. }
  10210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10212. private void InitConnection() {
  10213. this._connection = new global::System.Data.SqlClient.SqlConnection();
  10214. this._connection.ConnectionString = global::DB_Danilov_V1.Properties.Settings.Default.DB_Danilov_V2ConnectionString;
  10215. }
  10216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10218. private void InitCommandCollection() {
  10219. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  10220. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  10221. this._commandCollection[0].Connection = this.Connection;
  10222. this._commandCollection[0].CommandText = "SELECT ClientID, TagID FROM dbo.TagOfClient";
  10223. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  10224. }
  10225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10227. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10228. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  10229. public virtual int Fill(DB_Danilov_V2DataSet1.TagOfClientDataTable dataTable) {
  10230. this.Adapter.SelectCommand = this.CommandCollection[0];
  10231. if ((this.ClearBeforeFill == true)) {
  10232. dataTable.Clear();
  10233. }
  10234. int returnValue = this.Adapter.Fill(dataTable);
  10235. return returnValue;
  10236. }
  10237. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10238. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10239. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10240. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  10241. public virtual DB_Danilov_V2DataSet1.TagOfClientDataTable GetData() {
  10242. this.Adapter.SelectCommand = this.CommandCollection[0];
  10243. DB_Danilov_V2DataSet1.TagOfClientDataTable dataTable = new DB_Danilov_V2DataSet1.TagOfClientDataTable();
  10244. this.Adapter.Fill(dataTable);
  10245. return dataTable;
  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. public virtual int Update(DB_Danilov_V2DataSet1.TagOfClientDataTable dataTable) {
  10251. return this.Adapter.Update(dataTable);
  10252. }
  10253. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10254. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10255. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10256. public virtual int Update(DB_Danilov_V2DataSet1 dataSet) {
  10257. return this.Adapter.Update(dataSet, "TagOfClient");
  10258. }
  10259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10260. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10261. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10262. public virtual int Update(global::System.Data.DataRow dataRow) {
  10263. return this.Adapter.Update(new global::System.Data.DataRow[] {
  10264. dataRow});
  10265. }
  10266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10268. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10269. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  10270. return this.Adapter.Update(dataRows);
  10271. }
  10272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10274. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10275. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  10276. public virtual int Delete(int Original_ClientID, int Original_TagID) {
  10277. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ClientID));
  10278. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_TagID));
  10279. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  10280. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10281. != global::System.Data.ConnectionState.Open)) {
  10282. this.Adapter.DeleteCommand.Connection.Open();
  10283. }
  10284. try {
  10285. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  10286. return returnValue;
  10287. }
  10288. finally {
  10289. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10290. this.Adapter.DeleteCommand.Connection.Close();
  10291. }
  10292. }
  10293. }
  10294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10296. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10297. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  10298. public virtual int Insert(int ClientID, int TagID) {
  10299. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ClientID));
  10300. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(TagID));
  10301. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  10302. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10303. != global::System.Data.ConnectionState.Open)) {
  10304. this.Adapter.InsertCommand.Connection.Open();
  10305. }
  10306. try {
  10307. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  10308. return returnValue;
  10309. }
  10310. finally {
  10311. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10312. this.Adapter.InsertCommand.Connection.Close();
  10313. }
  10314. }
  10315. }
  10316. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10317. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10318. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10319. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10320. public virtual int Update(int ClientID, int TagID, int Original_ClientID, int Original_TagID) {
  10321. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ClientID));
  10322. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(TagID));
  10323. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ClientID));
  10324. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_TagID));
  10325. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  10326. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10327. != global::System.Data.ConnectionState.Open)) {
  10328. this.Adapter.UpdateCommand.Connection.Open();
  10329. }
  10330. try {
  10331. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  10332. return returnValue;
  10333. }
  10334. finally {
  10335. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10336. this.Adapter.UpdateCommand.Connection.Close();
  10337. }
  10338. }
  10339. }
  10340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10341. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10342. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10343. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10344. public virtual int Update(int Original_ClientID, int Original_TagID) {
  10345. return this.Update(Original_ClientID, Original_TagID, Original_ClientID, Original_TagID);
  10346. }
  10347. }
  10348. /// <summary>
  10349. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  10350. ///</summary>
  10351. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10352. [global::System.ComponentModel.ToolboxItem(true)]
  10353. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  10354. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10355. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  10356. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  10357. private UpdateOrderOption _updateOrder;
  10358. private AttachedProductTableAdapter _attachedProductTableAdapter;
  10359. private ClientTableAdapter _clientTableAdapter;
  10360. private ClientServiceTableAdapter _clientServiceTableAdapter;
  10361. private DocumentByServiceTableAdapter _documentByServiceTableAdapter;
  10362. private GenderTableAdapter _genderTableAdapter;
  10363. private ManufacturerTableAdapter _manufacturerTableAdapter;
  10364. private ProductTableAdapter _productTableAdapter;
  10365. private ProductPhotoTableAdapter _productPhotoTableAdapter;
  10366. private ProductSaleTableAdapter _productSaleTableAdapter;
  10367. private ServiceTableAdapter _serviceTableAdapter;
  10368. private ServicePhotoTableAdapter _servicePhotoTableAdapter;
  10369. private TagTableAdapter _tagTableAdapter;
  10370. private TagOfClientTableAdapter _tagOfClientTableAdapter;
  10371. private bool _backupDataSetBeforeUpdate;
  10372. private global::System.Data.IDbConnection _connection;
  10373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10374. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10375. public UpdateOrderOption UpdateOrder {
  10376. get {
  10377. return this._updateOrder;
  10378. }
  10379. set {
  10380. this._updateOrder = value;
  10381. }
  10382. }
  10383. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10384. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10385. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10386. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10387. "a", "System.Drawing.Design.UITypeEditor")]
  10388. public AttachedProductTableAdapter AttachedProductTableAdapter {
  10389. get {
  10390. return this._attachedProductTableAdapter;
  10391. }
  10392. set {
  10393. this._attachedProductTableAdapter = value;
  10394. }
  10395. }
  10396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10398. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10399. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10400. "a", "System.Drawing.Design.UITypeEditor")]
  10401. public ClientTableAdapter ClientTableAdapter {
  10402. get {
  10403. return this._clientTableAdapter;
  10404. }
  10405. set {
  10406. this._clientTableAdapter = value;
  10407. }
  10408. }
  10409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10411. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10412. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10413. "a", "System.Drawing.Design.UITypeEditor")]
  10414. public ClientServiceTableAdapter ClientServiceTableAdapter {
  10415. get {
  10416. return this._clientServiceTableAdapter;
  10417. }
  10418. set {
  10419. this._clientServiceTableAdapter = value;
  10420. }
  10421. }
  10422. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10423. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10424. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10425. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10426. "a", "System.Drawing.Design.UITypeEditor")]
  10427. public DocumentByServiceTableAdapter DocumentByServiceTableAdapter {
  10428. get {
  10429. return this._documentByServiceTableAdapter;
  10430. }
  10431. set {
  10432. this._documentByServiceTableAdapter = value;
  10433. }
  10434. }
  10435. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10436. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10437. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10438. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10439. "a", "System.Drawing.Design.UITypeEditor")]
  10440. public GenderTableAdapter GenderTableAdapter {
  10441. get {
  10442. return this._genderTableAdapter;
  10443. }
  10444. set {
  10445. this._genderTableAdapter = value;
  10446. }
  10447. }
  10448. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10449. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10450. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10451. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10452. "a", "System.Drawing.Design.UITypeEditor")]
  10453. public ManufacturerTableAdapter ManufacturerTableAdapter {
  10454. get {
  10455. return this._manufacturerTableAdapter;
  10456. }
  10457. set {
  10458. this._manufacturerTableAdapter = value;
  10459. }
  10460. }
  10461. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10462. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10463. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10464. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10465. "a", "System.Drawing.Design.UITypeEditor")]
  10466. public ProductTableAdapter ProductTableAdapter {
  10467. get {
  10468. return this._productTableAdapter;
  10469. }
  10470. set {
  10471. this._productTableAdapter = value;
  10472. }
  10473. }
  10474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10476. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10477. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10478. "a", "System.Drawing.Design.UITypeEditor")]
  10479. public ProductPhotoTableAdapter ProductPhotoTableAdapter {
  10480. get {
  10481. return this._productPhotoTableAdapter;
  10482. }
  10483. set {
  10484. this._productPhotoTableAdapter = value;
  10485. }
  10486. }
  10487. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10488. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10489. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10490. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10491. "a", "System.Drawing.Design.UITypeEditor")]
  10492. public ProductSaleTableAdapter ProductSaleTableAdapter {
  10493. get {
  10494. return this._productSaleTableAdapter;
  10495. }
  10496. set {
  10497. this._productSaleTableAdapter = value;
  10498. }
  10499. }
  10500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10502. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10503. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10504. "a", "System.Drawing.Design.UITypeEditor")]
  10505. public ServiceTableAdapter ServiceTableAdapter {
  10506. get {
  10507. return this._serviceTableAdapter;
  10508. }
  10509. set {
  10510. this._serviceTableAdapter = value;
  10511. }
  10512. }
  10513. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10514. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10515. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10516. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10517. "a", "System.Drawing.Design.UITypeEditor")]
  10518. public ServicePhotoTableAdapter ServicePhotoTableAdapter {
  10519. get {
  10520. return this._servicePhotoTableAdapter;
  10521. }
  10522. set {
  10523. this._servicePhotoTableAdapter = value;
  10524. }
  10525. }
  10526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10528. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10529. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10530. "a", "System.Drawing.Design.UITypeEditor")]
  10531. public TagTableAdapter TagTableAdapter {
  10532. get {
  10533. return this._tagTableAdapter;
  10534. }
  10535. set {
  10536. this._tagTableAdapter = value;
  10537. }
  10538. }
  10539. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10540. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10541. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10542. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10543. "a", "System.Drawing.Design.UITypeEditor")]
  10544. public TagOfClientTableAdapter TagOfClientTableAdapter {
  10545. get {
  10546. return this._tagOfClientTableAdapter;
  10547. }
  10548. set {
  10549. this._tagOfClientTableAdapter = value;
  10550. }
  10551. }
  10552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10554. public bool BackupDataSetBeforeUpdate {
  10555. get {
  10556. return this._backupDataSetBeforeUpdate;
  10557. }
  10558. set {
  10559. this._backupDataSetBeforeUpdate = value;
  10560. }
  10561. }
  10562. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10563. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10564. [global::System.ComponentModel.Browsable(false)]
  10565. public global::System.Data.IDbConnection Connection {
  10566. get {
  10567. if ((this._connection != null)) {
  10568. return this._connection;
  10569. }
  10570. if (((this._attachedProductTableAdapter != null)
  10571. && (this._attachedProductTableAdapter.Connection != null))) {
  10572. return this._attachedProductTableAdapter.Connection;
  10573. }
  10574. if (((this._clientTableAdapter != null)
  10575. && (this._clientTableAdapter.Connection != null))) {
  10576. return this._clientTableAdapter.Connection;
  10577. }
  10578. if (((this._clientServiceTableAdapter != null)
  10579. && (this._clientServiceTableAdapter.Connection != null))) {
  10580. return this._clientServiceTableAdapter.Connection;
  10581. }
  10582. if (((this._documentByServiceTableAdapter != null)
  10583. && (this._documentByServiceTableAdapter.Connection != null))) {
  10584. return this._documentByServiceTableAdapter.Connection;
  10585. }
  10586. if (((this._genderTableAdapter != null)
  10587. && (this._genderTableAdapter.Connection != null))) {
  10588. return this._genderTableAdapter.Connection;
  10589. }
  10590. if (((this._manufacturerTableAdapter != null)
  10591. && (this._manufacturerTableAdapter.Connection != null))) {
  10592. return this._manufacturerTableAdapter.Connection;
  10593. }
  10594. if (((this._productTableAdapter != null)
  10595. && (this._productTableAdapter.Connection != null))) {
  10596. return this._productTableAdapter.Connection;
  10597. }
  10598. if (((this._productPhotoTableAdapter != null)
  10599. && (this._productPhotoTableAdapter.Connection != null))) {
  10600. return this._productPhotoTableAdapter.Connection;
  10601. }
  10602. if (((this._productSaleTableAdapter != null)
  10603. && (this._productSaleTableAdapter.Connection != null))) {
  10604. return this._productSaleTableAdapter.Connection;
  10605. }
  10606. if (((this._serviceTableAdapter != null)
  10607. && (this._serviceTableAdapter.Connection != null))) {
  10608. return this._serviceTableAdapter.Connection;
  10609. }
  10610. if (((this._servicePhotoTableAdapter != null)
  10611. && (this._servicePhotoTableAdapter.Connection != null))) {
  10612. return this._servicePhotoTableAdapter.Connection;
  10613. }
  10614. if (((this._tagTableAdapter != null)
  10615. && (this._tagTableAdapter.Connection != null))) {
  10616. return this._tagTableAdapter.Connection;
  10617. }
  10618. if (((this._tagOfClientTableAdapter != null)
  10619. && (this._tagOfClientTableAdapter.Connection != null))) {
  10620. return this._tagOfClientTableAdapter.Connection;
  10621. }
  10622. return null;
  10623. }
  10624. set {
  10625. this._connection = value;
  10626. }
  10627. }
  10628. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10630. [global::System.ComponentModel.Browsable(false)]
  10631. public int TableAdapterInstanceCount {
  10632. get {
  10633. int count = 0;
  10634. if ((this._attachedProductTableAdapter != null)) {
  10635. count = (count + 1);
  10636. }
  10637. if ((this._clientTableAdapter != null)) {
  10638. count = (count + 1);
  10639. }
  10640. if ((this._clientServiceTableAdapter != null)) {
  10641. count = (count + 1);
  10642. }
  10643. if ((this._documentByServiceTableAdapter != null)) {
  10644. count = (count + 1);
  10645. }
  10646. if ((this._genderTableAdapter != null)) {
  10647. count = (count + 1);
  10648. }
  10649. if ((this._manufacturerTableAdapter != null)) {
  10650. count = (count + 1);
  10651. }
  10652. if ((this._productTableAdapter != null)) {
  10653. count = (count + 1);
  10654. }
  10655. if ((this._productPhotoTableAdapter != null)) {
  10656. count = (count + 1);
  10657. }
  10658. if ((this._productSaleTableAdapter != null)) {
  10659. count = (count + 1);
  10660. }
  10661. if ((this._serviceTableAdapter != null)) {
  10662. count = (count + 1);
  10663. }
  10664. if ((this._servicePhotoTableAdapter != null)) {
  10665. count = (count + 1);
  10666. }
  10667. if ((this._tagTableAdapter != null)) {
  10668. count = (count + 1);
  10669. }
  10670. if ((this._tagOfClientTableAdapter != null)) {
  10671. count = (count + 1);
  10672. }
  10673. return count;
  10674. }
  10675. }
  10676. /// <summary>
  10677. ///Update rows in top-down order.
  10678. ///</summary>
  10679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10680. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10681. private int UpdateUpdatedRows(DB_Danilov_V2DataSet1 dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  10682. int result = 0;
  10683. if ((this._genderTableAdapter != null)) {
  10684. global::System.Data.DataRow[] updatedRows = dataSet.Gender.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10685. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10686. if (((updatedRows != null)
  10687. && (0 < updatedRows.Length))) {
  10688. result = (result + this._genderTableAdapter.Update(updatedRows));
  10689. allChangedRows.AddRange(updatedRows);
  10690. }
  10691. }
  10692. if ((this._clientTableAdapter != null)) {
  10693. global::System.Data.DataRow[] updatedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10694. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10695. if (((updatedRows != null)
  10696. && (0 < updatedRows.Length))) {
  10697. result = (result + this._clientTableAdapter.Update(updatedRows));
  10698. allChangedRows.AddRange(updatedRows);
  10699. }
  10700. }
  10701. if ((this._manufacturerTableAdapter != null)) {
  10702. global::System.Data.DataRow[] updatedRows = dataSet.Manufacturer.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10703. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10704. if (((updatedRows != null)
  10705. && (0 < updatedRows.Length))) {
  10706. result = (result + this._manufacturerTableAdapter.Update(updatedRows));
  10707. allChangedRows.AddRange(updatedRows);
  10708. }
  10709. }
  10710. if ((this._serviceTableAdapter != null)) {
  10711. global::System.Data.DataRow[] updatedRows = dataSet.Service.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10712. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10713. if (((updatedRows != null)
  10714. && (0 < updatedRows.Length))) {
  10715. result = (result + this._serviceTableAdapter.Update(updatedRows));
  10716. allChangedRows.AddRange(updatedRows);
  10717. }
  10718. }
  10719. if ((this._clientServiceTableAdapter != null)) {
  10720. global::System.Data.DataRow[] updatedRows = dataSet.ClientService.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10721. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10722. if (((updatedRows != null)
  10723. && (0 < updatedRows.Length))) {
  10724. result = (result + this._clientServiceTableAdapter.Update(updatedRows));
  10725. allChangedRows.AddRange(updatedRows);
  10726. }
  10727. }
  10728. if ((this._productTableAdapter != null)) {
  10729. global::System.Data.DataRow[] updatedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10730. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10731. if (((updatedRows != null)
  10732. && (0 < updatedRows.Length))) {
  10733. result = (result + this._productTableAdapter.Update(updatedRows));
  10734. allChangedRows.AddRange(updatedRows);
  10735. }
  10736. }
  10737. if ((this._tagTableAdapter != null)) {
  10738. global::System.Data.DataRow[] updatedRows = dataSet.Tag.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10739. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10740. if (((updatedRows != null)
  10741. && (0 < updatedRows.Length))) {
  10742. result = (result + this._tagTableAdapter.Update(updatedRows));
  10743. allChangedRows.AddRange(updatedRows);
  10744. }
  10745. }
  10746. if ((this._attachedProductTableAdapter != null)) {
  10747. global::System.Data.DataRow[] updatedRows = dataSet.AttachedProduct.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10748. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10749. if (((updatedRows != null)
  10750. && (0 < updatedRows.Length))) {
  10751. result = (result + this._attachedProductTableAdapter.Update(updatedRows));
  10752. allChangedRows.AddRange(updatedRows);
  10753. }
  10754. }
  10755. if ((this._documentByServiceTableAdapter != null)) {
  10756. global::System.Data.DataRow[] updatedRows = dataSet.DocumentByService.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10757. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10758. if (((updatedRows != null)
  10759. && (0 < updatedRows.Length))) {
  10760. result = (result + this._documentByServiceTableAdapter.Update(updatedRows));
  10761. allChangedRows.AddRange(updatedRows);
  10762. }
  10763. }
  10764. if ((this._productPhotoTableAdapter != null)) {
  10765. global::System.Data.DataRow[] updatedRows = dataSet.ProductPhoto.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10766. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10767. if (((updatedRows != null)
  10768. && (0 < updatedRows.Length))) {
  10769. result = (result + this._productPhotoTableAdapter.Update(updatedRows));
  10770. allChangedRows.AddRange(updatedRows);
  10771. }
  10772. }
  10773. if ((this._productSaleTableAdapter != null)) {
  10774. global::System.Data.DataRow[] updatedRows = dataSet.ProductSale.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10775. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10776. if (((updatedRows != null)
  10777. && (0 < updatedRows.Length))) {
  10778. result = (result + this._productSaleTableAdapter.Update(updatedRows));
  10779. allChangedRows.AddRange(updatedRows);
  10780. }
  10781. }
  10782. if ((this._servicePhotoTableAdapter != null)) {
  10783. global::System.Data.DataRow[] updatedRows = dataSet.ServicePhoto.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10784. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10785. if (((updatedRows != null)
  10786. && (0 < updatedRows.Length))) {
  10787. result = (result + this._servicePhotoTableAdapter.Update(updatedRows));
  10788. allChangedRows.AddRange(updatedRows);
  10789. }
  10790. }
  10791. if ((this._tagOfClientTableAdapter != null)) {
  10792. global::System.Data.DataRow[] updatedRows = dataSet.TagOfClient.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10793. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10794. if (((updatedRows != null)
  10795. && (0 < updatedRows.Length))) {
  10796. result = (result + this._tagOfClientTableAdapter.Update(updatedRows));
  10797. allChangedRows.AddRange(updatedRows);
  10798. }
  10799. }
  10800. return result;
  10801. }
  10802. /// <summary>
  10803. ///Insert rows in top-down order.
  10804. ///</summary>
  10805. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10806. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10807. private int UpdateInsertedRows(DB_Danilov_V2DataSet1 dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  10808. int result = 0;
  10809. if ((this._genderTableAdapter != null)) {
  10810. global::System.Data.DataRow[] addedRows = dataSet.Gender.Select(null, null, global::System.Data.DataViewRowState.Added);
  10811. if (((addedRows != null)
  10812. && (0 < addedRows.Length))) {
  10813. result = (result + this._genderTableAdapter.Update(addedRows));
  10814. allAddedRows.AddRange(addedRows);
  10815. }
  10816. }
  10817. if ((this._clientTableAdapter != null)) {
  10818. global::System.Data.DataRow[] addedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.Added);
  10819. if (((addedRows != null)
  10820. && (0 < addedRows.Length))) {
  10821. result = (result + this._clientTableAdapter.Update(addedRows));
  10822. allAddedRows.AddRange(addedRows);
  10823. }
  10824. }
  10825. if ((this._manufacturerTableAdapter != null)) {
  10826. global::System.Data.DataRow[] addedRows = dataSet.Manufacturer.Select(null, null, global::System.Data.DataViewRowState.Added);
  10827. if (((addedRows != null)
  10828. && (0 < addedRows.Length))) {
  10829. result = (result + this._manufacturerTableAdapter.Update(addedRows));
  10830. allAddedRows.AddRange(addedRows);
  10831. }
  10832. }
  10833. if ((this._serviceTableAdapter != null)) {
  10834. global::System.Data.DataRow[] addedRows = dataSet.Service.Select(null, null, global::System.Data.DataViewRowState.Added);
  10835. if (((addedRows != null)
  10836. && (0 < addedRows.Length))) {
  10837. result = (result + this._serviceTableAdapter.Update(addedRows));
  10838. allAddedRows.AddRange(addedRows);
  10839. }
  10840. }
  10841. if ((this._clientServiceTableAdapter != null)) {
  10842. global::System.Data.DataRow[] addedRows = dataSet.ClientService.Select(null, null, global::System.Data.DataViewRowState.Added);
  10843. if (((addedRows != null)
  10844. && (0 < addedRows.Length))) {
  10845. result = (result + this._clientServiceTableAdapter.Update(addedRows));
  10846. allAddedRows.AddRange(addedRows);
  10847. }
  10848. }
  10849. if ((this._productTableAdapter != null)) {
  10850. global::System.Data.DataRow[] addedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.Added);
  10851. if (((addedRows != null)
  10852. && (0 < addedRows.Length))) {
  10853. result = (result + this._productTableAdapter.Update(addedRows));
  10854. allAddedRows.AddRange(addedRows);
  10855. }
  10856. }
  10857. if ((this._tagTableAdapter != null)) {
  10858. global::System.Data.DataRow[] addedRows = dataSet.Tag.Select(null, null, global::System.Data.DataViewRowState.Added);
  10859. if (((addedRows != null)
  10860. && (0 < addedRows.Length))) {
  10861. result = (result + this._tagTableAdapter.Update(addedRows));
  10862. allAddedRows.AddRange(addedRows);
  10863. }
  10864. }
  10865. if ((this._attachedProductTableAdapter != null)) {
  10866. global::System.Data.DataRow[] addedRows = dataSet.AttachedProduct.Select(null, null, global::System.Data.DataViewRowState.Added);
  10867. if (((addedRows != null)
  10868. && (0 < addedRows.Length))) {
  10869. result = (result + this._attachedProductTableAdapter.Update(addedRows));
  10870. allAddedRows.AddRange(addedRows);
  10871. }
  10872. }
  10873. if ((this._documentByServiceTableAdapter != null)) {
  10874. global::System.Data.DataRow[] addedRows = dataSet.DocumentByService.Select(null, null, global::System.Data.DataViewRowState.Added);
  10875. if (((addedRows != null)
  10876. && (0 < addedRows.Length))) {
  10877. result = (result + this._documentByServiceTableAdapter.Update(addedRows));
  10878. allAddedRows.AddRange(addedRows);
  10879. }
  10880. }
  10881. if ((this._productPhotoTableAdapter != null)) {
  10882. global::System.Data.DataRow[] addedRows = dataSet.ProductPhoto.Select(null, null, global::System.Data.DataViewRowState.Added);
  10883. if (((addedRows != null)
  10884. && (0 < addedRows.Length))) {
  10885. result = (result + this._productPhotoTableAdapter.Update(addedRows));
  10886. allAddedRows.AddRange(addedRows);
  10887. }
  10888. }
  10889. if ((this._productSaleTableAdapter != null)) {
  10890. global::System.Data.DataRow[] addedRows = dataSet.ProductSale.Select(null, null, global::System.Data.DataViewRowState.Added);
  10891. if (((addedRows != null)
  10892. && (0 < addedRows.Length))) {
  10893. result = (result + this._productSaleTableAdapter.Update(addedRows));
  10894. allAddedRows.AddRange(addedRows);
  10895. }
  10896. }
  10897. if ((this._servicePhotoTableAdapter != null)) {
  10898. global::System.Data.DataRow[] addedRows = dataSet.ServicePhoto.Select(null, null, global::System.Data.DataViewRowState.Added);
  10899. if (((addedRows != null)
  10900. && (0 < addedRows.Length))) {
  10901. result = (result + this._servicePhotoTableAdapter.Update(addedRows));
  10902. allAddedRows.AddRange(addedRows);
  10903. }
  10904. }
  10905. if ((this._tagOfClientTableAdapter != null)) {
  10906. global::System.Data.DataRow[] addedRows = dataSet.TagOfClient.Select(null, null, global::System.Data.DataViewRowState.Added);
  10907. if (((addedRows != null)
  10908. && (0 < addedRows.Length))) {
  10909. result = (result + this._tagOfClientTableAdapter.Update(addedRows));
  10910. allAddedRows.AddRange(addedRows);
  10911. }
  10912. }
  10913. return result;
  10914. }
  10915. /// <summary>
  10916. ///Delete rows in bottom-up order.
  10917. ///</summary>
  10918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10919. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10920. private int UpdateDeletedRows(DB_Danilov_V2DataSet1 dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  10921. int result = 0;
  10922. if ((this._tagOfClientTableAdapter != null)) {
  10923. global::System.Data.DataRow[] deletedRows = dataSet.TagOfClient.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10924. if (((deletedRows != null)
  10925. && (0 < deletedRows.Length))) {
  10926. result = (result + this._tagOfClientTableAdapter.Update(deletedRows));
  10927. allChangedRows.AddRange(deletedRows);
  10928. }
  10929. }
  10930. if ((this._servicePhotoTableAdapter != null)) {
  10931. global::System.Data.DataRow[] deletedRows = dataSet.ServicePhoto.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10932. if (((deletedRows != null)
  10933. && (0 < deletedRows.Length))) {
  10934. result = (result + this._servicePhotoTableAdapter.Update(deletedRows));
  10935. allChangedRows.AddRange(deletedRows);
  10936. }
  10937. }
  10938. if ((this._productSaleTableAdapter != null)) {
  10939. global::System.Data.DataRow[] deletedRows = dataSet.ProductSale.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10940. if (((deletedRows != null)
  10941. && (0 < deletedRows.Length))) {
  10942. result = (result + this._productSaleTableAdapter.Update(deletedRows));
  10943. allChangedRows.AddRange(deletedRows);
  10944. }
  10945. }
  10946. if ((this._productPhotoTableAdapter != null)) {
  10947. global::System.Data.DataRow[] deletedRows = dataSet.ProductPhoto.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10948. if (((deletedRows != null)
  10949. && (0 < deletedRows.Length))) {
  10950. result = (result + this._productPhotoTableAdapter.Update(deletedRows));
  10951. allChangedRows.AddRange(deletedRows);
  10952. }
  10953. }
  10954. if ((this._documentByServiceTableAdapter != null)) {
  10955. global::System.Data.DataRow[] deletedRows = dataSet.DocumentByService.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10956. if (((deletedRows != null)
  10957. && (0 < deletedRows.Length))) {
  10958. result = (result + this._documentByServiceTableAdapter.Update(deletedRows));
  10959. allChangedRows.AddRange(deletedRows);
  10960. }
  10961. }
  10962. if ((this._attachedProductTableAdapter != null)) {
  10963. global::System.Data.DataRow[] deletedRows = dataSet.AttachedProduct.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10964. if (((deletedRows != null)
  10965. && (0 < deletedRows.Length))) {
  10966. result = (result + this._attachedProductTableAdapter.Update(deletedRows));
  10967. allChangedRows.AddRange(deletedRows);
  10968. }
  10969. }
  10970. if ((this._tagTableAdapter != null)) {
  10971. global::System.Data.DataRow[] deletedRows = dataSet.Tag.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10972. if (((deletedRows != null)
  10973. && (0 < deletedRows.Length))) {
  10974. result = (result + this._tagTableAdapter.Update(deletedRows));
  10975. allChangedRows.AddRange(deletedRows);
  10976. }
  10977. }
  10978. if ((this._productTableAdapter != null)) {
  10979. global::System.Data.DataRow[] deletedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10980. if (((deletedRows != null)
  10981. && (0 < deletedRows.Length))) {
  10982. result = (result + this._productTableAdapter.Update(deletedRows));
  10983. allChangedRows.AddRange(deletedRows);
  10984. }
  10985. }
  10986. if ((this._clientServiceTableAdapter != null)) {
  10987. global::System.Data.DataRow[] deletedRows = dataSet.ClientService.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10988. if (((deletedRows != null)
  10989. && (0 < deletedRows.Length))) {
  10990. result = (result + this._clientServiceTableAdapter.Update(deletedRows));
  10991. allChangedRows.AddRange(deletedRows);
  10992. }
  10993. }
  10994. if ((this._serviceTableAdapter != null)) {
  10995. global::System.Data.DataRow[] deletedRows = dataSet.Service.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10996. if (((deletedRows != null)
  10997. && (0 < deletedRows.Length))) {
  10998. result = (result + this._serviceTableAdapter.Update(deletedRows));
  10999. allChangedRows.AddRange(deletedRows);
  11000. }
  11001. }
  11002. if ((this._manufacturerTableAdapter != null)) {
  11003. global::System.Data.DataRow[] deletedRows = dataSet.Manufacturer.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11004. if (((deletedRows != null)
  11005. && (0 < deletedRows.Length))) {
  11006. result = (result + this._manufacturerTableAdapter.Update(deletedRows));
  11007. allChangedRows.AddRange(deletedRows);
  11008. }
  11009. }
  11010. if ((this._clientTableAdapter != null)) {
  11011. global::System.Data.DataRow[] deletedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11012. if (((deletedRows != null)
  11013. && (0 < deletedRows.Length))) {
  11014. result = (result + this._clientTableAdapter.Update(deletedRows));
  11015. allChangedRows.AddRange(deletedRows);
  11016. }
  11017. }
  11018. if ((this._genderTableAdapter != null)) {
  11019. global::System.Data.DataRow[] deletedRows = dataSet.Gender.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11020. if (((deletedRows != null)
  11021. && (0 < deletedRows.Length))) {
  11022. result = (result + this._genderTableAdapter.Update(deletedRows));
  11023. allChangedRows.AddRange(deletedRows);
  11024. }
  11025. }
  11026. return result;
  11027. }
  11028. /// <summary>
  11029. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  11030. ///</summary>
  11031. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11032. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11033. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  11034. if (((updatedRows == null)
  11035. || (updatedRows.Length < 1))) {
  11036. return updatedRows;
  11037. }
  11038. if (((allAddedRows == null)
  11039. || (allAddedRows.Count < 1))) {
  11040. return updatedRows;
  11041. }
  11042. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  11043. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  11044. global::System.Data.DataRow row = updatedRows[i];
  11045. if ((allAddedRows.Contains(row) == false)) {
  11046. realUpdatedRows.Add(row);
  11047. }
  11048. }
  11049. return realUpdatedRows.ToArray();
  11050. }
  11051. /// <summary>
  11052. ///Update all changes to the dataset.
  11053. ///</summary>
  11054. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11055. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11056. public virtual int UpdateAll(DB_Danilov_V2DataSet1 dataSet) {
  11057. if ((dataSet == null)) {
  11058. throw new global::System.ArgumentNullException("dataSet");
  11059. }
  11060. if ((dataSet.HasChanges() == false)) {
  11061. return 0;
  11062. }
  11063. if (((this._attachedProductTableAdapter != null)
  11064. && (this.MatchTableAdapterConnection(this._attachedProductTableAdapter.Connection) == false))) {
  11065. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11066. "r, должны использовать одинаковую строку подключения.");
  11067. }
  11068. if (((this._clientTableAdapter != null)
  11069. && (this.MatchTableAdapterConnection(this._clientTableAdapter.Connection) == false))) {
  11070. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11071. "r, должны использовать одинаковую строку подключения.");
  11072. }
  11073. if (((this._clientServiceTableAdapter != null)
  11074. && (this.MatchTableAdapterConnection(this._clientServiceTableAdapter.Connection) == false))) {
  11075. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11076. "r, должны использовать одинаковую строку подключения.");
  11077. }
  11078. if (((this._documentByServiceTableAdapter != null)
  11079. && (this.MatchTableAdapterConnection(this._documentByServiceTableAdapter.Connection) == false))) {
  11080. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11081. "r, должны использовать одинаковую строку подключения.");
  11082. }
  11083. if (((this._genderTableAdapter != null)
  11084. && (this.MatchTableAdapterConnection(this._genderTableAdapter.Connection) == false))) {
  11085. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11086. "r, должны использовать одинаковую строку подключения.");
  11087. }
  11088. if (((this._manufacturerTableAdapter != null)
  11089. && (this.MatchTableAdapterConnection(this._manufacturerTableAdapter.Connection) == false))) {
  11090. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11091. "r, должны использовать одинаковую строку подключения.");
  11092. }
  11093. if (((this._productTableAdapter != null)
  11094. && (this.MatchTableAdapterConnection(this._productTableAdapter.Connection) == false))) {
  11095. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11096. "r, должны использовать одинаковую строку подключения.");
  11097. }
  11098. if (((this._productPhotoTableAdapter != null)
  11099. && (this.MatchTableAdapterConnection(this._productPhotoTableAdapter.Connection) == false))) {
  11100. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11101. "r, должны использовать одинаковую строку подключения.");
  11102. }
  11103. if (((this._productSaleTableAdapter != null)
  11104. && (this.MatchTableAdapterConnection(this._productSaleTableAdapter.Connection) == false))) {
  11105. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11106. "r, должны использовать одинаковую строку подключения.");
  11107. }
  11108. if (((this._serviceTableAdapter != null)
  11109. && (this.MatchTableAdapterConnection(this._serviceTableAdapter.Connection) == false))) {
  11110. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11111. "r, должны использовать одинаковую строку подключения.");
  11112. }
  11113. if (((this._servicePhotoTableAdapter != null)
  11114. && (this.MatchTableAdapterConnection(this._servicePhotoTableAdapter.Connection) == false))) {
  11115. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11116. "r, должны использовать одинаковую строку подключения.");
  11117. }
  11118. if (((this._tagTableAdapter != null)
  11119. && (this.MatchTableAdapterConnection(this._tagTableAdapter.Connection) == false))) {
  11120. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11121. "r, должны использовать одинаковую строку подключения.");
  11122. }
  11123. if (((this._tagOfClientTableAdapter != null)
  11124. && (this.MatchTableAdapterConnection(this._tagOfClientTableAdapter.Connection) == false))) {
  11125. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11126. "r, должны использовать одинаковую строку подключения.");
  11127. }
  11128. global::System.Data.IDbConnection workConnection = this.Connection;
  11129. if ((workConnection == null)) {
  11130. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  11131. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  11132. }
  11133. bool workConnOpened = false;
  11134. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  11135. == global::System.Data.ConnectionState.Broken)) {
  11136. workConnection.Close();
  11137. }
  11138. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  11139. workConnection.Open();
  11140. workConnOpened = true;
  11141. }
  11142. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  11143. if ((workTransaction == null)) {
  11144. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  11145. "и или текущее состояние не позволяет начать транзакцию.");
  11146. }
  11147. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  11148. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  11149. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  11150. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  11151. int result = 0;
  11152. global::System.Data.DataSet backupDataSet = null;
  11153. if (this.BackupDataSetBeforeUpdate) {
  11154. backupDataSet = new global::System.Data.DataSet();
  11155. backupDataSet.Merge(dataSet);
  11156. }
  11157. try {
  11158. // ---- Prepare for update -----------
  11159. //
  11160. if ((this._attachedProductTableAdapter != null)) {
  11161. revertConnections.Add(this._attachedProductTableAdapter, this._attachedProductTableAdapter.Connection);
  11162. this._attachedProductTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11163. this._attachedProductTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11164. if (this._attachedProductTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11165. this._attachedProductTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11166. adaptersWithAcceptChangesDuringUpdate.Add(this._attachedProductTableAdapter.Adapter);
  11167. }
  11168. }
  11169. if ((this._clientTableAdapter != null)) {
  11170. revertConnections.Add(this._clientTableAdapter, this._clientTableAdapter.Connection);
  11171. this._clientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11172. this._clientTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11173. if (this._clientTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11174. this._clientTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11175. adaptersWithAcceptChangesDuringUpdate.Add(this._clientTableAdapter.Adapter);
  11176. }
  11177. }
  11178. if ((this._clientServiceTableAdapter != null)) {
  11179. revertConnections.Add(this._clientServiceTableAdapter, this._clientServiceTableAdapter.Connection);
  11180. this._clientServiceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11181. this._clientServiceTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11182. if (this._clientServiceTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11183. this._clientServiceTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11184. adaptersWithAcceptChangesDuringUpdate.Add(this._clientServiceTableAdapter.Adapter);
  11185. }
  11186. }
  11187. if ((this._documentByServiceTableAdapter != null)) {
  11188. revertConnections.Add(this._documentByServiceTableAdapter, this._documentByServiceTableAdapter.Connection);
  11189. this._documentByServiceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11190. this._documentByServiceTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11191. if (this._documentByServiceTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11192. this._documentByServiceTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11193. adaptersWithAcceptChangesDuringUpdate.Add(this._documentByServiceTableAdapter.Adapter);
  11194. }
  11195. }
  11196. if ((this._genderTableAdapter != null)) {
  11197. revertConnections.Add(this._genderTableAdapter, this._genderTableAdapter.Connection);
  11198. this._genderTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11199. this._genderTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11200. if (this._genderTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11201. this._genderTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11202. adaptersWithAcceptChangesDuringUpdate.Add(this._genderTableAdapter.Adapter);
  11203. }
  11204. }
  11205. if ((this._manufacturerTableAdapter != null)) {
  11206. revertConnections.Add(this._manufacturerTableAdapter, this._manufacturerTableAdapter.Connection);
  11207. this._manufacturerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11208. this._manufacturerTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11209. if (this._manufacturerTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11210. this._manufacturerTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11211. adaptersWithAcceptChangesDuringUpdate.Add(this._manufacturerTableAdapter.Adapter);
  11212. }
  11213. }
  11214. if ((this._productTableAdapter != null)) {
  11215. revertConnections.Add(this._productTableAdapter, this._productTableAdapter.Connection);
  11216. this._productTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11217. this._productTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11218. if (this._productTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11219. this._productTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11220. adaptersWithAcceptChangesDuringUpdate.Add(this._productTableAdapter.Adapter);
  11221. }
  11222. }
  11223. if ((this._productPhotoTableAdapter != null)) {
  11224. revertConnections.Add(this._productPhotoTableAdapter, this._productPhotoTableAdapter.Connection);
  11225. this._productPhotoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11226. this._productPhotoTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11227. if (this._productPhotoTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11228. this._productPhotoTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11229. adaptersWithAcceptChangesDuringUpdate.Add(this._productPhotoTableAdapter.Adapter);
  11230. }
  11231. }
  11232. if ((this._productSaleTableAdapter != null)) {
  11233. revertConnections.Add(this._productSaleTableAdapter, this._productSaleTableAdapter.Connection);
  11234. this._productSaleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11235. this._productSaleTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11236. if (this._productSaleTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11237. this._productSaleTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11238. adaptersWithAcceptChangesDuringUpdate.Add(this._productSaleTableAdapter.Adapter);
  11239. }
  11240. }
  11241. if ((this._serviceTableAdapter != null)) {
  11242. revertConnections.Add(this._serviceTableAdapter, this._serviceTableAdapter.Connection);
  11243. this._serviceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11244. this._serviceTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11245. if (this._serviceTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11246. this._serviceTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11247. adaptersWithAcceptChangesDuringUpdate.Add(this._serviceTableAdapter.Adapter);
  11248. }
  11249. }
  11250. if ((this._servicePhotoTableAdapter != null)) {
  11251. revertConnections.Add(this._servicePhotoTableAdapter, this._servicePhotoTableAdapter.Connection);
  11252. this._servicePhotoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11253. this._servicePhotoTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11254. if (this._servicePhotoTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11255. this._servicePhotoTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11256. adaptersWithAcceptChangesDuringUpdate.Add(this._servicePhotoTableAdapter.Adapter);
  11257. }
  11258. }
  11259. if ((this._tagTableAdapter != null)) {
  11260. revertConnections.Add(this._tagTableAdapter, this._tagTableAdapter.Connection);
  11261. this._tagTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11262. this._tagTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11263. if (this._tagTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11264. this._tagTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11265. adaptersWithAcceptChangesDuringUpdate.Add(this._tagTableAdapter.Adapter);
  11266. }
  11267. }
  11268. if ((this._tagOfClientTableAdapter != null)) {
  11269. revertConnections.Add(this._tagOfClientTableAdapter, this._tagOfClientTableAdapter.Connection);
  11270. this._tagOfClientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11271. this._tagOfClientTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11272. if (this._tagOfClientTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11273. this._tagOfClientTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11274. adaptersWithAcceptChangesDuringUpdate.Add(this._tagOfClientTableAdapter.Adapter);
  11275. }
  11276. }
  11277. //
  11278. //---- Perform updates -----------
  11279. //
  11280. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  11281. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  11282. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  11283. }
  11284. else {
  11285. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  11286. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  11287. }
  11288. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  11289. //
  11290. //---- Commit updates -----------
  11291. //
  11292. workTransaction.Commit();
  11293. if ((0 < allAddedRows.Count)) {
  11294. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  11295. allAddedRows.CopyTo(rows);
  11296. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  11297. global::System.Data.DataRow row = rows[i];
  11298. row.AcceptChanges();
  11299. }
  11300. }
  11301. if ((0 < allChangedRows.Count)) {
  11302. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  11303. allChangedRows.CopyTo(rows);
  11304. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  11305. global::System.Data.DataRow row = rows[i];
  11306. row.AcceptChanges();
  11307. }
  11308. }
  11309. }
  11310. catch (global::System.Exception ex) {
  11311. workTransaction.Rollback();
  11312. // ---- Restore the dataset -----------
  11313. if (this.BackupDataSetBeforeUpdate) {
  11314. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  11315. dataSet.Clear();
  11316. dataSet.Merge(backupDataSet);
  11317. }
  11318. else {
  11319. if ((0 < allAddedRows.Count)) {
  11320. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  11321. allAddedRows.CopyTo(rows);
  11322. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  11323. global::System.Data.DataRow row = rows[i];
  11324. row.AcceptChanges();
  11325. row.SetAdded();
  11326. }
  11327. }
  11328. }
  11329. throw ex;
  11330. }
  11331. finally {
  11332. if (workConnOpened) {
  11333. workConnection.Close();
  11334. }
  11335. if ((this._attachedProductTableAdapter != null)) {
  11336. this._attachedProductTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._attachedProductTableAdapter]));
  11337. this._attachedProductTableAdapter.Transaction = null;
  11338. }
  11339. if ((this._clientTableAdapter != null)) {
  11340. this._clientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._clientTableAdapter]));
  11341. this._clientTableAdapter.Transaction = null;
  11342. }
  11343. if ((this._clientServiceTableAdapter != null)) {
  11344. this._clientServiceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._clientServiceTableAdapter]));
  11345. this._clientServiceTableAdapter.Transaction = null;
  11346. }
  11347. if ((this._documentByServiceTableAdapter != null)) {
  11348. this._documentByServiceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._documentByServiceTableAdapter]));
  11349. this._documentByServiceTableAdapter.Transaction = null;
  11350. }
  11351. if ((this._genderTableAdapter != null)) {
  11352. this._genderTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._genderTableAdapter]));
  11353. this._genderTableAdapter.Transaction = null;
  11354. }
  11355. if ((this._manufacturerTableAdapter != null)) {
  11356. this._manufacturerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._manufacturerTableAdapter]));
  11357. this._manufacturerTableAdapter.Transaction = null;
  11358. }
  11359. if ((this._productTableAdapter != null)) {
  11360. this._productTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productTableAdapter]));
  11361. this._productTableAdapter.Transaction = null;
  11362. }
  11363. if ((this._productPhotoTableAdapter != null)) {
  11364. this._productPhotoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productPhotoTableAdapter]));
  11365. this._productPhotoTableAdapter.Transaction = null;
  11366. }
  11367. if ((this._productSaleTableAdapter != null)) {
  11368. this._productSaleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productSaleTableAdapter]));
  11369. this._productSaleTableAdapter.Transaction = null;
  11370. }
  11371. if ((this._serviceTableAdapter != null)) {
  11372. this._serviceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._serviceTableAdapter]));
  11373. this._serviceTableAdapter.Transaction = null;
  11374. }
  11375. if ((this._servicePhotoTableAdapter != null)) {
  11376. this._servicePhotoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._servicePhotoTableAdapter]));
  11377. this._servicePhotoTableAdapter.Transaction = null;
  11378. }
  11379. if ((this._tagTableAdapter != null)) {
  11380. this._tagTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tagTableAdapter]));
  11381. this._tagTableAdapter.Transaction = null;
  11382. }
  11383. if ((this._tagOfClientTableAdapter != null)) {
  11384. this._tagOfClientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tagOfClientTableAdapter]));
  11385. this._tagOfClientTableAdapter.Transaction = null;
  11386. }
  11387. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  11388. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  11389. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  11390. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  11391. global::System.Data.Common.DataAdapter adapter = adapters[i];
  11392. adapter.AcceptChangesDuringUpdate = true;
  11393. }
  11394. }
  11395. }
  11396. return result;
  11397. }
  11398. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11399. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11400. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  11401. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  11402. }
  11403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11404. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11405. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  11406. if ((this._connection != null)) {
  11407. return true;
  11408. }
  11409. if (((this.Connection == null)
  11410. || (inputConnection == null))) {
  11411. return true;
  11412. }
  11413. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  11414. return true;
  11415. }
  11416. return false;
  11417. }
  11418. /// <summary>
  11419. ///Update Order Option
  11420. ///</summary>
  11421. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11422. public enum UpdateOrderOption {
  11423. InsertUpdateDelete = 0,
  11424. UpdateInsertDelete = 1,
  11425. }
  11426. /// <summary>
  11427. ///Used to sort self-referenced table's rows
  11428. ///</summary>
  11429. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11430. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  11431. private global::System.Data.DataRelation _relation;
  11432. private int _childFirst;
  11433. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11434. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11435. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  11436. this._relation = relation;
  11437. if (childFirst) {
  11438. this._childFirst = -1;
  11439. }
  11440. else {
  11441. this._childFirst = 1;
  11442. }
  11443. }
  11444. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11445. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11446. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  11447. global::System.Diagnostics.Debug.Assert((row != null));
  11448. global::System.Data.DataRow root = row;
  11449. distance = 0;
  11450. 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>();
  11451. traversedRows[row] = row;
  11452. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  11453. for (
  11454. ; ((parent != null)
  11455. && (traversedRows.ContainsKey(parent) == false));
  11456. ) {
  11457. distance = (distance + 1);
  11458. root = parent;
  11459. traversedRows[parent] = parent;
  11460. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  11461. }
  11462. if ((distance == 0)) {
  11463. traversedRows.Clear();
  11464. traversedRows[row] = row;
  11465. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  11466. for (
  11467. ; ((parent != null)
  11468. && (traversedRows.ContainsKey(parent) == false));
  11469. ) {
  11470. distance = (distance + 1);
  11471. root = parent;
  11472. traversedRows[parent] = parent;
  11473. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  11474. }
  11475. }
  11476. return root;
  11477. }
  11478. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11479. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11480. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  11481. if (object.ReferenceEquals(row1, row2)) {
  11482. return 0;
  11483. }
  11484. if ((row1 == null)) {
  11485. return -1;
  11486. }
  11487. if ((row2 == null)) {
  11488. return 1;
  11489. }
  11490. int distance1 = 0;
  11491. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  11492. int distance2 = 0;
  11493. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  11494. if (object.ReferenceEquals(root1, root2)) {
  11495. return (this._childFirst * distance1.CompareTo(distance2));
  11496. }
  11497. else {
  11498. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  11499. && (root2.Table != null)));
  11500. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  11501. return -1;
  11502. }
  11503. else {
  11504. return 1;
  11505. }
  11506. }
  11507. }
  11508. }
  11509. }
  11510. }
  11511. #pragma warning restore 1591