BarhotnieBrovkiDataSet.Designer.cs 950 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace Yslugi_Salona_Krasot {
  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("BarhotnieBrovkiDataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class BarhotnieBrovkiDataSet : global::System.Data.DataSet {
  22. private AttachedProductDataTable tableAttachedProduct;
  23. private ClientDataTable tableClient;
  24. private Client_b_importDataTable tableClient_b_import;
  25. private ClientServiceDataTable tableClientService;
  26. private DocumentByServiceDataTable tableDocumentByService;
  27. private GenderDataTable tableGender;
  28. private ManufacturerDataTable tableManufacturer;
  29. private ProductDataTable tableProduct;
  30. private ProductPhotoDataTable tableProductPhoto;
  31. private ProductSaleDataTable tableProductSale;
  32. private ServiceDataTable tableService;
  33. private Service_b_importDataTable tableService_b_import;
  34. private Serviceclient_b_importDataTable tableServiceclient_b_import;
  35. private ServicePhotoDataTable tableServicePhoto;
  36. private TagDataTable tableTag;
  37. private TagOfClientDataTable tableTagOfClient;
  38. private global::System.Data.DataRelation relationFK_AttachedProduct_Product;
  39. private global::System.Data.DataRelation relationFK_AttachedProduct_Product1;
  40. private global::System.Data.DataRelation relationFK_Client_Gender;
  41. private global::System.Data.DataRelation relationFK_ClientService_Client;
  42. private global::System.Data.DataRelation relationFK_ClientService_Service;
  43. private global::System.Data.DataRelation relationFK_DocumentByService_ClientService;
  44. private global::System.Data.DataRelation relationFK_Product_Manufacturer;
  45. private global::System.Data.DataRelation relationFK_ProductPhoto_Product;
  46. private global::System.Data.DataRelation relationFK_ProductSale_ClientService;
  47. private global::System.Data.DataRelation relationFK_ProductSale_Product;
  48. private global::System.Data.DataRelation relationFK_ServicePhoto_Service;
  49. private global::System.Data.DataRelation relationFK_TagOfClient_Client;
  50. private global::System.Data.DataRelation relationFK_TagOfClient_Tag;
  51. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  52. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  53. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  54. public BarhotnieBrovkiDataSet() {
  55. this.BeginInit();
  56. this.InitClass();
  57. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  58. base.Tables.CollectionChanged += schemaChangedHandler;
  59. base.Relations.CollectionChanged += schemaChangedHandler;
  60. this.EndInit();
  61. }
  62. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  63. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  64. protected BarhotnieBrovkiDataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  65. base(info, context, false) {
  66. if ((this.IsBinarySerialized(info, context) == true)) {
  67. this.InitVars(false);
  68. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  69. this.Tables.CollectionChanged += schemaChangedHandler1;
  70. this.Relations.CollectionChanged += schemaChangedHandler1;
  71. return;
  72. }
  73. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  74. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  75. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  76. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  77. if ((ds.Tables["AttachedProduct"] != null)) {
  78. base.Tables.Add(new AttachedProductDataTable(ds.Tables["AttachedProduct"]));
  79. }
  80. if ((ds.Tables["Client"] != null)) {
  81. base.Tables.Add(new ClientDataTable(ds.Tables["Client"]));
  82. }
  83. if ((ds.Tables["Client_b_import"] != null)) {
  84. base.Tables.Add(new Client_b_importDataTable(ds.Tables["Client_b_import"]));
  85. }
  86. if ((ds.Tables["ClientService"] != null)) {
  87. base.Tables.Add(new ClientServiceDataTable(ds.Tables["ClientService"]));
  88. }
  89. if ((ds.Tables["DocumentByService"] != null)) {
  90. base.Tables.Add(new DocumentByServiceDataTable(ds.Tables["DocumentByService"]));
  91. }
  92. if ((ds.Tables["Gender"] != null)) {
  93. base.Tables.Add(new GenderDataTable(ds.Tables["Gender"]));
  94. }
  95. if ((ds.Tables["Manufacturer"] != null)) {
  96. base.Tables.Add(new ManufacturerDataTable(ds.Tables["Manufacturer"]));
  97. }
  98. if ((ds.Tables["Product"] != null)) {
  99. base.Tables.Add(new ProductDataTable(ds.Tables["Product"]));
  100. }
  101. if ((ds.Tables["ProductPhoto"] != null)) {
  102. base.Tables.Add(new ProductPhotoDataTable(ds.Tables["ProductPhoto"]));
  103. }
  104. if ((ds.Tables["ProductSale"] != null)) {
  105. base.Tables.Add(new ProductSaleDataTable(ds.Tables["ProductSale"]));
  106. }
  107. if ((ds.Tables["Service"] != null)) {
  108. base.Tables.Add(new ServiceDataTable(ds.Tables["Service"]));
  109. }
  110. if ((ds.Tables["Service_b_import"] != null)) {
  111. base.Tables.Add(new Service_b_importDataTable(ds.Tables["Service_b_import"]));
  112. }
  113. if ((ds.Tables["Serviceclient_b_import"] != null)) {
  114. base.Tables.Add(new Serviceclient_b_importDataTable(ds.Tables["Serviceclient_b_import"]));
  115. }
  116. if ((ds.Tables["ServicePhoto"] != null)) {
  117. base.Tables.Add(new ServicePhotoDataTable(ds.Tables["ServicePhoto"]));
  118. }
  119. if ((ds.Tables["Tag"] != null)) {
  120. base.Tables.Add(new TagDataTable(ds.Tables["Tag"]));
  121. }
  122. if ((ds.Tables["TagOfClient"] != null)) {
  123. base.Tables.Add(new TagOfClientDataTable(ds.Tables["TagOfClient"]));
  124. }
  125. this.DataSetName = ds.DataSetName;
  126. this.Prefix = ds.Prefix;
  127. this.Namespace = ds.Namespace;
  128. this.Locale = ds.Locale;
  129. this.CaseSensitive = ds.CaseSensitive;
  130. this.EnforceConstraints = ds.EnforceConstraints;
  131. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  132. this.InitVars();
  133. }
  134. else {
  135. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  136. }
  137. this.GetSerializationData(info, context);
  138. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  139. base.Tables.CollectionChanged += schemaChangedHandler;
  140. this.Relations.CollectionChanged += schemaChangedHandler;
  141. }
  142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  143. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  144. [global::System.ComponentModel.Browsable(false)]
  145. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  146. public AttachedProductDataTable AttachedProduct {
  147. get {
  148. return this.tableAttachedProduct;
  149. }
  150. }
  151. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  152. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  153. [global::System.ComponentModel.Browsable(false)]
  154. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  155. public ClientDataTable Client {
  156. get {
  157. return this.tableClient;
  158. }
  159. }
  160. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  161. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  162. [global::System.ComponentModel.Browsable(false)]
  163. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  164. public Client_b_importDataTable Client_b_import {
  165. get {
  166. return this.tableClient_b_import;
  167. }
  168. }
  169. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  170. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  171. [global::System.ComponentModel.Browsable(false)]
  172. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  173. public ClientServiceDataTable ClientService {
  174. get {
  175. return this.tableClientService;
  176. }
  177. }
  178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  180. [global::System.ComponentModel.Browsable(false)]
  181. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  182. public DocumentByServiceDataTable DocumentByService {
  183. get {
  184. return this.tableDocumentByService;
  185. }
  186. }
  187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  188. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  189. [global::System.ComponentModel.Browsable(false)]
  190. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  191. public GenderDataTable Gender {
  192. get {
  193. return this.tableGender;
  194. }
  195. }
  196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  197. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  198. [global::System.ComponentModel.Browsable(false)]
  199. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  200. public ManufacturerDataTable Manufacturer {
  201. get {
  202. return this.tableManufacturer;
  203. }
  204. }
  205. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  206. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  207. [global::System.ComponentModel.Browsable(false)]
  208. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  209. public ProductDataTable Product {
  210. get {
  211. return this.tableProduct;
  212. }
  213. }
  214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  215. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  216. [global::System.ComponentModel.Browsable(false)]
  217. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  218. public ProductPhotoDataTable ProductPhoto {
  219. get {
  220. return this.tableProductPhoto;
  221. }
  222. }
  223. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  224. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  225. [global::System.ComponentModel.Browsable(false)]
  226. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  227. public ProductSaleDataTable ProductSale {
  228. get {
  229. return this.tableProductSale;
  230. }
  231. }
  232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  233. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  234. [global::System.ComponentModel.Browsable(false)]
  235. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  236. public ServiceDataTable Service {
  237. get {
  238. return this.tableService;
  239. }
  240. }
  241. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  242. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  243. [global::System.ComponentModel.Browsable(false)]
  244. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  245. public Service_b_importDataTable Service_b_import {
  246. get {
  247. return this.tableService_b_import;
  248. }
  249. }
  250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  252. [global::System.ComponentModel.Browsable(false)]
  253. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  254. public Serviceclient_b_importDataTable Serviceclient_b_import {
  255. get {
  256. return this.tableServiceclient_b_import;
  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.Browsable(false)]
  262. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  263. public ServicePhotoDataTable ServicePhoto {
  264. get {
  265. return this.tableServicePhoto;
  266. }
  267. }
  268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  269. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  270. [global::System.ComponentModel.Browsable(false)]
  271. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  272. public TagDataTable Tag {
  273. get {
  274. return this.tableTag;
  275. }
  276. }
  277. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  278. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  279. [global::System.ComponentModel.Browsable(false)]
  280. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  281. public TagOfClientDataTable TagOfClient {
  282. get {
  283. return this.tableTagOfClient;
  284. }
  285. }
  286. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  287. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  288. [global::System.ComponentModel.BrowsableAttribute(true)]
  289. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  290. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  291. get {
  292. return this._schemaSerializationMode;
  293. }
  294. set {
  295. this._schemaSerializationMode = value;
  296. }
  297. }
  298. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  299. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  300. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  301. public new global::System.Data.DataTableCollection Tables {
  302. get {
  303. return base.Tables;
  304. }
  305. }
  306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  307. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  308. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  309. public new global::System.Data.DataRelationCollection Relations {
  310. get {
  311. return base.Relations;
  312. }
  313. }
  314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  315. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  316. protected override void InitializeDerivedDataSet() {
  317. this.BeginInit();
  318. this.InitClass();
  319. this.EndInit();
  320. }
  321. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  322. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  323. public override global::System.Data.DataSet Clone() {
  324. BarhotnieBrovkiDataSet cln = ((BarhotnieBrovkiDataSet)(base.Clone()));
  325. cln.InitVars();
  326. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  327. return cln;
  328. }
  329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  331. protected override bool ShouldSerializeTables() {
  332. return false;
  333. }
  334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  336. protected override bool ShouldSerializeRelations() {
  337. return false;
  338. }
  339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  341. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  342. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  343. this.Reset();
  344. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  345. ds.ReadXml(reader);
  346. if ((ds.Tables["AttachedProduct"] != null)) {
  347. base.Tables.Add(new AttachedProductDataTable(ds.Tables["AttachedProduct"]));
  348. }
  349. if ((ds.Tables["Client"] != null)) {
  350. base.Tables.Add(new ClientDataTable(ds.Tables["Client"]));
  351. }
  352. if ((ds.Tables["Client_b_import"] != null)) {
  353. base.Tables.Add(new Client_b_importDataTable(ds.Tables["Client_b_import"]));
  354. }
  355. if ((ds.Tables["ClientService"] != null)) {
  356. base.Tables.Add(new ClientServiceDataTable(ds.Tables["ClientService"]));
  357. }
  358. if ((ds.Tables["DocumentByService"] != null)) {
  359. base.Tables.Add(new DocumentByServiceDataTable(ds.Tables["DocumentByService"]));
  360. }
  361. if ((ds.Tables["Gender"] != null)) {
  362. base.Tables.Add(new GenderDataTable(ds.Tables["Gender"]));
  363. }
  364. if ((ds.Tables["Manufacturer"] != null)) {
  365. base.Tables.Add(new ManufacturerDataTable(ds.Tables["Manufacturer"]));
  366. }
  367. if ((ds.Tables["Product"] != null)) {
  368. base.Tables.Add(new ProductDataTable(ds.Tables["Product"]));
  369. }
  370. if ((ds.Tables["ProductPhoto"] != null)) {
  371. base.Tables.Add(new ProductPhotoDataTable(ds.Tables["ProductPhoto"]));
  372. }
  373. if ((ds.Tables["ProductSale"] != null)) {
  374. base.Tables.Add(new ProductSaleDataTable(ds.Tables["ProductSale"]));
  375. }
  376. if ((ds.Tables["Service"] != null)) {
  377. base.Tables.Add(new ServiceDataTable(ds.Tables["Service"]));
  378. }
  379. if ((ds.Tables["Service_b_import"] != null)) {
  380. base.Tables.Add(new Service_b_importDataTable(ds.Tables["Service_b_import"]));
  381. }
  382. if ((ds.Tables["Serviceclient_b_import"] != null)) {
  383. base.Tables.Add(new Serviceclient_b_importDataTable(ds.Tables["Serviceclient_b_import"]));
  384. }
  385. if ((ds.Tables["ServicePhoto"] != null)) {
  386. base.Tables.Add(new ServicePhotoDataTable(ds.Tables["ServicePhoto"]));
  387. }
  388. if ((ds.Tables["Tag"] != null)) {
  389. base.Tables.Add(new TagDataTable(ds.Tables["Tag"]));
  390. }
  391. if ((ds.Tables["TagOfClient"] != null)) {
  392. base.Tables.Add(new TagOfClientDataTable(ds.Tables["TagOfClient"]));
  393. }
  394. this.DataSetName = ds.DataSetName;
  395. this.Prefix = ds.Prefix;
  396. this.Namespace = ds.Namespace;
  397. this.Locale = ds.Locale;
  398. this.CaseSensitive = ds.CaseSensitive;
  399. this.EnforceConstraints = ds.EnforceConstraints;
  400. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  401. this.InitVars();
  402. }
  403. else {
  404. this.ReadXml(reader);
  405. this.InitVars();
  406. }
  407. }
  408. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  409. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  410. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  411. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  412. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  413. stream.Position = 0;
  414. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  415. }
  416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  418. internal void InitVars() {
  419. this.InitVars(true);
  420. }
  421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  422. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  423. internal void InitVars(bool initTable) {
  424. this.tableAttachedProduct = ((AttachedProductDataTable)(base.Tables["AttachedProduct"]));
  425. if ((initTable == true)) {
  426. if ((this.tableAttachedProduct != null)) {
  427. this.tableAttachedProduct.InitVars();
  428. }
  429. }
  430. this.tableClient = ((ClientDataTable)(base.Tables["Client"]));
  431. if ((initTable == true)) {
  432. if ((this.tableClient != null)) {
  433. this.tableClient.InitVars();
  434. }
  435. }
  436. this.tableClient_b_import = ((Client_b_importDataTable)(base.Tables["Client_b_import"]));
  437. if ((initTable == true)) {
  438. if ((this.tableClient_b_import != null)) {
  439. this.tableClient_b_import.InitVars();
  440. }
  441. }
  442. this.tableClientService = ((ClientServiceDataTable)(base.Tables["ClientService"]));
  443. if ((initTable == true)) {
  444. if ((this.tableClientService != null)) {
  445. this.tableClientService.InitVars();
  446. }
  447. }
  448. this.tableDocumentByService = ((DocumentByServiceDataTable)(base.Tables["DocumentByService"]));
  449. if ((initTable == true)) {
  450. if ((this.tableDocumentByService != null)) {
  451. this.tableDocumentByService.InitVars();
  452. }
  453. }
  454. this.tableGender = ((GenderDataTable)(base.Tables["Gender"]));
  455. if ((initTable == true)) {
  456. if ((this.tableGender != null)) {
  457. this.tableGender.InitVars();
  458. }
  459. }
  460. this.tableManufacturer = ((ManufacturerDataTable)(base.Tables["Manufacturer"]));
  461. if ((initTable == true)) {
  462. if ((this.tableManufacturer != null)) {
  463. this.tableManufacturer.InitVars();
  464. }
  465. }
  466. this.tableProduct = ((ProductDataTable)(base.Tables["Product"]));
  467. if ((initTable == true)) {
  468. if ((this.tableProduct != null)) {
  469. this.tableProduct.InitVars();
  470. }
  471. }
  472. this.tableProductPhoto = ((ProductPhotoDataTable)(base.Tables["ProductPhoto"]));
  473. if ((initTable == true)) {
  474. if ((this.tableProductPhoto != null)) {
  475. this.tableProductPhoto.InitVars();
  476. }
  477. }
  478. this.tableProductSale = ((ProductSaleDataTable)(base.Tables["ProductSale"]));
  479. if ((initTable == true)) {
  480. if ((this.tableProductSale != null)) {
  481. this.tableProductSale.InitVars();
  482. }
  483. }
  484. this.tableService = ((ServiceDataTable)(base.Tables["Service"]));
  485. if ((initTable == true)) {
  486. if ((this.tableService != null)) {
  487. this.tableService.InitVars();
  488. }
  489. }
  490. this.tableService_b_import = ((Service_b_importDataTable)(base.Tables["Service_b_import"]));
  491. if ((initTable == true)) {
  492. if ((this.tableService_b_import != null)) {
  493. this.tableService_b_import.InitVars();
  494. }
  495. }
  496. this.tableServiceclient_b_import = ((Serviceclient_b_importDataTable)(base.Tables["Serviceclient_b_import"]));
  497. if ((initTable == true)) {
  498. if ((this.tableServiceclient_b_import != null)) {
  499. this.tableServiceclient_b_import.InitVars();
  500. }
  501. }
  502. this.tableServicePhoto = ((ServicePhotoDataTable)(base.Tables["ServicePhoto"]));
  503. if ((initTable == true)) {
  504. if ((this.tableServicePhoto != null)) {
  505. this.tableServicePhoto.InitVars();
  506. }
  507. }
  508. this.tableTag = ((TagDataTable)(base.Tables["Tag"]));
  509. if ((initTable == true)) {
  510. if ((this.tableTag != null)) {
  511. this.tableTag.InitVars();
  512. }
  513. }
  514. this.tableTagOfClient = ((TagOfClientDataTable)(base.Tables["TagOfClient"]));
  515. if ((initTable == true)) {
  516. if ((this.tableTagOfClient != null)) {
  517. this.tableTagOfClient.InitVars();
  518. }
  519. }
  520. this.relationFK_AttachedProduct_Product = this.Relations["FK_AttachedProduct_Product"];
  521. this.relationFK_AttachedProduct_Product1 = this.Relations["FK_AttachedProduct_Product1"];
  522. this.relationFK_Client_Gender = this.Relations["FK_Client_Gender"];
  523. this.relationFK_ClientService_Client = this.Relations["FK_ClientService_Client"];
  524. this.relationFK_ClientService_Service = this.Relations["FK_ClientService_Service"];
  525. this.relationFK_DocumentByService_ClientService = this.Relations["FK_DocumentByService_ClientService"];
  526. this.relationFK_Product_Manufacturer = this.Relations["FK_Product_Manufacturer"];
  527. this.relationFK_ProductPhoto_Product = this.Relations["FK_ProductPhoto_Product"];
  528. this.relationFK_ProductSale_ClientService = this.Relations["FK_ProductSale_ClientService"];
  529. this.relationFK_ProductSale_Product = this.Relations["FK_ProductSale_Product"];
  530. this.relationFK_ServicePhoto_Service = this.Relations["FK_ServicePhoto_Service"];
  531. this.relationFK_TagOfClient_Client = this.Relations["FK_TagOfClient_Client"];
  532. this.relationFK_TagOfClient_Tag = this.Relations["FK_TagOfClient_Tag"];
  533. }
  534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  535. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  536. private void InitClass() {
  537. this.DataSetName = "BarhotnieBrovkiDataSet";
  538. this.Prefix = "";
  539. this.Namespace = "http://tempuri.org/BarhotnieBrovkiDataSet.xsd";
  540. this.EnforceConstraints = true;
  541. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  542. this.tableAttachedProduct = new AttachedProductDataTable();
  543. base.Tables.Add(this.tableAttachedProduct);
  544. this.tableClient = new ClientDataTable();
  545. base.Tables.Add(this.tableClient);
  546. this.tableClient_b_import = new Client_b_importDataTable();
  547. base.Tables.Add(this.tableClient_b_import);
  548. this.tableClientService = new ClientServiceDataTable();
  549. base.Tables.Add(this.tableClientService);
  550. this.tableDocumentByService = new DocumentByServiceDataTable();
  551. base.Tables.Add(this.tableDocumentByService);
  552. this.tableGender = new GenderDataTable();
  553. base.Tables.Add(this.tableGender);
  554. this.tableManufacturer = new ManufacturerDataTable();
  555. base.Tables.Add(this.tableManufacturer);
  556. this.tableProduct = new ProductDataTable();
  557. base.Tables.Add(this.tableProduct);
  558. this.tableProductPhoto = new ProductPhotoDataTable();
  559. base.Tables.Add(this.tableProductPhoto);
  560. this.tableProductSale = new ProductSaleDataTable();
  561. base.Tables.Add(this.tableProductSale);
  562. this.tableService = new ServiceDataTable();
  563. base.Tables.Add(this.tableService);
  564. this.tableService_b_import = new Service_b_importDataTable();
  565. base.Tables.Add(this.tableService_b_import);
  566. this.tableServiceclient_b_import = new Serviceclient_b_importDataTable();
  567. base.Tables.Add(this.tableServiceclient_b_import);
  568. this.tableServicePhoto = new ServicePhotoDataTable();
  569. base.Tables.Add(this.tableServicePhoto);
  570. this.tableTag = new TagDataTable();
  571. base.Tables.Add(this.tableTag);
  572. this.tableTagOfClient = new TagOfClientDataTable();
  573. base.Tables.Add(this.tableTagOfClient);
  574. this.relationFK_AttachedProduct_Product = new global::System.Data.DataRelation("FK_AttachedProduct_Product", new global::System.Data.DataColumn[] {
  575. this.tableProduct.IDColumn}, new global::System.Data.DataColumn[] {
  576. this.tableAttachedProduct.MainProductIDColumn}, false);
  577. this.Relations.Add(this.relationFK_AttachedProduct_Product);
  578. this.relationFK_AttachedProduct_Product1 = new global::System.Data.DataRelation("FK_AttachedProduct_Product1", new global::System.Data.DataColumn[] {
  579. this.tableProduct.IDColumn}, new global::System.Data.DataColumn[] {
  580. this.tableAttachedProduct.AttachedProductIDColumn}, false);
  581. this.Relations.Add(this.relationFK_AttachedProduct_Product1);
  582. this.relationFK_Client_Gender = new global::System.Data.DataRelation("FK_Client_Gender", new global::System.Data.DataColumn[] {
  583. this.tableGender.CodeColumn}, new global::System.Data.DataColumn[] {
  584. this.tableClient.GenderCodeColumn}, false);
  585. this.Relations.Add(this.relationFK_Client_Gender);
  586. this.relationFK_ClientService_Client = new global::System.Data.DataRelation("FK_ClientService_Client", new global::System.Data.DataColumn[] {
  587. this.tableClient.IDColumn}, new global::System.Data.DataColumn[] {
  588. this.tableClientService.ClientIDColumn}, false);
  589. this.Relations.Add(this.relationFK_ClientService_Client);
  590. this.relationFK_ClientService_Service = new global::System.Data.DataRelation("FK_ClientService_Service", new global::System.Data.DataColumn[] {
  591. this.tableService.IDColumn}, new global::System.Data.DataColumn[] {
  592. this.tableClientService.ServiceIDColumn}, false);
  593. this.Relations.Add(this.relationFK_ClientService_Service);
  594. this.relationFK_DocumentByService_ClientService = new global::System.Data.DataRelation("FK_DocumentByService_ClientService", new global::System.Data.DataColumn[] {
  595. this.tableClientService.IDColumn}, new global::System.Data.DataColumn[] {
  596. this.tableDocumentByService.ClientServiceIDColumn}, false);
  597. this.Relations.Add(this.relationFK_DocumentByService_ClientService);
  598. this.relationFK_Product_Manufacturer = new global::System.Data.DataRelation("FK_Product_Manufacturer", new global::System.Data.DataColumn[] {
  599. this.tableManufacturer.IDColumn}, new global::System.Data.DataColumn[] {
  600. this.tableProduct.ManufacturerIDColumn}, false);
  601. this.Relations.Add(this.relationFK_Product_Manufacturer);
  602. this.relationFK_ProductPhoto_Product = new global::System.Data.DataRelation("FK_ProductPhoto_Product", new global::System.Data.DataColumn[] {
  603. this.tableProduct.IDColumn}, new global::System.Data.DataColumn[] {
  604. this.tableProductPhoto.ProductIDColumn}, false);
  605. this.Relations.Add(this.relationFK_ProductPhoto_Product);
  606. this.relationFK_ProductSale_ClientService = new global::System.Data.DataRelation("FK_ProductSale_ClientService", new global::System.Data.DataColumn[] {
  607. this.tableClientService.IDColumn}, new global::System.Data.DataColumn[] {
  608. this.tableProductSale.ClientServiceIDColumn}, false);
  609. this.Relations.Add(this.relationFK_ProductSale_ClientService);
  610. this.relationFK_ProductSale_Product = new global::System.Data.DataRelation("FK_ProductSale_Product", new global::System.Data.DataColumn[] {
  611. this.tableProduct.IDColumn}, new global::System.Data.DataColumn[] {
  612. this.tableProductSale.ProductIDColumn}, false);
  613. this.Relations.Add(this.relationFK_ProductSale_Product);
  614. this.relationFK_ServicePhoto_Service = new global::System.Data.DataRelation("FK_ServicePhoto_Service", new global::System.Data.DataColumn[] {
  615. this.tableService.IDColumn}, new global::System.Data.DataColumn[] {
  616. this.tableServicePhoto.ServiceIDColumn}, false);
  617. this.Relations.Add(this.relationFK_ServicePhoto_Service);
  618. this.relationFK_TagOfClient_Client = new global::System.Data.DataRelation("FK_TagOfClient_Client", new global::System.Data.DataColumn[] {
  619. this.tableClient.IDColumn}, new global::System.Data.DataColumn[] {
  620. this.tableTagOfClient.ClientIDColumn}, false);
  621. this.Relations.Add(this.relationFK_TagOfClient_Client);
  622. this.relationFK_TagOfClient_Tag = new global::System.Data.DataRelation("FK_TagOfClient_Tag", new global::System.Data.DataColumn[] {
  623. this.tableTag.IDColumn}, new global::System.Data.DataColumn[] {
  624. this.tableTagOfClient.TagIDColumn}, false);
  625. this.Relations.Add(this.relationFK_TagOfClient_Tag);
  626. }
  627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  629. private bool ShouldSerializeAttachedProduct() {
  630. return false;
  631. }
  632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  634. private bool ShouldSerializeClient() {
  635. return false;
  636. }
  637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  638. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  639. private bool ShouldSerializeClient_b_import() {
  640. return false;
  641. }
  642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  644. private bool ShouldSerializeClientService() {
  645. return false;
  646. }
  647. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  648. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  649. private bool ShouldSerializeDocumentByService() {
  650. return false;
  651. }
  652. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  653. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  654. private bool ShouldSerializeGender() {
  655. return false;
  656. }
  657. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  658. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  659. private bool ShouldSerializeManufacturer() {
  660. return false;
  661. }
  662. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  663. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  664. private bool ShouldSerializeProduct() {
  665. return false;
  666. }
  667. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  668. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  669. private bool ShouldSerializeProductPhoto() {
  670. return false;
  671. }
  672. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  674. private bool ShouldSerializeProductSale() {
  675. return false;
  676. }
  677. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  678. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  679. private bool ShouldSerializeService() {
  680. return false;
  681. }
  682. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  683. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  684. private bool ShouldSerializeService_b_import() {
  685. return false;
  686. }
  687. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  688. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  689. private bool ShouldSerializeServiceclient_b_import() {
  690. return false;
  691. }
  692. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  693. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  694. private bool ShouldSerializeServicePhoto() {
  695. return false;
  696. }
  697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  698. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  699. private bool ShouldSerializeTag() {
  700. return false;
  701. }
  702. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  703. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  704. private bool ShouldSerializeTagOfClient() {
  705. return false;
  706. }
  707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  709. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  710. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  711. this.InitVars();
  712. }
  713. }
  714. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  715. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  716. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  717. BarhotnieBrovkiDataSet ds = new BarhotnieBrovkiDataSet();
  718. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  719. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  720. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  721. any.Namespace = ds.Namespace;
  722. sequence.Items.Add(any);
  723. type.Particle = sequence;
  724. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  725. if (xs.Contains(dsSchema.TargetNamespace)) {
  726. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  727. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  728. try {
  729. global::System.Xml.Schema.XmlSchema schema = null;
  730. dsSchema.Write(s1);
  731. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  732. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  733. s2.SetLength(0);
  734. schema.Write(s2);
  735. if ((s1.Length == s2.Length)) {
  736. s1.Position = 0;
  737. s2.Position = 0;
  738. for (; ((s1.Position != s1.Length)
  739. && (s1.ReadByte() == s2.ReadByte())); ) {
  740. ;
  741. }
  742. if ((s1.Position == s1.Length)) {
  743. return type;
  744. }
  745. }
  746. }
  747. }
  748. finally {
  749. if ((s1 != null)) {
  750. s1.Close();
  751. }
  752. if ((s2 != null)) {
  753. s2.Close();
  754. }
  755. }
  756. }
  757. xs.Add(dsSchema);
  758. return type;
  759. }
  760. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  761. public delegate void AttachedProductRowChangeEventHandler(object sender, AttachedProductRowChangeEvent e);
  762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  763. public delegate void ClientRowChangeEventHandler(object sender, ClientRowChangeEvent e);
  764. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  765. public delegate void Client_b_importRowChangeEventHandler(object sender, Client_b_importRowChangeEvent e);
  766. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  767. public delegate void ClientServiceRowChangeEventHandler(object sender, ClientServiceRowChangeEvent e);
  768. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  769. public delegate void DocumentByServiceRowChangeEventHandler(object sender, DocumentByServiceRowChangeEvent e);
  770. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  771. public delegate void GenderRowChangeEventHandler(object sender, GenderRowChangeEvent e);
  772. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  773. public delegate void ManufacturerRowChangeEventHandler(object sender, ManufacturerRowChangeEvent e);
  774. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  775. public delegate void ProductRowChangeEventHandler(object sender, ProductRowChangeEvent e);
  776. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  777. public delegate void ProductPhotoRowChangeEventHandler(object sender, ProductPhotoRowChangeEvent e);
  778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  779. public delegate void ProductSaleRowChangeEventHandler(object sender, ProductSaleRowChangeEvent e);
  780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  781. public delegate void ServiceRowChangeEventHandler(object sender, ServiceRowChangeEvent e);
  782. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  783. public delegate void Service_b_importRowChangeEventHandler(object sender, Service_b_importRowChangeEvent e);
  784. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  785. public delegate void Serviceclient_b_importRowChangeEventHandler(object sender, Serviceclient_b_importRowChangeEvent e);
  786. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  787. public delegate void ServicePhotoRowChangeEventHandler(object sender, ServicePhotoRowChangeEvent e);
  788. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  789. public delegate void TagRowChangeEventHandler(object sender, TagRowChangeEvent e);
  790. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  791. public delegate void TagOfClientRowChangeEventHandler(object sender, TagOfClientRowChangeEvent e);
  792. /// <summary>
  793. ///Represents the strongly named DataTable class.
  794. ///</summary>
  795. [global::System.Serializable()]
  796. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  797. public partial class AttachedProductDataTable : global::System.Data.TypedTableBase<AttachedProductRow> {
  798. private global::System.Data.DataColumn columnMainProductID;
  799. private global::System.Data.DataColumn columnAttachedProductID;
  800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  802. public AttachedProductDataTable() {
  803. this.TableName = "AttachedProduct";
  804. this.BeginInit();
  805. this.InitClass();
  806. this.EndInit();
  807. }
  808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  810. internal AttachedProductDataTable(global::System.Data.DataTable table) {
  811. this.TableName = table.TableName;
  812. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  813. this.CaseSensitive = table.CaseSensitive;
  814. }
  815. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  816. this.Locale = table.Locale;
  817. }
  818. if ((table.Namespace != table.DataSet.Namespace)) {
  819. this.Namespace = table.Namespace;
  820. }
  821. this.Prefix = table.Prefix;
  822. this.MinimumCapacity = table.MinimumCapacity;
  823. }
  824. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  825. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  826. protected AttachedProductDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  827. base(info, context) {
  828. this.InitVars();
  829. }
  830. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  831. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  832. public global::System.Data.DataColumn MainProductIDColumn {
  833. get {
  834. return this.columnMainProductID;
  835. }
  836. }
  837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  839. public global::System.Data.DataColumn AttachedProductIDColumn {
  840. get {
  841. return this.columnAttachedProductID;
  842. }
  843. }
  844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  845. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  846. [global::System.ComponentModel.Browsable(false)]
  847. public int Count {
  848. get {
  849. return this.Rows.Count;
  850. }
  851. }
  852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  853. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  854. public AttachedProductRow this[int index] {
  855. get {
  856. return ((AttachedProductRow)(this.Rows[index]));
  857. }
  858. }
  859. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  860. public event AttachedProductRowChangeEventHandler AttachedProductRowChanging;
  861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  862. public event AttachedProductRowChangeEventHandler AttachedProductRowChanged;
  863. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  864. public event AttachedProductRowChangeEventHandler AttachedProductRowDeleting;
  865. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  866. public event AttachedProductRowChangeEventHandler AttachedProductRowDeleted;
  867. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  868. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  869. public void AddAttachedProductRow(AttachedProductRow row) {
  870. this.Rows.Add(row);
  871. }
  872. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  873. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  874. public AttachedProductRow AddAttachedProductRow(ProductRow parentProductRowByFK_AttachedProduct_Product, ProductRow parentProductRowByFK_AttachedProduct_Product1) {
  875. AttachedProductRow rowAttachedProductRow = ((AttachedProductRow)(this.NewRow()));
  876. object[] columnValuesArray = new object[] {
  877. null,
  878. null};
  879. if ((parentProductRowByFK_AttachedProduct_Product != null)) {
  880. columnValuesArray[0] = parentProductRowByFK_AttachedProduct_Product[0];
  881. }
  882. if ((parentProductRowByFK_AttachedProduct_Product1 != null)) {
  883. columnValuesArray[1] = parentProductRowByFK_AttachedProduct_Product1[0];
  884. }
  885. rowAttachedProductRow.ItemArray = columnValuesArray;
  886. this.Rows.Add(rowAttachedProductRow);
  887. return rowAttachedProductRow;
  888. }
  889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  890. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  891. public AttachedProductRow FindByMainProductIDAttachedProductID(int MainProductID, int AttachedProductID) {
  892. return ((AttachedProductRow)(this.Rows.Find(new object[] {
  893. MainProductID,
  894. AttachedProductID})));
  895. }
  896. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  897. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  898. public override global::System.Data.DataTable Clone() {
  899. AttachedProductDataTable cln = ((AttachedProductDataTable)(base.Clone()));
  900. cln.InitVars();
  901. return cln;
  902. }
  903. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  904. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  905. protected override global::System.Data.DataTable CreateInstance() {
  906. return new AttachedProductDataTable();
  907. }
  908. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  909. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  910. internal void InitVars() {
  911. this.columnMainProductID = base.Columns["MainProductID"];
  912. this.columnAttachedProductID = base.Columns["AttachedProductID"];
  913. }
  914. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  915. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  916. private void InitClass() {
  917. this.columnMainProductID = new global::System.Data.DataColumn("MainProductID", typeof(int), null, global::System.Data.MappingType.Element);
  918. base.Columns.Add(this.columnMainProductID);
  919. this.columnAttachedProductID = new global::System.Data.DataColumn("AttachedProductID", typeof(int), null, global::System.Data.MappingType.Element);
  920. base.Columns.Add(this.columnAttachedProductID);
  921. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  922. this.columnMainProductID,
  923. this.columnAttachedProductID}, true));
  924. this.columnMainProductID.AllowDBNull = false;
  925. this.columnAttachedProductID.AllowDBNull = false;
  926. }
  927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  928. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  929. public AttachedProductRow NewAttachedProductRow() {
  930. return ((AttachedProductRow)(this.NewRow()));
  931. }
  932. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  933. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  934. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  935. return new AttachedProductRow(builder);
  936. }
  937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  938. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  939. protected override global::System.Type GetRowType() {
  940. return typeof(AttachedProductRow);
  941. }
  942. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  943. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  944. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  945. base.OnRowChanged(e);
  946. if ((this.AttachedProductRowChanged != null)) {
  947. this.AttachedProductRowChanged(this, new AttachedProductRowChangeEvent(((AttachedProductRow)(e.Row)), e.Action));
  948. }
  949. }
  950. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  951. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  952. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  953. base.OnRowChanging(e);
  954. if ((this.AttachedProductRowChanging != null)) {
  955. this.AttachedProductRowChanging(this, new AttachedProductRowChangeEvent(((AttachedProductRow)(e.Row)), e.Action));
  956. }
  957. }
  958. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  959. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  960. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  961. base.OnRowDeleted(e);
  962. if ((this.AttachedProductRowDeleted != null)) {
  963. this.AttachedProductRowDeleted(this, new AttachedProductRowChangeEvent(((AttachedProductRow)(e.Row)), e.Action));
  964. }
  965. }
  966. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  967. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  968. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  969. base.OnRowDeleting(e);
  970. if ((this.AttachedProductRowDeleting != null)) {
  971. this.AttachedProductRowDeleting(this, new AttachedProductRowChangeEvent(((AttachedProductRow)(e.Row)), e.Action));
  972. }
  973. }
  974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  975. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  976. public void RemoveAttachedProductRow(AttachedProductRow row) {
  977. this.Rows.Remove(row);
  978. }
  979. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  980. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  981. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  982. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  983. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  984. BarhotnieBrovkiDataSet ds = new BarhotnieBrovkiDataSet();
  985. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  986. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  987. any1.MinOccurs = new decimal(0);
  988. any1.MaxOccurs = decimal.MaxValue;
  989. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  990. sequence.Items.Add(any1);
  991. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  992. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  993. any2.MinOccurs = new decimal(1);
  994. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  995. sequence.Items.Add(any2);
  996. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  997. attribute1.Name = "namespace";
  998. attribute1.FixedValue = ds.Namespace;
  999. type.Attributes.Add(attribute1);
  1000. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1001. attribute2.Name = "tableTypeName";
  1002. attribute2.FixedValue = "AttachedProductDataTable";
  1003. type.Attributes.Add(attribute2);
  1004. type.Particle = sequence;
  1005. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1006. if (xs.Contains(dsSchema.TargetNamespace)) {
  1007. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1008. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1009. try {
  1010. global::System.Xml.Schema.XmlSchema schema = null;
  1011. dsSchema.Write(s1);
  1012. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1013. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1014. s2.SetLength(0);
  1015. schema.Write(s2);
  1016. if ((s1.Length == s2.Length)) {
  1017. s1.Position = 0;
  1018. s2.Position = 0;
  1019. for (; ((s1.Position != s1.Length)
  1020. && (s1.ReadByte() == s2.ReadByte())); ) {
  1021. ;
  1022. }
  1023. if ((s1.Position == s1.Length)) {
  1024. return type;
  1025. }
  1026. }
  1027. }
  1028. }
  1029. finally {
  1030. if ((s1 != null)) {
  1031. s1.Close();
  1032. }
  1033. if ((s2 != null)) {
  1034. s2.Close();
  1035. }
  1036. }
  1037. }
  1038. xs.Add(dsSchema);
  1039. return type;
  1040. }
  1041. }
  1042. /// <summary>
  1043. ///Represents the strongly named DataTable class.
  1044. ///</summary>
  1045. [global::System.Serializable()]
  1046. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1047. public partial class ClientDataTable : global::System.Data.TypedTableBase<ClientRow> {
  1048. private global::System.Data.DataColumn columnID;
  1049. private global::System.Data.DataColumn columnFirstName;
  1050. private global::System.Data.DataColumn columnLastName;
  1051. private global::System.Data.DataColumn columnPatronymic;
  1052. private global::System.Data.DataColumn columnBirthday;
  1053. private global::System.Data.DataColumn columnRegistrationDate;
  1054. private global::System.Data.DataColumn columnEmail;
  1055. private global::System.Data.DataColumn columnPhone;
  1056. private global::System.Data.DataColumn columnGenderCode;
  1057. private global::System.Data.DataColumn columnPhotoPath;
  1058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1059. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1060. public ClientDataTable() {
  1061. this.TableName = "Client";
  1062. this.BeginInit();
  1063. this.InitClass();
  1064. this.EndInit();
  1065. }
  1066. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1067. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1068. internal ClientDataTable(global::System.Data.DataTable table) {
  1069. this.TableName = table.TableName;
  1070. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1071. this.CaseSensitive = table.CaseSensitive;
  1072. }
  1073. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1074. this.Locale = table.Locale;
  1075. }
  1076. if ((table.Namespace != table.DataSet.Namespace)) {
  1077. this.Namespace = table.Namespace;
  1078. }
  1079. this.Prefix = table.Prefix;
  1080. this.MinimumCapacity = table.MinimumCapacity;
  1081. }
  1082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1084. protected ClientDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1085. base(info, context) {
  1086. this.InitVars();
  1087. }
  1088. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1089. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1090. public global::System.Data.DataColumn IDColumn {
  1091. get {
  1092. return this.columnID;
  1093. }
  1094. }
  1095. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1096. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1097. public global::System.Data.DataColumn FirstNameColumn {
  1098. get {
  1099. return this.columnFirstName;
  1100. }
  1101. }
  1102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1103. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1104. public global::System.Data.DataColumn LastNameColumn {
  1105. get {
  1106. return this.columnLastName;
  1107. }
  1108. }
  1109. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1110. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1111. public global::System.Data.DataColumn PatronymicColumn {
  1112. get {
  1113. return this.columnPatronymic;
  1114. }
  1115. }
  1116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1118. public global::System.Data.DataColumn BirthdayColumn {
  1119. get {
  1120. return this.columnBirthday;
  1121. }
  1122. }
  1123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1124. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1125. public global::System.Data.DataColumn RegistrationDateColumn {
  1126. get {
  1127. return this.columnRegistrationDate;
  1128. }
  1129. }
  1130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1131. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1132. public global::System.Data.DataColumn EmailColumn {
  1133. get {
  1134. return this.columnEmail;
  1135. }
  1136. }
  1137. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1138. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1139. public global::System.Data.DataColumn PhoneColumn {
  1140. get {
  1141. return this.columnPhone;
  1142. }
  1143. }
  1144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1146. public global::System.Data.DataColumn GenderCodeColumn {
  1147. get {
  1148. return this.columnGenderCode;
  1149. }
  1150. }
  1151. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1152. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1153. public global::System.Data.DataColumn PhotoPathColumn {
  1154. get {
  1155. return this.columnPhotoPath;
  1156. }
  1157. }
  1158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1159. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1160. [global::System.ComponentModel.Browsable(false)]
  1161. public int Count {
  1162. get {
  1163. return this.Rows.Count;
  1164. }
  1165. }
  1166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1167. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1168. public ClientRow this[int index] {
  1169. get {
  1170. return ((ClientRow)(this.Rows[index]));
  1171. }
  1172. }
  1173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1174. public event ClientRowChangeEventHandler ClientRowChanging;
  1175. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1176. public event ClientRowChangeEventHandler ClientRowChanged;
  1177. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1178. public event ClientRowChangeEventHandler ClientRowDeleting;
  1179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1180. public event ClientRowChangeEventHandler ClientRowDeleted;
  1181. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1182. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1183. public void AddClientRow(ClientRow row) {
  1184. this.Rows.Add(row);
  1185. }
  1186. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1187. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1188. public ClientRow AddClientRow(string FirstName, string LastName, string Patronymic, System.DateTime Birthday, System.DateTime RegistrationDate, string Email, string Phone, GenderRow parentGenderRowByFK_Client_Gender, string PhotoPath) {
  1189. ClientRow rowClientRow = ((ClientRow)(this.NewRow()));
  1190. object[] columnValuesArray = new object[] {
  1191. null,
  1192. FirstName,
  1193. LastName,
  1194. Patronymic,
  1195. Birthday,
  1196. RegistrationDate,
  1197. Email,
  1198. Phone,
  1199. null,
  1200. PhotoPath};
  1201. if ((parentGenderRowByFK_Client_Gender != null)) {
  1202. columnValuesArray[8] = parentGenderRowByFK_Client_Gender[0];
  1203. }
  1204. rowClientRow.ItemArray = columnValuesArray;
  1205. this.Rows.Add(rowClientRow);
  1206. return rowClientRow;
  1207. }
  1208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1209. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1210. public ClientRow FindByID(int ID) {
  1211. return ((ClientRow)(this.Rows.Find(new object[] {
  1212. ID})));
  1213. }
  1214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1215. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1216. public override global::System.Data.DataTable Clone() {
  1217. ClientDataTable cln = ((ClientDataTable)(base.Clone()));
  1218. cln.InitVars();
  1219. return cln;
  1220. }
  1221. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1222. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1223. protected override global::System.Data.DataTable CreateInstance() {
  1224. return new ClientDataTable();
  1225. }
  1226. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1227. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1228. internal void InitVars() {
  1229. this.columnID = base.Columns["ID"];
  1230. this.columnFirstName = base.Columns["FirstName"];
  1231. this.columnLastName = base.Columns["LastName"];
  1232. this.columnPatronymic = base.Columns["Patronymic"];
  1233. this.columnBirthday = base.Columns["Birthday"];
  1234. this.columnRegistrationDate = base.Columns["RegistrationDate"];
  1235. this.columnEmail = base.Columns["Email"];
  1236. this.columnPhone = base.Columns["Phone"];
  1237. this.columnGenderCode = base.Columns["GenderCode"];
  1238. this.columnPhotoPath = base.Columns["PhotoPath"];
  1239. }
  1240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1241. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1242. private void InitClass() {
  1243. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  1244. base.Columns.Add(this.columnID);
  1245. this.columnFirstName = new global::System.Data.DataColumn("FirstName", typeof(string), null, global::System.Data.MappingType.Element);
  1246. base.Columns.Add(this.columnFirstName);
  1247. this.columnLastName = new global::System.Data.DataColumn("LastName", typeof(string), null, global::System.Data.MappingType.Element);
  1248. base.Columns.Add(this.columnLastName);
  1249. this.columnPatronymic = new global::System.Data.DataColumn("Patronymic", typeof(string), null, global::System.Data.MappingType.Element);
  1250. base.Columns.Add(this.columnPatronymic);
  1251. this.columnBirthday = new global::System.Data.DataColumn("Birthday", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1252. base.Columns.Add(this.columnBirthday);
  1253. this.columnRegistrationDate = new global::System.Data.DataColumn("RegistrationDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1254. base.Columns.Add(this.columnRegistrationDate);
  1255. this.columnEmail = new global::System.Data.DataColumn("Email", typeof(string), null, global::System.Data.MappingType.Element);
  1256. base.Columns.Add(this.columnEmail);
  1257. this.columnPhone = new global::System.Data.DataColumn("Phone", typeof(string), null, global::System.Data.MappingType.Element);
  1258. base.Columns.Add(this.columnPhone);
  1259. this.columnGenderCode = new global::System.Data.DataColumn("GenderCode", typeof(string), null, global::System.Data.MappingType.Element);
  1260. base.Columns.Add(this.columnGenderCode);
  1261. this.columnPhotoPath = new global::System.Data.DataColumn("PhotoPath", typeof(string), null, global::System.Data.MappingType.Element);
  1262. base.Columns.Add(this.columnPhotoPath);
  1263. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1264. this.columnID}, true));
  1265. this.columnID.AutoIncrement = true;
  1266. this.columnID.AutoIncrementSeed = -1;
  1267. this.columnID.AutoIncrementStep = -1;
  1268. this.columnID.AllowDBNull = false;
  1269. this.columnID.ReadOnly = true;
  1270. this.columnID.Unique = true;
  1271. this.columnFirstName.AllowDBNull = false;
  1272. this.columnFirstName.MaxLength = 50;
  1273. this.columnLastName.AllowDBNull = false;
  1274. this.columnLastName.MaxLength = 50;
  1275. this.columnPatronymic.MaxLength = 50;
  1276. this.columnRegistrationDate.AllowDBNull = false;
  1277. this.columnEmail.MaxLength = 255;
  1278. this.columnPhone.AllowDBNull = false;
  1279. this.columnPhone.MaxLength = 20;
  1280. this.columnGenderCode.AllowDBNull = false;
  1281. this.columnGenderCode.MaxLength = 1;
  1282. this.columnPhotoPath.MaxLength = 1000;
  1283. }
  1284. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1285. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1286. public ClientRow NewClientRow() {
  1287. return ((ClientRow)(this.NewRow()));
  1288. }
  1289. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1290. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1291. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1292. return new ClientRow(builder);
  1293. }
  1294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1296. protected override global::System.Type GetRowType() {
  1297. return typeof(ClientRow);
  1298. }
  1299. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1300. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1301. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1302. base.OnRowChanged(e);
  1303. if ((this.ClientRowChanged != null)) {
  1304. this.ClientRowChanged(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  1305. }
  1306. }
  1307. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1308. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1309. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1310. base.OnRowChanging(e);
  1311. if ((this.ClientRowChanging != null)) {
  1312. this.ClientRowChanging(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  1313. }
  1314. }
  1315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1316. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1317. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1318. base.OnRowDeleted(e);
  1319. if ((this.ClientRowDeleted != null)) {
  1320. this.ClientRowDeleted(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  1321. }
  1322. }
  1323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1324. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1325. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1326. base.OnRowDeleting(e);
  1327. if ((this.ClientRowDeleting != null)) {
  1328. this.ClientRowDeleting(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  1329. }
  1330. }
  1331. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1332. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1333. public void RemoveClientRow(ClientRow row) {
  1334. this.Rows.Remove(row);
  1335. }
  1336. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1337. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1338. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1339. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1340. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1341. BarhotnieBrovkiDataSet ds = new BarhotnieBrovkiDataSet();
  1342. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1343. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1344. any1.MinOccurs = new decimal(0);
  1345. any1.MaxOccurs = decimal.MaxValue;
  1346. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1347. sequence.Items.Add(any1);
  1348. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1349. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1350. any2.MinOccurs = new decimal(1);
  1351. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1352. sequence.Items.Add(any2);
  1353. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1354. attribute1.Name = "namespace";
  1355. attribute1.FixedValue = ds.Namespace;
  1356. type.Attributes.Add(attribute1);
  1357. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1358. attribute2.Name = "tableTypeName";
  1359. attribute2.FixedValue = "ClientDataTable";
  1360. type.Attributes.Add(attribute2);
  1361. type.Particle = sequence;
  1362. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1363. if (xs.Contains(dsSchema.TargetNamespace)) {
  1364. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1365. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1366. try {
  1367. global::System.Xml.Schema.XmlSchema schema = null;
  1368. dsSchema.Write(s1);
  1369. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1370. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1371. s2.SetLength(0);
  1372. schema.Write(s2);
  1373. if ((s1.Length == s2.Length)) {
  1374. s1.Position = 0;
  1375. s2.Position = 0;
  1376. for (; ((s1.Position != s1.Length)
  1377. && (s1.ReadByte() == s2.ReadByte())); ) {
  1378. ;
  1379. }
  1380. if ((s1.Position == s1.Length)) {
  1381. return type;
  1382. }
  1383. }
  1384. }
  1385. }
  1386. finally {
  1387. if ((s1 != null)) {
  1388. s1.Close();
  1389. }
  1390. if ((s2 != null)) {
  1391. s2.Close();
  1392. }
  1393. }
  1394. }
  1395. xs.Add(dsSchema);
  1396. return type;
  1397. }
  1398. }
  1399. /// <summary>
  1400. ///Represents the strongly named DataTable class.
  1401. ///</summary>
  1402. [global::System.Serializable()]
  1403. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1404. public partial class Client_b_importDataTable : global::System.Data.TypedTableBase<Client_b_importRow> {
  1405. private global::System.Data.DataColumn columnФамилия;
  1406. private global::System.Data.DataColumn columnИмя;
  1407. private global::System.Data.DataColumn columnОтчество;
  1408. private global::System.Data.DataColumn columnПол;
  1409. private global::System.Data.DataColumn columnТелефон;
  1410. private global::System.Data.DataColumn columnДата_рождения;
  1411. private global::System.Data.DataColumn columnEmail;
  1412. private global::System.Data.DataColumn columnДата_регистрации;
  1413. private global::System.Data.DataColumn columnID;
  1414. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1415. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1416. public Client_b_importDataTable() {
  1417. this.TableName = "Client_b_import";
  1418. this.BeginInit();
  1419. this.InitClass();
  1420. this.EndInit();
  1421. }
  1422. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1423. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1424. internal Client_b_importDataTable(global::System.Data.DataTable table) {
  1425. this.TableName = table.TableName;
  1426. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1427. this.CaseSensitive = table.CaseSensitive;
  1428. }
  1429. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1430. this.Locale = table.Locale;
  1431. }
  1432. if ((table.Namespace != table.DataSet.Namespace)) {
  1433. this.Namespace = table.Namespace;
  1434. }
  1435. this.Prefix = table.Prefix;
  1436. this.MinimumCapacity = table.MinimumCapacity;
  1437. }
  1438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1439. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1440. protected Client_b_importDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1441. base(info, context) {
  1442. this.InitVars();
  1443. }
  1444. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1445. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1446. public global::System.Data.DataColumn ФамилияColumn {
  1447. get {
  1448. return this.columnФамилия;
  1449. }
  1450. }
  1451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1452. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1453. public global::System.Data.DataColumn ИмяColumn {
  1454. get {
  1455. return this.columnИмя;
  1456. }
  1457. }
  1458. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1459. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1460. public global::System.Data.DataColumn ОтчествоColumn {
  1461. get {
  1462. return this.columnОтчество;
  1463. }
  1464. }
  1465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1466. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1467. public global::System.Data.DataColumn ПолColumn {
  1468. get {
  1469. return this.columnПол;
  1470. }
  1471. }
  1472. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1474. public global::System.Data.DataColumn ТелефонColumn {
  1475. get {
  1476. return this.columnТелефон;
  1477. }
  1478. }
  1479. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1480. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1481. public global::System.Data.DataColumn Дата_рожденияColumn {
  1482. get {
  1483. return this.columnДата_рождения;
  1484. }
  1485. }
  1486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1488. public global::System.Data.DataColumn EmailColumn {
  1489. get {
  1490. return this.columnEmail;
  1491. }
  1492. }
  1493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1494. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1495. public global::System.Data.DataColumn Дата_регистрацииColumn {
  1496. get {
  1497. return this.columnДата_регистрации;
  1498. }
  1499. }
  1500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1502. public global::System.Data.DataColumn IDColumn {
  1503. get {
  1504. return this.columnID;
  1505. }
  1506. }
  1507. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1508. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1509. [global::System.ComponentModel.Browsable(false)]
  1510. public int Count {
  1511. get {
  1512. return this.Rows.Count;
  1513. }
  1514. }
  1515. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1516. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1517. public Client_b_importRow this[int index] {
  1518. get {
  1519. return ((Client_b_importRow)(this.Rows[index]));
  1520. }
  1521. }
  1522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1523. public event Client_b_importRowChangeEventHandler Client_b_importRowChanging;
  1524. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1525. public event Client_b_importRowChangeEventHandler Client_b_importRowChanged;
  1526. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1527. public event Client_b_importRowChangeEventHandler Client_b_importRowDeleting;
  1528. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1529. public event Client_b_importRowChangeEventHandler Client_b_importRowDeleted;
  1530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1532. public void AddClient_b_importRow(Client_b_importRow row) {
  1533. this.Rows.Add(row);
  1534. }
  1535. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1536. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1537. public Client_b_importRow AddClient_b_importRow(string Фамилия, string Имя, string Отчество, string Пол, string Телефон, System.DateTime Дата_рождения, string Email, System.DateTime Дата_регистрации, long ID) {
  1538. Client_b_importRow rowClient_b_importRow = ((Client_b_importRow)(this.NewRow()));
  1539. object[] columnValuesArray = new object[] {
  1540. Фамилия,
  1541. Имя,
  1542. Отчество,
  1543. Пол,
  1544. Телефон,
  1545. Дата_рождения,
  1546. Email,
  1547. Дата_регистрации,
  1548. ID};
  1549. rowClient_b_importRow.ItemArray = columnValuesArray;
  1550. this.Rows.Add(rowClient_b_importRow);
  1551. return rowClient_b_importRow;
  1552. }
  1553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1555. public Client_b_importRow FindByID(long ID) {
  1556. return ((Client_b_importRow)(this.Rows.Find(new object[] {
  1557. ID})));
  1558. }
  1559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1561. public override global::System.Data.DataTable Clone() {
  1562. Client_b_importDataTable cln = ((Client_b_importDataTable)(base.Clone()));
  1563. cln.InitVars();
  1564. return cln;
  1565. }
  1566. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1567. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1568. protected override global::System.Data.DataTable CreateInstance() {
  1569. return new Client_b_importDataTable();
  1570. }
  1571. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1572. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1573. internal void InitVars() {
  1574. this.columnФамилия = base.Columns["Фамилия"];
  1575. this.columnИмя = base.Columns["Имя"];
  1576. this.columnОтчество = base.Columns["Отчество"];
  1577. this.columnПол = base.Columns["Пол"];
  1578. this.columnТелефон = base.Columns["Телефон"];
  1579. this.columnДата_рождения = base.Columns["Дата_рождения"];
  1580. this.columnEmail = base.Columns["Email"];
  1581. this.columnДата_регистрации = base.Columns["Дата_регистрации"];
  1582. this.columnID = base.Columns["ID"];
  1583. }
  1584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1586. private void InitClass() {
  1587. this.columnФамилия = new global::System.Data.DataColumn("Фамилия", typeof(string), null, global::System.Data.MappingType.Element);
  1588. base.Columns.Add(this.columnФамилия);
  1589. this.columnИмя = new global::System.Data.DataColumn("Имя", typeof(string), null, global::System.Data.MappingType.Element);
  1590. base.Columns.Add(this.columnИмя);
  1591. this.columnОтчество = new global::System.Data.DataColumn("Отчество", typeof(string), null, global::System.Data.MappingType.Element);
  1592. base.Columns.Add(this.columnОтчество);
  1593. this.columnПол = new global::System.Data.DataColumn("Пол", typeof(string), null, global::System.Data.MappingType.Element);
  1594. base.Columns.Add(this.columnПол);
  1595. this.columnТелефон = new global::System.Data.DataColumn("Телефон", typeof(string), null, global::System.Data.MappingType.Element);
  1596. base.Columns.Add(this.columnТелефон);
  1597. this.columnДата_рождения = new global::System.Data.DataColumn("Дата_рождения", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1598. base.Columns.Add(this.columnДата_рождения);
  1599. this.columnEmail = new global::System.Data.DataColumn("Email", typeof(string), null, global::System.Data.MappingType.Element);
  1600. base.Columns.Add(this.columnEmail);
  1601. this.columnДата_регистрации = new global::System.Data.DataColumn("Дата_регистрации", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1602. base.Columns.Add(this.columnДата_регистрации);
  1603. this.columnID = new global::System.Data.DataColumn("ID", typeof(long), null, global::System.Data.MappingType.Element);
  1604. base.Columns.Add(this.columnID);
  1605. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1606. this.columnID}, true));
  1607. this.columnФамилия.AllowDBNull = false;
  1608. this.columnФамилия.MaxLength = 50;
  1609. this.columnИмя.AllowDBNull = false;
  1610. this.columnИмя.MaxLength = 50;
  1611. this.columnОтчество.AllowDBNull = false;
  1612. this.columnОтчество.MaxLength = 50;
  1613. this.columnПол.AllowDBNull = false;
  1614. this.columnПол.MaxLength = 50;
  1615. this.columnТелефон.AllowDBNull = false;
  1616. this.columnТелефон.MaxLength = 50;
  1617. this.columnДата_рождения.AllowDBNull = false;
  1618. this.columnEmail.AllowDBNull = false;
  1619. this.columnEmail.MaxLength = 50;
  1620. this.columnДата_регистрации.AllowDBNull = false;
  1621. this.columnID.AllowDBNull = false;
  1622. this.columnID.Unique = true;
  1623. }
  1624. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1625. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1626. public Client_b_importRow NewClient_b_importRow() {
  1627. return ((Client_b_importRow)(this.NewRow()));
  1628. }
  1629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1631. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1632. return new Client_b_importRow(builder);
  1633. }
  1634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1636. protected override global::System.Type GetRowType() {
  1637. return typeof(Client_b_importRow);
  1638. }
  1639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1641. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1642. base.OnRowChanged(e);
  1643. if ((this.Client_b_importRowChanged != null)) {
  1644. this.Client_b_importRowChanged(this, new Client_b_importRowChangeEvent(((Client_b_importRow)(e.Row)), e.Action));
  1645. }
  1646. }
  1647. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1648. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1649. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1650. base.OnRowChanging(e);
  1651. if ((this.Client_b_importRowChanging != null)) {
  1652. this.Client_b_importRowChanging(this, new Client_b_importRowChangeEvent(((Client_b_importRow)(e.Row)), e.Action));
  1653. }
  1654. }
  1655. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1656. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1657. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1658. base.OnRowDeleted(e);
  1659. if ((this.Client_b_importRowDeleted != null)) {
  1660. this.Client_b_importRowDeleted(this, new Client_b_importRowChangeEvent(((Client_b_importRow)(e.Row)), e.Action));
  1661. }
  1662. }
  1663. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1664. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1665. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1666. base.OnRowDeleting(e);
  1667. if ((this.Client_b_importRowDeleting != null)) {
  1668. this.Client_b_importRowDeleting(this, new Client_b_importRowChangeEvent(((Client_b_importRow)(e.Row)), e.Action));
  1669. }
  1670. }
  1671. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1672. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1673. public void RemoveClient_b_importRow(Client_b_importRow row) {
  1674. this.Rows.Remove(row);
  1675. }
  1676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1677. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1678. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1679. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1680. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1681. BarhotnieBrovkiDataSet ds = new BarhotnieBrovkiDataSet();
  1682. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1683. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1684. any1.MinOccurs = new decimal(0);
  1685. any1.MaxOccurs = decimal.MaxValue;
  1686. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1687. sequence.Items.Add(any1);
  1688. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1689. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1690. any2.MinOccurs = new decimal(1);
  1691. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1692. sequence.Items.Add(any2);
  1693. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1694. attribute1.Name = "namespace";
  1695. attribute1.FixedValue = ds.Namespace;
  1696. type.Attributes.Add(attribute1);
  1697. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1698. attribute2.Name = "tableTypeName";
  1699. attribute2.FixedValue = "Client_b_importDataTable";
  1700. type.Attributes.Add(attribute2);
  1701. type.Particle = sequence;
  1702. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1703. if (xs.Contains(dsSchema.TargetNamespace)) {
  1704. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1705. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1706. try {
  1707. global::System.Xml.Schema.XmlSchema schema = null;
  1708. dsSchema.Write(s1);
  1709. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1710. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1711. s2.SetLength(0);
  1712. schema.Write(s2);
  1713. if ((s1.Length == s2.Length)) {
  1714. s1.Position = 0;
  1715. s2.Position = 0;
  1716. for (; ((s1.Position != s1.Length)
  1717. && (s1.ReadByte() == s2.ReadByte())); ) {
  1718. ;
  1719. }
  1720. if ((s1.Position == s1.Length)) {
  1721. return type;
  1722. }
  1723. }
  1724. }
  1725. }
  1726. finally {
  1727. if ((s1 != null)) {
  1728. s1.Close();
  1729. }
  1730. if ((s2 != null)) {
  1731. s2.Close();
  1732. }
  1733. }
  1734. }
  1735. xs.Add(dsSchema);
  1736. return type;
  1737. }
  1738. }
  1739. /// <summary>
  1740. ///Represents the strongly named DataTable class.
  1741. ///</summary>
  1742. [global::System.Serializable()]
  1743. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1744. public partial class ClientServiceDataTable : global::System.Data.TypedTableBase<ClientServiceRow> {
  1745. private global::System.Data.DataColumn columnID;
  1746. private global::System.Data.DataColumn columnClientID;
  1747. private global::System.Data.DataColumn columnServiceID;
  1748. private global::System.Data.DataColumn columnStartTime;
  1749. private global::System.Data.DataColumn columnComment;
  1750. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1751. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1752. public ClientServiceDataTable() {
  1753. this.TableName = "ClientService";
  1754. this.BeginInit();
  1755. this.InitClass();
  1756. this.EndInit();
  1757. }
  1758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1760. internal ClientServiceDataTable(global::System.Data.DataTable table) {
  1761. this.TableName = table.TableName;
  1762. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1763. this.CaseSensitive = table.CaseSensitive;
  1764. }
  1765. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1766. this.Locale = table.Locale;
  1767. }
  1768. if ((table.Namespace != table.DataSet.Namespace)) {
  1769. this.Namespace = table.Namespace;
  1770. }
  1771. this.Prefix = table.Prefix;
  1772. this.MinimumCapacity = table.MinimumCapacity;
  1773. }
  1774. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1775. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1776. protected ClientServiceDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1777. base(info, context) {
  1778. this.InitVars();
  1779. }
  1780. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1781. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1782. public global::System.Data.DataColumn IDColumn {
  1783. get {
  1784. return this.columnID;
  1785. }
  1786. }
  1787. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1788. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1789. public global::System.Data.DataColumn ClientIDColumn {
  1790. get {
  1791. return this.columnClientID;
  1792. }
  1793. }
  1794. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1795. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1796. public global::System.Data.DataColumn ServiceIDColumn {
  1797. get {
  1798. return this.columnServiceID;
  1799. }
  1800. }
  1801. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1802. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1803. public global::System.Data.DataColumn StartTimeColumn {
  1804. get {
  1805. return this.columnStartTime;
  1806. }
  1807. }
  1808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1810. public global::System.Data.DataColumn CommentColumn {
  1811. get {
  1812. return this.columnComment;
  1813. }
  1814. }
  1815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1816. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1817. [global::System.ComponentModel.Browsable(false)]
  1818. public int Count {
  1819. get {
  1820. return this.Rows.Count;
  1821. }
  1822. }
  1823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1824. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1825. public ClientServiceRow this[int index] {
  1826. get {
  1827. return ((ClientServiceRow)(this.Rows[index]));
  1828. }
  1829. }
  1830. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1831. public event ClientServiceRowChangeEventHandler ClientServiceRowChanging;
  1832. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1833. public event ClientServiceRowChangeEventHandler ClientServiceRowChanged;
  1834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1835. public event ClientServiceRowChangeEventHandler ClientServiceRowDeleting;
  1836. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1837. public event ClientServiceRowChangeEventHandler ClientServiceRowDeleted;
  1838. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1839. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1840. public void AddClientServiceRow(ClientServiceRow row) {
  1841. this.Rows.Add(row);
  1842. }
  1843. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1844. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1845. public ClientServiceRow AddClientServiceRow(ClientRow parentClientRowByFK_ClientService_Client, ServiceRow parentServiceRowByFK_ClientService_Service, System.DateTime StartTime, string Comment) {
  1846. ClientServiceRow rowClientServiceRow = ((ClientServiceRow)(this.NewRow()));
  1847. object[] columnValuesArray = new object[] {
  1848. null,
  1849. null,
  1850. null,
  1851. StartTime,
  1852. Comment};
  1853. if ((parentClientRowByFK_ClientService_Client != null)) {
  1854. columnValuesArray[1] = parentClientRowByFK_ClientService_Client[0];
  1855. }
  1856. if ((parentServiceRowByFK_ClientService_Service != null)) {
  1857. columnValuesArray[2] = parentServiceRowByFK_ClientService_Service[0];
  1858. }
  1859. rowClientServiceRow.ItemArray = columnValuesArray;
  1860. this.Rows.Add(rowClientServiceRow);
  1861. return rowClientServiceRow;
  1862. }
  1863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1864. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1865. public ClientServiceRow FindByID(int ID) {
  1866. return ((ClientServiceRow)(this.Rows.Find(new object[] {
  1867. ID})));
  1868. }
  1869. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1870. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1871. public override global::System.Data.DataTable Clone() {
  1872. ClientServiceDataTable cln = ((ClientServiceDataTable)(base.Clone()));
  1873. cln.InitVars();
  1874. return cln;
  1875. }
  1876. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1877. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1878. protected override global::System.Data.DataTable CreateInstance() {
  1879. return new ClientServiceDataTable();
  1880. }
  1881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1883. internal void InitVars() {
  1884. this.columnID = base.Columns["ID"];
  1885. this.columnClientID = base.Columns["ClientID"];
  1886. this.columnServiceID = base.Columns["ServiceID"];
  1887. this.columnStartTime = base.Columns["StartTime"];
  1888. this.columnComment = base.Columns["Comment"];
  1889. }
  1890. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1891. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1892. private void InitClass() {
  1893. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  1894. base.Columns.Add(this.columnID);
  1895. this.columnClientID = new global::System.Data.DataColumn("ClientID", typeof(int), null, global::System.Data.MappingType.Element);
  1896. base.Columns.Add(this.columnClientID);
  1897. this.columnServiceID = new global::System.Data.DataColumn("ServiceID", typeof(int), null, global::System.Data.MappingType.Element);
  1898. base.Columns.Add(this.columnServiceID);
  1899. this.columnStartTime = new global::System.Data.DataColumn("StartTime", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1900. base.Columns.Add(this.columnStartTime);
  1901. this.columnComment = new global::System.Data.DataColumn("Comment", typeof(string), null, global::System.Data.MappingType.Element);
  1902. base.Columns.Add(this.columnComment);
  1903. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1904. this.columnID}, true));
  1905. this.columnID.AutoIncrement = true;
  1906. this.columnID.AutoIncrementSeed = -1;
  1907. this.columnID.AutoIncrementStep = -1;
  1908. this.columnID.AllowDBNull = false;
  1909. this.columnID.ReadOnly = true;
  1910. this.columnID.Unique = true;
  1911. this.columnClientID.AllowDBNull = false;
  1912. this.columnServiceID.AllowDBNull = false;
  1913. this.columnStartTime.AllowDBNull = false;
  1914. this.columnComment.MaxLength = 2147483647;
  1915. }
  1916. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1917. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1918. public ClientServiceRow NewClientServiceRow() {
  1919. return ((ClientServiceRow)(this.NewRow()));
  1920. }
  1921. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1922. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1923. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1924. return new ClientServiceRow(builder);
  1925. }
  1926. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1927. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1928. protected override global::System.Type GetRowType() {
  1929. return typeof(ClientServiceRow);
  1930. }
  1931. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1932. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1933. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1934. base.OnRowChanged(e);
  1935. if ((this.ClientServiceRowChanged != null)) {
  1936. this.ClientServiceRowChanged(this, new ClientServiceRowChangeEvent(((ClientServiceRow)(e.Row)), e.Action));
  1937. }
  1938. }
  1939. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1940. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1941. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1942. base.OnRowChanging(e);
  1943. if ((this.ClientServiceRowChanging != null)) {
  1944. this.ClientServiceRowChanging(this, new ClientServiceRowChangeEvent(((ClientServiceRow)(e.Row)), e.Action));
  1945. }
  1946. }
  1947. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1948. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1949. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1950. base.OnRowDeleted(e);
  1951. if ((this.ClientServiceRowDeleted != null)) {
  1952. this.ClientServiceRowDeleted(this, new ClientServiceRowChangeEvent(((ClientServiceRow)(e.Row)), e.Action));
  1953. }
  1954. }
  1955. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1956. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1957. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1958. base.OnRowDeleting(e);
  1959. if ((this.ClientServiceRowDeleting != null)) {
  1960. this.ClientServiceRowDeleting(this, new ClientServiceRowChangeEvent(((ClientServiceRow)(e.Row)), e.Action));
  1961. }
  1962. }
  1963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1965. public void RemoveClientServiceRow(ClientServiceRow row) {
  1966. this.Rows.Remove(row);
  1967. }
  1968. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1969. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1970. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1971. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1972. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1973. BarhotnieBrovkiDataSet ds = new BarhotnieBrovkiDataSet();
  1974. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1975. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1976. any1.MinOccurs = new decimal(0);
  1977. any1.MaxOccurs = decimal.MaxValue;
  1978. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1979. sequence.Items.Add(any1);
  1980. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1981. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1982. any2.MinOccurs = new decimal(1);
  1983. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1984. sequence.Items.Add(any2);
  1985. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1986. attribute1.Name = "namespace";
  1987. attribute1.FixedValue = ds.Namespace;
  1988. type.Attributes.Add(attribute1);
  1989. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1990. attribute2.Name = "tableTypeName";
  1991. attribute2.FixedValue = "ClientServiceDataTable";
  1992. type.Attributes.Add(attribute2);
  1993. type.Particle = sequence;
  1994. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1995. if (xs.Contains(dsSchema.TargetNamespace)) {
  1996. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1997. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1998. try {
  1999. global::System.Xml.Schema.XmlSchema schema = null;
  2000. dsSchema.Write(s1);
  2001. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2002. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2003. s2.SetLength(0);
  2004. schema.Write(s2);
  2005. if ((s1.Length == s2.Length)) {
  2006. s1.Position = 0;
  2007. s2.Position = 0;
  2008. for (; ((s1.Position != s1.Length)
  2009. && (s1.ReadByte() == s2.ReadByte())); ) {
  2010. ;
  2011. }
  2012. if ((s1.Position == s1.Length)) {
  2013. return type;
  2014. }
  2015. }
  2016. }
  2017. }
  2018. finally {
  2019. if ((s1 != null)) {
  2020. s1.Close();
  2021. }
  2022. if ((s2 != null)) {
  2023. s2.Close();
  2024. }
  2025. }
  2026. }
  2027. xs.Add(dsSchema);
  2028. return type;
  2029. }
  2030. }
  2031. /// <summary>
  2032. ///Represents the strongly named DataTable class.
  2033. ///</summary>
  2034. [global::System.Serializable()]
  2035. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2036. public partial class DocumentByServiceDataTable : global::System.Data.TypedTableBase<DocumentByServiceRow> {
  2037. private global::System.Data.DataColumn columnID;
  2038. private global::System.Data.DataColumn columnClientServiceID;
  2039. private global::System.Data.DataColumn columnDocumentPath;
  2040. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2041. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2042. public DocumentByServiceDataTable() {
  2043. this.TableName = "DocumentByService";
  2044. this.BeginInit();
  2045. this.InitClass();
  2046. this.EndInit();
  2047. }
  2048. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2049. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2050. internal DocumentByServiceDataTable(global::System.Data.DataTable table) {
  2051. this.TableName = table.TableName;
  2052. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2053. this.CaseSensitive = table.CaseSensitive;
  2054. }
  2055. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2056. this.Locale = table.Locale;
  2057. }
  2058. if ((table.Namespace != table.DataSet.Namespace)) {
  2059. this.Namespace = table.Namespace;
  2060. }
  2061. this.Prefix = table.Prefix;
  2062. this.MinimumCapacity = table.MinimumCapacity;
  2063. }
  2064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2065. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2066. protected DocumentByServiceDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2067. base(info, context) {
  2068. this.InitVars();
  2069. }
  2070. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2071. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2072. public global::System.Data.DataColumn IDColumn {
  2073. get {
  2074. return this.columnID;
  2075. }
  2076. }
  2077. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2078. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2079. public global::System.Data.DataColumn ClientServiceIDColumn {
  2080. get {
  2081. return this.columnClientServiceID;
  2082. }
  2083. }
  2084. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2085. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2086. public global::System.Data.DataColumn DocumentPathColumn {
  2087. get {
  2088. return this.columnDocumentPath;
  2089. }
  2090. }
  2091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2093. [global::System.ComponentModel.Browsable(false)]
  2094. public int Count {
  2095. get {
  2096. return this.Rows.Count;
  2097. }
  2098. }
  2099. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2100. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2101. public DocumentByServiceRow this[int index] {
  2102. get {
  2103. return ((DocumentByServiceRow)(this.Rows[index]));
  2104. }
  2105. }
  2106. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2107. public event DocumentByServiceRowChangeEventHandler DocumentByServiceRowChanging;
  2108. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2109. public event DocumentByServiceRowChangeEventHandler DocumentByServiceRowChanged;
  2110. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2111. public event DocumentByServiceRowChangeEventHandler DocumentByServiceRowDeleting;
  2112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2113. public event DocumentByServiceRowChangeEventHandler DocumentByServiceRowDeleted;
  2114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2115. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2116. public void AddDocumentByServiceRow(DocumentByServiceRow row) {
  2117. this.Rows.Add(row);
  2118. }
  2119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2120. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2121. public DocumentByServiceRow AddDocumentByServiceRow(ClientServiceRow parentClientServiceRowByFK_DocumentByService_ClientService, string DocumentPath) {
  2122. DocumentByServiceRow rowDocumentByServiceRow = ((DocumentByServiceRow)(this.NewRow()));
  2123. object[] columnValuesArray = new object[] {
  2124. null,
  2125. null,
  2126. DocumentPath};
  2127. if ((parentClientServiceRowByFK_DocumentByService_ClientService != null)) {
  2128. columnValuesArray[1] = parentClientServiceRowByFK_DocumentByService_ClientService[0];
  2129. }
  2130. rowDocumentByServiceRow.ItemArray = columnValuesArray;
  2131. this.Rows.Add(rowDocumentByServiceRow);
  2132. return rowDocumentByServiceRow;
  2133. }
  2134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2135. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2136. public DocumentByServiceRow FindByID(int ID) {
  2137. return ((DocumentByServiceRow)(this.Rows.Find(new object[] {
  2138. ID})));
  2139. }
  2140. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2141. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2142. public override global::System.Data.DataTable Clone() {
  2143. DocumentByServiceDataTable cln = ((DocumentByServiceDataTable)(base.Clone()));
  2144. cln.InitVars();
  2145. return cln;
  2146. }
  2147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2149. protected override global::System.Data.DataTable CreateInstance() {
  2150. return new DocumentByServiceDataTable();
  2151. }
  2152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2154. internal void InitVars() {
  2155. this.columnID = base.Columns["ID"];
  2156. this.columnClientServiceID = base.Columns["ClientServiceID"];
  2157. this.columnDocumentPath = base.Columns["DocumentPath"];
  2158. }
  2159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2160. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2161. private void InitClass() {
  2162. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  2163. base.Columns.Add(this.columnID);
  2164. this.columnClientServiceID = new global::System.Data.DataColumn("ClientServiceID", typeof(int), null, global::System.Data.MappingType.Element);
  2165. base.Columns.Add(this.columnClientServiceID);
  2166. this.columnDocumentPath = new global::System.Data.DataColumn("DocumentPath", typeof(string), null, global::System.Data.MappingType.Element);
  2167. base.Columns.Add(this.columnDocumentPath);
  2168. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2169. this.columnID}, true));
  2170. this.columnID.AutoIncrement = true;
  2171. this.columnID.AutoIncrementSeed = -1;
  2172. this.columnID.AutoIncrementStep = -1;
  2173. this.columnID.AllowDBNull = false;
  2174. this.columnID.ReadOnly = true;
  2175. this.columnID.Unique = true;
  2176. this.columnClientServiceID.AllowDBNull = false;
  2177. this.columnDocumentPath.AllowDBNull = false;
  2178. this.columnDocumentPath.MaxLength = 1000;
  2179. }
  2180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2181. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2182. public DocumentByServiceRow NewDocumentByServiceRow() {
  2183. return ((DocumentByServiceRow)(this.NewRow()));
  2184. }
  2185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2186. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2187. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2188. return new DocumentByServiceRow(builder);
  2189. }
  2190. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2191. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2192. protected override global::System.Type GetRowType() {
  2193. return typeof(DocumentByServiceRow);
  2194. }
  2195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2197. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2198. base.OnRowChanged(e);
  2199. if ((this.DocumentByServiceRowChanged != null)) {
  2200. this.DocumentByServiceRowChanged(this, new DocumentByServiceRowChangeEvent(((DocumentByServiceRow)(e.Row)), e.Action));
  2201. }
  2202. }
  2203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2204. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2205. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2206. base.OnRowChanging(e);
  2207. if ((this.DocumentByServiceRowChanging != null)) {
  2208. this.DocumentByServiceRowChanging(this, new DocumentByServiceRowChangeEvent(((DocumentByServiceRow)(e.Row)), e.Action));
  2209. }
  2210. }
  2211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2213. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2214. base.OnRowDeleted(e);
  2215. if ((this.DocumentByServiceRowDeleted != null)) {
  2216. this.DocumentByServiceRowDeleted(this, new DocumentByServiceRowChangeEvent(((DocumentByServiceRow)(e.Row)), e.Action));
  2217. }
  2218. }
  2219. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2220. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2221. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2222. base.OnRowDeleting(e);
  2223. if ((this.DocumentByServiceRowDeleting != null)) {
  2224. this.DocumentByServiceRowDeleting(this, new DocumentByServiceRowChangeEvent(((DocumentByServiceRow)(e.Row)), e.Action));
  2225. }
  2226. }
  2227. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2228. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2229. public void RemoveDocumentByServiceRow(DocumentByServiceRow row) {
  2230. this.Rows.Remove(row);
  2231. }
  2232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2233. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2234. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2235. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2236. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2237. BarhotnieBrovkiDataSet ds = new BarhotnieBrovkiDataSet();
  2238. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2239. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2240. any1.MinOccurs = new decimal(0);
  2241. any1.MaxOccurs = decimal.MaxValue;
  2242. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2243. sequence.Items.Add(any1);
  2244. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2245. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2246. any2.MinOccurs = new decimal(1);
  2247. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2248. sequence.Items.Add(any2);
  2249. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2250. attribute1.Name = "namespace";
  2251. attribute1.FixedValue = ds.Namespace;
  2252. type.Attributes.Add(attribute1);
  2253. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2254. attribute2.Name = "tableTypeName";
  2255. attribute2.FixedValue = "DocumentByServiceDataTable";
  2256. type.Attributes.Add(attribute2);
  2257. type.Particle = sequence;
  2258. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2259. if (xs.Contains(dsSchema.TargetNamespace)) {
  2260. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2261. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2262. try {
  2263. global::System.Xml.Schema.XmlSchema schema = null;
  2264. dsSchema.Write(s1);
  2265. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2266. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2267. s2.SetLength(0);
  2268. schema.Write(s2);
  2269. if ((s1.Length == s2.Length)) {
  2270. s1.Position = 0;
  2271. s2.Position = 0;
  2272. for (; ((s1.Position != s1.Length)
  2273. && (s1.ReadByte() == s2.ReadByte())); ) {
  2274. ;
  2275. }
  2276. if ((s1.Position == s1.Length)) {
  2277. return type;
  2278. }
  2279. }
  2280. }
  2281. }
  2282. finally {
  2283. if ((s1 != null)) {
  2284. s1.Close();
  2285. }
  2286. if ((s2 != null)) {
  2287. s2.Close();
  2288. }
  2289. }
  2290. }
  2291. xs.Add(dsSchema);
  2292. return type;
  2293. }
  2294. }
  2295. /// <summary>
  2296. ///Represents the strongly named DataTable class.
  2297. ///</summary>
  2298. [global::System.Serializable()]
  2299. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2300. public partial class GenderDataTable : global::System.Data.TypedTableBase<GenderRow> {
  2301. private global::System.Data.DataColumn columnCode;
  2302. private global::System.Data.DataColumn columnName;
  2303. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2304. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2305. public GenderDataTable() {
  2306. this.TableName = "Gender";
  2307. this.BeginInit();
  2308. this.InitClass();
  2309. this.EndInit();
  2310. }
  2311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2312. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2313. internal GenderDataTable(global::System.Data.DataTable table) {
  2314. this.TableName = table.TableName;
  2315. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2316. this.CaseSensitive = table.CaseSensitive;
  2317. }
  2318. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2319. this.Locale = table.Locale;
  2320. }
  2321. if ((table.Namespace != table.DataSet.Namespace)) {
  2322. this.Namespace = table.Namespace;
  2323. }
  2324. this.Prefix = table.Prefix;
  2325. this.MinimumCapacity = table.MinimumCapacity;
  2326. }
  2327. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2328. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2329. protected GenderDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2330. base(info, context) {
  2331. this.InitVars();
  2332. }
  2333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2334. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2335. public global::System.Data.DataColumn CodeColumn {
  2336. get {
  2337. return this.columnCode;
  2338. }
  2339. }
  2340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2341. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2342. public global::System.Data.DataColumn NameColumn {
  2343. get {
  2344. return this.columnName;
  2345. }
  2346. }
  2347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2349. [global::System.ComponentModel.Browsable(false)]
  2350. public int Count {
  2351. get {
  2352. return this.Rows.Count;
  2353. }
  2354. }
  2355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2357. public GenderRow this[int index] {
  2358. get {
  2359. return ((GenderRow)(this.Rows[index]));
  2360. }
  2361. }
  2362. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2363. public event GenderRowChangeEventHandler GenderRowChanging;
  2364. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2365. public event GenderRowChangeEventHandler GenderRowChanged;
  2366. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2367. public event GenderRowChangeEventHandler GenderRowDeleting;
  2368. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2369. public event GenderRowChangeEventHandler GenderRowDeleted;
  2370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2371. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2372. public void AddGenderRow(GenderRow row) {
  2373. this.Rows.Add(row);
  2374. }
  2375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2377. public GenderRow AddGenderRow(string Code, string Name) {
  2378. GenderRow rowGenderRow = ((GenderRow)(this.NewRow()));
  2379. object[] columnValuesArray = new object[] {
  2380. Code,
  2381. Name};
  2382. rowGenderRow.ItemArray = columnValuesArray;
  2383. this.Rows.Add(rowGenderRow);
  2384. return rowGenderRow;
  2385. }
  2386. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2387. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2388. public GenderRow FindByCode(string Code) {
  2389. return ((GenderRow)(this.Rows.Find(new object[] {
  2390. Code})));
  2391. }
  2392. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2393. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2394. public override global::System.Data.DataTable Clone() {
  2395. GenderDataTable cln = ((GenderDataTable)(base.Clone()));
  2396. cln.InitVars();
  2397. return cln;
  2398. }
  2399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2401. protected override global::System.Data.DataTable CreateInstance() {
  2402. return new GenderDataTable();
  2403. }
  2404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2406. internal void InitVars() {
  2407. this.columnCode = base.Columns["Code"];
  2408. this.columnName = base.Columns["Name"];
  2409. }
  2410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2411. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2412. private void InitClass() {
  2413. this.columnCode = new global::System.Data.DataColumn("Code", typeof(string), null, global::System.Data.MappingType.Element);
  2414. base.Columns.Add(this.columnCode);
  2415. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  2416. base.Columns.Add(this.columnName);
  2417. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2418. this.columnCode}, true));
  2419. this.columnCode.AllowDBNull = false;
  2420. this.columnCode.Unique = true;
  2421. this.columnCode.MaxLength = 1;
  2422. this.columnName.MaxLength = 10;
  2423. }
  2424. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2425. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2426. public GenderRow NewGenderRow() {
  2427. return ((GenderRow)(this.NewRow()));
  2428. }
  2429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2431. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2432. return new GenderRow(builder);
  2433. }
  2434. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2435. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2436. protected override global::System.Type GetRowType() {
  2437. return typeof(GenderRow);
  2438. }
  2439. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2440. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2441. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2442. base.OnRowChanged(e);
  2443. if ((this.GenderRowChanged != null)) {
  2444. this.GenderRowChanged(this, new GenderRowChangeEvent(((GenderRow)(e.Row)), e.Action));
  2445. }
  2446. }
  2447. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2448. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2449. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2450. base.OnRowChanging(e);
  2451. if ((this.GenderRowChanging != null)) {
  2452. this.GenderRowChanging(this, new GenderRowChangeEvent(((GenderRow)(e.Row)), e.Action));
  2453. }
  2454. }
  2455. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2456. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2457. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2458. base.OnRowDeleted(e);
  2459. if ((this.GenderRowDeleted != null)) {
  2460. this.GenderRowDeleted(this, new GenderRowChangeEvent(((GenderRow)(e.Row)), e.Action));
  2461. }
  2462. }
  2463. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2464. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2465. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2466. base.OnRowDeleting(e);
  2467. if ((this.GenderRowDeleting != null)) {
  2468. this.GenderRowDeleting(this, new GenderRowChangeEvent(((GenderRow)(e.Row)), e.Action));
  2469. }
  2470. }
  2471. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2473. public void RemoveGenderRow(GenderRow row) {
  2474. this.Rows.Remove(row);
  2475. }
  2476. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2477. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2478. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2479. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2480. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2481. BarhotnieBrovkiDataSet ds = new BarhotnieBrovkiDataSet();
  2482. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2483. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2484. any1.MinOccurs = new decimal(0);
  2485. any1.MaxOccurs = decimal.MaxValue;
  2486. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2487. sequence.Items.Add(any1);
  2488. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2489. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2490. any2.MinOccurs = new decimal(1);
  2491. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2492. sequence.Items.Add(any2);
  2493. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2494. attribute1.Name = "namespace";
  2495. attribute1.FixedValue = ds.Namespace;
  2496. type.Attributes.Add(attribute1);
  2497. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2498. attribute2.Name = "tableTypeName";
  2499. attribute2.FixedValue = "GenderDataTable";
  2500. type.Attributes.Add(attribute2);
  2501. type.Particle = sequence;
  2502. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2503. if (xs.Contains(dsSchema.TargetNamespace)) {
  2504. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2505. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2506. try {
  2507. global::System.Xml.Schema.XmlSchema schema = null;
  2508. dsSchema.Write(s1);
  2509. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2510. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2511. s2.SetLength(0);
  2512. schema.Write(s2);
  2513. if ((s1.Length == s2.Length)) {
  2514. s1.Position = 0;
  2515. s2.Position = 0;
  2516. for (; ((s1.Position != s1.Length)
  2517. && (s1.ReadByte() == s2.ReadByte())); ) {
  2518. ;
  2519. }
  2520. if ((s1.Position == s1.Length)) {
  2521. return type;
  2522. }
  2523. }
  2524. }
  2525. }
  2526. finally {
  2527. if ((s1 != null)) {
  2528. s1.Close();
  2529. }
  2530. if ((s2 != null)) {
  2531. s2.Close();
  2532. }
  2533. }
  2534. }
  2535. xs.Add(dsSchema);
  2536. return type;
  2537. }
  2538. }
  2539. /// <summary>
  2540. ///Represents the strongly named DataTable class.
  2541. ///</summary>
  2542. [global::System.Serializable()]
  2543. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2544. public partial class ManufacturerDataTable : global::System.Data.TypedTableBase<ManufacturerRow> {
  2545. private global::System.Data.DataColumn columnID;
  2546. private global::System.Data.DataColumn columnName;
  2547. private global::System.Data.DataColumn columnStartDate;
  2548. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2549. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2550. public ManufacturerDataTable() {
  2551. this.TableName = "Manufacturer";
  2552. this.BeginInit();
  2553. this.InitClass();
  2554. this.EndInit();
  2555. }
  2556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2557. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2558. internal ManufacturerDataTable(global::System.Data.DataTable table) {
  2559. this.TableName = table.TableName;
  2560. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2561. this.CaseSensitive = table.CaseSensitive;
  2562. }
  2563. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2564. this.Locale = table.Locale;
  2565. }
  2566. if ((table.Namespace != table.DataSet.Namespace)) {
  2567. this.Namespace = table.Namespace;
  2568. }
  2569. this.Prefix = table.Prefix;
  2570. this.MinimumCapacity = table.MinimumCapacity;
  2571. }
  2572. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2573. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2574. protected ManufacturerDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2575. base(info, context) {
  2576. this.InitVars();
  2577. }
  2578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2580. public global::System.Data.DataColumn IDColumn {
  2581. get {
  2582. return this.columnID;
  2583. }
  2584. }
  2585. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2586. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2587. public global::System.Data.DataColumn NameColumn {
  2588. get {
  2589. return this.columnName;
  2590. }
  2591. }
  2592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2594. public global::System.Data.DataColumn StartDateColumn {
  2595. get {
  2596. return this.columnStartDate;
  2597. }
  2598. }
  2599. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2600. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2601. [global::System.ComponentModel.Browsable(false)]
  2602. public int Count {
  2603. get {
  2604. return this.Rows.Count;
  2605. }
  2606. }
  2607. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2608. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2609. public ManufacturerRow this[int index] {
  2610. get {
  2611. return ((ManufacturerRow)(this.Rows[index]));
  2612. }
  2613. }
  2614. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2615. public event ManufacturerRowChangeEventHandler ManufacturerRowChanging;
  2616. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2617. public event ManufacturerRowChangeEventHandler ManufacturerRowChanged;
  2618. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2619. public event ManufacturerRowChangeEventHandler ManufacturerRowDeleting;
  2620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2621. public event ManufacturerRowChangeEventHandler ManufacturerRowDeleted;
  2622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2623. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2624. public void AddManufacturerRow(ManufacturerRow row) {
  2625. this.Rows.Add(row);
  2626. }
  2627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2629. public ManufacturerRow AddManufacturerRow(string Name, System.DateTime StartDate) {
  2630. ManufacturerRow rowManufacturerRow = ((ManufacturerRow)(this.NewRow()));
  2631. object[] columnValuesArray = new object[] {
  2632. null,
  2633. Name,
  2634. StartDate};
  2635. rowManufacturerRow.ItemArray = columnValuesArray;
  2636. this.Rows.Add(rowManufacturerRow);
  2637. return rowManufacturerRow;
  2638. }
  2639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2641. public ManufacturerRow FindByID(int ID) {
  2642. return ((ManufacturerRow)(this.Rows.Find(new object[] {
  2643. ID})));
  2644. }
  2645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2646. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2647. public override global::System.Data.DataTable Clone() {
  2648. ManufacturerDataTable cln = ((ManufacturerDataTable)(base.Clone()));
  2649. cln.InitVars();
  2650. return cln;
  2651. }
  2652. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2653. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2654. protected override global::System.Data.DataTable CreateInstance() {
  2655. return new ManufacturerDataTable();
  2656. }
  2657. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2658. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2659. internal void InitVars() {
  2660. this.columnID = base.Columns["ID"];
  2661. this.columnName = base.Columns["Name"];
  2662. this.columnStartDate = base.Columns["StartDate"];
  2663. }
  2664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2666. private void InitClass() {
  2667. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  2668. base.Columns.Add(this.columnID);
  2669. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  2670. base.Columns.Add(this.columnName);
  2671. this.columnStartDate = new global::System.Data.DataColumn("StartDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  2672. base.Columns.Add(this.columnStartDate);
  2673. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2674. this.columnID}, true));
  2675. this.columnID.AutoIncrement = true;
  2676. this.columnID.AutoIncrementSeed = -1;
  2677. this.columnID.AutoIncrementStep = -1;
  2678. this.columnID.AllowDBNull = false;
  2679. this.columnID.ReadOnly = true;
  2680. this.columnID.Unique = true;
  2681. this.columnName.AllowDBNull = false;
  2682. this.columnName.MaxLength = 100;
  2683. }
  2684. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2685. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2686. public ManufacturerRow NewManufacturerRow() {
  2687. return ((ManufacturerRow)(this.NewRow()));
  2688. }
  2689. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2690. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2691. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2692. return new ManufacturerRow(builder);
  2693. }
  2694. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2695. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2696. protected override global::System.Type GetRowType() {
  2697. return typeof(ManufacturerRow);
  2698. }
  2699. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2700. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2701. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2702. base.OnRowChanged(e);
  2703. if ((this.ManufacturerRowChanged != null)) {
  2704. this.ManufacturerRowChanged(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  2705. }
  2706. }
  2707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2709. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2710. base.OnRowChanging(e);
  2711. if ((this.ManufacturerRowChanging != null)) {
  2712. this.ManufacturerRowChanging(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  2713. }
  2714. }
  2715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2717. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2718. base.OnRowDeleted(e);
  2719. if ((this.ManufacturerRowDeleted != null)) {
  2720. this.ManufacturerRowDeleted(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  2721. }
  2722. }
  2723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2724. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2725. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2726. base.OnRowDeleting(e);
  2727. if ((this.ManufacturerRowDeleting != null)) {
  2728. this.ManufacturerRowDeleting(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  2729. }
  2730. }
  2731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2732. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2733. public void RemoveManufacturerRow(ManufacturerRow row) {
  2734. this.Rows.Remove(row);
  2735. }
  2736. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2737. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2738. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2739. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2740. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2741. BarhotnieBrovkiDataSet ds = new BarhotnieBrovkiDataSet();
  2742. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2743. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2744. any1.MinOccurs = new decimal(0);
  2745. any1.MaxOccurs = decimal.MaxValue;
  2746. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2747. sequence.Items.Add(any1);
  2748. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2749. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2750. any2.MinOccurs = new decimal(1);
  2751. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2752. sequence.Items.Add(any2);
  2753. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2754. attribute1.Name = "namespace";
  2755. attribute1.FixedValue = ds.Namespace;
  2756. type.Attributes.Add(attribute1);
  2757. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2758. attribute2.Name = "tableTypeName";
  2759. attribute2.FixedValue = "ManufacturerDataTable";
  2760. type.Attributes.Add(attribute2);
  2761. type.Particle = sequence;
  2762. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2763. if (xs.Contains(dsSchema.TargetNamespace)) {
  2764. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2765. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2766. try {
  2767. global::System.Xml.Schema.XmlSchema schema = null;
  2768. dsSchema.Write(s1);
  2769. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2770. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2771. s2.SetLength(0);
  2772. schema.Write(s2);
  2773. if ((s1.Length == s2.Length)) {
  2774. s1.Position = 0;
  2775. s2.Position = 0;
  2776. for (; ((s1.Position != s1.Length)
  2777. && (s1.ReadByte() == s2.ReadByte())); ) {
  2778. ;
  2779. }
  2780. if ((s1.Position == s1.Length)) {
  2781. return type;
  2782. }
  2783. }
  2784. }
  2785. }
  2786. finally {
  2787. if ((s1 != null)) {
  2788. s1.Close();
  2789. }
  2790. if ((s2 != null)) {
  2791. s2.Close();
  2792. }
  2793. }
  2794. }
  2795. xs.Add(dsSchema);
  2796. return type;
  2797. }
  2798. }
  2799. /// <summary>
  2800. ///Represents the strongly named DataTable class.
  2801. ///</summary>
  2802. [global::System.Serializable()]
  2803. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2804. public partial class ProductDataTable : global::System.Data.TypedTableBase<ProductRow> {
  2805. private global::System.Data.DataColumn columnID;
  2806. private global::System.Data.DataColumn columnTitle;
  2807. private global::System.Data.DataColumn columnCost;
  2808. private global::System.Data.DataColumn columnDescription;
  2809. private global::System.Data.DataColumn columnMainImagePath;
  2810. private global::System.Data.DataColumn columnIsActive;
  2811. private global::System.Data.DataColumn columnManufacturerID;
  2812. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2813. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2814. public ProductDataTable() {
  2815. this.TableName = "Product";
  2816. this.BeginInit();
  2817. this.InitClass();
  2818. this.EndInit();
  2819. }
  2820. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2821. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2822. internal ProductDataTable(global::System.Data.DataTable table) {
  2823. this.TableName = table.TableName;
  2824. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2825. this.CaseSensitive = table.CaseSensitive;
  2826. }
  2827. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2828. this.Locale = table.Locale;
  2829. }
  2830. if ((table.Namespace != table.DataSet.Namespace)) {
  2831. this.Namespace = table.Namespace;
  2832. }
  2833. this.Prefix = table.Prefix;
  2834. this.MinimumCapacity = table.MinimumCapacity;
  2835. }
  2836. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2837. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2838. protected ProductDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2839. base(info, context) {
  2840. this.InitVars();
  2841. }
  2842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2844. public global::System.Data.DataColumn IDColumn {
  2845. get {
  2846. return this.columnID;
  2847. }
  2848. }
  2849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2850. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2851. public global::System.Data.DataColumn TitleColumn {
  2852. get {
  2853. return this.columnTitle;
  2854. }
  2855. }
  2856. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2857. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2858. public global::System.Data.DataColumn CostColumn {
  2859. get {
  2860. return this.columnCost;
  2861. }
  2862. }
  2863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2864. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2865. public global::System.Data.DataColumn DescriptionColumn {
  2866. get {
  2867. return this.columnDescription;
  2868. }
  2869. }
  2870. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2871. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2872. public global::System.Data.DataColumn MainImagePathColumn {
  2873. get {
  2874. return this.columnMainImagePath;
  2875. }
  2876. }
  2877. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2878. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2879. public global::System.Data.DataColumn IsActiveColumn {
  2880. get {
  2881. return this.columnIsActive;
  2882. }
  2883. }
  2884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2886. public global::System.Data.DataColumn ManufacturerIDColumn {
  2887. get {
  2888. return this.columnManufacturerID;
  2889. }
  2890. }
  2891. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2892. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2893. [global::System.ComponentModel.Browsable(false)]
  2894. public int Count {
  2895. get {
  2896. return this.Rows.Count;
  2897. }
  2898. }
  2899. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2900. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2901. public ProductRow this[int index] {
  2902. get {
  2903. return ((ProductRow)(this.Rows[index]));
  2904. }
  2905. }
  2906. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2907. public event ProductRowChangeEventHandler ProductRowChanging;
  2908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2909. public event ProductRowChangeEventHandler ProductRowChanged;
  2910. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2911. public event ProductRowChangeEventHandler ProductRowDeleting;
  2912. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2913. public event ProductRowChangeEventHandler ProductRowDeleted;
  2914. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2915. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2916. public void AddProductRow(ProductRow row) {
  2917. this.Rows.Add(row);
  2918. }
  2919. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2920. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2921. public ProductRow AddProductRow(string Title, decimal Cost, string Description, string MainImagePath, bool IsActive, ManufacturerRow parentManufacturerRowByFK_Product_Manufacturer) {
  2922. ProductRow rowProductRow = ((ProductRow)(this.NewRow()));
  2923. object[] columnValuesArray = new object[] {
  2924. null,
  2925. Title,
  2926. Cost,
  2927. Description,
  2928. MainImagePath,
  2929. IsActive,
  2930. null};
  2931. if ((parentManufacturerRowByFK_Product_Manufacturer != null)) {
  2932. columnValuesArray[6] = parentManufacturerRowByFK_Product_Manufacturer[0];
  2933. }
  2934. rowProductRow.ItemArray = columnValuesArray;
  2935. this.Rows.Add(rowProductRow);
  2936. return rowProductRow;
  2937. }
  2938. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2939. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2940. public ProductRow FindByID(int ID) {
  2941. return ((ProductRow)(this.Rows.Find(new object[] {
  2942. ID})));
  2943. }
  2944. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2945. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2946. public override global::System.Data.DataTable Clone() {
  2947. ProductDataTable cln = ((ProductDataTable)(base.Clone()));
  2948. cln.InitVars();
  2949. return cln;
  2950. }
  2951. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2952. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2953. protected override global::System.Data.DataTable CreateInstance() {
  2954. return new ProductDataTable();
  2955. }
  2956. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2957. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2958. internal void InitVars() {
  2959. this.columnID = base.Columns["ID"];
  2960. this.columnTitle = base.Columns["Title"];
  2961. this.columnCost = base.Columns["Cost"];
  2962. this.columnDescription = base.Columns["Description"];
  2963. this.columnMainImagePath = base.Columns["MainImagePath"];
  2964. this.columnIsActive = base.Columns["IsActive"];
  2965. this.columnManufacturerID = base.Columns["ManufacturerID"];
  2966. }
  2967. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2968. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2969. private void InitClass() {
  2970. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  2971. base.Columns.Add(this.columnID);
  2972. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  2973. base.Columns.Add(this.columnTitle);
  2974. this.columnCost = new global::System.Data.DataColumn("Cost", typeof(decimal), null, global::System.Data.MappingType.Element);
  2975. base.Columns.Add(this.columnCost);
  2976. this.columnDescription = new global::System.Data.DataColumn("Description", typeof(string), null, global::System.Data.MappingType.Element);
  2977. base.Columns.Add(this.columnDescription);
  2978. this.columnMainImagePath = new global::System.Data.DataColumn("MainImagePath", typeof(string), null, global::System.Data.MappingType.Element);
  2979. base.Columns.Add(this.columnMainImagePath);
  2980. this.columnIsActive = new global::System.Data.DataColumn("IsActive", typeof(bool), null, global::System.Data.MappingType.Element);
  2981. base.Columns.Add(this.columnIsActive);
  2982. this.columnManufacturerID = new global::System.Data.DataColumn("ManufacturerID", typeof(int), null, global::System.Data.MappingType.Element);
  2983. base.Columns.Add(this.columnManufacturerID);
  2984. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2985. this.columnID}, true));
  2986. this.columnID.AutoIncrement = true;
  2987. this.columnID.AutoIncrementSeed = -1;
  2988. this.columnID.AutoIncrementStep = -1;
  2989. this.columnID.AllowDBNull = false;
  2990. this.columnID.ReadOnly = true;
  2991. this.columnID.Unique = true;
  2992. this.columnTitle.AllowDBNull = false;
  2993. this.columnTitle.MaxLength = 100;
  2994. this.columnCost.AllowDBNull = false;
  2995. this.columnDescription.MaxLength = 2147483647;
  2996. this.columnMainImagePath.MaxLength = 1000;
  2997. this.columnIsActive.AllowDBNull = false;
  2998. }
  2999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3001. public ProductRow NewProductRow() {
  3002. return ((ProductRow)(this.NewRow()));
  3003. }
  3004. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3005. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3006. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3007. return new ProductRow(builder);
  3008. }
  3009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3011. protected override global::System.Type GetRowType() {
  3012. return typeof(ProductRow);
  3013. }
  3014. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3015. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3016. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3017. base.OnRowChanged(e);
  3018. if ((this.ProductRowChanged != null)) {
  3019. this.ProductRowChanged(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  3020. }
  3021. }
  3022. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3023. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3024. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3025. base.OnRowChanging(e);
  3026. if ((this.ProductRowChanging != null)) {
  3027. this.ProductRowChanging(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  3028. }
  3029. }
  3030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3032. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3033. base.OnRowDeleted(e);
  3034. if ((this.ProductRowDeleted != null)) {
  3035. this.ProductRowDeleted(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  3036. }
  3037. }
  3038. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3039. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3040. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3041. base.OnRowDeleting(e);
  3042. if ((this.ProductRowDeleting != null)) {
  3043. this.ProductRowDeleting(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  3044. }
  3045. }
  3046. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3047. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3048. public void RemoveProductRow(ProductRow row) {
  3049. this.Rows.Remove(row);
  3050. }
  3051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3053. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3054. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3055. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3056. BarhotnieBrovkiDataSet ds = new BarhotnieBrovkiDataSet();
  3057. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3058. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3059. any1.MinOccurs = new decimal(0);
  3060. any1.MaxOccurs = decimal.MaxValue;
  3061. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3062. sequence.Items.Add(any1);
  3063. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3064. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3065. any2.MinOccurs = new decimal(1);
  3066. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3067. sequence.Items.Add(any2);
  3068. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3069. attribute1.Name = "namespace";
  3070. attribute1.FixedValue = ds.Namespace;
  3071. type.Attributes.Add(attribute1);
  3072. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3073. attribute2.Name = "tableTypeName";
  3074. attribute2.FixedValue = "ProductDataTable";
  3075. type.Attributes.Add(attribute2);
  3076. type.Particle = sequence;
  3077. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3078. if (xs.Contains(dsSchema.TargetNamespace)) {
  3079. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3080. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3081. try {
  3082. global::System.Xml.Schema.XmlSchema schema = null;
  3083. dsSchema.Write(s1);
  3084. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3085. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3086. s2.SetLength(0);
  3087. schema.Write(s2);
  3088. if ((s1.Length == s2.Length)) {
  3089. s1.Position = 0;
  3090. s2.Position = 0;
  3091. for (; ((s1.Position != s1.Length)
  3092. && (s1.ReadByte() == s2.ReadByte())); ) {
  3093. ;
  3094. }
  3095. if ((s1.Position == s1.Length)) {
  3096. return type;
  3097. }
  3098. }
  3099. }
  3100. }
  3101. finally {
  3102. if ((s1 != null)) {
  3103. s1.Close();
  3104. }
  3105. if ((s2 != null)) {
  3106. s2.Close();
  3107. }
  3108. }
  3109. }
  3110. xs.Add(dsSchema);
  3111. return type;
  3112. }
  3113. }
  3114. /// <summary>
  3115. ///Represents the strongly named DataTable class.
  3116. ///</summary>
  3117. [global::System.Serializable()]
  3118. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3119. public partial class ProductPhotoDataTable : global::System.Data.TypedTableBase<ProductPhotoRow> {
  3120. private global::System.Data.DataColumn columnID;
  3121. private global::System.Data.DataColumn columnProductID;
  3122. private global::System.Data.DataColumn columnPhotoPath;
  3123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3124. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3125. public ProductPhotoDataTable() {
  3126. this.TableName = "ProductPhoto";
  3127. this.BeginInit();
  3128. this.InitClass();
  3129. this.EndInit();
  3130. }
  3131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3132. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3133. internal ProductPhotoDataTable(global::System.Data.DataTable table) {
  3134. this.TableName = table.TableName;
  3135. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3136. this.CaseSensitive = table.CaseSensitive;
  3137. }
  3138. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3139. this.Locale = table.Locale;
  3140. }
  3141. if ((table.Namespace != table.DataSet.Namespace)) {
  3142. this.Namespace = table.Namespace;
  3143. }
  3144. this.Prefix = table.Prefix;
  3145. this.MinimumCapacity = table.MinimumCapacity;
  3146. }
  3147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3149. protected ProductPhotoDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3150. base(info, context) {
  3151. this.InitVars();
  3152. }
  3153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3154. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3155. public global::System.Data.DataColumn IDColumn {
  3156. get {
  3157. return this.columnID;
  3158. }
  3159. }
  3160. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3161. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3162. public global::System.Data.DataColumn ProductIDColumn {
  3163. get {
  3164. return this.columnProductID;
  3165. }
  3166. }
  3167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3169. public global::System.Data.DataColumn PhotoPathColumn {
  3170. get {
  3171. return this.columnPhotoPath;
  3172. }
  3173. }
  3174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3175. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3176. [global::System.ComponentModel.Browsable(false)]
  3177. public int Count {
  3178. get {
  3179. return this.Rows.Count;
  3180. }
  3181. }
  3182. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3183. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3184. public ProductPhotoRow this[int index] {
  3185. get {
  3186. return ((ProductPhotoRow)(this.Rows[index]));
  3187. }
  3188. }
  3189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3190. public event ProductPhotoRowChangeEventHandler ProductPhotoRowChanging;
  3191. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3192. public event ProductPhotoRowChangeEventHandler ProductPhotoRowChanged;
  3193. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3194. public event ProductPhotoRowChangeEventHandler ProductPhotoRowDeleting;
  3195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3196. public event ProductPhotoRowChangeEventHandler ProductPhotoRowDeleted;
  3197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3198. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3199. public void AddProductPhotoRow(ProductPhotoRow row) {
  3200. this.Rows.Add(row);
  3201. }
  3202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3204. public ProductPhotoRow AddProductPhotoRow(ProductRow parentProductRowByFK_ProductPhoto_Product, string PhotoPath) {
  3205. ProductPhotoRow rowProductPhotoRow = ((ProductPhotoRow)(this.NewRow()));
  3206. object[] columnValuesArray = new object[] {
  3207. null,
  3208. null,
  3209. PhotoPath};
  3210. if ((parentProductRowByFK_ProductPhoto_Product != null)) {
  3211. columnValuesArray[1] = parentProductRowByFK_ProductPhoto_Product[0];
  3212. }
  3213. rowProductPhotoRow.ItemArray = columnValuesArray;
  3214. this.Rows.Add(rowProductPhotoRow);
  3215. return rowProductPhotoRow;
  3216. }
  3217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3218. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3219. public ProductPhotoRow FindByID(int ID) {
  3220. return ((ProductPhotoRow)(this.Rows.Find(new object[] {
  3221. ID})));
  3222. }
  3223. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3224. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3225. public override global::System.Data.DataTable Clone() {
  3226. ProductPhotoDataTable cln = ((ProductPhotoDataTable)(base.Clone()));
  3227. cln.InitVars();
  3228. return cln;
  3229. }
  3230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3232. protected override global::System.Data.DataTable CreateInstance() {
  3233. return new ProductPhotoDataTable();
  3234. }
  3235. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3236. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3237. internal void InitVars() {
  3238. this.columnID = base.Columns["ID"];
  3239. this.columnProductID = base.Columns["ProductID"];
  3240. this.columnPhotoPath = base.Columns["PhotoPath"];
  3241. }
  3242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3243. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3244. private void InitClass() {
  3245. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3246. base.Columns.Add(this.columnID);
  3247. this.columnProductID = new global::System.Data.DataColumn("ProductID", typeof(int), null, global::System.Data.MappingType.Element);
  3248. base.Columns.Add(this.columnProductID);
  3249. this.columnPhotoPath = new global::System.Data.DataColumn("PhotoPath", typeof(string), null, global::System.Data.MappingType.Element);
  3250. base.Columns.Add(this.columnPhotoPath);
  3251. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3252. this.columnID}, true));
  3253. this.columnID.AutoIncrement = true;
  3254. this.columnID.AutoIncrementSeed = -1;
  3255. this.columnID.AutoIncrementStep = -1;
  3256. this.columnID.AllowDBNull = false;
  3257. this.columnID.ReadOnly = true;
  3258. this.columnID.Unique = true;
  3259. this.columnProductID.AllowDBNull = false;
  3260. this.columnPhotoPath.AllowDBNull = false;
  3261. this.columnPhotoPath.MaxLength = 1000;
  3262. }
  3263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3264. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3265. public ProductPhotoRow NewProductPhotoRow() {
  3266. return ((ProductPhotoRow)(this.NewRow()));
  3267. }
  3268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3269. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3270. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3271. return new ProductPhotoRow(builder);
  3272. }
  3273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3274. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3275. protected override global::System.Type GetRowType() {
  3276. return typeof(ProductPhotoRow);
  3277. }
  3278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3279. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3280. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3281. base.OnRowChanged(e);
  3282. if ((this.ProductPhotoRowChanged != null)) {
  3283. this.ProductPhotoRowChanged(this, new ProductPhotoRowChangeEvent(((ProductPhotoRow)(e.Row)), e.Action));
  3284. }
  3285. }
  3286. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3287. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3288. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3289. base.OnRowChanging(e);
  3290. if ((this.ProductPhotoRowChanging != null)) {
  3291. this.ProductPhotoRowChanging(this, new ProductPhotoRowChangeEvent(((ProductPhotoRow)(e.Row)), e.Action));
  3292. }
  3293. }
  3294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3296. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3297. base.OnRowDeleted(e);
  3298. if ((this.ProductPhotoRowDeleted != null)) {
  3299. this.ProductPhotoRowDeleted(this, new ProductPhotoRowChangeEvent(((ProductPhotoRow)(e.Row)), e.Action));
  3300. }
  3301. }
  3302. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3303. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3304. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3305. base.OnRowDeleting(e);
  3306. if ((this.ProductPhotoRowDeleting != null)) {
  3307. this.ProductPhotoRowDeleting(this, new ProductPhotoRowChangeEvent(((ProductPhotoRow)(e.Row)), e.Action));
  3308. }
  3309. }
  3310. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3311. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3312. public void RemoveProductPhotoRow(ProductPhotoRow row) {
  3313. this.Rows.Remove(row);
  3314. }
  3315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3316. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3317. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3318. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3319. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3320. BarhotnieBrovkiDataSet ds = new BarhotnieBrovkiDataSet();
  3321. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3322. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3323. any1.MinOccurs = new decimal(0);
  3324. any1.MaxOccurs = decimal.MaxValue;
  3325. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3326. sequence.Items.Add(any1);
  3327. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3328. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3329. any2.MinOccurs = new decimal(1);
  3330. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3331. sequence.Items.Add(any2);
  3332. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3333. attribute1.Name = "namespace";
  3334. attribute1.FixedValue = ds.Namespace;
  3335. type.Attributes.Add(attribute1);
  3336. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3337. attribute2.Name = "tableTypeName";
  3338. attribute2.FixedValue = "ProductPhotoDataTable";
  3339. type.Attributes.Add(attribute2);
  3340. type.Particle = sequence;
  3341. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3342. if (xs.Contains(dsSchema.TargetNamespace)) {
  3343. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3344. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3345. try {
  3346. global::System.Xml.Schema.XmlSchema schema = null;
  3347. dsSchema.Write(s1);
  3348. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3349. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3350. s2.SetLength(0);
  3351. schema.Write(s2);
  3352. if ((s1.Length == s2.Length)) {
  3353. s1.Position = 0;
  3354. s2.Position = 0;
  3355. for (; ((s1.Position != s1.Length)
  3356. && (s1.ReadByte() == s2.ReadByte())); ) {
  3357. ;
  3358. }
  3359. if ((s1.Position == s1.Length)) {
  3360. return type;
  3361. }
  3362. }
  3363. }
  3364. }
  3365. finally {
  3366. if ((s1 != null)) {
  3367. s1.Close();
  3368. }
  3369. if ((s2 != null)) {
  3370. s2.Close();
  3371. }
  3372. }
  3373. }
  3374. xs.Add(dsSchema);
  3375. return type;
  3376. }
  3377. }
  3378. /// <summary>
  3379. ///Represents the strongly named DataTable class.
  3380. ///</summary>
  3381. [global::System.Serializable()]
  3382. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3383. public partial class ProductSaleDataTable : global::System.Data.TypedTableBase<ProductSaleRow> {
  3384. private global::System.Data.DataColumn columnID;
  3385. private global::System.Data.DataColumn columnSaleDate;
  3386. private global::System.Data.DataColumn columnProductID;
  3387. private global::System.Data.DataColumn columnQuantity;
  3388. private global::System.Data.DataColumn columnClientServiceID;
  3389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3390. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3391. public ProductSaleDataTable() {
  3392. this.TableName = "ProductSale";
  3393. this.BeginInit();
  3394. this.InitClass();
  3395. this.EndInit();
  3396. }
  3397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3398. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3399. internal ProductSaleDataTable(global::System.Data.DataTable table) {
  3400. this.TableName = table.TableName;
  3401. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3402. this.CaseSensitive = table.CaseSensitive;
  3403. }
  3404. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3405. this.Locale = table.Locale;
  3406. }
  3407. if ((table.Namespace != table.DataSet.Namespace)) {
  3408. this.Namespace = table.Namespace;
  3409. }
  3410. this.Prefix = table.Prefix;
  3411. this.MinimumCapacity = table.MinimumCapacity;
  3412. }
  3413. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3414. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3415. protected ProductSaleDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3416. base(info, context) {
  3417. this.InitVars();
  3418. }
  3419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3421. public global::System.Data.DataColumn IDColumn {
  3422. get {
  3423. return this.columnID;
  3424. }
  3425. }
  3426. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3427. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3428. public global::System.Data.DataColumn SaleDateColumn {
  3429. get {
  3430. return this.columnSaleDate;
  3431. }
  3432. }
  3433. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3434. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3435. public global::System.Data.DataColumn ProductIDColumn {
  3436. get {
  3437. return this.columnProductID;
  3438. }
  3439. }
  3440. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3441. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3442. public global::System.Data.DataColumn QuantityColumn {
  3443. get {
  3444. return this.columnQuantity;
  3445. }
  3446. }
  3447. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3448. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3449. public global::System.Data.DataColumn ClientServiceIDColumn {
  3450. get {
  3451. return this.columnClientServiceID;
  3452. }
  3453. }
  3454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3455. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3456. [global::System.ComponentModel.Browsable(false)]
  3457. public int Count {
  3458. get {
  3459. return this.Rows.Count;
  3460. }
  3461. }
  3462. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3463. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3464. public ProductSaleRow this[int index] {
  3465. get {
  3466. return ((ProductSaleRow)(this.Rows[index]));
  3467. }
  3468. }
  3469. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3470. public event ProductSaleRowChangeEventHandler ProductSaleRowChanging;
  3471. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3472. public event ProductSaleRowChangeEventHandler ProductSaleRowChanged;
  3473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3474. public event ProductSaleRowChangeEventHandler ProductSaleRowDeleting;
  3475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3476. public event ProductSaleRowChangeEventHandler ProductSaleRowDeleted;
  3477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3479. public void AddProductSaleRow(ProductSaleRow row) {
  3480. this.Rows.Add(row);
  3481. }
  3482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3484. public ProductSaleRow AddProductSaleRow(System.DateTime SaleDate, ProductRow parentProductRowByFK_ProductSale_Product, int Quantity, ClientServiceRow parentClientServiceRowByFK_ProductSale_ClientService) {
  3485. ProductSaleRow rowProductSaleRow = ((ProductSaleRow)(this.NewRow()));
  3486. object[] columnValuesArray = new object[] {
  3487. null,
  3488. SaleDate,
  3489. null,
  3490. Quantity,
  3491. null};
  3492. if ((parentProductRowByFK_ProductSale_Product != null)) {
  3493. columnValuesArray[2] = parentProductRowByFK_ProductSale_Product[0];
  3494. }
  3495. if ((parentClientServiceRowByFK_ProductSale_ClientService != null)) {
  3496. columnValuesArray[4] = parentClientServiceRowByFK_ProductSale_ClientService[0];
  3497. }
  3498. rowProductSaleRow.ItemArray = columnValuesArray;
  3499. this.Rows.Add(rowProductSaleRow);
  3500. return rowProductSaleRow;
  3501. }
  3502. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3503. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3504. public ProductSaleRow FindByID(int ID) {
  3505. return ((ProductSaleRow)(this.Rows.Find(new object[] {
  3506. ID})));
  3507. }
  3508. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3509. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3510. public override global::System.Data.DataTable Clone() {
  3511. ProductSaleDataTable cln = ((ProductSaleDataTable)(base.Clone()));
  3512. cln.InitVars();
  3513. return cln;
  3514. }
  3515. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3516. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3517. protected override global::System.Data.DataTable CreateInstance() {
  3518. return new ProductSaleDataTable();
  3519. }
  3520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3521. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3522. internal void InitVars() {
  3523. this.columnID = base.Columns["ID"];
  3524. this.columnSaleDate = base.Columns["SaleDate"];
  3525. this.columnProductID = base.Columns["ProductID"];
  3526. this.columnQuantity = base.Columns["Quantity"];
  3527. this.columnClientServiceID = base.Columns["ClientServiceID"];
  3528. }
  3529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3530. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3531. private void InitClass() {
  3532. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3533. base.Columns.Add(this.columnID);
  3534. this.columnSaleDate = new global::System.Data.DataColumn("SaleDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  3535. base.Columns.Add(this.columnSaleDate);
  3536. this.columnProductID = new global::System.Data.DataColumn("ProductID", typeof(int), null, global::System.Data.MappingType.Element);
  3537. base.Columns.Add(this.columnProductID);
  3538. this.columnQuantity = new global::System.Data.DataColumn("Quantity", typeof(int), null, global::System.Data.MappingType.Element);
  3539. base.Columns.Add(this.columnQuantity);
  3540. this.columnClientServiceID = new global::System.Data.DataColumn("ClientServiceID", typeof(int), null, global::System.Data.MappingType.Element);
  3541. base.Columns.Add(this.columnClientServiceID);
  3542. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3543. this.columnID}, true));
  3544. this.columnID.AutoIncrement = true;
  3545. this.columnID.AutoIncrementSeed = -1;
  3546. this.columnID.AutoIncrementStep = -1;
  3547. this.columnID.AllowDBNull = false;
  3548. this.columnID.ReadOnly = true;
  3549. this.columnID.Unique = true;
  3550. this.columnSaleDate.AllowDBNull = false;
  3551. this.columnProductID.AllowDBNull = false;
  3552. this.columnQuantity.AllowDBNull = false;
  3553. }
  3554. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3555. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3556. public ProductSaleRow NewProductSaleRow() {
  3557. return ((ProductSaleRow)(this.NewRow()));
  3558. }
  3559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3561. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3562. return new ProductSaleRow(builder);
  3563. }
  3564. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3565. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3566. protected override global::System.Type GetRowType() {
  3567. return typeof(ProductSaleRow);
  3568. }
  3569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3570. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3571. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3572. base.OnRowChanged(e);
  3573. if ((this.ProductSaleRowChanged != null)) {
  3574. this.ProductSaleRowChanged(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  3575. }
  3576. }
  3577. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3578. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3579. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3580. base.OnRowChanging(e);
  3581. if ((this.ProductSaleRowChanging != null)) {
  3582. this.ProductSaleRowChanging(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  3583. }
  3584. }
  3585. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3586. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3587. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3588. base.OnRowDeleted(e);
  3589. if ((this.ProductSaleRowDeleted != null)) {
  3590. this.ProductSaleRowDeleted(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  3591. }
  3592. }
  3593. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3594. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3595. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3596. base.OnRowDeleting(e);
  3597. if ((this.ProductSaleRowDeleting != null)) {
  3598. this.ProductSaleRowDeleting(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  3599. }
  3600. }
  3601. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3602. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3603. public void RemoveProductSaleRow(ProductSaleRow row) {
  3604. this.Rows.Remove(row);
  3605. }
  3606. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3607. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3608. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3609. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3610. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3611. BarhotnieBrovkiDataSet ds = new BarhotnieBrovkiDataSet();
  3612. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3613. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3614. any1.MinOccurs = new decimal(0);
  3615. any1.MaxOccurs = decimal.MaxValue;
  3616. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3617. sequence.Items.Add(any1);
  3618. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3619. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3620. any2.MinOccurs = new decimal(1);
  3621. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3622. sequence.Items.Add(any2);
  3623. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3624. attribute1.Name = "namespace";
  3625. attribute1.FixedValue = ds.Namespace;
  3626. type.Attributes.Add(attribute1);
  3627. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3628. attribute2.Name = "tableTypeName";
  3629. attribute2.FixedValue = "ProductSaleDataTable";
  3630. type.Attributes.Add(attribute2);
  3631. type.Particle = sequence;
  3632. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3633. if (xs.Contains(dsSchema.TargetNamespace)) {
  3634. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3635. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3636. try {
  3637. global::System.Xml.Schema.XmlSchema schema = null;
  3638. dsSchema.Write(s1);
  3639. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3640. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3641. s2.SetLength(0);
  3642. schema.Write(s2);
  3643. if ((s1.Length == s2.Length)) {
  3644. s1.Position = 0;
  3645. s2.Position = 0;
  3646. for (; ((s1.Position != s1.Length)
  3647. && (s1.ReadByte() == s2.ReadByte())); ) {
  3648. ;
  3649. }
  3650. if ((s1.Position == s1.Length)) {
  3651. return type;
  3652. }
  3653. }
  3654. }
  3655. }
  3656. finally {
  3657. if ((s1 != null)) {
  3658. s1.Close();
  3659. }
  3660. if ((s2 != null)) {
  3661. s2.Close();
  3662. }
  3663. }
  3664. }
  3665. xs.Add(dsSchema);
  3666. return type;
  3667. }
  3668. }
  3669. /// <summary>
  3670. ///Represents the strongly named DataTable class.
  3671. ///</summary>
  3672. [global::System.Serializable()]
  3673. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3674. public partial class ServiceDataTable : global::System.Data.TypedTableBase<ServiceRow> {
  3675. private global::System.Data.DataColumn columnID;
  3676. private global::System.Data.DataColumn columnTitle;
  3677. private global::System.Data.DataColumn columnCost;
  3678. private global::System.Data.DataColumn columnDurationInSeconds;
  3679. private global::System.Data.DataColumn columnDescription;
  3680. private global::System.Data.DataColumn columnDiscount;
  3681. private global::System.Data.DataColumn columnMainImagePath;
  3682. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3683. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3684. public ServiceDataTable() {
  3685. this.TableName = "Service";
  3686. this.BeginInit();
  3687. this.InitClass();
  3688. this.EndInit();
  3689. }
  3690. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3691. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3692. internal ServiceDataTable(global::System.Data.DataTable table) {
  3693. this.TableName = table.TableName;
  3694. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3695. this.CaseSensitive = table.CaseSensitive;
  3696. }
  3697. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3698. this.Locale = table.Locale;
  3699. }
  3700. if ((table.Namespace != table.DataSet.Namespace)) {
  3701. this.Namespace = table.Namespace;
  3702. }
  3703. this.Prefix = table.Prefix;
  3704. this.MinimumCapacity = table.MinimumCapacity;
  3705. }
  3706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3708. protected ServiceDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3709. base(info, context) {
  3710. this.InitVars();
  3711. }
  3712. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3713. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3714. public global::System.Data.DataColumn IDColumn {
  3715. get {
  3716. return this.columnID;
  3717. }
  3718. }
  3719. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3720. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3721. public global::System.Data.DataColumn TitleColumn {
  3722. get {
  3723. return this.columnTitle;
  3724. }
  3725. }
  3726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3728. public global::System.Data.DataColumn CostColumn {
  3729. get {
  3730. return this.columnCost;
  3731. }
  3732. }
  3733. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3734. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3735. public global::System.Data.DataColumn DurationInSecondsColumn {
  3736. get {
  3737. return this.columnDurationInSeconds;
  3738. }
  3739. }
  3740. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3741. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3742. public global::System.Data.DataColumn DescriptionColumn {
  3743. get {
  3744. return this.columnDescription;
  3745. }
  3746. }
  3747. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3748. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3749. public global::System.Data.DataColumn DiscountColumn {
  3750. get {
  3751. return this.columnDiscount;
  3752. }
  3753. }
  3754. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3755. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3756. public global::System.Data.DataColumn MainImagePathColumn {
  3757. get {
  3758. return this.columnMainImagePath;
  3759. }
  3760. }
  3761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3763. [global::System.ComponentModel.Browsable(false)]
  3764. public int Count {
  3765. get {
  3766. return this.Rows.Count;
  3767. }
  3768. }
  3769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3770. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3771. public ServiceRow this[int index] {
  3772. get {
  3773. return ((ServiceRow)(this.Rows[index]));
  3774. }
  3775. }
  3776. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3777. public event ServiceRowChangeEventHandler ServiceRowChanging;
  3778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3779. public event ServiceRowChangeEventHandler ServiceRowChanged;
  3780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3781. public event ServiceRowChangeEventHandler ServiceRowDeleting;
  3782. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3783. public event ServiceRowChangeEventHandler ServiceRowDeleted;
  3784. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3785. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3786. public void AddServiceRow(ServiceRow row) {
  3787. this.Rows.Add(row);
  3788. }
  3789. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3790. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3791. public ServiceRow AddServiceRow(string Title, decimal Cost, int DurationInSeconds, string Description, double Discount, string MainImagePath) {
  3792. ServiceRow rowServiceRow = ((ServiceRow)(this.NewRow()));
  3793. object[] columnValuesArray = new object[] {
  3794. null,
  3795. Title,
  3796. Cost,
  3797. DurationInSeconds,
  3798. Description,
  3799. Discount,
  3800. MainImagePath};
  3801. rowServiceRow.ItemArray = columnValuesArray;
  3802. this.Rows.Add(rowServiceRow);
  3803. return rowServiceRow;
  3804. }
  3805. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3806. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3807. public ServiceRow FindByID(int ID) {
  3808. return ((ServiceRow)(this.Rows.Find(new object[] {
  3809. ID})));
  3810. }
  3811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3812. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3813. public override global::System.Data.DataTable Clone() {
  3814. ServiceDataTable cln = ((ServiceDataTable)(base.Clone()));
  3815. cln.InitVars();
  3816. return cln;
  3817. }
  3818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3819. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3820. protected override global::System.Data.DataTable CreateInstance() {
  3821. return new ServiceDataTable();
  3822. }
  3823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3824. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3825. internal void InitVars() {
  3826. this.columnID = base.Columns["ID"];
  3827. this.columnTitle = base.Columns["Title"];
  3828. this.columnCost = base.Columns["Cost"];
  3829. this.columnDurationInSeconds = base.Columns["DurationInSeconds"];
  3830. this.columnDescription = base.Columns["Description"];
  3831. this.columnDiscount = base.Columns["Discount"];
  3832. this.columnMainImagePath = base.Columns["MainImagePath"];
  3833. }
  3834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3835. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3836. private void InitClass() {
  3837. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3838. base.Columns.Add(this.columnID);
  3839. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  3840. base.Columns.Add(this.columnTitle);
  3841. this.columnCost = new global::System.Data.DataColumn("Cost", typeof(decimal), null, global::System.Data.MappingType.Element);
  3842. base.Columns.Add(this.columnCost);
  3843. this.columnDurationInSeconds = new global::System.Data.DataColumn("DurationInSeconds", typeof(int), null, global::System.Data.MappingType.Element);
  3844. base.Columns.Add(this.columnDurationInSeconds);
  3845. this.columnDescription = new global::System.Data.DataColumn("Description", typeof(string), null, global::System.Data.MappingType.Element);
  3846. base.Columns.Add(this.columnDescription);
  3847. this.columnDiscount = new global::System.Data.DataColumn("Discount", typeof(double), null, global::System.Data.MappingType.Element);
  3848. base.Columns.Add(this.columnDiscount);
  3849. this.columnMainImagePath = new global::System.Data.DataColumn("MainImagePath", typeof(string), null, global::System.Data.MappingType.Element);
  3850. base.Columns.Add(this.columnMainImagePath);
  3851. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3852. this.columnID}, true));
  3853. this.columnID.AutoIncrement = true;
  3854. this.columnID.AutoIncrementSeed = -1;
  3855. this.columnID.AutoIncrementStep = -1;
  3856. this.columnID.AllowDBNull = false;
  3857. this.columnID.ReadOnly = true;
  3858. this.columnID.Unique = true;
  3859. this.columnTitle.AllowDBNull = false;
  3860. this.columnTitle.MaxLength = 100;
  3861. this.columnCost.AllowDBNull = false;
  3862. this.columnDurationInSeconds.AllowDBNull = false;
  3863. this.columnDescription.MaxLength = 2147483647;
  3864. this.columnMainImagePath.MaxLength = 1000;
  3865. }
  3866. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3867. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3868. public ServiceRow NewServiceRow() {
  3869. return ((ServiceRow)(this.NewRow()));
  3870. }
  3871. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3872. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3873. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3874. return new ServiceRow(builder);
  3875. }
  3876. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3877. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3878. protected override global::System.Type GetRowType() {
  3879. return typeof(ServiceRow);
  3880. }
  3881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3883. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3884. base.OnRowChanged(e);
  3885. if ((this.ServiceRowChanged != null)) {
  3886. this.ServiceRowChanged(this, new ServiceRowChangeEvent(((ServiceRow)(e.Row)), e.Action));
  3887. }
  3888. }
  3889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3890. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3891. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3892. base.OnRowChanging(e);
  3893. if ((this.ServiceRowChanging != null)) {
  3894. this.ServiceRowChanging(this, new ServiceRowChangeEvent(((ServiceRow)(e.Row)), e.Action));
  3895. }
  3896. }
  3897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3898. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3899. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3900. base.OnRowDeleted(e);
  3901. if ((this.ServiceRowDeleted != null)) {
  3902. this.ServiceRowDeleted(this, new ServiceRowChangeEvent(((ServiceRow)(e.Row)), e.Action));
  3903. }
  3904. }
  3905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3906. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3907. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3908. base.OnRowDeleting(e);
  3909. if ((this.ServiceRowDeleting != null)) {
  3910. this.ServiceRowDeleting(this, new ServiceRowChangeEvent(((ServiceRow)(e.Row)), e.Action));
  3911. }
  3912. }
  3913. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3914. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3915. public void RemoveServiceRow(ServiceRow row) {
  3916. this.Rows.Remove(row);
  3917. }
  3918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3919. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3920. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3921. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3922. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3923. BarhotnieBrovkiDataSet ds = new BarhotnieBrovkiDataSet();
  3924. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3925. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3926. any1.MinOccurs = new decimal(0);
  3927. any1.MaxOccurs = decimal.MaxValue;
  3928. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3929. sequence.Items.Add(any1);
  3930. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3931. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3932. any2.MinOccurs = new decimal(1);
  3933. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3934. sequence.Items.Add(any2);
  3935. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3936. attribute1.Name = "namespace";
  3937. attribute1.FixedValue = ds.Namespace;
  3938. type.Attributes.Add(attribute1);
  3939. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3940. attribute2.Name = "tableTypeName";
  3941. attribute2.FixedValue = "ServiceDataTable";
  3942. type.Attributes.Add(attribute2);
  3943. type.Particle = sequence;
  3944. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3945. if (xs.Contains(dsSchema.TargetNamespace)) {
  3946. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3947. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3948. try {
  3949. global::System.Xml.Schema.XmlSchema schema = null;
  3950. dsSchema.Write(s1);
  3951. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3952. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3953. s2.SetLength(0);
  3954. schema.Write(s2);
  3955. if ((s1.Length == s2.Length)) {
  3956. s1.Position = 0;
  3957. s2.Position = 0;
  3958. for (; ((s1.Position != s1.Length)
  3959. && (s1.ReadByte() == s2.ReadByte())); ) {
  3960. ;
  3961. }
  3962. if ((s1.Position == s1.Length)) {
  3963. return type;
  3964. }
  3965. }
  3966. }
  3967. }
  3968. finally {
  3969. if ((s1 != null)) {
  3970. s1.Close();
  3971. }
  3972. if ((s2 != null)) {
  3973. s2.Close();
  3974. }
  3975. }
  3976. }
  3977. xs.Add(dsSchema);
  3978. return type;
  3979. }
  3980. }
  3981. /// <summary>
  3982. ///Represents the strongly named DataTable class.
  3983. ///</summary>
  3984. [global::System.Serializable()]
  3985. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3986. public partial class Service_b_importDataTable : global::System.Data.TypedTableBase<Service_b_importRow> {
  3987. private global::System.Data.DataColumn columnНаименование_услуги;
  3988. private global::System.Data.DataColumn columnГлавное_изображение;
  3989. private global::System.Data.DataColumn columnДлительность;
  3990. private global::System.Data.DataColumn columnСтоимость;
  3991. private global::System.Data.DataColumn columnДействующая_скидка;
  3992. private global::System.Data.DataColumn columnID;
  3993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3994. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3995. public Service_b_importDataTable() {
  3996. this.TableName = "Service_b_import";
  3997. this.BeginInit();
  3998. this.InitClass();
  3999. this.EndInit();
  4000. }
  4001. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4002. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4003. internal Service_b_importDataTable(global::System.Data.DataTable table) {
  4004. this.TableName = table.TableName;
  4005. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  4006. this.CaseSensitive = table.CaseSensitive;
  4007. }
  4008. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  4009. this.Locale = table.Locale;
  4010. }
  4011. if ((table.Namespace != table.DataSet.Namespace)) {
  4012. this.Namespace = table.Namespace;
  4013. }
  4014. this.Prefix = table.Prefix;
  4015. this.MinimumCapacity = table.MinimumCapacity;
  4016. }
  4017. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4018. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4019. protected Service_b_importDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  4020. base(info, context) {
  4021. this.InitVars();
  4022. }
  4023. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4024. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4025. public global::System.Data.DataColumn Наименование_услугиColumn {
  4026. get {
  4027. return this.columnНаименование_услуги;
  4028. }
  4029. }
  4030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4032. public global::System.Data.DataColumn Главное_изображениеColumn {
  4033. get {
  4034. return this.columnГлавное_изображение;
  4035. }
  4036. }
  4037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4038. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4039. public global::System.Data.DataColumn ДлительностьColumn {
  4040. get {
  4041. return this.columnДлительность;
  4042. }
  4043. }
  4044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4046. public global::System.Data.DataColumn СтоимостьColumn {
  4047. get {
  4048. return this.columnСтоимость;
  4049. }
  4050. }
  4051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4053. public global::System.Data.DataColumn Действующая_скидкаColumn {
  4054. get {
  4055. return this.columnДействующая_скидка;
  4056. }
  4057. }
  4058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4059. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4060. public global::System.Data.DataColumn IDColumn {
  4061. get {
  4062. return this.columnID;
  4063. }
  4064. }
  4065. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4066. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4067. [global::System.ComponentModel.Browsable(false)]
  4068. public int Count {
  4069. get {
  4070. return this.Rows.Count;
  4071. }
  4072. }
  4073. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4074. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4075. public Service_b_importRow this[int index] {
  4076. get {
  4077. return ((Service_b_importRow)(this.Rows[index]));
  4078. }
  4079. }
  4080. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4081. public event Service_b_importRowChangeEventHandler Service_b_importRowChanging;
  4082. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4083. public event Service_b_importRowChangeEventHandler Service_b_importRowChanged;
  4084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4085. public event Service_b_importRowChangeEventHandler Service_b_importRowDeleting;
  4086. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4087. public event Service_b_importRowChangeEventHandler Service_b_importRowDeleted;
  4088. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4089. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4090. public void AddService_b_importRow(Service_b_importRow row) {
  4091. this.Rows.Add(row);
  4092. }
  4093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4094. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4095. public Service_b_importRow AddService_b_importRow(string Наименование_услуги, string Главное_изображение, string Длительность, string Стоимость, string Действующая_скидка, long ID) {
  4096. Service_b_importRow rowService_b_importRow = ((Service_b_importRow)(this.NewRow()));
  4097. object[] columnValuesArray = new object[] {
  4098. Наименование_услуги,
  4099. Главное_изображение,
  4100. Длительность,
  4101. Стоимость,
  4102. Действующая_скидка,
  4103. ID};
  4104. rowService_b_importRow.ItemArray = columnValuesArray;
  4105. this.Rows.Add(rowService_b_importRow);
  4106. return rowService_b_importRow;
  4107. }
  4108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4110. public Service_b_importRow FindByID(long ID) {
  4111. return ((Service_b_importRow)(this.Rows.Find(new object[] {
  4112. ID})));
  4113. }
  4114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4115. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4116. public override global::System.Data.DataTable Clone() {
  4117. Service_b_importDataTable cln = ((Service_b_importDataTable)(base.Clone()));
  4118. cln.InitVars();
  4119. return cln;
  4120. }
  4121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4123. protected override global::System.Data.DataTable CreateInstance() {
  4124. return new Service_b_importDataTable();
  4125. }
  4126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4128. internal void InitVars() {
  4129. this.columnНаименование_услуги = base.Columns["Наименование_услуги"];
  4130. this.columnГлавное_изображение = base.Columns["Главное_изображение"];
  4131. this.columnДлительность = base.Columns["Длительность"];
  4132. this.columnСтоимость = base.Columns["Стоимость"];
  4133. this.columnДействующая_скидка = base.Columns["Действующая_скидка"];
  4134. this.columnID = base.Columns["ID"];
  4135. }
  4136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4137. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4138. private void InitClass() {
  4139. this.columnНаименование_услуги = new global::System.Data.DataColumn("Наименование_услуги", typeof(string), null, global::System.Data.MappingType.Element);
  4140. base.Columns.Add(this.columnНаименование_услуги);
  4141. this.columnГлавное_изображение = new global::System.Data.DataColumn("Главное_изображение", typeof(string), null, global::System.Data.MappingType.Element);
  4142. base.Columns.Add(this.columnГлавное_изображение);
  4143. this.columnДлительность = new global::System.Data.DataColumn("Длительность", typeof(string), null, global::System.Data.MappingType.Element);
  4144. base.Columns.Add(this.columnДлительность);
  4145. this.columnСтоимость = new global::System.Data.DataColumn("Стоимость", typeof(string), null, global::System.Data.MappingType.Element);
  4146. base.Columns.Add(this.columnСтоимость);
  4147. this.columnДействующая_скидка = new global::System.Data.DataColumn("Действующая_скидка", typeof(string), null, global::System.Data.MappingType.Element);
  4148. base.Columns.Add(this.columnДействующая_скидка);
  4149. this.columnID = new global::System.Data.DataColumn("ID", typeof(long), null, global::System.Data.MappingType.Element);
  4150. base.Columns.Add(this.columnID);
  4151. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  4152. this.columnID}, true));
  4153. this.columnНаименование_услуги.AllowDBNull = false;
  4154. this.columnНаименование_услуги.MaxLength = 50;
  4155. this.columnГлавное_изображение.AllowDBNull = false;
  4156. this.columnГлавное_изображение.MaxLength = 100;
  4157. this.columnДлительность.AllowDBNull = false;
  4158. this.columnДлительность.MaxLength = 50;
  4159. this.columnСтоимость.AllowDBNull = false;
  4160. this.columnСтоимость.MaxLength = 50;
  4161. this.columnДействующая_скидка.AllowDBNull = false;
  4162. this.columnДействующая_скидка.MaxLength = 50;
  4163. this.columnID.AllowDBNull = false;
  4164. this.columnID.Unique = true;
  4165. }
  4166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4167. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4168. public Service_b_importRow NewService_b_importRow() {
  4169. return ((Service_b_importRow)(this.NewRow()));
  4170. }
  4171. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4172. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4173. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  4174. return new Service_b_importRow(builder);
  4175. }
  4176. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4177. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4178. protected override global::System.Type GetRowType() {
  4179. return typeof(Service_b_importRow);
  4180. }
  4181. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4182. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4183. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  4184. base.OnRowChanged(e);
  4185. if ((this.Service_b_importRowChanged != null)) {
  4186. this.Service_b_importRowChanged(this, new Service_b_importRowChangeEvent(((Service_b_importRow)(e.Row)), e.Action));
  4187. }
  4188. }
  4189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4191. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  4192. base.OnRowChanging(e);
  4193. if ((this.Service_b_importRowChanging != null)) {
  4194. this.Service_b_importRowChanging(this, new Service_b_importRowChangeEvent(((Service_b_importRow)(e.Row)), e.Action));
  4195. }
  4196. }
  4197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4198. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4199. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  4200. base.OnRowDeleted(e);
  4201. if ((this.Service_b_importRowDeleted != null)) {
  4202. this.Service_b_importRowDeleted(this, new Service_b_importRowChangeEvent(((Service_b_importRow)(e.Row)), e.Action));
  4203. }
  4204. }
  4205. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4206. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4207. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  4208. base.OnRowDeleting(e);
  4209. if ((this.Service_b_importRowDeleting != null)) {
  4210. this.Service_b_importRowDeleting(this, new Service_b_importRowChangeEvent(((Service_b_importRow)(e.Row)), e.Action));
  4211. }
  4212. }
  4213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4214. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4215. public void RemoveService_b_importRow(Service_b_importRow row) {
  4216. this.Rows.Remove(row);
  4217. }
  4218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4219. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4220. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  4221. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  4222. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  4223. BarhotnieBrovkiDataSet ds = new BarhotnieBrovkiDataSet();
  4224. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  4225. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  4226. any1.MinOccurs = new decimal(0);
  4227. any1.MaxOccurs = decimal.MaxValue;
  4228. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4229. sequence.Items.Add(any1);
  4230. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  4231. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  4232. any2.MinOccurs = new decimal(1);
  4233. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4234. sequence.Items.Add(any2);
  4235. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4236. attribute1.Name = "namespace";
  4237. attribute1.FixedValue = ds.Namespace;
  4238. type.Attributes.Add(attribute1);
  4239. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4240. attribute2.Name = "tableTypeName";
  4241. attribute2.FixedValue = "Service_b_importDataTable";
  4242. type.Attributes.Add(attribute2);
  4243. type.Particle = sequence;
  4244. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  4245. if (xs.Contains(dsSchema.TargetNamespace)) {
  4246. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  4247. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  4248. try {
  4249. global::System.Xml.Schema.XmlSchema schema = null;
  4250. dsSchema.Write(s1);
  4251. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  4252. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  4253. s2.SetLength(0);
  4254. schema.Write(s2);
  4255. if ((s1.Length == s2.Length)) {
  4256. s1.Position = 0;
  4257. s2.Position = 0;
  4258. for (; ((s1.Position != s1.Length)
  4259. && (s1.ReadByte() == s2.ReadByte())); ) {
  4260. ;
  4261. }
  4262. if ((s1.Position == s1.Length)) {
  4263. return type;
  4264. }
  4265. }
  4266. }
  4267. }
  4268. finally {
  4269. if ((s1 != null)) {
  4270. s1.Close();
  4271. }
  4272. if ((s2 != null)) {
  4273. s2.Close();
  4274. }
  4275. }
  4276. }
  4277. xs.Add(dsSchema);
  4278. return type;
  4279. }
  4280. }
  4281. /// <summary>
  4282. ///Represents the strongly named DataTable class.
  4283. ///</summary>
  4284. [global::System.Serializable()]
  4285. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  4286. public partial class Serviceclient_b_importDataTable : global::System.Data.TypedTableBase<Serviceclient_b_importRow> {
  4287. private global::System.Data.DataColumn columnID;
  4288. private global::System.Data.DataColumn columnУслуга;
  4289. private global::System.Data.DataColumn columnНачало_оказания_услуги;
  4290. private global::System.Data.DataColumn columnКлиент;
  4291. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4292. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4293. public Serviceclient_b_importDataTable() {
  4294. this.TableName = "Serviceclient_b_import";
  4295. this.BeginInit();
  4296. this.InitClass();
  4297. this.EndInit();
  4298. }
  4299. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4300. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4301. internal Serviceclient_b_importDataTable(global::System.Data.DataTable table) {
  4302. this.TableName = table.TableName;
  4303. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  4304. this.CaseSensitive = table.CaseSensitive;
  4305. }
  4306. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  4307. this.Locale = table.Locale;
  4308. }
  4309. if ((table.Namespace != table.DataSet.Namespace)) {
  4310. this.Namespace = table.Namespace;
  4311. }
  4312. this.Prefix = table.Prefix;
  4313. this.MinimumCapacity = table.MinimumCapacity;
  4314. }
  4315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4316. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4317. protected Serviceclient_b_importDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  4318. base(info, context) {
  4319. this.InitVars();
  4320. }
  4321. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4322. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4323. public global::System.Data.DataColumn IDColumn {
  4324. get {
  4325. return this.columnID;
  4326. }
  4327. }
  4328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4329. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4330. public global::System.Data.DataColumn УслугаColumn {
  4331. get {
  4332. return this.columnУслуга;
  4333. }
  4334. }
  4335. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4336. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4337. public global::System.Data.DataColumn Начало_оказания_услугиColumn {
  4338. get {
  4339. return this.columnНачало_оказания_услуги;
  4340. }
  4341. }
  4342. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4343. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4344. public global::System.Data.DataColumn КлиентColumn {
  4345. get {
  4346. return this.columnКлиент;
  4347. }
  4348. }
  4349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4351. [global::System.ComponentModel.Browsable(false)]
  4352. public int Count {
  4353. get {
  4354. return this.Rows.Count;
  4355. }
  4356. }
  4357. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4358. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4359. public Serviceclient_b_importRow this[int index] {
  4360. get {
  4361. return ((Serviceclient_b_importRow)(this.Rows[index]));
  4362. }
  4363. }
  4364. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4365. public event Serviceclient_b_importRowChangeEventHandler Serviceclient_b_importRowChanging;
  4366. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4367. public event Serviceclient_b_importRowChangeEventHandler Serviceclient_b_importRowChanged;
  4368. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4369. public event Serviceclient_b_importRowChangeEventHandler Serviceclient_b_importRowDeleting;
  4370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4371. public event Serviceclient_b_importRowChangeEventHandler Serviceclient_b_importRowDeleted;
  4372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4374. public void AddServiceclient_b_importRow(Serviceclient_b_importRow row) {
  4375. this.Rows.Add(row);
  4376. }
  4377. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4378. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4379. public Serviceclient_b_importRow AddServiceclient_b_importRow(long ID, string Услуга, System.DateTime Начало_оказания_услуги, string Клиент) {
  4380. Serviceclient_b_importRow rowServiceclient_b_importRow = ((Serviceclient_b_importRow)(this.NewRow()));
  4381. object[] columnValuesArray = new object[] {
  4382. ID,
  4383. Услуга,
  4384. Начало_оказания_услуги,
  4385. Клиент};
  4386. rowServiceclient_b_importRow.ItemArray = columnValuesArray;
  4387. this.Rows.Add(rowServiceclient_b_importRow);
  4388. return rowServiceclient_b_importRow;
  4389. }
  4390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4392. public Serviceclient_b_importRow FindByID(long ID) {
  4393. return ((Serviceclient_b_importRow)(this.Rows.Find(new object[] {
  4394. ID})));
  4395. }
  4396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4398. public override global::System.Data.DataTable Clone() {
  4399. Serviceclient_b_importDataTable cln = ((Serviceclient_b_importDataTable)(base.Clone()));
  4400. cln.InitVars();
  4401. return cln;
  4402. }
  4403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4404. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4405. protected override global::System.Data.DataTable CreateInstance() {
  4406. return new Serviceclient_b_importDataTable();
  4407. }
  4408. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4409. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4410. internal void InitVars() {
  4411. this.columnID = base.Columns["ID"];
  4412. this.columnУслуга = base.Columns["Услуга"];
  4413. this.columnНачало_оказания_услуги = base.Columns["Начало_оказания_услуги"];
  4414. this.columnКлиент = base.Columns["Клиент"];
  4415. }
  4416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4418. private void InitClass() {
  4419. this.columnID = new global::System.Data.DataColumn("ID", typeof(long), null, global::System.Data.MappingType.Element);
  4420. base.Columns.Add(this.columnID);
  4421. this.columnУслуга = new global::System.Data.DataColumn("Услуга", typeof(string), null, global::System.Data.MappingType.Element);
  4422. base.Columns.Add(this.columnУслуга);
  4423. this.columnНачало_оказания_услуги = new global::System.Data.DataColumn("Начало_оказания_услуги", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  4424. base.Columns.Add(this.columnНачало_оказания_услуги);
  4425. this.columnКлиент = new global::System.Data.DataColumn("Клиент", typeof(string), null, global::System.Data.MappingType.Element);
  4426. base.Columns.Add(this.columnКлиент);
  4427. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  4428. this.columnID}, true));
  4429. this.columnID.AllowDBNull = false;
  4430. this.columnID.Unique = true;
  4431. this.columnУслуга.AllowDBNull = false;
  4432. this.columnУслуга.MaxLength = 50;
  4433. this.columnНачало_оказания_услуги.AllowDBNull = false;
  4434. this.columnКлиент.AllowDBNull = false;
  4435. this.columnКлиент.MaxLength = 50;
  4436. }
  4437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4438. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4439. public Serviceclient_b_importRow NewServiceclient_b_importRow() {
  4440. return ((Serviceclient_b_importRow)(this.NewRow()));
  4441. }
  4442. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4443. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4444. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  4445. return new Serviceclient_b_importRow(builder);
  4446. }
  4447. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4448. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4449. protected override global::System.Type GetRowType() {
  4450. return typeof(Serviceclient_b_importRow);
  4451. }
  4452. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4453. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4454. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  4455. base.OnRowChanged(e);
  4456. if ((this.Serviceclient_b_importRowChanged != null)) {
  4457. this.Serviceclient_b_importRowChanged(this, new Serviceclient_b_importRowChangeEvent(((Serviceclient_b_importRow)(e.Row)), e.Action));
  4458. }
  4459. }
  4460. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4461. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4462. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  4463. base.OnRowChanging(e);
  4464. if ((this.Serviceclient_b_importRowChanging != null)) {
  4465. this.Serviceclient_b_importRowChanging(this, new Serviceclient_b_importRowChangeEvent(((Serviceclient_b_importRow)(e.Row)), e.Action));
  4466. }
  4467. }
  4468. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4469. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4470. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  4471. base.OnRowDeleted(e);
  4472. if ((this.Serviceclient_b_importRowDeleted != null)) {
  4473. this.Serviceclient_b_importRowDeleted(this, new Serviceclient_b_importRowChangeEvent(((Serviceclient_b_importRow)(e.Row)), e.Action));
  4474. }
  4475. }
  4476. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4477. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4478. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  4479. base.OnRowDeleting(e);
  4480. if ((this.Serviceclient_b_importRowDeleting != null)) {
  4481. this.Serviceclient_b_importRowDeleting(this, new Serviceclient_b_importRowChangeEvent(((Serviceclient_b_importRow)(e.Row)), e.Action));
  4482. }
  4483. }
  4484. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4485. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4486. public void RemoveServiceclient_b_importRow(Serviceclient_b_importRow row) {
  4487. this.Rows.Remove(row);
  4488. }
  4489. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4490. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4491. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  4492. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  4493. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  4494. BarhotnieBrovkiDataSet ds = new BarhotnieBrovkiDataSet();
  4495. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  4496. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  4497. any1.MinOccurs = new decimal(0);
  4498. any1.MaxOccurs = decimal.MaxValue;
  4499. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4500. sequence.Items.Add(any1);
  4501. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  4502. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  4503. any2.MinOccurs = new decimal(1);
  4504. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4505. sequence.Items.Add(any2);
  4506. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4507. attribute1.Name = "namespace";
  4508. attribute1.FixedValue = ds.Namespace;
  4509. type.Attributes.Add(attribute1);
  4510. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4511. attribute2.Name = "tableTypeName";
  4512. attribute2.FixedValue = "Serviceclient_b_importDataTable";
  4513. type.Attributes.Add(attribute2);
  4514. type.Particle = sequence;
  4515. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  4516. if (xs.Contains(dsSchema.TargetNamespace)) {
  4517. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  4518. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  4519. try {
  4520. global::System.Xml.Schema.XmlSchema schema = null;
  4521. dsSchema.Write(s1);
  4522. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  4523. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  4524. s2.SetLength(0);
  4525. schema.Write(s2);
  4526. if ((s1.Length == s2.Length)) {
  4527. s1.Position = 0;
  4528. s2.Position = 0;
  4529. for (; ((s1.Position != s1.Length)
  4530. && (s1.ReadByte() == s2.ReadByte())); ) {
  4531. ;
  4532. }
  4533. if ((s1.Position == s1.Length)) {
  4534. return type;
  4535. }
  4536. }
  4537. }
  4538. }
  4539. finally {
  4540. if ((s1 != null)) {
  4541. s1.Close();
  4542. }
  4543. if ((s2 != null)) {
  4544. s2.Close();
  4545. }
  4546. }
  4547. }
  4548. xs.Add(dsSchema);
  4549. return type;
  4550. }
  4551. }
  4552. /// <summary>
  4553. ///Represents the strongly named DataTable class.
  4554. ///</summary>
  4555. [global::System.Serializable()]
  4556. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  4557. public partial class ServicePhotoDataTable : global::System.Data.TypedTableBase<ServicePhotoRow> {
  4558. private global::System.Data.DataColumn columnID;
  4559. private global::System.Data.DataColumn columnServiceID;
  4560. private global::System.Data.DataColumn columnPhotoPath;
  4561. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4562. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4563. public ServicePhotoDataTable() {
  4564. this.TableName = "ServicePhoto";
  4565. this.BeginInit();
  4566. this.InitClass();
  4567. this.EndInit();
  4568. }
  4569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4570. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4571. internal ServicePhotoDataTable(global::System.Data.DataTable table) {
  4572. this.TableName = table.TableName;
  4573. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  4574. this.CaseSensitive = table.CaseSensitive;
  4575. }
  4576. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  4577. this.Locale = table.Locale;
  4578. }
  4579. if ((table.Namespace != table.DataSet.Namespace)) {
  4580. this.Namespace = table.Namespace;
  4581. }
  4582. this.Prefix = table.Prefix;
  4583. this.MinimumCapacity = table.MinimumCapacity;
  4584. }
  4585. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4586. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4587. protected ServicePhotoDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  4588. base(info, context) {
  4589. this.InitVars();
  4590. }
  4591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4592. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4593. public global::System.Data.DataColumn IDColumn {
  4594. get {
  4595. return this.columnID;
  4596. }
  4597. }
  4598. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4599. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4600. public global::System.Data.DataColumn ServiceIDColumn {
  4601. get {
  4602. return this.columnServiceID;
  4603. }
  4604. }
  4605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4607. public global::System.Data.DataColumn PhotoPathColumn {
  4608. get {
  4609. return this.columnPhotoPath;
  4610. }
  4611. }
  4612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4614. [global::System.ComponentModel.Browsable(false)]
  4615. public int Count {
  4616. get {
  4617. return this.Rows.Count;
  4618. }
  4619. }
  4620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4621. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4622. public ServicePhotoRow this[int index] {
  4623. get {
  4624. return ((ServicePhotoRow)(this.Rows[index]));
  4625. }
  4626. }
  4627. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4628. public event ServicePhotoRowChangeEventHandler ServicePhotoRowChanging;
  4629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4630. public event ServicePhotoRowChangeEventHandler ServicePhotoRowChanged;
  4631. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4632. public event ServicePhotoRowChangeEventHandler ServicePhotoRowDeleting;
  4633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4634. public event ServicePhotoRowChangeEventHandler ServicePhotoRowDeleted;
  4635. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4636. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4637. public void AddServicePhotoRow(ServicePhotoRow row) {
  4638. this.Rows.Add(row);
  4639. }
  4640. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4641. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4642. public ServicePhotoRow AddServicePhotoRow(ServiceRow parentServiceRowByFK_ServicePhoto_Service, string PhotoPath) {
  4643. ServicePhotoRow rowServicePhotoRow = ((ServicePhotoRow)(this.NewRow()));
  4644. object[] columnValuesArray = new object[] {
  4645. null,
  4646. null,
  4647. PhotoPath};
  4648. if ((parentServiceRowByFK_ServicePhoto_Service != null)) {
  4649. columnValuesArray[1] = parentServiceRowByFK_ServicePhoto_Service[0];
  4650. }
  4651. rowServicePhotoRow.ItemArray = columnValuesArray;
  4652. this.Rows.Add(rowServicePhotoRow);
  4653. return rowServicePhotoRow;
  4654. }
  4655. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4656. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4657. public ServicePhotoRow FindByID(int ID) {
  4658. return ((ServicePhotoRow)(this.Rows.Find(new object[] {
  4659. ID})));
  4660. }
  4661. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4662. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4663. public override global::System.Data.DataTable Clone() {
  4664. ServicePhotoDataTable cln = ((ServicePhotoDataTable)(base.Clone()));
  4665. cln.InitVars();
  4666. return cln;
  4667. }
  4668. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4669. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4670. protected override global::System.Data.DataTable CreateInstance() {
  4671. return new ServicePhotoDataTable();
  4672. }
  4673. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4674. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4675. internal void InitVars() {
  4676. this.columnID = base.Columns["ID"];
  4677. this.columnServiceID = base.Columns["ServiceID"];
  4678. this.columnPhotoPath = base.Columns["PhotoPath"];
  4679. }
  4680. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4681. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4682. private void InitClass() {
  4683. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  4684. base.Columns.Add(this.columnID);
  4685. this.columnServiceID = new global::System.Data.DataColumn("ServiceID", typeof(int), null, global::System.Data.MappingType.Element);
  4686. base.Columns.Add(this.columnServiceID);
  4687. this.columnPhotoPath = new global::System.Data.DataColumn("PhotoPath", typeof(string), null, global::System.Data.MappingType.Element);
  4688. base.Columns.Add(this.columnPhotoPath);
  4689. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  4690. this.columnID}, true));
  4691. this.columnID.AutoIncrement = true;
  4692. this.columnID.AutoIncrementSeed = -1;
  4693. this.columnID.AutoIncrementStep = -1;
  4694. this.columnID.AllowDBNull = false;
  4695. this.columnID.ReadOnly = true;
  4696. this.columnID.Unique = true;
  4697. this.columnServiceID.AllowDBNull = false;
  4698. this.columnPhotoPath.AllowDBNull = false;
  4699. this.columnPhotoPath.MaxLength = 1000;
  4700. }
  4701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4702. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4703. public ServicePhotoRow NewServicePhotoRow() {
  4704. return ((ServicePhotoRow)(this.NewRow()));
  4705. }
  4706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4708. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  4709. return new ServicePhotoRow(builder);
  4710. }
  4711. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4712. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4713. protected override global::System.Type GetRowType() {
  4714. return typeof(ServicePhotoRow);
  4715. }
  4716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4717. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4718. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  4719. base.OnRowChanged(e);
  4720. if ((this.ServicePhotoRowChanged != null)) {
  4721. this.ServicePhotoRowChanged(this, new ServicePhotoRowChangeEvent(((ServicePhotoRow)(e.Row)), e.Action));
  4722. }
  4723. }
  4724. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4725. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4726. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  4727. base.OnRowChanging(e);
  4728. if ((this.ServicePhotoRowChanging != null)) {
  4729. this.ServicePhotoRowChanging(this, new ServicePhotoRowChangeEvent(((ServicePhotoRow)(e.Row)), e.Action));
  4730. }
  4731. }
  4732. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4733. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4734. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  4735. base.OnRowDeleted(e);
  4736. if ((this.ServicePhotoRowDeleted != null)) {
  4737. this.ServicePhotoRowDeleted(this, new ServicePhotoRowChangeEvent(((ServicePhotoRow)(e.Row)), e.Action));
  4738. }
  4739. }
  4740. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4741. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4742. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  4743. base.OnRowDeleting(e);
  4744. if ((this.ServicePhotoRowDeleting != null)) {
  4745. this.ServicePhotoRowDeleting(this, new ServicePhotoRowChangeEvent(((ServicePhotoRow)(e.Row)), e.Action));
  4746. }
  4747. }
  4748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4750. public void RemoveServicePhotoRow(ServicePhotoRow row) {
  4751. this.Rows.Remove(row);
  4752. }
  4753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4755. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  4756. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  4757. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  4758. BarhotnieBrovkiDataSet ds = new BarhotnieBrovkiDataSet();
  4759. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  4760. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  4761. any1.MinOccurs = new decimal(0);
  4762. any1.MaxOccurs = decimal.MaxValue;
  4763. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4764. sequence.Items.Add(any1);
  4765. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  4766. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  4767. any2.MinOccurs = new decimal(1);
  4768. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4769. sequence.Items.Add(any2);
  4770. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4771. attribute1.Name = "namespace";
  4772. attribute1.FixedValue = ds.Namespace;
  4773. type.Attributes.Add(attribute1);
  4774. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4775. attribute2.Name = "tableTypeName";
  4776. attribute2.FixedValue = "ServicePhotoDataTable";
  4777. type.Attributes.Add(attribute2);
  4778. type.Particle = sequence;
  4779. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  4780. if (xs.Contains(dsSchema.TargetNamespace)) {
  4781. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  4782. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  4783. try {
  4784. global::System.Xml.Schema.XmlSchema schema = null;
  4785. dsSchema.Write(s1);
  4786. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  4787. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  4788. s2.SetLength(0);
  4789. schema.Write(s2);
  4790. if ((s1.Length == s2.Length)) {
  4791. s1.Position = 0;
  4792. s2.Position = 0;
  4793. for (; ((s1.Position != s1.Length)
  4794. && (s1.ReadByte() == s2.ReadByte())); ) {
  4795. ;
  4796. }
  4797. if ((s1.Position == s1.Length)) {
  4798. return type;
  4799. }
  4800. }
  4801. }
  4802. }
  4803. finally {
  4804. if ((s1 != null)) {
  4805. s1.Close();
  4806. }
  4807. if ((s2 != null)) {
  4808. s2.Close();
  4809. }
  4810. }
  4811. }
  4812. xs.Add(dsSchema);
  4813. return type;
  4814. }
  4815. }
  4816. /// <summary>
  4817. ///Represents the strongly named DataTable class.
  4818. ///</summary>
  4819. [global::System.Serializable()]
  4820. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  4821. public partial class TagDataTable : global::System.Data.TypedTableBase<TagRow> {
  4822. private global::System.Data.DataColumn columnID;
  4823. private global::System.Data.DataColumn columnTitle;
  4824. private global::System.Data.DataColumn columnColor;
  4825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4826. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4827. public TagDataTable() {
  4828. this.TableName = "Tag";
  4829. this.BeginInit();
  4830. this.InitClass();
  4831. this.EndInit();
  4832. }
  4833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4835. internal TagDataTable(global::System.Data.DataTable table) {
  4836. this.TableName = table.TableName;
  4837. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  4838. this.CaseSensitive = table.CaseSensitive;
  4839. }
  4840. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  4841. this.Locale = table.Locale;
  4842. }
  4843. if ((table.Namespace != table.DataSet.Namespace)) {
  4844. this.Namespace = table.Namespace;
  4845. }
  4846. this.Prefix = table.Prefix;
  4847. this.MinimumCapacity = table.MinimumCapacity;
  4848. }
  4849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4850. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4851. protected TagDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  4852. base(info, context) {
  4853. this.InitVars();
  4854. }
  4855. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4856. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4857. public global::System.Data.DataColumn IDColumn {
  4858. get {
  4859. return this.columnID;
  4860. }
  4861. }
  4862. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4863. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4864. public global::System.Data.DataColumn TitleColumn {
  4865. get {
  4866. return this.columnTitle;
  4867. }
  4868. }
  4869. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4870. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4871. public global::System.Data.DataColumn ColorColumn {
  4872. get {
  4873. return this.columnColor;
  4874. }
  4875. }
  4876. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4877. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4878. [global::System.ComponentModel.Browsable(false)]
  4879. public int Count {
  4880. get {
  4881. return this.Rows.Count;
  4882. }
  4883. }
  4884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4886. public TagRow this[int index] {
  4887. get {
  4888. return ((TagRow)(this.Rows[index]));
  4889. }
  4890. }
  4891. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4892. public event TagRowChangeEventHandler TagRowChanging;
  4893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4894. public event TagRowChangeEventHandler TagRowChanged;
  4895. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4896. public event TagRowChangeEventHandler TagRowDeleting;
  4897. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4898. public event TagRowChangeEventHandler TagRowDeleted;
  4899. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4900. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4901. public void AddTagRow(TagRow row) {
  4902. this.Rows.Add(row);
  4903. }
  4904. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4905. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4906. public TagRow AddTagRow(string Title, string Color) {
  4907. TagRow rowTagRow = ((TagRow)(this.NewRow()));
  4908. object[] columnValuesArray = new object[] {
  4909. null,
  4910. Title,
  4911. Color};
  4912. rowTagRow.ItemArray = columnValuesArray;
  4913. this.Rows.Add(rowTagRow);
  4914. return rowTagRow;
  4915. }
  4916. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4917. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4918. public TagRow FindByID(int ID) {
  4919. return ((TagRow)(this.Rows.Find(new object[] {
  4920. ID})));
  4921. }
  4922. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4923. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4924. public override global::System.Data.DataTable Clone() {
  4925. TagDataTable cln = ((TagDataTable)(base.Clone()));
  4926. cln.InitVars();
  4927. return cln;
  4928. }
  4929. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4930. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4931. protected override global::System.Data.DataTable CreateInstance() {
  4932. return new TagDataTable();
  4933. }
  4934. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4935. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4936. internal void InitVars() {
  4937. this.columnID = base.Columns["ID"];
  4938. this.columnTitle = base.Columns["Title"];
  4939. this.columnColor = base.Columns["Color"];
  4940. }
  4941. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4942. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4943. private void InitClass() {
  4944. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  4945. base.Columns.Add(this.columnID);
  4946. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  4947. base.Columns.Add(this.columnTitle);
  4948. this.columnColor = new global::System.Data.DataColumn("Color", typeof(string), null, global::System.Data.MappingType.Element);
  4949. base.Columns.Add(this.columnColor);
  4950. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  4951. this.columnID}, true));
  4952. this.columnID.AutoIncrement = true;
  4953. this.columnID.AutoIncrementSeed = -1;
  4954. this.columnID.AutoIncrementStep = -1;
  4955. this.columnID.AllowDBNull = false;
  4956. this.columnID.ReadOnly = true;
  4957. this.columnID.Unique = true;
  4958. this.columnTitle.AllowDBNull = false;
  4959. this.columnTitle.MaxLength = 30;
  4960. this.columnColor.AllowDBNull = false;
  4961. this.columnColor.MaxLength = 6;
  4962. }
  4963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4965. public TagRow NewTagRow() {
  4966. return ((TagRow)(this.NewRow()));
  4967. }
  4968. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4969. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4970. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  4971. return new TagRow(builder);
  4972. }
  4973. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4974. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4975. protected override global::System.Type GetRowType() {
  4976. return typeof(TagRow);
  4977. }
  4978. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4979. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4980. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  4981. base.OnRowChanged(e);
  4982. if ((this.TagRowChanged != null)) {
  4983. this.TagRowChanged(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  4984. }
  4985. }
  4986. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4987. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4988. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  4989. base.OnRowChanging(e);
  4990. if ((this.TagRowChanging != null)) {
  4991. this.TagRowChanging(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  4992. }
  4993. }
  4994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4995. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4996. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  4997. base.OnRowDeleted(e);
  4998. if ((this.TagRowDeleted != null)) {
  4999. this.TagRowDeleted(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  5000. }
  5001. }
  5002. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5003. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5004. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  5005. base.OnRowDeleting(e);
  5006. if ((this.TagRowDeleting != null)) {
  5007. this.TagRowDeleting(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  5008. }
  5009. }
  5010. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5011. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5012. public void RemoveTagRow(TagRow row) {
  5013. this.Rows.Remove(row);
  5014. }
  5015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5016. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5017. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  5018. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  5019. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  5020. BarhotnieBrovkiDataSet ds = new BarhotnieBrovkiDataSet();
  5021. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  5022. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  5023. any1.MinOccurs = new decimal(0);
  5024. any1.MaxOccurs = decimal.MaxValue;
  5025. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  5026. sequence.Items.Add(any1);
  5027. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  5028. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  5029. any2.MinOccurs = new decimal(1);
  5030. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  5031. sequence.Items.Add(any2);
  5032. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  5033. attribute1.Name = "namespace";
  5034. attribute1.FixedValue = ds.Namespace;
  5035. type.Attributes.Add(attribute1);
  5036. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  5037. attribute2.Name = "tableTypeName";
  5038. attribute2.FixedValue = "TagDataTable";
  5039. type.Attributes.Add(attribute2);
  5040. type.Particle = sequence;
  5041. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  5042. if (xs.Contains(dsSchema.TargetNamespace)) {
  5043. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  5044. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  5045. try {
  5046. global::System.Xml.Schema.XmlSchema schema = null;
  5047. dsSchema.Write(s1);
  5048. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  5049. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  5050. s2.SetLength(0);
  5051. schema.Write(s2);
  5052. if ((s1.Length == s2.Length)) {
  5053. s1.Position = 0;
  5054. s2.Position = 0;
  5055. for (; ((s1.Position != s1.Length)
  5056. && (s1.ReadByte() == s2.ReadByte())); ) {
  5057. ;
  5058. }
  5059. if ((s1.Position == s1.Length)) {
  5060. return type;
  5061. }
  5062. }
  5063. }
  5064. }
  5065. finally {
  5066. if ((s1 != null)) {
  5067. s1.Close();
  5068. }
  5069. if ((s2 != null)) {
  5070. s2.Close();
  5071. }
  5072. }
  5073. }
  5074. xs.Add(dsSchema);
  5075. return type;
  5076. }
  5077. }
  5078. /// <summary>
  5079. ///Represents the strongly named DataTable class.
  5080. ///</summary>
  5081. [global::System.Serializable()]
  5082. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  5083. public partial class TagOfClientDataTable : global::System.Data.TypedTableBase<TagOfClientRow> {
  5084. private global::System.Data.DataColumn columnClientID;
  5085. private global::System.Data.DataColumn columnTagID;
  5086. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5087. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5088. public TagOfClientDataTable() {
  5089. this.TableName = "TagOfClient";
  5090. this.BeginInit();
  5091. this.InitClass();
  5092. this.EndInit();
  5093. }
  5094. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5095. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5096. internal TagOfClientDataTable(global::System.Data.DataTable table) {
  5097. this.TableName = table.TableName;
  5098. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  5099. this.CaseSensitive = table.CaseSensitive;
  5100. }
  5101. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  5102. this.Locale = table.Locale;
  5103. }
  5104. if ((table.Namespace != table.DataSet.Namespace)) {
  5105. this.Namespace = table.Namespace;
  5106. }
  5107. this.Prefix = table.Prefix;
  5108. this.MinimumCapacity = table.MinimumCapacity;
  5109. }
  5110. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5111. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5112. protected TagOfClientDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  5113. base(info, context) {
  5114. this.InitVars();
  5115. }
  5116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5118. public global::System.Data.DataColumn ClientIDColumn {
  5119. get {
  5120. return this.columnClientID;
  5121. }
  5122. }
  5123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5124. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5125. public global::System.Data.DataColumn TagIDColumn {
  5126. get {
  5127. return this.columnTagID;
  5128. }
  5129. }
  5130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5131. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5132. [global::System.ComponentModel.Browsable(false)]
  5133. public int Count {
  5134. get {
  5135. return this.Rows.Count;
  5136. }
  5137. }
  5138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5139. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5140. public TagOfClientRow this[int index] {
  5141. get {
  5142. return ((TagOfClientRow)(this.Rows[index]));
  5143. }
  5144. }
  5145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5146. public event TagOfClientRowChangeEventHandler TagOfClientRowChanging;
  5147. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5148. public event TagOfClientRowChangeEventHandler TagOfClientRowChanged;
  5149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5150. public event TagOfClientRowChangeEventHandler TagOfClientRowDeleting;
  5151. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5152. public event TagOfClientRowChangeEventHandler TagOfClientRowDeleted;
  5153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5154. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5155. public void AddTagOfClientRow(TagOfClientRow row) {
  5156. this.Rows.Add(row);
  5157. }
  5158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5159. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5160. public TagOfClientRow AddTagOfClientRow(ClientRow parentClientRowByFK_TagOfClient_Client, TagRow parentTagRowByFK_TagOfClient_Tag) {
  5161. TagOfClientRow rowTagOfClientRow = ((TagOfClientRow)(this.NewRow()));
  5162. object[] columnValuesArray = new object[] {
  5163. null,
  5164. null};
  5165. if ((parentClientRowByFK_TagOfClient_Client != null)) {
  5166. columnValuesArray[0] = parentClientRowByFK_TagOfClient_Client[0];
  5167. }
  5168. if ((parentTagRowByFK_TagOfClient_Tag != null)) {
  5169. columnValuesArray[1] = parentTagRowByFK_TagOfClient_Tag[0];
  5170. }
  5171. rowTagOfClientRow.ItemArray = columnValuesArray;
  5172. this.Rows.Add(rowTagOfClientRow);
  5173. return rowTagOfClientRow;
  5174. }
  5175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5176. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5177. public TagOfClientRow FindByClientIDTagID(int ClientID, int TagID) {
  5178. return ((TagOfClientRow)(this.Rows.Find(new object[] {
  5179. ClientID,
  5180. TagID})));
  5181. }
  5182. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5183. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5184. public override global::System.Data.DataTable Clone() {
  5185. TagOfClientDataTable cln = ((TagOfClientDataTable)(base.Clone()));
  5186. cln.InitVars();
  5187. return cln;
  5188. }
  5189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5191. protected override global::System.Data.DataTable CreateInstance() {
  5192. return new TagOfClientDataTable();
  5193. }
  5194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5196. internal void InitVars() {
  5197. this.columnClientID = base.Columns["ClientID"];
  5198. this.columnTagID = base.Columns["TagID"];
  5199. }
  5200. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5201. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5202. private void InitClass() {
  5203. this.columnClientID = new global::System.Data.DataColumn("ClientID", typeof(int), null, global::System.Data.MappingType.Element);
  5204. base.Columns.Add(this.columnClientID);
  5205. this.columnTagID = new global::System.Data.DataColumn("TagID", typeof(int), null, global::System.Data.MappingType.Element);
  5206. base.Columns.Add(this.columnTagID);
  5207. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  5208. this.columnClientID,
  5209. this.columnTagID}, true));
  5210. this.columnClientID.AllowDBNull = false;
  5211. this.columnTagID.AllowDBNull = false;
  5212. }
  5213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5214. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5215. public TagOfClientRow NewTagOfClientRow() {
  5216. return ((TagOfClientRow)(this.NewRow()));
  5217. }
  5218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5219. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5220. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  5221. return new TagOfClientRow(builder);
  5222. }
  5223. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5224. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5225. protected override global::System.Type GetRowType() {
  5226. return typeof(TagOfClientRow);
  5227. }
  5228. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5229. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5230. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  5231. base.OnRowChanged(e);
  5232. if ((this.TagOfClientRowChanged != null)) {
  5233. this.TagOfClientRowChanged(this, new TagOfClientRowChangeEvent(((TagOfClientRow)(e.Row)), e.Action));
  5234. }
  5235. }
  5236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5237. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5238. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  5239. base.OnRowChanging(e);
  5240. if ((this.TagOfClientRowChanging != null)) {
  5241. this.TagOfClientRowChanging(this, new TagOfClientRowChangeEvent(((TagOfClientRow)(e.Row)), e.Action));
  5242. }
  5243. }
  5244. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5245. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5246. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  5247. base.OnRowDeleted(e);
  5248. if ((this.TagOfClientRowDeleted != null)) {
  5249. this.TagOfClientRowDeleted(this, new TagOfClientRowChangeEvent(((TagOfClientRow)(e.Row)), e.Action));
  5250. }
  5251. }
  5252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5254. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  5255. base.OnRowDeleting(e);
  5256. if ((this.TagOfClientRowDeleting != null)) {
  5257. this.TagOfClientRowDeleting(this, new TagOfClientRowChangeEvent(((TagOfClientRow)(e.Row)), e.Action));
  5258. }
  5259. }
  5260. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5261. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5262. public void RemoveTagOfClientRow(TagOfClientRow row) {
  5263. this.Rows.Remove(row);
  5264. }
  5265. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5266. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5267. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  5268. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  5269. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  5270. BarhotnieBrovkiDataSet ds = new BarhotnieBrovkiDataSet();
  5271. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  5272. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  5273. any1.MinOccurs = new decimal(0);
  5274. any1.MaxOccurs = decimal.MaxValue;
  5275. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  5276. sequence.Items.Add(any1);
  5277. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  5278. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  5279. any2.MinOccurs = new decimal(1);
  5280. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  5281. sequence.Items.Add(any2);
  5282. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  5283. attribute1.Name = "namespace";
  5284. attribute1.FixedValue = ds.Namespace;
  5285. type.Attributes.Add(attribute1);
  5286. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  5287. attribute2.Name = "tableTypeName";
  5288. attribute2.FixedValue = "TagOfClientDataTable";
  5289. type.Attributes.Add(attribute2);
  5290. type.Particle = sequence;
  5291. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  5292. if (xs.Contains(dsSchema.TargetNamespace)) {
  5293. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  5294. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  5295. try {
  5296. global::System.Xml.Schema.XmlSchema schema = null;
  5297. dsSchema.Write(s1);
  5298. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  5299. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  5300. s2.SetLength(0);
  5301. schema.Write(s2);
  5302. if ((s1.Length == s2.Length)) {
  5303. s1.Position = 0;
  5304. s2.Position = 0;
  5305. for (; ((s1.Position != s1.Length)
  5306. && (s1.ReadByte() == s2.ReadByte())); ) {
  5307. ;
  5308. }
  5309. if ((s1.Position == s1.Length)) {
  5310. return type;
  5311. }
  5312. }
  5313. }
  5314. }
  5315. finally {
  5316. if ((s1 != null)) {
  5317. s1.Close();
  5318. }
  5319. if ((s2 != null)) {
  5320. s2.Close();
  5321. }
  5322. }
  5323. }
  5324. xs.Add(dsSchema);
  5325. return type;
  5326. }
  5327. }
  5328. /// <summary>
  5329. ///Represents strongly named DataRow class.
  5330. ///</summary>
  5331. public partial class AttachedProductRow : global::System.Data.DataRow {
  5332. private AttachedProductDataTable tableAttachedProduct;
  5333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5334. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5335. internal AttachedProductRow(global::System.Data.DataRowBuilder rb) :
  5336. base(rb) {
  5337. this.tableAttachedProduct = ((AttachedProductDataTable)(this.Table));
  5338. }
  5339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5341. public int MainProductID {
  5342. get {
  5343. return ((int)(this[this.tableAttachedProduct.MainProductIDColumn]));
  5344. }
  5345. set {
  5346. this[this.tableAttachedProduct.MainProductIDColumn] = value;
  5347. }
  5348. }
  5349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5351. public int AttachedProductID {
  5352. get {
  5353. return ((int)(this[this.tableAttachedProduct.AttachedProductIDColumn]));
  5354. }
  5355. set {
  5356. this[this.tableAttachedProduct.AttachedProductIDColumn] = value;
  5357. }
  5358. }
  5359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5360. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5361. public ProductRow ProductRowByFK_AttachedProduct_Product {
  5362. get {
  5363. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_AttachedProduct_Product"])));
  5364. }
  5365. set {
  5366. this.SetParentRow(value, this.Table.ParentRelations["FK_AttachedProduct_Product"]);
  5367. }
  5368. }
  5369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5371. public ProductRow ProductRowByFK_AttachedProduct_Product1 {
  5372. get {
  5373. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_AttachedProduct_Product1"])));
  5374. }
  5375. set {
  5376. this.SetParentRow(value, this.Table.ParentRelations["FK_AttachedProduct_Product1"]);
  5377. }
  5378. }
  5379. }
  5380. /// <summary>
  5381. ///Represents strongly named DataRow class.
  5382. ///</summary>
  5383. public partial class ClientRow : global::System.Data.DataRow {
  5384. private ClientDataTable tableClient;
  5385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5386. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5387. internal ClientRow(global::System.Data.DataRowBuilder rb) :
  5388. base(rb) {
  5389. this.tableClient = ((ClientDataTable)(this.Table));
  5390. }
  5391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5392. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5393. public int ID {
  5394. get {
  5395. return ((int)(this[this.tableClient.IDColumn]));
  5396. }
  5397. set {
  5398. this[this.tableClient.IDColumn] = value;
  5399. }
  5400. }
  5401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5402. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5403. public string FirstName {
  5404. get {
  5405. return ((string)(this[this.tableClient.FirstNameColumn]));
  5406. }
  5407. set {
  5408. this[this.tableClient.FirstNameColumn] = value;
  5409. }
  5410. }
  5411. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5412. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5413. public string LastName {
  5414. get {
  5415. return ((string)(this[this.tableClient.LastNameColumn]));
  5416. }
  5417. set {
  5418. this[this.tableClient.LastNameColumn] = value;
  5419. }
  5420. }
  5421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5422. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5423. public string Patronymic {
  5424. get {
  5425. try {
  5426. return ((string)(this[this.tableClient.PatronymicColumn]));
  5427. }
  5428. catch (global::System.InvalidCastException e) {
  5429. throw new global::System.Data.StrongTypingException("Значение для столбца \'Patronymic\' в таблице \'Client\' равно DBNull.", e);
  5430. }
  5431. }
  5432. set {
  5433. this[this.tableClient.PatronymicColumn] = value;
  5434. }
  5435. }
  5436. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5437. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5438. public System.DateTime Birthday {
  5439. get {
  5440. try {
  5441. return ((global::System.DateTime)(this[this.tableClient.BirthdayColumn]));
  5442. }
  5443. catch (global::System.InvalidCastException e) {
  5444. throw new global::System.Data.StrongTypingException("Значение для столбца \'Birthday\' в таблице \'Client\' равно DBNull.", e);
  5445. }
  5446. }
  5447. set {
  5448. this[this.tableClient.BirthdayColumn] = value;
  5449. }
  5450. }
  5451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5452. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5453. public System.DateTime RegistrationDate {
  5454. get {
  5455. return ((global::System.DateTime)(this[this.tableClient.RegistrationDateColumn]));
  5456. }
  5457. set {
  5458. this[this.tableClient.RegistrationDateColumn] = value;
  5459. }
  5460. }
  5461. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5462. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5463. public string Email {
  5464. get {
  5465. try {
  5466. return ((string)(this[this.tableClient.EmailColumn]));
  5467. }
  5468. catch (global::System.InvalidCastException e) {
  5469. throw new global::System.Data.StrongTypingException("Значение для столбца \'Email\' в таблице \'Client\' равно DBNull.", e);
  5470. }
  5471. }
  5472. set {
  5473. this[this.tableClient.EmailColumn] = value;
  5474. }
  5475. }
  5476. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5477. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5478. public string Phone {
  5479. get {
  5480. return ((string)(this[this.tableClient.PhoneColumn]));
  5481. }
  5482. set {
  5483. this[this.tableClient.PhoneColumn] = value;
  5484. }
  5485. }
  5486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5488. public string GenderCode {
  5489. get {
  5490. return ((string)(this[this.tableClient.GenderCodeColumn]));
  5491. }
  5492. set {
  5493. this[this.tableClient.GenderCodeColumn] = value;
  5494. }
  5495. }
  5496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5497. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5498. public string PhotoPath {
  5499. get {
  5500. try {
  5501. return ((string)(this[this.tableClient.PhotoPathColumn]));
  5502. }
  5503. catch (global::System.InvalidCastException e) {
  5504. throw new global::System.Data.StrongTypingException("Значение для столбца \'PhotoPath\' в таблице \'Client\' равно DBNull.", e);
  5505. }
  5506. }
  5507. set {
  5508. this[this.tableClient.PhotoPathColumn] = value;
  5509. }
  5510. }
  5511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5512. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5513. public GenderRow GenderRow {
  5514. get {
  5515. return ((GenderRow)(this.GetParentRow(this.Table.ParentRelations["FK_Client_Gender"])));
  5516. }
  5517. set {
  5518. this.SetParentRow(value, this.Table.ParentRelations["FK_Client_Gender"]);
  5519. }
  5520. }
  5521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5523. public bool IsPatronymicNull() {
  5524. return this.IsNull(this.tableClient.PatronymicColumn);
  5525. }
  5526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5528. public void SetPatronymicNull() {
  5529. this[this.tableClient.PatronymicColumn] = global::System.Convert.DBNull;
  5530. }
  5531. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5532. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5533. public bool IsBirthdayNull() {
  5534. return this.IsNull(this.tableClient.BirthdayColumn);
  5535. }
  5536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5537. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5538. public void SetBirthdayNull() {
  5539. this[this.tableClient.BirthdayColumn] = global::System.Convert.DBNull;
  5540. }
  5541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5543. public bool IsEmailNull() {
  5544. return this.IsNull(this.tableClient.EmailColumn);
  5545. }
  5546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5548. public void SetEmailNull() {
  5549. this[this.tableClient.EmailColumn] = global::System.Convert.DBNull;
  5550. }
  5551. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5552. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5553. public bool IsPhotoPathNull() {
  5554. return this.IsNull(this.tableClient.PhotoPathColumn);
  5555. }
  5556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5557. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5558. public void SetPhotoPathNull() {
  5559. this[this.tableClient.PhotoPathColumn] = global::System.Convert.DBNull;
  5560. }
  5561. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5562. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5563. public ClientServiceRow[] GetClientServiceRows() {
  5564. if ((this.Table.ChildRelations["FK_ClientService_Client"] == null)) {
  5565. return new ClientServiceRow[0];
  5566. }
  5567. else {
  5568. return ((ClientServiceRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ClientService_Client"])));
  5569. }
  5570. }
  5571. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5572. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5573. public TagOfClientRow[] GetTagOfClientRows() {
  5574. if ((this.Table.ChildRelations["FK_TagOfClient_Client"] == null)) {
  5575. return new TagOfClientRow[0];
  5576. }
  5577. else {
  5578. return ((TagOfClientRow[])(base.GetChildRows(this.Table.ChildRelations["FK_TagOfClient_Client"])));
  5579. }
  5580. }
  5581. }
  5582. /// <summary>
  5583. ///Represents strongly named DataRow class.
  5584. ///</summary>
  5585. public partial class Client_b_importRow : global::System.Data.DataRow {
  5586. private Client_b_importDataTable tableClient_b_import;
  5587. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5588. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5589. internal Client_b_importRow(global::System.Data.DataRowBuilder rb) :
  5590. base(rb) {
  5591. this.tableClient_b_import = ((Client_b_importDataTable)(this.Table));
  5592. }
  5593. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5594. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5595. public string Фамилия {
  5596. get {
  5597. return ((string)(this[this.tableClient_b_import.ФамилияColumn]));
  5598. }
  5599. set {
  5600. this[this.tableClient_b_import.ФамилияColumn] = value;
  5601. }
  5602. }
  5603. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5604. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5605. public string Имя {
  5606. get {
  5607. return ((string)(this[this.tableClient_b_import.ИмяColumn]));
  5608. }
  5609. set {
  5610. this[this.tableClient_b_import.ИмяColumn] = value;
  5611. }
  5612. }
  5613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5614. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5615. public string Отчество {
  5616. get {
  5617. return ((string)(this[this.tableClient_b_import.ОтчествоColumn]));
  5618. }
  5619. set {
  5620. this[this.tableClient_b_import.ОтчествоColumn] = value;
  5621. }
  5622. }
  5623. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5625. public string Пол {
  5626. get {
  5627. return ((string)(this[this.tableClient_b_import.ПолColumn]));
  5628. }
  5629. set {
  5630. this[this.tableClient_b_import.ПолColumn] = value;
  5631. }
  5632. }
  5633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5635. public string Телефон {
  5636. get {
  5637. return ((string)(this[this.tableClient_b_import.ТелефонColumn]));
  5638. }
  5639. set {
  5640. this[this.tableClient_b_import.ТелефонColumn] = value;
  5641. }
  5642. }
  5643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5644. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5645. public System.DateTime Дата_рождения {
  5646. get {
  5647. return ((global::System.DateTime)(this[this.tableClient_b_import.Дата_рожденияColumn]));
  5648. }
  5649. set {
  5650. this[this.tableClient_b_import.Дата_рожденияColumn] = value;
  5651. }
  5652. }
  5653. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5654. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5655. public string Email {
  5656. get {
  5657. return ((string)(this[this.tableClient_b_import.EmailColumn]));
  5658. }
  5659. set {
  5660. this[this.tableClient_b_import.EmailColumn] = value;
  5661. }
  5662. }
  5663. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5664. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5665. public System.DateTime Дата_регистрации {
  5666. get {
  5667. return ((global::System.DateTime)(this[this.tableClient_b_import.Дата_регистрацииColumn]));
  5668. }
  5669. set {
  5670. this[this.tableClient_b_import.Дата_регистрацииColumn] = value;
  5671. }
  5672. }
  5673. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5674. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5675. public long ID {
  5676. get {
  5677. return ((long)(this[this.tableClient_b_import.IDColumn]));
  5678. }
  5679. set {
  5680. this[this.tableClient_b_import.IDColumn] = value;
  5681. }
  5682. }
  5683. }
  5684. /// <summary>
  5685. ///Represents strongly named DataRow class.
  5686. ///</summary>
  5687. public partial class ClientServiceRow : global::System.Data.DataRow {
  5688. private ClientServiceDataTable tableClientService;
  5689. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5690. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5691. internal ClientServiceRow(global::System.Data.DataRowBuilder rb) :
  5692. base(rb) {
  5693. this.tableClientService = ((ClientServiceDataTable)(this.Table));
  5694. }
  5695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5696. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5697. public int ID {
  5698. get {
  5699. return ((int)(this[this.tableClientService.IDColumn]));
  5700. }
  5701. set {
  5702. this[this.tableClientService.IDColumn] = value;
  5703. }
  5704. }
  5705. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5706. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5707. public int ClientID {
  5708. get {
  5709. return ((int)(this[this.tableClientService.ClientIDColumn]));
  5710. }
  5711. set {
  5712. this[this.tableClientService.ClientIDColumn] = value;
  5713. }
  5714. }
  5715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5717. public int ServiceID {
  5718. get {
  5719. return ((int)(this[this.tableClientService.ServiceIDColumn]));
  5720. }
  5721. set {
  5722. this[this.tableClientService.ServiceIDColumn] = value;
  5723. }
  5724. }
  5725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5726. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5727. public System.DateTime StartTime {
  5728. get {
  5729. return ((global::System.DateTime)(this[this.tableClientService.StartTimeColumn]));
  5730. }
  5731. set {
  5732. this[this.tableClientService.StartTimeColumn] = value;
  5733. }
  5734. }
  5735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5736. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5737. public string Comment {
  5738. get {
  5739. try {
  5740. return ((string)(this[this.tableClientService.CommentColumn]));
  5741. }
  5742. catch (global::System.InvalidCastException e) {
  5743. throw new global::System.Data.StrongTypingException("Значение для столбца \'Comment\' в таблице \'ClientService\' равно DBNull.", e);
  5744. }
  5745. }
  5746. set {
  5747. this[this.tableClientService.CommentColumn] = value;
  5748. }
  5749. }
  5750. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5751. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5752. public ClientRow ClientRow {
  5753. get {
  5754. return ((ClientRow)(this.GetParentRow(this.Table.ParentRelations["FK_ClientService_Client"])));
  5755. }
  5756. set {
  5757. this.SetParentRow(value, this.Table.ParentRelations["FK_ClientService_Client"]);
  5758. }
  5759. }
  5760. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5761. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5762. public ServiceRow ServiceRow {
  5763. get {
  5764. return ((ServiceRow)(this.GetParentRow(this.Table.ParentRelations["FK_ClientService_Service"])));
  5765. }
  5766. set {
  5767. this.SetParentRow(value, this.Table.ParentRelations["FK_ClientService_Service"]);
  5768. }
  5769. }
  5770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5771. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5772. public bool IsCommentNull() {
  5773. return this.IsNull(this.tableClientService.CommentColumn);
  5774. }
  5775. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5776. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5777. public void SetCommentNull() {
  5778. this[this.tableClientService.CommentColumn] = global::System.Convert.DBNull;
  5779. }
  5780. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5781. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5782. public DocumentByServiceRow[] GetDocumentByServiceRows() {
  5783. if ((this.Table.ChildRelations["FK_DocumentByService_ClientService"] == null)) {
  5784. return new DocumentByServiceRow[0];
  5785. }
  5786. else {
  5787. return ((DocumentByServiceRow[])(base.GetChildRows(this.Table.ChildRelations["FK_DocumentByService_ClientService"])));
  5788. }
  5789. }
  5790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5792. public ProductSaleRow[] GetProductSaleRows() {
  5793. if ((this.Table.ChildRelations["FK_ProductSale_ClientService"] == null)) {
  5794. return new ProductSaleRow[0];
  5795. }
  5796. else {
  5797. return ((ProductSaleRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductSale_ClientService"])));
  5798. }
  5799. }
  5800. }
  5801. /// <summary>
  5802. ///Represents strongly named DataRow class.
  5803. ///</summary>
  5804. public partial class DocumentByServiceRow : global::System.Data.DataRow {
  5805. private DocumentByServiceDataTable tableDocumentByService;
  5806. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5807. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5808. internal DocumentByServiceRow(global::System.Data.DataRowBuilder rb) :
  5809. base(rb) {
  5810. this.tableDocumentByService = ((DocumentByServiceDataTable)(this.Table));
  5811. }
  5812. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5813. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5814. public int ID {
  5815. get {
  5816. return ((int)(this[this.tableDocumentByService.IDColumn]));
  5817. }
  5818. set {
  5819. this[this.tableDocumentByService.IDColumn] = value;
  5820. }
  5821. }
  5822. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5823. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5824. public int ClientServiceID {
  5825. get {
  5826. return ((int)(this[this.tableDocumentByService.ClientServiceIDColumn]));
  5827. }
  5828. set {
  5829. this[this.tableDocumentByService.ClientServiceIDColumn] = value;
  5830. }
  5831. }
  5832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5833. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5834. public string DocumentPath {
  5835. get {
  5836. return ((string)(this[this.tableDocumentByService.DocumentPathColumn]));
  5837. }
  5838. set {
  5839. this[this.tableDocumentByService.DocumentPathColumn] = value;
  5840. }
  5841. }
  5842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5844. public ClientServiceRow ClientServiceRow {
  5845. get {
  5846. return ((ClientServiceRow)(this.GetParentRow(this.Table.ParentRelations["FK_DocumentByService_ClientService"])));
  5847. }
  5848. set {
  5849. this.SetParentRow(value, this.Table.ParentRelations["FK_DocumentByService_ClientService"]);
  5850. }
  5851. }
  5852. }
  5853. /// <summary>
  5854. ///Represents strongly named DataRow class.
  5855. ///</summary>
  5856. public partial class GenderRow : global::System.Data.DataRow {
  5857. private GenderDataTable tableGender;
  5858. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5859. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5860. internal GenderRow(global::System.Data.DataRowBuilder rb) :
  5861. base(rb) {
  5862. this.tableGender = ((GenderDataTable)(this.Table));
  5863. }
  5864. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5865. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5866. public string Code {
  5867. get {
  5868. return ((string)(this[this.tableGender.CodeColumn]));
  5869. }
  5870. set {
  5871. this[this.tableGender.CodeColumn] = value;
  5872. }
  5873. }
  5874. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5875. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5876. public string Name {
  5877. get {
  5878. try {
  5879. return ((string)(this[this.tableGender.NameColumn]));
  5880. }
  5881. catch (global::System.InvalidCastException e) {
  5882. throw new global::System.Data.StrongTypingException("Значение для столбца \'Name\' в таблице \'Gender\' равно DBNull.", e);
  5883. }
  5884. }
  5885. set {
  5886. this[this.tableGender.NameColumn] = value;
  5887. }
  5888. }
  5889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5890. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5891. public bool IsNameNull() {
  5892. return this.IsNull(this.tableGender.NameColumn);
  5893. }
  5894. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5895. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5896. public void SetNameNull() {
  5897. this[this.tableGender.NameColumn] = global::System.Convert.DBNull;
  5898. }
  5899. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5900. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5901. public ClientRow[] GetClientRows() {
  5902. if ((this.Table.ChildRelations["FK_Client_Gender"] == null)) {
  5903. return new ClientRow[0];
  5904. }
  5905. else {
  5906. return ((ClientRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Client_Gender"])));
  5907. }
  5908. }
  5909. }
  5910. /// <summary>
  5911. ///Represents strongly named DataRow class.
  5912. ///</summary>
  5913. public partial class ManufacturerRow : global::System.Data.DataRow {
  5914. private ManufacturerDataTable tableManufacturer;
  5915. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5916. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5917. internal ManufacturerRow(global::System.Data.DataRowBuilder rb) :
  5918. base(rb) {
  5919. this.tableManufacturer = ((ManufacturerDataTable)(this.Table));
  5920. }
  5921. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5922. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5923. public int ID {
  5924. get {
  5925. return ((int)(this[this.tableManufacturer.IDColumn]));
  5926. }
  5927. set {
  5928. this[this.tableManufacturer.IDColumn] = value;
  5929. }
  5930. }
  5931. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5932. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5933. public string Name {
  5934. get {
  5935. return ((string)(this[this.tableManufacturer.NameColumn]));
  5936. }
  5937. set {
  5938. this[this.tableManufacturer.NameColumn] = value;
  5939. }
  5940. }
  5941. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5942. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5943. public System.DateTime StartDate {
  5944. get {
  5945. try {
  5946. return ((global::System.DateTime)(this[this.tableManufacturer.StartDateColumn]));
  5947. }
  5948. catch (global::System.InvalidCastException e) {
  5949. throw new global::System.Data.StrongTypingException("Значение для столбца \'StartDate\' в таблице \'Manufacturer\' равно DBNull.", e);
  5950. }
  5951. }
  5952. set {
  5953. this[this.tableManufacturer.StartDateColumn] = value;
  5954. }
  5955. }
  5956. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5957. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5958. public bool IsStartDateNull() {
  5959. return this.IsNull(this.tableManufacturer.StartDateColumn);
  5960. }
  5961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5962. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5963. public void SetStartDateNull() {
  5964. this[this.tableManufacturer.StartDateColumn] = global::System.Convert.DBNull;
  5965. }
  5966. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5967. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5968. public ProductRow[] GetProductRows() {
  5969. if ((this.Table.ChildRelations["FK_Product_Manufacturer"] == null)) {
  5970. return new ProductRow[0];
  5971. }
  5972. else {
  5973. return ((ProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Product_Manufacturer"])));
  5974. }
  5975. }
  5976. }
  5977. /// <summary>
  5978. ///Represents strongly named DataRow class.
  5979. ///</summary>
  5980. public partial class ProductRow : global::System.Data.DataRow {
  5981. private ProductDataTable tableProduct;
  5982. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5983. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5984. internal ProductRow(global::System.Data.DataRowBuilder rb) :
  5985. base(rb) {
  5986. this.tableProduct = ((ProductDataTable)(this.Table));
  5987. }
  5988. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5989. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5990. public int ID {
  5991. get {
  5992. return ((int)(this[this.tableProduct.IDColumn]));
  5993. }
  5994. set {
  5995. this[this.tableProduct.IDColumn] = value;
  5996. }
  5997. }
  5998. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5999. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6000. public string Title {
  6001. get {
  6002. return ((string)(this[this.tableProduct.TitleColumn]));
  6003. }
  6004. set {
  6005. this[this.tableProduct.TitleColumn] = value;
  6006. }
  6007. }
  6008. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6009. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6010. public decimal Cost {
  6011. get {
  6012. return ((decimal)(this[this.tableProduct.CostColumn]));
  6013. }
  6014. set {
  6015. this[this.tableProduct.CostColumn] = value;
  6016. }
  6017. }
  6018. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6019. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6020. public string Description {
  6021. get {
  6022. try {
  6023. return ((string)(this[this.tableProduct.DescriptionColumn]));
  6024. }
  6025. catch (global::System.InvalidCastException e) {
  6026. throw new global::System.Data.StrongTypingException("Значение для столбца \'Description\' в таблице \'Product\' равно DBNull.", e);
  6027. }
  6028. }
  6029. set {
  6030. this[this.tableProduct.DescriptionColumn] = value;
  6031. }
  6032. }
  6033. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6034. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6035. public string MainImagePath {
  6036. get {
  6037. try {
  6038. return ((string)(this[this.tableProduct.MainImagePathColumn]));
  6039. }
  6040. catch (global::System.InvalidCastException e) {
  6041. throw new global::System.Data.StrongTypingException("Значение для столбца \'MainImagePath\' в таблице \'Product\' равно DBNull.", e);
  6042. }
  6043. }
  6044. set {
  6045. this[this.tableProduct.MainImagePathColumn] = value;
  6046. }
  6047. }
  6048. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6049. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6050. public bool IsActive {
  6051. get {
  6052. return ((bool)(this[this.tableProduct.IsActiveColumn]));
  6053. }
  6054. set {
  6055. this[this.tableProduct.IsActiveColumn] = value;
  6056. }
  6057. }
  6058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6059. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6060. public int ManufacturerID {
  6061. get {
  6062. try {
  6063. return ((int)(this[this.tableProduct.ManufacturerIDColumn]));
  6064. }
  6065. catch (global::System.InvalidCastException e) {
  6066. throw new global::System.Data.StrongTypingException("Значение для столбца \'ManufacturerID\' в таблице \'Product\' равно DBNull.", e);
  6067. }
  6068. }
  6069. set {
  6070. this[this.tableProduct.ManufacturerIDColumn] = value;
  6071. }
  6072. }
  6073. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6074. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6075. public ManufacturerRow ManufacturerRow {
  6076. get {
  6077. return ((ManufacturerRow)(this.GetParentRow(this.Table.ParentRelations["FK_Product_Manufacturer"])));
  6078. }
  6079. set {
  6080. this.SetParentRow(value, this.Table.ParentRelations["FK_Product_Manufacturer"]);
  6081. }
  6082. }
  6083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6085. public bool IsDescriptionNull() {
  6086. return this.IsNull(this.tableProduct.DescriptionColumn);
  6087. }
  6088. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6089. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6090. public void SetDescriptionNull() {
  6091. this[this.tableProduct.DescriptionColumn] = global::System.Convert.DBNull;
  6092. }
  6093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6094. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6095. public bool IsMainImagePathNull() {
  6096. return this.IsNull(this.tableProduct.MainImagePathColumn);
  6097. }
  6098. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6099. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6100. public void SetMainImagePathNull() {
  6101. this[this.tableProduct.MainImagePathColumn] = global::System.Convert.DBNull;
  6102. }
  6103. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6104. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6105. public bool IsManufacturerIDNull() {
  6106. return this.IsNull(this.tableProduct.ManufacturerIDColumn);
  6107. }
  6108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6110. public void SetManufacturerIDNull() {
  6111. this[this.tableProduct.ManufacturerIDColumn] = global::System.Convert.DBNull;
  6112. }
  6113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6114. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6115. public AttachedProductRow[] GetAttachedProductRowsByFK_AttachedProduct_Product() {
  6116. if ((this.Table.ChildRelations["FK_AttachedProduct_Product"] == null)) {
  6117. return new AttachedProductRow[0];
  6118. }
  6119. else {
  6120. return ((AttachedProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK_AttachedProduct_Product"])));
  6121. }
  6122. }
  6123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6124. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6125. public AttachedProductRow[] GetAttachedProductRowsByFK_AttachedProduct_Product1() {
  6126. if ((this.Table.ChildRelations["FK_AttachedProduct_Product1"] == null)) {
  6127. return new AttachedProductRow[0];
  6128. }
  6129. else {
  6130. return ((AttachedProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK_AttachedProduct_Product1"])));
  6131. }
  6132. }
  6133. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6134. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6135. public ProductPhotoRow[] GetProductPhotoRows() {
  6136. if ((this.Table.ChildRelations["FK_ProductPhoto_Product"] == null)) {
  6137. return new ProductPhotoRow[0];
  6138. }
  6139. else {
  6140. return ((ProductPhotoRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductPhoto_Product"])));
  6141. }
  6142. }
  6143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6144. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6145. public ProductSaleRow[] GetProductSaleRows() {
  6146. if ((this.Table.ChildRelations["FK_ProductSale_Product"] == null)) {
  6147. return new ProductSaleRow[0];
  6148. }
  6149. else {
  6150. return ((ProductSaleRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductSale_Product"])));
  6151. }
  6152. }
  6153. }
  6154. /// <summary>
  6155. ///Represents strongly named DataRow class.
  6156. ///</summary>
  6157. public partial class ProductPhotoRow : global::System.Data.DataRow {
  6158. private ProductPhotoDataTable tableProductPhoto;
  6159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6160. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6161. internal ProductPhotoRow(global::System.Data.DataRowBuilder rb) :
  6162. base(rb) {
  6163. this.tableProductPhoto = ((ProductPhotoDataTable)(this.Table));
  6164. }
  6165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6167. public int ID {
  6168. get {
  6169. return ((int)(this[this.tableProductPhoto.IDColumn]));
  6170. }
  6171. set {
  6172. this[this.tableProductPhoto.IDColumn] = value;
  6173. }
  6174. }
  6175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6176. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6177. public int ProductID {
  6178. get {
  6179. return ((int)(this[this.tableProductPhoto.ProductIDColumn]));
  6180. }
  6181. set {
  6182. this[this.tableProductPhoto.ProductIDColumn] = value;
  6183. }
  6184. }
  6185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6186. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6187. public string PhotoPath {
  6188. get {
  6189. return ((string)(this[this.tableProductPhoto.PhotoPathColumn]));
  6190. }
  6191. set {
  6192. this[this.tableProductPhoto.PhotoPathColumn] = value;
  6193. }
  6194. }
  6195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6197. public ProductRow ProductRow {
  6198. get {
  6199. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_ProductPhoto_Product"])));
  6200. }
  6201. set {
  6202. this.SetParentRow(value, this.Table.ParentRelations["FK_ProductPhoto_Product"]);
  6203. }
  6204. }
  6205. }
  6206. /// <summary>
  6207. ///Represents strongly named DataRow class.
  6208. ///</summary>
  6209. public partial class ProductSaleRow : global::System.Data.DataRow {
  6210. private ProductSaleDataTable tableProductSale;
  6211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6213. internal ProductSaleRow(global::System.Data.DataRowBuilder rb) :
  6214. base(rb) {
  6215. this.tableProductSale = ((ProductSaleDataTable)(this.Table));
  6216. }
  6217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6218. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6219. public int ID {
  6220. get {
  6221. return ((int)(this[this.tableProductSale.IDColumn]));
  6222. }
  6223. set {
  6224. this[this.tableProductSale.IDColumn] = value;
  6225. }
  6226. }
  6227. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6228. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6229. public System.DateTime SaleDate {
  6230. get {
  6231. return ((global::System.DateTime)(this[this.tableProductSale.SaleDateColumn]));
  6232. }
  6233. set {
  6234. this[this.tableProductSale.SaleDateColumn] = value;
  6235. }
  6236. }
  6237. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6238. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6239. public int ProductID {
  6240. get {
  6241. return ((int)(this[this.tableProductSale.ProductIDColumn]));
  6242. }
  6243. set {
  6244. this[this.tableProductSale.ProductIDColumn] = value;
  6245. }
  6246. }
  6247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6249. public int Quantity {
  6250. get {
  6251. return ((int)(this[this.tableProductSale.QuantityColumn]));
  6252. }
  6253. set {
  6254. this[this.tableProductSale.QuantityColumn] = value;
  6255. }
  6256. }
  6257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6258. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6259. public int ClientServiceID {
  6260. get {
  6261. try {
  6262. return ((int)(this[this.tableProductSale.ClientServiceIDColumn]));
  6263. }
  6264. catch (global::System.InvalidCastException e) {
  6265. throw new global::System.Data.StrongTypingException("Значение для столбца \'ClientServiceID\' в таблице \'ProductSale\' равно DBNull.", e);
  6266. }
  6267. }
  6268. set {
  6269. this[this.tableProductSale.ClientServiceIDColumn] = value;
  6270. }
  6271. }
  6272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6274. public ClientServiceRow ClientServiceRow {
  6275. get {
  6276. return ((ClientServiceRow)(this.GetParentRow(this.Table.ParentRelations["FK_ProductSale_ClientService"])));
  6277. }
  6278. set {
  6279. this.SetParentRow(value, this.Table.ParentRelations["FK_ProductSale_ClientService"]);
  6280. }
  6281. }
  6282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6284. public ProductRow ProductRow {
  6285. get {
  6286. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_ProductSale_Product"])));
  6287. }
  6288. set {
  6289. this.SetParentRow(value, this.Table.ParentRelations["FK_ProductSale_Product"]);
  6290. }
  6291. }
  6292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6293. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6294. public bool IsClientServiceIDNull() {
  6295. return this.IsNull(this.tableProductSale.ClientServiceIDColumn);
  6296. }
  6297. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6298. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6299. public void SetClientServiceIDNull() {
  6300. this[this.tableProductSale.ClientServiceIDColumn] = global::System.Convert.DBNull;
  6301. }
  6302. }
  6303. /// <summary>
  6304. ///Represents strongly named DataRow class.
  6305. ///</summary>
  6306. public partial class ServiceRow : global::System.Data.DataRow {
  6307. private ServiceDataTable tableService;
  6308. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6309. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6310. internal ServiceRow(global::System.Data.DataRowBuilder rb) :
  6311. base(rb) {
  6312. this.tableService = ((ServiceDataTable)(this.Table));
  6313. }
  6314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6315. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6316. public int ID {
  6317. get {
  6318. return ((int)(this[this.tableService.IDColumn]));
  6319. }
  6320. set {
  6321. this[this.tableService.IDColumn] = value;
  6322. }
  6323. }
  6324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6326. public string Title {
  6327. get {
  6328. return ((string)(this[this.tableService.TitleColumn]));
  6329. }
  6330. set {
  6331. this[this.tableService.TitleColumn] = value;
  6332. }
  6333. }
  6334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6336. public decimal Cost {
  6337. get {
  6338. return ((decimal)(this[this.tableService.CostColumn]));
  6339. }
  6340. set {
  6341. this[this.tableService.CostColumn] = value;
  6342. }
  6343. }
  6344. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6345. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6346. public int DurationInSeconds {
  6347. get {
  6348. return ((int)(this[this.tableService.DurationInSecondsColumn]));
  6349. }
  6350. set {
  6351. this[this.tableService.DurationInSecondsColumn] = value;
  6352. }
  6353. }
  6354. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6355. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6356. public string Description {
  6357. get {
  6358. try {
  6359. return ((string)(this[this.tableService.DescriptionColumn]));
  6360. }
  6361. catch (global::System.InvalidCastException e) {
  6362. throw new global::System.Data.StrongTypingException("Значение для столбца \'Description\' в таблице \'Service\' равно DBNull.", e);
  6363. }
  6364. }
  6365. set {
  6366. this[this.tableService.DescriptionColumn] = value;
  6367. }
  6368. }
  6369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6371. public double Discount {
  6372. get {
  6373. try {
  6374. return ((double)(this[this.tableService.DiscountColumn]));
  6375. }
  6376. catch (global::System.InvalidCastException e) {
  6377. throw new global::System.Data.StrongTypingException("Значение для столбца \'Discount\' в таблице \'Service\' равно DBNull.", e);
  6378. }
  6379. }
  6380. set {
  6381. this[this.tableService.DiscountColumn] = value;
  6382. }
  6383. }
  6384. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6385. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6386. public string MainImagePath {
  6387. get {
  6388. try {
  6389. return ((string)(this[this.tableService.MainImagePathColumn]));
  6390. }
  6391. catch (global::System.InvalidCastException e) {
  6392. throw new global::System.Data.StrongTypingException("Значение для столбца \'MainImagePath\' в таблице \'Service\' равно DBNull.", e);
  6393. }
  6394. }
  6395. set {
  6396. this[this.tableService.MainImagePathColumn] = value;
  6397. }
  6398. }
  6399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6401. public bool IsDescriptionNull() {
  6402. return this.IsNull(this.tableService.DescriptionColumn);
  6403. }
  6404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6406. public void SetDescriptionNull() {
  6407. this[this.tableService.DescriptionColumn] = global::System.Convert.DBNull;
  6408. }
  6409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6411. public bool IsDiscountNull() {
  6412. return this.IsNull(this.tableService.DiscountColumn);
  6413. }
  6414. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6415. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6416. public void SetDiscountNull() {
  6417. this[this.tableService.DiscountColumn] = global::System.Convert.DBNull;
  6418. }
  6419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6421. public bool IsMainImagePathNull() {
  6422. return this.IsNull(this.tableService.MainImagePathColumn);
  6423. }
  6424. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6425. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6426. public void SetMainImagePathNull() {
  6427. this[this.tableService.MainImagePathColumn] = global::System.Convert.DBNull;
  6428. }
  6429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6431. public ClientServiceRow[] GetClientServiceRows() {
  6432. if ((this.Table.ChildRelations["FK_ClientService_Service"] == null)) {
  6433. return new ClientServiceRow[0];
  6434. }
  6435. else {
  6436. return ((ClientServiceRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ClientService_Service"])));
  6437. }
  6438. }
  6439. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6440. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6441. public ServicePhotoRow[] GetServicePhotoRows() {
  6442. if ((this.Table.ChildRelations["FK_ServicePhoto_Service"] == null)) {
  6443. return new ServicePhotoRow[0];
  6444. }
  6445. else {
  6446. return ((ServicePhotoRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ServicePhoto_Service"])));
  6447. }
  6448. }
  6449. }
  6450. /// <summary>
  6451. ///Represents strongly named DataRow class.
  6452. ///</summary>
  6453. public partial class Service_b_importRow : global::System.Data.DataRow {
  6454. private Service_b_importDataTable tableService_b_import;
  6455. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6456. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6457. internal Service_b_importRow(global::System.Data.DataRowBuilder rb) :
  6458. base(rb) {
  6459. this.tableService_b_import = ((Service_b_importDataTable)(this.Table));
  6460. }
  6461. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6462. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6463. public string Наименование_услуги {
  6464. get {
  6465. return ((string)(this[this.tableService_b_import.Наименование_услугиColumn]));
  6466. }
  6467. set {
  6468. this[this.tableService_b_import.Наименование_услугиColumn] = value;
  6469. }
  6470. }
  6471. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6473. public string Главное_изображение {
  6474. get {
  6475. return ((string)(this[this.tableService_b_import.Главное_изображениеColumn]));
  6476. }
  6477. set {
  6478. this[this.tableService_b_import.Главное_изображениеColumn] = value;
  6479. }
  6480. }
  6481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6483. public string Длительность {
  6484. get {
  6485. return ((string)(this[this.tableService_b_import.ДлительностьColumn]));
  6486. }
  6487. set {
  6488. this[this.tableService_b_import.ДлительностьColumn] = value;
  6489. }
  6490. }
  6491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6492. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6493. public string Стоимость {
  6494. get {
  6495. return ((string)(this[this.tableService_b_import.СтоимостьColumn]));
  6496. }
  6497. set {
  6498. this[this.tableService_b_import.СтоимостьColumn] = value;
  6499. }
  6500. }
  6501. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6502. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6503. public string Действующая_скидка {
  6504. get {
  6505. return ((string)(this[this.tableService_b_import.Действующая_скидкаColumn]));
  6506. }
  6507. set {
  6508. this[this.tableService_b_import.Действующая_скидкаColumn] = value;
  6509. }
  6510. }
  6511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6512. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6513. public long ID {
  6514. get {
  6515. return ((long)(this[this.tableService_b_import.IDColumn]));
  6516. }
  6517. set {
  6518. this[this.tableService_b_import.IDColumn] = value;
  6519. }
  6520. }
  6521. }
  6522. /// <summary>
  6523. ///Represents strongly named DataRow class.
  6524. ///</summary>
  6525. public partial class Serviceclient_b_importRow : global::System.Data.DataRow {
  6526. private Serviceclient_b_importDataTable tableServiceclient_b_import;
  6527. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6528. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6529. internal Serviceclient_b_importRow(global::System.Data.DataRowBuilder rb) :
  6530. base(rb) {
  6531. this.tableServiceclient_b_import = ((Serviceclient_b_importDataTable)(this.Table));
  6532. }
  6533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6535. public long ID {
  6536. get {
  6537. return ((long)(this[this.tableServiceclient_b_import.IDColumn]));
  6538. }
  6539. set {
  6540. this[this.tableServiceclient_b_import.IDColumn] = value;
  6541. }
  6542. }
  6543. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6544. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6545. public string Услуга {
  6546. get {
  6547. return ((string)(this[this.tableServiceclient_b_import.УслугаColumn]));
  6548. }
  6549. set {
  6550. this[this.tableServiceclient_b_import.УслугаColumn] = value;
  6551. }
  6552. }
  6553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6555. public System.DateTime Начало_оказания_услуги {
  6556. get {
  6557. return ((global::System.DateTime)(this[this.tableServiceclient_b_import.Начало_оказания_услугиColumn]));
  6558. }
  6559. set {
  6560. this[this.tableServiceclient_b_import.Начало_оказания_услугиColumn] = value;
  6561. }
  6562. }
  6563. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6564. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6565. public string Клиент {
  6566. get {
  6567. return ((string)(this[this.tableServiceclient_b_import.КлиентColumn]));
  6568. }
  6569. set {
  6570. this[this.tableServiceclient_b_import.КлиентColumn] = value;
  6571. }
  6572. }
  6573. }
  6574. /// <summary>
  6575. ///Represents strongly named DataRow class.
  6576. ///</summary>
  6577. public partial class ServicePhotoRow : global::System.Data.DataRow {
  6578. private ServicePhotoDataTable tableServicePhoto;
  6579. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6580. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6581. internal ServicePhotoRow(global::System.Data.DataRowBuilder rb) :
  6582. base(rb) {
  6583. this.tableServicePhoto = ((ServicePhotoDataTable)(this.Table));
  6584. }
  6585. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6586. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6587. public int ID {
  6588. get {
  6589. return ((int)(this[this.tableServicePhoto.IDColumn]));
  6590. }
  6591. set {
  6592. this[this.tableServicePhoto.IDColumn] = value;
  6593. }
  6594. }
  6595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6596. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6597. public int ServiceID {
  6598. get {
  6599. return ((int)(this[this.tableServicePhoto.ServiceIDColumn]));
  6600. }
  6601. set {
  6602. this[this.tableServicePhoto.ServiceIDColumn] = value;
  6603. }
  6604. }
  6605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6607. public string PhotoPath {
  6608. get {
  6609. return ((string)(this[this.tableServicePhoto.PhotoPathColumn]));
  6610. }
  6611. set {
  6612. this[this.tableServicePhoto.PhotoPathColumn] = value;
  6613. }
  6614. }
  6615. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6616. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6617. public ServiceRow ServiceRow {
  6618. get {
  6619. return ((ServiceRow)(this.GetParentRow(this.Table.ParentRelations["FK_ServicePhoto_Service"])));
  6620. }
  6621. set {
  6622. this.SetParentRow(value, this.Table.ParentRelations["FK_ServicePhoto_Service"]);
  6623. }
  6624. }
  6625. }
  6626. /// <summary>
  6627. ///Represents strongly named DataRow class.
  6628. ///</summary>
  6629. public partial class TagRow : global::System.Data.DataRow {
  6630. private TagDataTable tableTag;
  6631. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6632. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6633. internal TagRow(global::System.Data.DataRowBuilder rb) :
  6634. base(rb) {
  6635. this.tableTag = ((TagDataTable)(this.Table));
  6636. }
  6637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6638. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6639. public int ID {
  6640. get {
  6641. return ((int)(this[this.tableTag.IDColumn]));
  6642. }
  6643. set {
  6644. this[this.tableTag.IDColumn] = value;
  6645. }
  6646. }
  6647. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6648. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6649. public string Title {
  6650. get {
  6651. return ((string)(this[this.tableTag.TitleColumn]));
  6652. }
  6653. set {
  6654. this[this.tableTag.TitleColumn] = value;
  6655. }
  6656. }
  6657. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6658. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6659. public string Color {
  6660. get {
  6661. return ((string)(this[this.tableTag.ColorColumn]));
  6662. }
  6663. set {
  6664. this[this.tableTag.ColorColumn] = value;
  6665. }
  6666. }
  6667. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6668. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6669. public TagOfClientRow[] GetTagOfClientRows() {
  6670. if ((this.Table.ChildRelations["FK_TagOfClient_Tag"] == null)) {
  6671. return new TagOfClientRow[0];
  6672. }
  6673. else {
  6674. return ((TagOfClientRow[])(base.GetChildRows(this.Table.ChildRelations["FK_TagOfClient_Tag"])));
  6675. }
  6676. }
  6677. }
  6678. /// <summary>
  6679. ///Represents strongly named DataRow class.
  6680. ///</summary>
  6681. public partial class TagOfClientRow : global::System.Data.DataRow {
  6682. private TagOfClientDataTable tableTagOfClient;
  6683. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6684. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6685. internal TagOfClientRow(global::System.Data.DataRowBuilder rb) :
  6686. base(rb) {
  6687. this.tableTagOfClient = ((TagOfClientDataTable)(this.Table));
  6688. }
  6689. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6690. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6691. public int ClientID {
  6692. get {
  6693. return ((int)(this[this.tableTagOfClient.ClientIDColumn]));
  6694. }
  6695. set {
  6696. this[this.tableTagOfClient.ClientIDColumn] = value;
  6697. }
  6698. }
  6699. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6700. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6701. public int TagID {
  6702. get {
  6703. return ((int)(this[this.tableTagOfClient.TagIDColumn]));
  6704. }
  6705. set {
  6706. this[this.tableTagOfClient.TagIDColumn] = value;
  6707. }
  6708. }
  6709. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6710. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6711. public ClientRow ClientRow {
  6712. get {
  6713. return ((ClientRow)(this.GetParentRow(this.Table.ParentRelations["FK_TagOfClient_Client"])));
  6714. }
  6715. set {
  6716. this.SetParentRow(value, this.Table.ParentRelations["FK_TagOfClient_Client"]);
  6717. }
  6718. }
  6719. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6720. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6721. public TagRow TagRow {
  6722. get {
  6723. return ((TagRow)(this.GetParentRow(this.Table.ParentRelations["FK_TagOfClient_Tag"])));
  6724. }
  6725. set {
  6726. this.SetParentRow(value, this.Table.ParentRelations["FK_TagOfClient_Tag"]);
  6727. }
  6728. }
  6729. }
  6730. /// <summary>
  6731. ///Row event argument class
  6732. ///</summary>
  6733. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6734. public class AttachedProductRowChangeEvent : global::System.EventArgs {
  6735. private AttachedProductRow eventRow;
  6736. private global::System.Data.DataRowAction eventAction;
  6737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6738. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6739. public AttachedProductRowChangeEvent(AttachedProductRow row, global::System.Data.DataRowAction action) {
  6740. this.eventRow = row;
  6741. this.eventAction = action;
  6742. }
  6743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6745. public AttachedProductRow Row {
  6746. get {
  6747. return this.eventRow;
  6748. }
  6749. }
  6750. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6751. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6752. public global::System.Data.DataRowAction Action {
  6753. get {
  6754. return this.eventAction;
  6755. }
  6756. }
  6757. }
  6758. /// <summary>
  6759. ///Row event argument class
  6760. ///</summary>
  6761. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6762. public class ClientRowChangeEvent : global::System.EventArgs {
  6763. private ClientRow eventRow;
  6764. private global::System.Data.DataRowAction eventAction;
  6765. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6766. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6767. public ClientRowChangeEvent(ClientRow row, global::System.Data.DataRowAction action) {
  6768. this.eventRow = row;
  6769. this.eventAction = action;
  6770. }
  6771. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6772. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6773. public ClientRow Row {
  6774. get {
  6775. return this.eventRow;
  6776. }
  6777. }
  6778. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6779. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6780. public global::System.Data.DataRowAction Action {
  6781. get {
  6782. return this.eventAction;
  6783. }
  6784. }
  6785. }
  6786. /// <summary>
  6787. ///Row event argument class
  6788. ///</summary>
  6789. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6790. public class Client_b_importRowChangeEvent : global::System.EventArgs {
  6791. private Client_b_importRow eventRow;
  6792. private global::System.Data.DataRowAction eventAction;
  6793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6794. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6795. public Client_b_importRowChangeEvent(Client_b_importRow row, global::System.Data.DataRowAction action) {
  6796. this.eventRow = row;
  6797. this.eventAction = action;
  6798. }
  6799. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6800. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6801. public Client_b_importRow Row {
  6802. get {
  6803. return this.eventRow;
  6804. }
  6805. }
  6806. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6807. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6808. public global::System.Data.DataRowAction Action {
  6809. get {
  6810. return this.eventAction;
  6811. }
  6812. }
  6813. }
  6814. /// <summary>
  6815. ///Row event argument class
  6816. ///</summary>
  6817. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6818. public class ClientServiceRowChangeEvent : global::System.EventArgs {
  6819. private ClientServiceRow eventRow;
  6820. private global::System.Data.DataRowAction eventAction;
  6821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6822. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6823. public ClientServiceRowChangeEvent(ClientServiceRow row, global::System.Data.DataRowAction action) {
  6824. this.eventRow = row;
  6825. this.eventAction = action;
  6826. }
  6827. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6828. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6829. public ClientServiceRow Row {
  6830. get {
  6831. return this.eventRow;
  6832. }
  6833. }
  6834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6835. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6836. public global::System.Data.DataRowAction Action {
  6837. get {
  6838. return this.eventAction;
  6839. }
  6840. }
  6841. }
  6842. /// <summary>
  6843. ///Row event argument class
  6844. ///</summary>
  6845. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6846. public class DocumentByServiceRowChangeEvent : global::System.EventArgs {
  6847. private DocumentByServiceRow eventRow;
  6848. private global::System.Data.DataRowAction eventAction;
  6849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6850. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6851. public DocumentByServiceRowChangeEvent(DocumentByServiceRow row, global::System.Data.DataRowAction action) {
  6852. this.eventRow = row;
  6853. this.eventAction = action;
  6854. }
  6855. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6856. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6857. public DocumentByServiceRow Row {
  6858. get {
  6859. return this.eventRow;
  6860. }
  6861. }
  6862. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6863. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6864. public global::System.Data.DataRowAction Action {
  6865. get {
  6866. return this.eventAction;
  6867. }
  6868. }
  6869. }
  6870. /// <summary>
  6871. ///Row event argument class
  6872. ///</summary>
  6873. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6874. public class GenderRowChangeEvent : global::System.EventArgs {
  6875. private GenderRow eventRow;
  6876. private global::System.Data.DataRowAction eventAction;
  6877. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6878. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6879. public GenderRowChangeEvent(GenderRow row, global::System.Data.DataRowAction action) {
  6880. this.eventRow = row;
  6881. this.eventAction = action;
  6882. }
  6883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6884. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6885. public GenderRow Row {
  6886. get {
  6887. return this.eventRow;
  6888. }
  6889. }
  6890. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6891. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6892. public global::System.Data.DataRowAction Action {
  6893. get {
  6894. return this.eventAction;
  6895. }
  6896. }
  6897. }
  6898. /// <summary>
  6899. ///Row event argument class
  6900. ///</summary>
  6901. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6902. public class ManufacturerRowChangeEvent : global::System.EventArgs {
  6903. private ManufacturerRow eventRow;
  6904. private global::System.Data.DataRowAction eventAction;
  6905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6906. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6907. public ManufacturerRowChangeEvent(ManufacturerRow row, global::System.Data.DataRowAction action) {
  6908. this.eventRow = row;
  6909. this.eventAction = action;
  6910. }
  6911. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6912. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6913. public ManufacturerRow Row {
  6914. get {
  6915. return this.eventRow;
  6916. }
  6917. }
  6918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6919. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6920. public global::System.Data.DataRowAction Action {
  6921. get {
  6922. return this.eventAction;
  6923. }
  6924. }
  6925. }
  6926. /// <summary>
  6927. ///Row event argument class
  6928. ///</summary>
  6929. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6930. public class ProductRowChangeEvent : global::System.EventArgs {
  6931. private ProductRow eventRow;
  6932. private global::System.Data.DataRowAction eventAction;
  6933. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6934. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6935. public ProductRowChangeEvent(ProductRow row, global::System.Data.DataRowAction action) {
  6936. this.eventRow = row;
  6937. this.eventAction = action;
  6938. }
  6939. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6940. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6941. public ProductRow Row {
  6942. get {
  6943. return this.eventRow;
  6944. }
  6945. }
  6946. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6947. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6948. public global::System.Data.DataRowAction Action {
  6949. get {
  6950. return this.eventAction;
  6951. }
  6952. }
  6953. }
  6954. /// <summary>
  6955. ///Row event argument class
  6956. ///</summary>
  6957. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6958. public class ProductPhotoRowChangeEvent : global::System.EventArgs {
  6959. private ProductPhotoRow eventRow;
  6960. private global::System.Data.DataRowAction eventAction;
  6961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6962. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6963. public ProductPhotoRowChangeEvent(ProductPhotoRow row, global::System.Data.DataRowAction action) {
  6964. this.eventRow = row;
  6965. this.eventAction = action;
  6966. }
  6967. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6968. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6969. public ProductPhotoRow Row {
  6970. get {
  6971. return this.eventRow;
  6972. }
  6973. }
  6974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6975. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6976. public global::System.Data.DataRowAction Action {
  6977. get {
  6978. return this.eventAction;
  6979. }
  6980. }
  6981. }
  6982. /// <summary>
  6983. ///Row event argument class
  6984. ///</summary>
  6985. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6986. public class ProductSaleRowChangeEvent : global::System.EventArgs {
  6987. private ProductSaleRow eventRow;
  6988. private global::System.Data.DataRowAction eventAction;
  6989. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6990. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6991. public ProductSaleRowChangeEvent(ProductSaleRow row, global::System.Data.DataRowAction action) {
  6992. this.eventRow = row;
  6993. this.eventAction = action;
  6994. }
  6995. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6996. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6997. public ProductSaleRow Row {
  6998. get {
  6999. return this.eventRow;
  7000. }
  7001. }
  7002. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7003. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7004. public global::System.Data.DataRowAction Action {
  7005. get {
  7006. return this.eventAction;
  7007. }
  7008. }
  7009. }
  7010. /// <summary>
  7011. ///Row event argument class
  7012. ///</summary>
  7013. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7014. public class ServiceRowChangeEvent : global::System.EventArgs {
  7015. private ServiceRow eventRow;
  7016. private global::System.Data.DataRowAction eventAction;
  7017. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7018. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7019. public ServiceRowChangeEvent(ServiceRow row, global::System.Data.DataRowAction action) {
  7020. this.eventRow = row;
  7021. this.eventAction = action;
  7022. }
  7023. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7024. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7025. public ServiceRow Row {
  7026. get {
  7027. return this.eventRow;
  7028. }
  7029. }
  7030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7032. public global::System.Data.DataRowAction Action {
  7033. get {
  7034. return this.eventAction;
  7035. }
  7036. }
  7037. }
  7038. /// <summary>
  7039. ///Row event argument class
  7040. ///</summary>
  7041. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7042. public class Service_b_importRowChangeEvent : global::System.EventArgs {
  7043. private Service_b_importRow eventRow;
  7044. private global::System.Data.DataRowAction eventAction;
  7045. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7046. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7047. public Service_b_importRowChangeEvent(Service_b_importRow row, global::System.Data.DataRowAction action) {
  7048. this.eventRow = row;
  7049. this.eventAction = action;
  7050. }
  7051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7053. public Service_b_importRow Row {
  7054. get {
  7055. return this.eventRow;
  7056. }
  7057. }
  7058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7059. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7060. public global::System.Data.DataRowAction Action {
  7061. get {
  7062. return this.eventAction;
  7063. }
  7064. }
  7065. }
  7066. /// <summary>
  7067. ///Row event argument class
  7068. ///</summary>
  7069. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7070. public class Serviceclient_b_importRowChangeEvent : global::System.EventArgs {
  7071. private Serviceclient_b_importRow eventRow;
  7072. private global::System.Data.DataRowAction eventAction;
  7073. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7074. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7075. public Serviceclient_b_importRowChangeEvent(Serviceclient_b_importRow row, global::System.Data.DataRowAction action) {
  7076. this.eventRow = row;
  7077. this.eventAction = action;
  7078. }
  7079. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7080. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7081. public Serviceclient_b_importRow Row {
  7082. get {
  7083. return this.eventRow;
  7084. }
  7085. }
  7086. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7087. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7088. public global::System.Data.DataRowAction Action {
  7089. get {
  7090. return this.eventAction;
  7091. }
  7092. }
  7093. }
  7094. /// <summary>
  7095. ///Row event argument class
  7096. ///</summary>
  7097. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7098. public class ServicePhotoRowChangeEvent : global::System.EventArgs {
  7099. private ServicePhotoRow eventRow;
  7100. private global::System.Data.DataRowAction eventAction;
  7101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7102. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7103. public ServicePhotoRowChangeEvent(ServicePhotoRow row, global::System.Data.DataRowAction action) {
  7104. this.eventRow = row;
  7105. this.eventAction = action;
  7106. }
  7107. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7108. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7109. public ServicePhotoRow Row {
  7110. get {
  7111. return this.eventRow;
  7112. }
  7113. }
  7114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7115. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7116. public global::System.Data.DataRowAction Action {
  7117. get {
  7118. return this.eventAction;
  7119. }
  7120. }
  7121. }
  7122. /// <summary>
  7123. ///Row event argument class
  7124. ///</summary>
  7125. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7126. public class TagRowChangeEvent : global::System.EventArgs {
  7127. private TagRow eventRow;
  7128. private global::System.Data.DataRowAction eventAction;
  7129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7131. public TagRowChangeEvent(TagRow row, global::System.Data.DataRowAction action) {
  7132. this.eventRow = row;
  7133. this.eventAction = action;
  7134. }
  7135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7136. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7137. public TagRow Row {
  7138. get {
  7139. return this.eventRow;
  7140. }
  7141. }
  7142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7143. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7144. public global::System.Data.DataRowAction Action {
  7145. get {
  7146. return this.eventAction;
  7147. }
  7148. }
  7149. }
  7150. /// <summary>
  7151. ///Row event argument class
  7152. ///</summary>
  7153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7154. public class TagOfClientRowChangeEvent : global::System.EventArgs {
  7155. private TagOfClientRow eventRow;
  7156. private global::System.Data.DataRowAction eventAction;
  7157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7159. public TagOfClientRowChangeEvent(TagOfClientRow row, global::System.Data.DataRowAction action) {
  7160. this.eventRow = row;
  7161. this.eventAction = action;
  7162. }
  7163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7164. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7165. public TagOfClientRow Row {
  7166. get {
  7167. return this.eventRow;
  7168. }
  7169. }
  7170. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7171. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7172. public global::System.Data.DataRowAction Action {
  7173. get {
  7174. return this.eventAction;
  7175. }
  7176. }
  7177. }
  7178. }
  7179. }
  7180. namespace Yslugi_Salona_Krasot.BarhotnieBrovkiDataSetTableAdapters {
  7181. /// <summary>
  7182. ///Represents the connection and commands used to retrieve and save data.
  7183. ///</summary>
  7184. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7185. [global::System.ComponentModel.ToolboxItem(true)]
  7186. [global::System.ComponentModel.DataObjectAttribute(true)]
  7187. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7188. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7189. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7190. public partial class AttachedProductTableAdapter : global::System.ComponentModel.Component {
  7191. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7192. private global::System.Data.SqlClient.SqlConnection _connection;
  7193. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7194. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7195. private bool _clearBeforeFill;
  7196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7197. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7198. public AttachedProductTableAdapter() {
  7199. this.ClearBeforeFill = true;
  7200. }
  7201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7203. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7204. get {
  7205. if ((this._adapter == null)) {
  7206. this.InitAdapter();
  7207. }
  7208. return this._adapter;
  7209. }
  7210. }
  7211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7213. internal global::System.Data.SqlClient.SqlConnection Connection {
  7214. get {
  7215. if ((this._connection == null)) {
  7216. this.InitConnection();
  7217. }
  7218. return this._connection;
  7219. }
  7220. set {
  7221. this._connection = value;
  7222. if ((this.Adapter.InsertCommand != null)) {
  7223. this.Adapter.InsertCommand.Connection = value;
  7224. }
  7225. if ((this.Adapter.DeleteCommand != null)) {
  7226. this.Adapter.DeleteCommand.Connection = value;
  7227. }
  7228. if ((this.Adapter.UpdateCommand != null)) {
  7229. this.Adapter.UpdateCommand.Connection = value;
  7230. }
  7231. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7232. if ((this.CommandCollection[i] != null)) {
  7233. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7234. }
  7235. }
  7236. }
  7237. }
  7238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7239. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7240. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7241. get {
  7242. return this._transaction;
  7243. }
  7244. set {
  7245. this._transaction = value;
  7246. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7247. this.CommandCollection[i].Transaction = this._transaction;
  7248. }
  7249. if (((this.Adapter != null)
  7250. && (this.Adapter.DeleteCommand != null))) {
  7251. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7252. }
  7253. if (((this.Adapter != null)
  7254. && (this.Adapter.InsertCommand != null))) {
  7255. this.Adapter.InsertCommand.Transaction = this._transaction;
  7256. }
  7257. if (((this.Adapter != null)
  7258. && (this.Adapter.UpdateCommand != null))) {
  7259. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7260. }
  7261. }
  7262. }
  7263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7264. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7265. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7266. get {
  7267. if ((this._commandCollection == null)) {
  7268. this.InitCommandCollection();
  7269. }
  7270. return this._commandCollection;
  7271. }
  7272. }
  7273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7274. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7275. public bool ClearBeforeFill {
  7276. get {
  7277. return this._clearBeforeFill;
  7278. }
  7279. set {
  7280. this._clearBeforeFill = value;
  7281. }
  7282. }
  7283. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7284. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7285. private void InitAdapter() {
  7286. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7287. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7288. tableMapping.SourceTable = "Table";
  7289. tableMapping.DataSetTable = "AttachedProduct";
  7290. tableMapping.ColumnMappings.Add("MainProductID", "MainProductID");
  7291. tableMapping.ColumnMappings.Add("AttachedProductID", "AttachedProductID");
  7292. this._adapter.TableMappings.Add(tableMapping);
  7293. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7294. this._adapter.DeleteCommand.Connection = this.Connection;
  7295. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[AttachedProduct] WHERE (([MainProductID] = @Original_MainProdu" +
  7296. "ctID) AND ([AttachedProductID] = @Original_AttachedProductID))";
  7297. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7298. 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, "", "", ""));
  7299. 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, "", "", ""));
  7300. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7301. this._adapter.InsertCommand.Connection = this.Connection;
  7302. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[AttachedProduct] ([MainProductID], [AttachedProductID]) VALUES (@MainProductID, @AttachedProductID);
  7303. SELECT MainProductID, AttachedProductID FROM AttachedProduct WHERE (AttachedProductID = @AttachedProductID) AND (MainProductID = @MainProductID)";
  7304. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7305. 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, "", "", ""));
  7306. 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, "", "", ""));
  7307. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7308. this._adapter.UpdateCommand.Connection = this.Connection;
  7309. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[AttachedProduct] SET [MainProductID] = @MainProductID, [AttachedProductID] = @AttachedProductID WHERE (([MainProductID] = @Original_MainProductID) AND ([AttachedProductID] = @Original_AttachedProductID));
  7310. SELECT MainProductID, AttachedProductID FROM AttachedProduct WHERE (AttachedProductID = @AttachedProductID) AND (MainProductID = @MainProductID)";
  7311. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7312. 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, "", "", ""));
  7313. 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, "", "", ""));
  7314. 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, "", "", ""));
  7315. 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, "", "", ""));
  7316. }
  7317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7319. private void InitConnection() {
  7320. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7321. this._connection.ConnectionString = global::Yslugi_Salona_Krasot.Properties.Settings.Default.BarhotnieBrovkiConnectionString;
  7322. }
  7323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7324. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7325. private void InitCommandCollection() {
  7326. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7327. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7328. this._commandCollection[0].Connection = this.Connection;
  7329. this._commandCollection[0].CommandText = "SELECT MainProductID, AttachedProductID FROM dbo.AttachedProduct";
  7330. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7331. }
  7332. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7333. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7334. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7335. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7336. public virtual int Fill(BarhotnieBrovkiDataSet.AttachedProductDataTable dataTable) {
  7337. this.Adapter.SelectCommand = this.CommandCollection[0];
  7338. if ((this.ClearBeforeFill == true)) {
  7339. dataTable.Clear();
  7340. }
  7341. int returnValue = this.Adapter.Fill(dataTable);
  7342. return returnValue;
  7343. }
  7344. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7345. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7346. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7347. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7348. public virtual BarhotnieBrovkiDataSet.AttachedProductDataTable GetData() {
  7349. this.Adapter.SelectCommand = this.CommandCollection[0];
  7350. BarhotnieBrovkiDataSet.AttachedProductDataTable dataTable = new BarhotnieBrovkiDataSet.AttachedProductDataTable();
  7351. this.Adapter.Fill(dataTable);
  7352. return dataTable;
  7353. }
  7354. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7355. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7356. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7357. public virtual int Update(BarhotnieBrovkiDataSet.AttachedProductDataTable dataTable) {
  7358. return this.Adapter.Update(dataTable);
  7359. }
  7360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7361. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7362. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7363. public virtual int Update(BarhotnieBrovkiDataSet dataSet) {
  7364. return this.Adapter.Update(dataSet, "AttachedProduct");
  7365. }
  7366. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7367. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7368. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7369. public virtual int Update(global::System.Data.DataRow dataRow) {
  7370. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7371. dataRow});
  7372. }
  7373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7374. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7375. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7376. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7377. return this.Adapter.Update(dataRows);
  7378. }
  7379. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7380. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7381. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7382. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7383. public virtual int Delete(int Original_MainProductID, int Original_AttachedProductID) {
  7384. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_MainProductID));
  7385. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_AttachedProductID));
  7386. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7387. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7388. != global::System.Data.ConnectionState.Open)) {
  7389. this.Adapter.DeleteCommand.Connection.Open();
  7390. }
  7391. try {
  7392. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7393. return returnValue;
  7394. }
  7395. finally {
  7396. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7397. this.Adapter.DeleteCommand.Connection.Close();
  7398. }
  7399. }
  7400. }
  7401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7402. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7403. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7404. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7405. public virtual int Insert(int MainProductID, int AttachedProductID) {
  7406. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(MainProductID));
  7407. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(AttachedProductID));
  7408. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7409. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7410. != global::System.Data.ConnectionState.Open)) {
  7411. this.Adapter.InsertCommand.Connection.Open();
  7412. }
  7413. try {
  7414. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7415. return returnValue;
  7416. }
  7417. finally {
  7418. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7419. this.Adapter.InsertCommand.Connection.Close();
  7420. }
  7421. }
  7422. }
  7423. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7424. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7425. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7426. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7427. public virtual int Update(int MainProductID, int AttachedProductID, int Original_MainProductID, int Original_AttachedProductID) {
  7428. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(MainProductID));
  7429. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(AttachedProductID));
  7430. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_MainProductID));
  7431. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_AttachedProductID));
  7432. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7433. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7434. != global::System.Data.ConnectionState.Open)) {
  7435. this.Adapter.UpdateCommand.Connection.Open();
  7436. }
  7437. try {
  7438. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7439. return returnValue;
  7440. }
  7441. finally {
  7442. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7443. this.Adapter.UpdateCommand.Connection.Close();
  7444. }
  7445. }
  7446. }
  7447. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7448. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7449. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7450. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7451. public virtual int Update(int Original_MainProductID, int Original_AttachedProductID) {
  7452. return this.Update(Original_MainProductID, Original_AttachedProductID, Original_MainProductID, Original_AttachedProductID);
  7453. }
  7454. }
  7455. /// <summary>
  7456. ///Represents the connection and commands used to retrieve and save data.
  7457. ///</summary>
  7458. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7459. [global::System.ComponentModel.ToolboxItem(true)]
  7460. [global::System.ComponentModel.DataObjectAttribute(true)]
  7461. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7462. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7463. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7464. public partial class ClientTableAdapter : global::System.ComponentModel.Component {
  7465. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7466. private global::System.Data.SqlClient.SqlConnection _connection;
  7467. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7468. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7469. private bool _clearBeforeFill;
  7470. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7471. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7472. public ClientTableAdapter() {
  7473. this.ClearBeforeFill = true;
  7474. }
  7475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7477. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7478. get {
  7479. if ((this._adapter == null)) {
  7480. this.InitAdapter();
  7481. }
  7482. return this._adapter;
  7483. }
  7484. }
  7485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7486. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7487. internal global::System.Data.SqlClient.SqlConnection Connection {
  7488. get {
  7489. if ((this._connection == null)) {
  7490. this.InitConnection();
  7491. }
  7492. return this._connection;
  7493. }
  7494. set {
  7495. this._connection = value;
  7496. if ((this.Adapter.InsertCommand != null)) {
  7497. this.Adapter.InsertCommand.Connection = value;
  7498. }
  7499. if ((this.Adapter.DeleteCommand != null)) {
  7500. this.Adapter.DeleteCommand.Connection = value;
  7501. }
  7502. if ((this.Adapter.UpdateCommand != null)) {
  7503. this.Adapter.UpdateCommand.Connection = value;
  7504. }
  7505. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7506. if ((this.CommandCollection[i] != null)) {
  7507. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7508. }
  7509. }
  7510. }
  7511. }
  7512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7513. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7514. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7515. get {
  7516. return this._transaction;
  7517. }
  7518. set {
  7519. this._transaction = value;
  7520. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7521. this.CommandCollection[i].Transaction = this._transaction;
  7522. }
  7523. if (((this.Adapter != null)
  7524. && (this.Adapter.DeleteCommand != null))) {
  7525. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7526. }
  7527. if (((this.Adapter != null)
  7528. && (this.Adapter.InsertCommand != null))) {
  7529. this.Adapter.InsertCommand.Transaction = this._transaction;
  7530. }
  7531. if (((this.Adapter != null)
  7532. && (this.Adapter.UpdateCommand != null))) {
  7533. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7534. }
  7535. }
  7536. }
  7537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7538. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7539. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7540. get {
  7541. if ((this._commandCollection == null)) {
  7542. this.InitCommandCollection();
  7543. }
  7544. return this._commandCollection;
  7545. }
  7546. }
  7547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7549. public bool ClearBeforeFill {
  7550. get {
  7551. return this._clearBeforeFill;
  7552. }
  7553. set {
  7554. this._clearBeforeFill = value;
  7555. }
  7556. }
  7557. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7558. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7559. private void InitAdapter() {
  7560. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7561. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7562. tableMapping.SourceTable = "Table";
  7563. tableMapping.DataSetTable = "Client";
  7564. tableMapping.ColumnMappings.Add("ID", "ID");
  7565. tableMapping.ColumnMappings.Add("FirstName", "FirstName");
  7566. tableMapping.ColumnMappings.Add("LastName", "LastName");
  7567. tableMapping.ColumnMappings.Add("Patronymic", "Patronymic");
  7568. tableMapping.ColumnMappings.Add("Birthday", "Birthday");
  7569. tableMapping.ColumnMappings.Add("RegistrationDate", "RegistrationDate");
  7570. tableMapping.ColumnMappings.Add("Email", "Email");
  7571. tableMapping.ColumnMappings.Add("Phone", "Phone");
  7572. tableMapping.ColumnMappings.Add("GenderCode", "GenderCode");
  7573. tableMapping.ColumnMappings.Add("PhotoPath", "PhotoPath");
  7574. this._adapter.TableMappings.Add(tableMapping);
  7575. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7576. this._adapter.DeleteCommand.Connection = this.Connection;
  7577. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Client] WHERE (([ID] = @Original_ID) AND ([FirstName] = @Original_FirstName) AND ([LastName] = @Original_LastName) AND ((@IsNull_Patronymic = 1 AND [Patronymic] IS NULL) OR ([Patronymic] = @Original_Patronymic)) AND ((@IsNull_Birthday = 1 AND [Birthday] IS NULL) OR ([Birthday] = @Original_Birthday)) AND ([RegistrationDate] = @Original_RegistrationDate) AND ((@IsNull_Email = 1 AND [Email] IS NULL) OR ([Email] = @Original_Email)) AND ([Phone] = @Original_Phone) AND ([GenderCode] = @Original_GenderCode) AND ((@IsNull_PhotoPath = 1 AND [PhotoPath] IS NULL) OR ([PhotoPath] = @Original_PhotoPath)))";
  7578. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7579. 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, "", "", ""));
  7580. 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, "", "", ""));
  7581. 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, "", "", ""));
  7582. 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, "", "", ""));
  7583. 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, "", "", ""));
  7584. 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, "", "", ""));
  7585. 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, "", "", ""));
  7586. 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, "", "", ""));
  7587. 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, "", "", ""));
  7588. 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, "", "", ""));
  7589. 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, "", "", ""));
  7590. 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, "", "", ""));
  7591. 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, "", "", ""));
  7592. 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, "", "", ""));
  7593. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7594. this._adapter.InsertCommand.Connection = this.Connection;
  7595. 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);
  7596. SELECT ID, FirstName, LastName, Patronymic, Birthday, RegistrationDate, Email, Phone, GenderCode, PhotoPath FROM Client WHERE (ID = SCOPE_IDENTITY())";
  7597. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7598. 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, "", "", ""));
  7599. 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, "", "", ""));
  7600. 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, "", "", ""));
  7601. 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, "", "", ""));
  7602. 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, "", "", ""));
  7603. 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, "", "", ""));
  7604. 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, "", "", ""));
  7605. 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, "", "", ""));
  7606. 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, "", "", ""));
  7607. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7608. this._adapter.UpdateCommand.Connection = this.Connection;
  7609. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Client] SET [FirstName] = @FirstName, [LastName] = @LastName, [Patronymic] = @Patronymic, [Birthday] = @Birthday, [RegistrationDate] = @RegistrationDate, [Email] = @Email, [Phone] = @Phone, [GenderCode] = @GenderCode, [PhotoPath] = @PhotoPath WHERE (([ID] = @Original_ID) AND ([FirstName] = @Original_FirstName) AND ([LastName] = @Original_LastName) AND ((@IsNull_Patronymic = 1 AND [Patronymic] IS NULL) OR ([Patronymic] = @Original_Patronymic)) AND ((@IsNull_Birthday = 1 AND [Birthday] IS NULL) OR ([Birthday] = @Original_Birthday)) AND ([RegistrationDate] = @Original_RegistrationDate) AND ((@IsNull_Email = 1 AND [Email] IS NULL) OR ([Email] = @Original_Email)) AND ([Phone] = @Original_Phone) AND ([GenderCode] = @Original_GenderCode) AND ((@IsNull_PhotoPath = 1 AND [PhotoPath] IS NULL) OR ([PhotoPath] = @Original_PhotoPath)));
  7610. SELECT ID, FirstName, LastName, Patronymic, Birthday, RegistrationDate, Email, Phone, GenderCode, PhotoPath FROM Client WHERE (ID = @ID)";
  7611. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7612. 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, "", "", ""));
  7613. 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, "", "", ""));
  7614. 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, "", "", ""));
  7615. 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, "", "", ""));
  7616. 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, "", "", ""));
  7617. 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, "", "", ""));
  7618. 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, "", "", ""));
  7619. 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, "", "", ""));
  7620. 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, "", "", ""));
  7621. 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, "", "", ""));
  7622. 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, "", "", ""));
  7623. 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, "", "", ""));
  7624. 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, "", "", ""));
  7625. 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, "", "", ""));
  7626. 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, "", "", ""));
  7627. 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, "", "", ""));
  7628. 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, "", "", ""));
  7629. 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, "", "", ""));
  7630. 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, "", "", ""));
  7631. 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, "", "", ""));
  7632. 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, "", "", ""));
  7633. 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, "", "", ""));
  7634. 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, "", "", ""));
  7635. 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, "", "", ""));
  7636. }
  7637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7638. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7639. private void InitConnection() {
  7640. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7641. this._connection.ConnectionString = global::Yslugi_Salona_Krasot.Properties.Settings.Default.BarhotnieBrovkiConnectionString;
  7642. }
  7643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7644. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7645. private void InitCommandCollection() {
  7646. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7647. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7648. this._commandCollection[0].Connection = this.Connection;
  7649. this._commandCollection[0].CommandText = "SELECT ID, FirstName, LastName, Patronymic, Birthday, RegistrationDate, Email, Ph" +
  7650. "one, GenderCode, PhotoPath FROM dbo.Client";
  7651. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7652. }
  7653. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7654. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7655. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7656. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7657. public virtual int Fill(BarhotnieBrovkiDataSet.ClientDataTable dataTable) {
  7658. this.Adapter.SelectCommand = this.CommandCollection[0];
  7659. if ((this.ClearBeforeFill == true)) {
  7660. dataTable.Clear();
  7661. }
  7662. int returnValue = this.Adapter.Fill(dataTable);
  7663. return returnValue;
  7664. }
  7665. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7666. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7667. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7668. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7669. public virtual BarhotnieBrovkiDataSet.ClientDataTable GetData() {
  7670. this.Adapter.SelectCommand = this.CommandCollection[0];
  7671. BarhotnieBrovkiDataSet.ClientDataTable dataTable = new BarhotnieBrovkiDataSet.ClientDataTable();
  7672. this.Adapter.Fill(dataTable);
  7673. return dataTable;
  7674. }
  7675. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7676. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7677. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7678. public virtual int Update(BarhotnieBrovkiDataSet.ClientDataTable dataTable) {
  7679. return this.Adapter.Update(dataTable);
  7680. }
  7681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7682. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7683. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7684. public virtual int Update(BarhotnieBrovkiDataSet dataSet) {
  7685. return this.Adapter.Update(dataSet, "Client");
  7686. }
  7687. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7688. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7689. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7690. public virtual int Update(global::System.Data.DataRow dataRow) {
  7691. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7692. dataRow});
  7693. }
  7694. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7695. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7696. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7697. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7698. return this.Adapter.Update(dataRows);
  7699. }
  7700. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7701. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7702. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7703. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7704. 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) {
  7705. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  7706. if ((Original_FirstName == null)) {
  7707. throw new global::System.ArgumentNullException("Original_FirstName");
  7708. }
  7709. else {
  7710. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_FirstName));
  7711. }
  7712. if ((Original_LastName == null)) {
  7713. throw new global::System.ArgumentNullException("Original_LastName");
  7714. }
  7715. else {
  7716. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_LastName));
  7717. }
  7718. if ((Original_Patronymic == null)) {
  7719. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  7720. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  7721. }
  7722. else {
  7723. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  7724. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Patronymic));
  7725. }
  7726. if ((Original_Birthday.HasValue == true)) {
  7727. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  7728. this.Adapter.DeleteCommand.Parameters[6].Value = ((System.DateTime)(Original_Birthday.Value));
  7729. }
  7730. else {
  7731. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  7732. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  7733. }
  7734. this.Adapter.DeleteCommand.Parameters[7].Value = ((System.DateTime)(Original_RegistrationDate));
  7735. if ((Original_Email == null)) {
  7736. this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(1));
  7737. this.Adapter.DeleteCommand.Parameters[9].Value = global::System.DBNull.Value;
  7738. }
  7739. else {
  7740. this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(0));
  7741. this.Adapter.DeleteCommand.Parameters[9].Value = ((string)(Original_Email));
  7742. }
  7743. if ((Original_Phone == null)) {
  7744. throw new global::System.ArgumentNullException("Original_Phone");
  7745. }
  7746. else {
  7747. this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_Phone));
  7748. }
  7749. if ((Original_GenderCode == null)) {
  7750. throw new global::System.ArgumentNullException("Original_GenderCode");
  7751. }
  7752. else {
  7753. this.Adapter.DeleteCommand.Parameters[11].Value = ((string)(Original_GenderCode));
  7754. }
  7755. if ((Original_PhotoPath == null)) {
  7756. this.Adapter.DeleteCommand.Parameters[12].Value = ((object)(1));
  7757. this.Adapter.DeleteCommand.Parameters[13].Value = global::System.DBNull.Value;
  7758. }
  7759. else {
  7760. this.Adapter.DeleteCommand.Parameters[12].Value = ((object)(0));
  7761. this.Adapter.DeleteCommand.Parameters[13].Value = ((string)(Original_PhotoPath));
  7762. }
  7763. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7764. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7765. != global::System.Data.ConnectionState.Open)) {
  7766. this.Adapter.DeleteCommand.Connection.Open();
  7767. }
  7768. try {
  7769. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7770. return returnValue;
  7771. }
  7772. finally {
  7773. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7774. this.Adapter.DeleteCommand.Connection.Close();
  7775. }
  7776. }
  7777. }
  7778. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7779. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7780. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7781. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7782. 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) {
  7783. if ((FirstName == null)) {
  7784. throw new global::System.ArgumentNullException("FirstName");
  7785. }
  7786. else {
  7787. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(FirstName));
  7788. }
  7789. if ((LastName == null)) {
  7790. throw new global::System.ArgumentNullException("LastName");
  7791. }
  7792. else {
  7793. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(LastName));
  7794. }
  7795. if ((Patronymic == null)) {
  7796. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  7797. }
  7798. else {
  7799. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Patronymic));
  7800. }
  7801. if ((Birthday.HasValue == true)) {
  7802. this.Adapter.InsertCommand.Parameters[3].Value = ((System.DateTime)(Birthday.Value));
  7803. }
  7804. else {
  7805. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  7806. }
  7807. this.Adapter.InsertCommand.Parameters[4].Value = ((System.DateTime)(RegistrationDate));
  7808. if ((Email == null)) {
  7809. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  7810. }
  7811. else {
  7812. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Email));
  7813. }
  7814. if ((Phone == null)) {
  7815. throw new global::System.ArgumentNullException("Phone");
  7816. }
  7817. else {
  7818. this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Phone));
  7819. }
  7820. if ((GenderCode == null)) {
  7821. throw new global::System.ArgumentNullException("GenderCode");
  7822. }
  7823. else {
  7824. this.Adapter.InsertCommand.Parameters[7].Value = ((string)(GenderCode));
  7825. }
  7826. if ((PhotoPath == null)) {
  7827. this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
  7828. }
  7829. else {
  7830. this.Adapter.InsertCommand.Parameters[8].Value = ((string)(PhotoPath));
  7831. }
  7832. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7833. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7834. != global::System.Data.ConnectionState.Open)) {
  7835. this.Adapter.InsertCommand.Connection.Open();
  7836. }
  7837. try {
  7838. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7839. return returnValue;
  7840. }
  7841. finally {
  7842. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7843. this.Adapter.InsertCommand.Connection.Close();
  7844. }
  7845. }
  7846. }
  7847. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7848. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7849. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7850. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7851. public virtual int Update(
  7852. string FirstName,
  7853. string LastName,
  7854. string Patronymic,
  7855. global::System.Nullable<global::System.DateTime> Birthday,
  7856. System.DateTime RegistrationDate,
  7857. string Email,
  7858. string Phone,
  7859. string GenderCode,
  7860. string PhotoPath,
  7861. int Original_ID,
  7862. string Original_FirstName,
  7863. string Original_LastName,
  7864. string Original_Patronymic,
  7865. global::System.Nullable<global::System.DateTime> Original_Birthday,
  7866. System.DateTime Original_RegistrationDate,
  7867. string Original_Email,
  7868. string Original_Phone,
  7869. string Original_GenderCode,
  7870. string Original_PhotoPath,
  7871. int ID) {
  7872. if ((FirstName == null)) {
  7873. throw new global::System.ArgumentNullException("FirstName");
  7874. }
  7875. else {
  7876. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(FirstName));
  7877. }
  7878. if ((LastName == null)) {
  7879. throw new global::System.ArgumentNullException("LastName");
  7880. }
  7881. else {
  7882. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(LastName));
  7883. }
  7884. if ((Patronymic == null)) {
  7885. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  7886. }
  7887. else {
  7888. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Patronymic));
  7889. }
  7890. if ((Birthday.HasValue == true)) {
  7891. this.Adapter.UpdateCommand.Parameters[3].Value = ((System.DateTime)(Birthday.Value));
  7892. }
  7893. else {
  7894. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  7895. }
  7896. this.Adapter.UpdateCommand.Parameters[4].Value = ((System.DateTime)(RegistrationDate));
  7897. if ((Email == null)) {
  7898. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  7899. }
  7900. else {
  7901. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Email));
  7902. }
  7903. if ((Phone == null)) {
  7904. throw new global::System.ArgumentNullException("Phone");
  7905. }
  7906. else {
  7907. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Phone));
  7908. }
  7909. if ((GenderCode == null)) {
  7910. throw new global::System.ArgumentNullException("GenderCode");
  7911. }
  7912. else {
  7913. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(GenderCode));
  7914. }
  7915. if ((PhotoPath == null)) {
  7916. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  7917. }
  7918. else {
  7919. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(PhotoPath));
  7920. }
  7921. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_ID));
  7922. if ((Original_FirstName == null)) {
  7923. throw new global::System.ArgumentNullException("Original_FirstName");
  7924. }
  7925. else {
  7926. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_FirstName));
  7927. }
  7928. if ((Original_LastName == null)) {
  7929. throw new global::System.ArgumentNullException("Original_LastName");
  7930. }
  7931. else {
  7932. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_LastName));
  7933. }
  7934. if ((Original_Patronymic == null)) {
  7935. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  7936. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  7937. }
  7938. else {
  7939. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  7940. this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_Patronymic));
  7941. }
  7942. if ((Original_Birthday.HasValue == true)) {
  7943. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
  7944. this.Adapter.UpdateCommand.Parameters[15].Value = ((System.DateTime)(Original_Birthday.Value));
  7945. }
  7946. else {
  7947. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
  7948. this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
  7949. }
  7950. this.Adapter.UpdateCommand.Parameters[16].Value = ((System.DateTime)(Original_RegistrationDate));
  7951. if ((Original_Email == null)) {
  7952. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
  7953. this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
  7954. }
  7955. else {
  7956. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
  7957. this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_Email));
  7958. }
  7959. if ((Original_Phone == null)) {
  7960. throw new global::System.ArgumentNullException("Original_Phone");
  7961. }
  7962. else {
  7963. this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_Phone));
  7964. }
  7965. if ((Original_GenderCode == null)) {
  7966. throw new global::System.ArgumentNullException("Original_GenderCode");
  7967. }
  7968. else {
  7969. this.Adapter.UpdateCommand.Parameters[20].Value = ((string)(Original_GenderCode));
  7970. }
  7971. if ((Original_PhotoPath == null)) {
  7972. this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(1));
  7973. this.Adapter.UpdateCommand.Parameters[22].Value = global::System.DBNull.Value;
  7974. }
  7975. else {
  7976. this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(0));
  7977. this.Adapter.UpdateCommand.Parameters[22].Value = ((string)(Original_PhotoPath));
  7978. }
  7979. this.Adapter.UpdateCommand.Parameters[23].Value = ((int)(ID));
  7980. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7981. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7982. != global::System.Data.ConnectionState.Open)) {
  7983. this.Adapter.UpdateCommand.Connection.Open();
  7984. }
  7985. try {
  7986. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7987. return returnValue;
  7988. }
  7989. finally {
  7990. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7991. this.Adapter.UpdateCommand.Connection.Close();
  7992. }
  7993. }
  7994. }
  7995. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7996. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7997. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7998. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7999. public virtual int Update(
  8000. string FirstName,
  8001. string LastName,
  8002. string Patronymic,
  8003. global::System.Nullable<global::System.DateTime> Birthday,
  8004. System.DateTime RegistrationDate,
  8005. string Email,
  8006. string Phone,
  8007. string GenderCode,
  8008. string PhotoPath,
  8009. int Original_ID,
  8010. string Original_FirstName,
  8011. string Original_LastName,
  8012. string Original_Patronymic,
  8013. global::System.Nullable<global::System.DateTime> Original_Birthday,
  8014. System.DateTime Original_RegistrationDate,
  8015. string Original_Email,
  8016. string Original_Phone,
  8017. string Original_GenderCode,
  8018. string Original_PhotoPath) {
  8019. 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);
  8020. }
  8021. }
  8022. /// <summary>
  8023. ///Represents the connection and commands used to retrieve and save data.
  8024. ///</summary>
  8025. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8026. [global::System.ComponentModel.ToolboxItem(true)]
  8027. [global::System.ComponentModel.DataObjectAttribute(true)]
  8028. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8029. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8030. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8031. public partial class Client_b_importTableAdapter : global::System.ComponentModel.Component {
  8032. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8033. private global::System.Data.SqlClient.SqlConnection _connection;
  8034. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8035. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8036. private bool _clearBeforeFill;
  8037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8038. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8039. public Client_b_importTableAdapter() {
  8040. this.ClearBeforeFill = true;
  8041. }
  8042. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8043. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8044. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8045. get {
  8046. if ((this._adapter == null)) {
  8047. this.InitAdapter();
  8048. }
  8049. return this._adapter;
  8050. }
  8051. }
  8052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8053. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8054. internal global::System.Data.SqlClient.SqlConnection Connection {
  8055. get {
  8056. if ((this._connection == null)) {
  8057. this.InitConnection();
  8058. }
  8059. return this._connection;
  8060. }
  8061. set {
  8062. this._connection = value;
  8063. if ((this.Adapter.InsertCommand != null)) {
  8064. this.Adapter.InsertCommand.Connection = value;
  8065. }
  8066. if ((this.Adapter.DeleteCommand != null)) {
  8067. this.Adapter.DeleteCommand.Connection = value;
  8068. }
  8069. if ((this.Adapter.UpdateCommand != null)) {
  8070. this.Adapter.UpdateCommand.Connection = value;
  8071. }
  8072. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8073. if ((this.CommandCollection[i] != null)) {
  8074. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8075. }
  8076. }
  8077. }
  8078. }
  8079. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8080. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8081. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8082. get {
  8083. return this._transaction;
  8084. }
  8085. set {
  8086. this._transaction = value;
  8087. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8088. this.CommandCollection[i].Transaction = this._transaction;
  8089. }
  8090. if (((this.Adapter != null)
  8091. && (this.Adapter.DeleteCommand != null))) {
  8092. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8093. }
  8094. if (((this.Adapter != null)
  8095. && (this.Adapter.InsertCommand != null))) {
  8096. this.Adapter.InsertCommand.Transaction = this._transaction;
  8097. }
  8098. if (((this.Adapter != null)
  8099. && (this.Adapter.UpdateCommand != null))) {
  8100. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8101. }
  8102. }
  8103. }
  8104. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8105. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8106. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8107. get {
  8108. if ((this._commandCollection == null)) {
  8109. this.InitCommandCollection();
  8110. }
  8111. return this._commandCollection;
  8112. }
  8113. }
  8114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8115. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8116. public bool ClearBeforeFill {
  8117. get {
  8118. return this._clearBeforeFill;
  8119. }
  8120. set {
  8121. this._clearBeforeFill = value;
  8122. }
  8123. }
  8124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8125. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8126. private void InitAdapter() {
  8127. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8128. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8129. tableMapping.SourceTable = "Table";
  8130. tableMapping.DataSetTable = "Client_b_import";
  8131. tableMapping.ColumnMappings.Add("Фамилия", "Фамилия");
  8132. tableMapping.ColumnMappings.Add("Имя", "Имя");
  8133. tableMapping.ColumnMappings.Add("Отчество", "Отчество");
  8134. tableMapping.ColumnMappings.Add("Пол", "Пол");
  8135. tableMapping.ColumnMappings.Add("Телефон", "Телефон");
  8136. tableMapping.ColumnMappings.Add("Дата_рождения", "Дата_рождения");
  8137. tableMapping.ColumnMappings.Add("Email", "Email");
  8138. tableMapping.ColumnMappings.Add("Дата_регистрации", "Дата_регистрации");
  8139. tableMapping.ColumnMappings.Add("ID", "ID");
  8140. this._adapter.TableMappings.Add(tableMapping);
  8141. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8142. this._adapter.DeleteCommand.Connection = this.Connection;
  8143. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Client_b_import] WHERE (([Фамилия] = @Original_Фамилия) AND ([Имя] = @Original_Имя) AND ([Отчество] = @Original_Отчество) AND ([Пол] = @Original_Пол) AND ([Телефон] = @Original_Телефон) AND ([Дата_рождения] = @Original_Дата_рождения) AND ([Email] = @Original_Email) AND ([Дата_регистрации] = @Original_Дата_регистрации) AND ([ID] = @Original_ID))";
  8144. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8145. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Фамилия", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8146. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Имя", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Имя", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8147. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Отчество", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Отчество", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8148. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Пол", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пол", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8149. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Телефон", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Телефон", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8150. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Дата_рождения", global::System.Data.SqlDbType.DateTime2, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_рождения", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8151. 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, "", "", ""));
  8152. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Дата_регистрации", global::System.Data.SqlDbType.DateTime2, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_регистрации", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8153. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8154. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8155. this._adapter.InsertCommand.Connection = this.Connection;
  8156. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Client_b_import] ([Фамилия], [Имя], [Отчество], [Пол], [Телефон], [Дата_рождения], [Email], [Дата_регистрации], [ID]) VALUES (@Фамилия, @Имя, @Отчество, @Пол, @Телефон, @Дата_рождения, @Email, @Дата_регистрации, @ID);
  8157. SELECT Фамилия, Имя, Отчество, Пол, Телефон, Дата_рождения, Email, Дата_регистрации, ID FROM Client_b_import WHERE (ID = @ID)";
  8158. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8159. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Фамилия", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8160. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Имя", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Имя", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8161. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Отчество", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Отчество", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8162. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Пол", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пол", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8163. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Телефон", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Телефон", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8164. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дата_рождения", global::System.Data.SqlDbType.DateTime2, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_рождения", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8165. 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, "", "", ""));
  8166. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дата_регистрации", global::System.Data.SqlDbType.DateTime2, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_регистрации", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8167. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8168. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8169. this._adapter.UpdateCommand.Connection = this.Connection;
  8170. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Client_b_import] SET [Фамилия] = @Фамилия, [Имя] = @Имя, [Отчество] = @Отчество, [Пол] = @Пол, [Телефон] = @Телефон, [Дата_рождения] = @Дата_рождения, [Email] = @Email, [Дата_регистрации] = @Дата_регистрации, [ID] = @ID WHERE (([Фамилия] = @Original_Фамилия) AND ([Имя] = @Original_Имя) AND ([Отчество] = @Original_Отчество) AND ([Пол] = @Original_Пол) AND ([Телефон] = @Original_Телефон) AND ([Дата_рождения] = @Original_Дата_рождения) AND ([Email] = @Original_Email) AND ([Дата_регистрации] = @Original_Дата_регистрации) AND ([ID] = @Original_ID));
  8171. SELECT Фамилия, Имя, Отчество, Пол, Телефон, Дата_рождения, Email, Дата_регистрации, ID FROM Client_b_import WHERE (ID = @ID)";
  8172. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8173. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Фамилия", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8174. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Имя", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Имя", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8175. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Отчество", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Отчество", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8176. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Пол", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пол", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8177. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Телефон", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Телефон", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8178. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дата_рождения", global::System.Data.SqlDbType.DateTime2, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_рождения", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8179. 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, "", "", ""));
  8180. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дата_регистрации", global::System.Data.SqlDbType.DateTime2, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_регистрации", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8181. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8182. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Фамилия", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8183. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Имя", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Имя", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8184. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Отчество", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Отчество", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8185. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Пол", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пол", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8186. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Телефон", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Телефон", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8187. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Дата_рождения", global::System.Data.SqlDbType.DateTime2, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_рождения", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8188. 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, "", "", ""));
  8189. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Дата_регистрации", global::System.Data.SqlDbType.DateTime2, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_регистрации", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8190. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8191. }
  8192. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8193. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8194. private void InitConnection() {
  8195. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8196. this._connection.ConnectionString = global::Yslugi_Salona_Krasot.Properties.Settings.Default.BarhotnieBrovkiConnectionString;
  8197. }
  8198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8199. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8200. private void InitCommandCollection() {
  8201. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8202. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8203. this._commandCollection[0].Connection = this.Connection;
  8204. this._commandCollection[0].CommandText = "SELECT Фамилия, Имя, Отчество, Пол, Телефон, Дата_рождения, Email, Дата_регистрац" +
  8205. "ии, ID FROM dbo.Client_b_import";
  8206. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  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. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8212. public virtual int Fill(BarhotnieBrovkiDataSet.Client_b_importDataTable dataTable) {
  8213. this.Adapter.SelectCommand = this.CommandCollection[0];
  8214. if ((this.ClearBeforeFill == true)) {
  8215. dataTable.Clear();
  8216. }
  8217. int returnValue = this.Adapter.Fill(dataTable);
  8218. return returnValue;
  8219. }
  8220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8221. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8222. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8223. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8224. public virtual BarhotnieBrovkiDataSet.Client_b_importDataTable GetData() {
  8225. this.Adapter.SelectCommand = this.CommandCollection[0];
  8226. BarhotnieBrovkiDataSet.Client_b_importDataTable dataTable = new BarhotnieBrovkiDataSet.Client_b_importDataTable();
  8227. this.Adapter.Fill(dataTable);
  8228. return dataTable;
  8229. }
  8230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8232. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8233. public virtual int Update(BarhotnieBrovkiDataSet.Client_b_importDataTable dataTable) {
  8234. return this.Adapter.Update(dataTable);
  8235. }
  8236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8237. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8238. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8239. public virtual int Update(BarhotnieBrovkiDataSet dataSet) {
  8240. return this.Adapter.Update(dataSet, "Client_b_import");
  8241. }
  8242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8243. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8244. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8245. public virtual int Update(global::System.Data.DataRow dataRow) {
  8246. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8247. dataRow});
  8248. }
  8249. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8250. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8251. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8252. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8253. return this.Adapter.Update(dataRows);
  8254. }
  8255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8256. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8257. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8258. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8259. public virtual int Delete(string Original_Фамилия, string Original_Имя, string Original_Отчество, string Original_Пол, string Original_Телефон, System.DateTime Original_Дата_рождения, string Original_Email, System.DateTime Original_Дата_регистрации, long Original_ID) {
  8260. if ((Original_Фамилия == null)) {
  8261. throw new global::System.ArgumentNullException("Original_Фамилия");
  8262. }
  8263. else {
  8264. this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_Фамилия));
  8265. }
  8266. if ((Original_Имя == null)) {
  8267. throw new global::System.ArgumentNullException("Original_Имя");
  8268. }
  8269. else {
  8270. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Имя));
  8271. }
  8272. if ((Original_Отчество == null)) {
  8273. throw new global::System.ArgumentNullException("Original_Отчество");
  8274. }
  8275. else {
  8276. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Отчество));
  8277. }
  8278. if ((Original_Пол == null)) {
  8279. throw new global::System.ArgumentNullException("Original_Пол");
  8280. }
  8281. else {
  8282. this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_Пол));
  8283. }
  8284. if ((Original_Телефон == null)) {
  8285. throw new global::System.ArgumentNullException("Original_Телефон");
  8286. }
  8287. else {
  8288. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Телефон));
  8289. }
  8290. this.Adapter.DeleteCommand.Parameters[5].Value = ((System.DateTime)(Original_Дата_рождения));
  8291. if ((Original_Email == null)) {
  8292. throw new global::System.ArgumentNullException("Original_Email");
  8293. }
  8294. else {
  8295. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Email));
  8296. }
  8297. this.Adapter.DeleteCommand.Parameters[7].Value = ((System.DateTime)(Original_Дата_регистрации));
  8298. this.Adapter.DeleteCommand.Parameters[8].Value = ((long)(Original_ID));
  8299. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8300. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8301. != global::System.Data.ConnectionState.Open)) {
  8302. this.Adapter.DeleteCommand.Connection.Open();
  8303. }
  8304. try {
  8305. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8306. return returnValue;
  8307. }
  8308. finally {
  8309. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8310. this.Adapter.DeleteCommand.Connection.Close();
  8311. }
  8312. }
  8313. }
  8314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8315. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8316. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8317. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8318. public virtual int Insert(string Фамилия, string Имя, string Отчество, string Пол, string Телефон, System.DateTime Дата_рождения, string Email, System.DateTime Дата_регистрации, long ID) {
  8319. if ((Фамилия == null)) {
  8320. throw new global::System.ArgumentNullException("Фамилия");
  8321. }
  8322. else {
  8323. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Фамилия));
  8324. }
  8325. if ((Имя == null)) {
  8326. throw new global::System.ArgumentNullException("Имя");
  8327. }
  8328. else {
  8329. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Имя));
  8330. }
  8331. if ((Отчество == null)) {
  8332. throw new global::System.ArgumentNullException("Отчество");
  8333. }
  8334. else {
  8335. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Отчество));
  8336. }
  8337. if ((Пол == null)) {
  8338. throw new global::System.ArgumentNullException("Пол");
  8339. }
  8340. else {
  8341. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Пол));
  8342. }
  8343. if ((Телефон == null)) {
  8344. throw new global::System.ArgumentNullException("Телефон");
  8345. }
  8346. else {
  8347. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Телефон));
  8348. }
  8349. this.Adapter.InsertCommand.Parameters[5].Value = ((System.DateTime)(Дата_рождения));
  8350. if ((Email == null)) {
  8351. throw new global::System.ArgumentNullException("Email");
  8352. }
  8353. else {
  8354. this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Email));
  8355. }
  8356. this.Adapter.InsertCommand.Parameters[7].Value = ((System.DateTime)(Дата_регистрации));
  8357. this.Adapter.InsertCommand.Parameters[8].Value = ((long)(ID));
  8358. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8359. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8360. != global::System.Data.ConnectionState.Open)) {
  8361. this.Adapter.InsertCommand.Connection.Open();
  8362. }
  8363. try {
  8364. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8365. return returnValue;
  8366. }
  8367. finally {
  8368. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8369. this.Adapter.InsertCommand.Connection.Close();
  8370. }
  8371. }
  8372. }
  8373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8374. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8375. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8376. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8377. public virtual int Update(
  8378. string Фамилия,
  8379. string Имя,
  8380. string Отчество,
  8381. string Пол,
  8382. string Телефон,
  8383. System.DateTime Дата_рождения,
  8384. string Email,
  8385. System.DateTime Дата_регистрации,
  8386. long ID,
  8387. string Original_Фамилия,
  8388. string Original_Имя,
  8389. string Original_Отчество,
  8390. string Original_Пол,
  8391. string Original_Телефон,
  8392. System.DateTime Original_Дата_рождения,
  8393. string Original_Email,
  8394. System.DateTime Original_Дата_регистрации,
  8395. long Original_ID) {
  8396. if ((Фамилия == null)) {
  8397. throw new global::System.ArgumentNullException("Фамилия");
  8398. }
  8399. else {
  8400. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Фамилия));
  8401. }
  8402. if ((Имя == null)) {
  8403. throw new global::System.ArgumentNullException("Имя");
  8404. }
  8405. else {
  8406. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Имя));
  8407. }
  8408. if ((Отчество == null)) {
  8409. throw new global::System.ArgumentNullException("Отчество");
  8410. }
  8411. else {
  8412. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Отчество));
  8413. }
  8414. if ((Пол == null)) {
  8415. throw new global::System.ArgumentNullException("Пол");
  8416. }
  8417. else {
  8418. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Пол));
  8419. }
  8420. if ((Телефон == null)) {
  8421. throw new global::System.ArgumentNullException("Телефон");
  8422. }
  8423. else {
  8424. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Телефон));
  8425. }
  8426. this.Adapter.UpdateCommand.Parameters[5].Value = ((System.DateTime)(Дата_рождения));
  8427. if ((Email == null)) {
  8428. throw new global::System.ArgumentNullException("Email");
  8429. }
  8430. else {
  8431. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Email));
  8432. }
  8433. this.Adapter.UpdateCommand.Parameters[7].Value = ((System.DateTime)(Дата_регистрации));
  8434. this.Adapter.UpdateCommand.Parameters[8].Value = ((long)(ID));
  8435. if ((Original_Фамилия == null)) {
  8436. throw new global::System.ArgumentNullException("Original_Фамилия");
  8437. }
  8438. else {
  8439. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_Фамилия));
  8440. }
  8441. if ((Original_Имя == null)) {
  8442. throw new global::System.ArgumentNullException("Original_Имя");
  8443. }
  8444. else {
  8445. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_Имя));
  8446. }
  8447. if ((Original_Отчество == null)) {
  8448. throw new global::System.ArgumentNullException("Original_Отчество");
  8449. }
  8450. else {
  8451. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_Отчество));
  8452. }
  8453. if ((Original_Пол == null)) {
  8454. throw new global::System.ArgumentNullException("Original_Пол");
  8455. }
  8456. else {
  8457. this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_Пол));
  8458. }
  8459. if ((Original_Телефон == null)) {
  8460. throw new global::System.ArgumentNullException("Original_Телефон");
  8461. }
  8462. else {
  8463. this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_Телефон));
  8464. }
  8465. this.Adapter.UpdateCommand.Parameters[14].Value = ((System.DateTime)(Original_Дата_рождения));
  8466. if ((Original_Email == null)) {
  8467. throw new global::System.ArgumentNullException("Original_Email");
  8468. }
  8469. else {
  8470. this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_Email));
  8471. }
  8472. this.Adapter.UpdateCommand.Parameters[16].Value = ((System.DateTime)(Original_Дата_регистрации));
  8473. this.Adapter.UpdateCommand.Parameters[17].Value = ((long)(Original_ID));
  8474. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8475. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8476. != global::System.Data.ConnectionState.Open)) {
  8477. this.Adapter.UpdateCommand.Connection.Open();
  8478. }
  8479. try {
  8480. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8481. return returnValue;
  8482. }
  8483. finally {
  8484. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8485. this.Adapter.UpdateCommand.Connection.Close();
  8486. }
  8487. }
  8488. }
  8489. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8490. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8491. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8492. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8493. public virtual int Update(
  8494. string Фамилия,
  8495. string Имя,
  8496. string Отчество,
  8497. string Пол,
  8498. string Телефон,
  8499. System.DateTime Дата_рождения,
  8500. string Email,
  8501. System.DateTime Дата_регистрации,
  8502. string Original_Фамилия,
  8503. string Original_Имя,
  8504. string Original_Отчество,
  8505. string Original_Пол,
  8506. string Original_Телефон,
  8507. System.DateTime Original_Дата_рождения,
  8508. string Original_Email,
  8509. System.DateTime Original_Дата_регистрации,
  8510. long Original_ID) {
  8511. return this.Update(Фамилия, Имя, Отчество, Пол, Телефон, Дата_рождения, Email, Дата_регистрации, Original_ID, Original_Фамилия, Original_Имя, Original_Отчество, Original_Пол, Original_Телефон, Original_Дата_рождения, Original_Email, Original_Дата_регистрации, Original_ID);
  8512. }
  8513. }
  8514. /// <summary>
  8515. ///Represents the connection and commands used to retrieve and save data.
  8516. ///</summary>
  8517. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8518. [global::System.ComponentModel.ToolboxItem(true)]
  8519. [global::System.ComponentModel.DataObjectAttribute(true)]
  8520. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8521. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8522. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8523. public partial class ClientServiceTableAdapter : global::System.ComponentModel.Component {
  8524. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8525. private global::System.Data.SqlClient.SqlConnection _connection;
  8526. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8527. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8528. private bool _clearBeforeFill;
  8529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8530. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8531. public ClientServiceTableAdapter() {
  8532. this.ClearBeforeFill = true;
  8533. }
  8534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8535. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8536. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8537. get {
  8538. if ((this._adapter == null)) {
  8539. this.InitAdapter();
  8540. }
  8541. return this._adapter;
  8542. }
  8543. }
  8544. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8545. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8546. internal global::System.Data.SqlClient.SqlConnection Connection {
  8547. get {
  8548. if ((this._connection == null)) {
  8549. this.InitConnection();
  8550. }
  8551. return this._connection;
  8552. }
  8553. set {
  8554. this._connection = value;
  8555. if ((this.Adapter.InsertCommand != null)) {
  8556. this.Adapter.InsertCommand.Connection = value;
  8557. }
  8558. if ((this.Adapter.DeleteCommand != null)) {
  8559. this.Adapter.DeleteCommand.Connection = value;
  8560. }
  8561. if ((this.Adapter.UpdateCommand != null)) {
  8562. this.Adapter.UpdateCommand.Connection = value;
  8563. }
  8564. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8565. if ((this.CommandCollection[i] != null)) {
  8566. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8567. }
  8568. }
  8569. }
  8570. }
  8571. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8572. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8573. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8574. get {
  8575. return this._transaction;
  8576. }
  8577. set {
  8578. this._transaction = value;
  8579. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8580. this.CommandCollection[i].Transaction = this._transaction;
  8581. }
  8582. if (((this.Adapter != null)
  8583. && (this.Adapter.DeleteCommand != null))) {
  8584. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8585. }
  8586. if (((this.Adapter != null)
  8587. && (this.Adapter.InsertCommand != null))) {
  8588. this.Adapter.InsertCommand.Transaction = this._transaction;
  8589. }
  8590. if (((this.Adapter != null)
  8591. && (this.Adapter.UpdateCommand != null))) {
  8592. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8593. }
  8594. }
  8595. }
  8596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8597. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8598. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8599. get {
  8600. if ((this._commandCollection == null)) {
  8601. this.InitCommandCollection();
  8602. }
  8603. return this._commandCollection;
  8604. }
  8605. }
  8606. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8607. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8608. public bool ClearBeforeFill {
  8609. get {
  8610. return this._clearBeforeFill;
  8611. }
  8612. set {
  8613. this._clearBeforeFill = value;
  8614. }
  8615. }
  8616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8617. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8618. private void InitAdapter() {
  8619. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8620. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8621. tableMapping.SourceTable = "Table";
  8622. tableMapping.DataSetTable = "ClientService";
  8623. tableMapping.ColumnMappings.Add("ID", "ID");
  8624. tableMapping.ColumnMappings.Add("ClientID", "ClientID");
  8625. tableMapping.ColumnMappings.Add("ServiceID", "ServiceID");
  8626. tableMapping.ColumnMappings.Add("StartTime", "StartTime");
  8627. tableMapping.ColumnMappings.Add("Comment", "Comment");
  8628. this._adapter.TableMappings.Add(tableMapping);
  8629. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8630. this._adapter.DeleteCommand.Connection = this.Connection;
  8631. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ClientService] WHERE (([ID] = @Original_ID) AND ([ClientID] = " +
  8632. "@Original_ClientID) AND ([ServiceID] = @Original_ServiceID) AND ([StartTime] = @" +
  8633. "Original_StartTime))";
  8634. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8635. 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, "", "", ""));
  8636. 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, "", "", ""));
  8637. 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, "", "", ""));
  8638. 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, "", "", ""));
  8639. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8640. this._adapter.InsertCommand.Connection = this.Connection;
  8641. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ClientService] ([ClientID], [ServiceID], [StartTime], [Comment" +
  8642. "]) VALUES (@ClientID, @ServiceID, @StartTime, @Comment);\r\nSELECT ID, ClientID, S" +
  8643. "erviceID, StartTime, Comment FROM ClientService WHERE (ID = SCOPE_IDENTITY())";
  8644. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8645. 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, "", "", ""));
  8646. 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, "", "", ""));
  8647. 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, "", "", ""));
  8648. 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, "", "", ""));
  8649. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8650. this._adapter.UpdateCommand.Connection = this.Connection;
  8651. 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));
  8652. SELECT ID, ClientID, ServiceID, StartTime, Comment FROM ClientService WHERE (ID = @ID)";
  8653. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8654. 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, "", "", ""));
  8655. 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, "", "", ""));
  8656. 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, "", "", ""));
  8657. 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, "", "", ""));
  8658. 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, "", "", ""));
  8659. 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, "", "", ""));
  8660. 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, "", "", ""));
  8661. 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, "", "", ""));
  8662. 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, "", "", ""));
  8663. }
  8664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8666. private void InitConnection() {
  8667. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8668. this._connection.ConnectionString = global::Yslugi_Salona_Krasot.Properties.Settings.Default.BarhotnieBrovkiConnectionString;
  8669. }
  8670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8671. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8672. private void InitCommandCollection() {
  8673. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8674. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8675. this._commandCollection[0].Connection = this.Connection;
  8676. this._commandCollection[0].CommandText = "SELECT ID, ClientID, ServiceID, StartTime, Comment FROM dbo.ClientService";
  8677. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  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.Fill, true)]
  8683. public virtual int Fill(BarhotnieBrovkiDataSet.ClientServiceDataTable dataTable) {
  8684. this.Adapter.SelectCommand = this.CommandCollection[0];
  8685. if ((this.ClearBeforeFill == true)) {
  8686. dataTable.Clear();
  8687. }
  8688. int returnValue = this.Adapter.Fill(dataTable);
  8689. return returnValue;
  8690. }
  8691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8692. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8693. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8694. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8695. public virtual BarhotnieBrovkiDataSet.ClientServiceDataTable GetData() {
  8696. this.Adapter.SelectCommand = this.CommandCollection[0];
  8697. BarhotnieBrovkiDataSet.ClientServiceDataTable dataTable = new BarhotnieBrovkiDataSet.ClientServiceDataTable();
  8698. this.Adapter.Fill(dataTable);
  8699. return dataTable;
  8700. }
  8701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8702. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8703. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8704. public virtual int Update(BarhotnieBrovkiDataSet.ClientServiceDataTable dataTable) {
  8705. return this.Adapter.Update(dataTable);
  8706. }
  8707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8709. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8710. public virtual int Update(BarhotnieBrovkiDataSet dataSet) {
  8711. return this.Adapter.Update(dataSet, "ClientService");
  8712. }
  8713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8715. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8716. public virtual int Update(global::System.Data.DataRow dataRow) {
  8717. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8718. dataRow});
  8719. }
  8720. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8721. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8722. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8723. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8724. return this.Adapter.Update(dataRows);
  8725. }
  8726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8728. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8729. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8730. public virtual int Delete(int Original_ID, int Original_ClientID, int Original_ServiceID, System.DateTime Original_StartTime) {
  8731. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  8732. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ClientID));
  8733. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_ServiceID));
  8734. this.Adapter.DeleteCommand.Parameters[3].Value = ((System.DateTime)(Original_StartTime));
  8735. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8736. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8737. != global::System.Data.ConnectionState.Open)) {
  8738. this.Adapter.DeleteCommand.Connection.Open();
  8739. }
  8740. try {
  8741. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8742. return returnValue;
  8743. }
  8744. finally {
  8745. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8746. this.Adapter.DeleteCommand.Connection.Close();
  8747. }
  8748. }
  8749. }
  8750. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8751. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8752. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8753. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8754. public virtual int Insert(int ClientID, int ServiceID, System.DateTime StartTime, string Comment) {
  8755. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ClientID));
  8756. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(ServiceID));
  8757. this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(StartTime));
  8758. if ((Comment == null)) {
  8759. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  8760. }
  8761. else {
  8762. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Comment));
  8763. }
  8764. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8765. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8766. != global::System.Data.ConnectionState.Open)) {
  8767. this.Adapter.InsertCommand.Connection.Open();
  8768. }
  8769. try {
  8770. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8771. return returnValue;
  8772. }
  8773. finally {
  8774. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8775. this.Adapter.InsertCommand.Connection.Close();
  8776. }
  8777. }
  8778. }
  8779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8781. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8782. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8783. 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) {
  8784. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ClientID));
  8785. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(ServiceID));
  8786. this.Adapter.UpdateCommand.Parameters[2].Value = ((System.DateTime)(StartTime));
  8787. if ((Comment == null)) {
  8788. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  8789. }
  8790. else {
  8791. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Comment));
  8792. }
  8793. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_ID));
  8794. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_ClientID));
  8795. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ServiceID));
  8796. this.Adapter.UpdateCommand.Parameters[7].Value = ((System.DateTime)(Original_StartTime));
  8797. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(ID));
  8798. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8799. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8800. != global::System.Data.ConnectionState.Open)) {
  8801. this.Adapter.UpdateCommand.Connection.Open();
  8802. }
  8803. try {
  8804. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8805. return returnValue;
  8806. }
  8807. finally {
  8808. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8809. this.Adapter.UpdateCommand.Connection.Close();
  8810. }
  8811. }
  8812. }
  8813. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8814. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8815. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8816. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8817. 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) {
  8818. return this.Update(ClientID, ServiceID, StartTime, Comment, Original_ID, Original_ClientID, Original_ServiceID, Original_StartTime, Original_ID);
  8819. }
  8820. }
  8821. /// <summary>
  8822. ///Represents the connection and commands used to retrieve and save data.
  8823. ///</summary>
  8824. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8825. [global::System.ComponentModel.ToolboxItem(true)]
  8826. [global::System.ComponentModel.DataObjectAttribute(true)]
  8827. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8828. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8829. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8830. public partial class DocumentByServiceTableAdapter : global::System.ComponentModel.Component {
  8831. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8832. private global::System.Data.SqlClient.SqlConnection _connection;
  8833. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8834. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8835. private bool _clearBeforeFill;
  8836. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8837. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8838. public DocumentByServiceTableAdapter() {
  8839. this.ClearBeforeFill = true;
  8840. }
  8841. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8842. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8843. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8844. get {
  8845. if ((this._adapter == null)) {
  8846. this.InitAdapter();
  8847. }
  8848. return this._adapter;
  8849. }
  8850. }
  8851. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8852. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8853. internal global::System.Data.SqlClient.SqlConnection Connection {
  8854. get {
  8855. if ((this._connection == null)) {
  8856. this.InitConnection();
  8857. }
  8858. return this._connection;
  8859. }
  8860. set {
  8861. this._connection = value;
  8862. if ((this.Adapter.InsertCommand != null)) {
  8863. this.Adapter.InsertCommand.Connection = value;
  8864. }
  8865. if ((this.Adapter.DeleteCommand != null)) {
  8866. this.Adapter.DeleteCommand.Connection = value;
  8867. }
  8868. if ((this.Adapter.UpdateCommand != null)) {
  8869. this.Adapter.UpdateCommand.Connection = value;
  8870. }
  8871. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8872. if ((this.CommandCollection[i] != null)) {
  8873. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8874. }
  8875. }
  8876. }
  8877. }
  8878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8879. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8880. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8881. get {
  8882. return this._transaction;
  8883. }
  8884. set {
  8885. this._transaction = value;
  8886. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8887. this.CommandCollection[i].Transaction = this._transaction;
  8888. }
  8889. if (((this.Adapter != null)
  8890. && (this.Adapter.DeleteCommand != null))) {
  8891. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8892. }
  8893. if (((this.Adapter != null)
  8894. && (this.Adapter.InsertCommand != null))) {
  8895. this.Adapter.InsertCommand.Transaction = this._transaction;
  8896. }
  8897. if (((this.Adapter != null)
  8898. && (this.Adapter.UpdateCommand != null))) {
  8899. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8900. }
  8901. }
  8902. }
  8903. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8904. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8905. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8906. get {
  8907. if ((this._commandCollection == null)) {
  8908. this.InitCommandCollection();
  8909. }
  8910. return this._commandCollection;
  8911. }
  8912. }
  8913. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8914. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8915. public bool ClearBeforeFill {
  8916. get {
  8917. return this._clearBeforeFill;
  8918. }
  8919. set {
  8920. this._clearBeforeFill = value;
  8921. }
  8922. }
  8923. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8924. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8925. private void InitAdapter() {
  8926. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8927. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8928. tableMapping.SourceTable = "Table";
  8929. tableMapping.DataSetTable = "DocumentByService";
  8930. tableMapping.ColumnMappings.Add("ID", "ID");
  8931. tableMapping.ColumnMappings.Add("ClientServiceID", "ClientServiceID");
  8932. tableMapping.ColumnMappings.Add("DocumentPath", "DocumentPath");
  8933. this._adapter.TableMappings.Add(tableMapping);
  8934. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8935. this._adapter.DeleteCommand.Connection = this.Connection;
  8936. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[DocumentByService] WHERE (([ID] = @Original_ID) AND ([ClientSe" +
  8937. "rviceID] = @Original_ClientServiceID) AND ([DocumentPath] = @Original_DocumentPa" +
  8938. "th))";
  8939. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8940. 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, "", "", ""));
  8941. 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, "", "", ""));
  8942. 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, "", "", ""));
  8943. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8944. this._adapter.InsertCommand.Connection = this.Connection;
  8945. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[DocumentByService] ([ClientServiceID], [DocumentPath]) VALUES " +
  8946. "(@ClientServiceID, @DocumentPath);\r\nSELECT ID, ClientServiceID, DocumentPath FRO" +
  8947. "M DocumentByService WHERE (ID = SCOPE_IDENTITY())";
  8948. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8949. 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, "", "", ""));
  8950. 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, "", "", ""));
  8951. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8952. this._adapter.UpdateCommand.Connection = this.Connection;
  8953. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[DocumentByService] SET [ClientServiceID] = @ClientServiceID, [DocumentPath] = @DocumentPath WHERE (([ID] = @Original_ID) AND ([ClientServiceID] = @Original_ClientServiceID) AND ([DocumentPath] = @Original_DocumentPath));
  8954. SELECT ID, ClientServiceID, DocumentPath FROM DocumentByService WHERE (ID = @ID)";
  8955. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8956. 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, "", "", ""));
  8957. 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, "", "", ""));
  8958. 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, "", "", ""));
  8959. 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, "", "", ""));
  8960. 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, "", "", ""));
  8961. 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, "", "", ""));
  8962. }
  8963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8965. private void InitConnection() {
  8966. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8967. this._connection.ConnectionString = global::Yslugi_Salona_Krasot.Properties.Settings.Default.BarhotnieBrovkiConnectionString;
  8968. }
  8969. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8970. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8971. private void InitCommandCollection() {
  8972. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8973. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8974. this._commandCollection[0].Connection = this.Connection;
  8975. this._commandCollection[0].CommandText = "SELECT ID, ClientServiceID, DocumentPath FROM dbo.DocumentByService";
  8976. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8977. }
  8978. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8979. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8980. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8981. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8982. public virtual int Fill(BarhotnieBrovkiDataSet.DocumentByServiceDataTable dataTable) {
  8983. this.Adapter.SelectCommand = this.CommandCollection[0];
  8984. if ((this.ClearBeforeFill == true)) {
  8985. dataTable.Clear();
  8986. }
  8987. int returnValue = this.Adapter.Fill(dataTable);
  8988. return returnValue;
  8989. }
  8990. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8991. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8992. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8993. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8994. public virtual BarhotnieBrovkiDataSet.DocumentByServiceDataTable GetData() {
  8995. this.Adapter.SelectCommand = this.CommandCollection[0];
  8996. BarhotnieBrovkiDataSet.DocumentByServiceDataTable dataTable = new BarhotnieBrovkiDataSet.DocumentByServiceDataTable();
  8997. this.Adapter.Fill(dataTable);
  8998. return dataTable;
  8999. }
  9000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9001. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9002. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9003. public virtual int Update(BarhotnieBrovkiDataSet.DocumentByServiceDataTable dataTable) {
  9004. return this.Adapter.Update(dataTable);
  9005. }
  9006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9008. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9009. public virtual int Update(BarhotnieBrovkiDataSet dataSet) {
  9010. return this.Adapter.Update(dataSet, "DocumentByService");
  9011. }
  9012. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9013. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9014. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9015. public virtual int Update(global::System.Data.DataRow dataRow) {
  9016. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9017. dataRow});
  9018. }
  9019. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9020. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9021. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9022. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9023. return this.Adapter.Update(dataRows);
  9024. }
  9025. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9026. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9027. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9028. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9029. public virtual int Delete(int Original_ID, int Original_ClientServiceID, string Original_DocumentPath) {
  9030. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  9031. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ClientServiceID));
  9032. if ((Original_DocumentPath == null)) {
  9033. throw new global::System.ArgumentNullException("Original_DocumentPath");
  9034. }
  9035. else {
  9036. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_DocumentPath));
  9037. }
  9038. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9039. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9040. != global::System.Data.ConnectionState.Open)) {
  9041. this.Adapter.DeleteCommand.Connection.Open();
  9042. }
  9043. try {
  9044. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9045. return returnValue;
  9046. }
  9047. finally {
  9048. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9049. this.Adapter.DeleteCommand.Connection.Close();
  9050. }
  9051. }
  9052. }
  9053. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9054. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9055. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9056. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9057. public virtual int Insert(int ClientServiceID, string DocumentPath) {
  9058. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ClientServiceID));
  9059. if ((DocumentPath == null)) {
  9060. throw new global::System.ArgumentNullException("DocumentPath");
  9061. }
  9062. else {
  9063. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(DocumentPath));
  9064. }
  9065. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9066. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9067. != global::System.Data.ConnectionState.Open)) {
  9068. this.Adapter.InsertCommand.Connection.Open();
  9069. }
  9070. try {
  9071. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9072. return returnValue;
  9073. }
  9074. finally {
  9075. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9076. this.Adapter.InsertCommand.Connection.Close();
  9077. }
  9078. }
  9079. }
  9080. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9081. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9082. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9083. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9084. public virtual int Update(int ClientServiceID, string DocumentPath, int Original_ID, int Original_ClientServiceID, string Original_DocumentPath, int ID) {
  9085. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ClientServiceID));
  9086. if ((DocumentPath == null)) {
  9087. throw new global::System.ArgumentNullException("DocumentPath");
  9088. }
  9089. else {
  9090. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(DocumentPath));
  9091. }
  9092. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  9093. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ClientServiceID));
  9094. if ((Original_DocumentPath == null)) {
  9095. throw new global::System.ArgumentNullException("Original_DocumentPath");
  9096. }
  9097. else {
  9098. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_DocumentPath));
  9099. }
  9100. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID));
  9101. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9102. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9103. != global::System.Data.ConnectionState.Open)) {
  9104. this.Adapter.UpdateCommand.Connection.Open();
  9105. }
  9106. try {
  9107. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9108. return returnValue;
  9109. }
  9110. finally {
  9111. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9112. this.Adapter.UpdateCommand.Connection.Close();
  9113. }
  9114. }
  9115. }
  9116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9118. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9119. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9120. public virtual int Update(int ClientServiceID, string DocumentPath, int Original_ID, int Original_ClientServiceID, string Original_DocumentPath) {
  9121. return this.Update(ClientServiceID, DocumentPath, Original_ID, Original_ClientServiceID, Original_DocumentPath, Original_ID);
  9122. }
  9123. }
  9124. /// <summary>
  9125. ///Represents the connection and commands used to retrieve and save data.
  9126. ///</summary>
  9127. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9128. [global::System.ComponentModel.ToolboxItem(true)]
  9129. [global::System.ComponentModel.DataObjectAttribute(true)]
  9130. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9131. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9132. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9133. public partial class GenderTableAdapter : global::System.ComponentModel.Component {
  9134. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9135. private global::System.Data.SqlClient.SqlConnection _connection;
  9136. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9137. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9138. private bool _clearBeforeFill;
  9139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9141. public GenderTableAdapter() {
  9142. this.ClearBeforeFill = true;
  9143. }
  9144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9146. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9147. get {
  9148. if ((this._adapter == null)) {
  9149. this.InitAdapter();
  9150. }
  9151. return this._adapter;
  9152. }
  9153. }
  9154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9155. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9156. internal global::System.Data.SqlClient.SqlConnection Connection {
  9157. get {
  9158. if ((this._connection == null)) {
  9159. this.InitConnection();
  9160. }
  9161. return this._connection;
  9162. }
  9163. set {
  9164. this._connection = value;
  9165. if ((this.Adapter.InsertCommand != null)) {
  9166. this.Adapter.InsertCommand.Connection = value;
  9167. }
  9168. if ((this.Adapter.DeleteCommand != null)) {
  9169. this.Adapter.DeleteCommand.Connection = value;
  9170. }
  9171. if ((this.Adapter.UpdateCommand != null)) {
  9172. this.Adapter.UpdateCommand.Connection = value;
  9173. }
  9174. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9175. if ((this.CommandCollection[i] != null)) {
  9176. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9177. }
  9178. }
  9179. }
  9180. }
  9181. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9182. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9183. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9184. get {
  9185. return this._transaction;
  9186. }
  9187. set {
  9188. this._transaction = value;
  9189. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9190. this.CommandCollection[i].Transaction = this._transaction;
  9191. }
  9192. if (((this.Adapter != null)
  9193. && (this.Adapter.DeleteCommand != null))) {
  9194. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9195. }
  9196. if (((this.Adapter != null)
  9197. && (this.Adapter.InsertCommand != null))) {
  9198. this.Adapter.InsertCommand.Transaction = this._transaction;
  9199. }
  9200. if (((this.Adapter != null)
  9201. && (this.Adapter.UpdateCommand != null))) {
  9202. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9203. }
  9204. }
  9205. }
  9206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9207. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9208. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9209. get {
  9210. if ((this._commandCollection == null)) {
  9211. this.InitCommandCollection();
  9212. }
  9213. return this._commandCollection;
  9214. }
  9215. }
  9216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9218. public bool ClearBeforeFill {
  9219. get {
  9220. return this._clearBeforeFill;
  9221. }
  9222. set {
  9223. this._clearBeforeFill = value;
  9224. }
  9225. }
  9226. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9227. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9228. private void InitAdapter() {
  9229. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9230. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9231. tableMapping.SourceTable = "Table";
  9232. tableMapping.DataSetTable = "Gender";
  9233. tableMapping.ColumnMappings.Add("Code", "Code");
  9234. tableMapping.ColumnMappings.Add("Name", "Name");
  9235. this._adapter.TableMappings.Add(tableMapping);
  9236. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9237. this._adapter.DeleteCommand.Connection = this.Connection;
  9238. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Gender] WHERE (([Code] = @Original_Code) AND ((@IsNull_Name = " +
  9239. "1 AND [Name] IS NULL) OR ([Name] = @Original_Name)))";
  9240. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9241. 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, "", "", ""));
  9242. 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, "", "", ""));
  9243. 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, "", "", ""));
  9244. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9245. this._adapter.InsertCommand.Connection = this.Connection;
  9246. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Gender] ([Code], [Name]) VALUES (@Code, @Name);\r\nSELECT Code, " +
  9247. "Name FROM Gender WHERE (Code = @Code)";
  9248. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9249. 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, "", "", ""));
  9250. 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, "", "", ""));
  9251. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9252. this._adapter.UpdateCommand.Connection = this.Connection;
  9253. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Gender] SET [Code] = @Code, [Name] = @Name WHERE (([Code] = @Origin" +
  9254. "al_Code) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)" +
  9255. "));\r\nSELECT Code, Name FROM Gender WHERE (Code = @Code)";
  9256. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9257. 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, "", "", ""));
  9258. 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, "", "", ""));
  9259. 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, "", "", ""));
  9260. 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, "", "", ""));
  9261. 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, "", "", ""));
  9262. }
  9263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9264. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9265. private void InitConnection() {
  9266. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9267. this._connection.ConnectionString = global::Yslugi_Salona_Krasot.Properties.Settings.Default.BarhotnieBrovkiConnectionString;
  9268. }
  9269. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9270. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9271. private void InitCommandCollection() {
  9272. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9273. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9274. this._commandCollection[0].Connection = this.Connection;
  9275. this._commandCollection[0].CommandText = "SELECT Code, Name FROM dbo.Gender";
  9276. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9277. }
  9278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9279. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9280. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9281. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9282. public virtual int Fill(BarhotnieBrovkiDataSet.GenderDataTable dataTable) {
  9283. this.Adapter.SelectCommand = this.CommandCollection[0];
  9284. if ((this.ClearBeforeFill == true)) {
  9285. dataTable.Clear();
  9286. }
  9287. int returnValue = this.Adapter.Fill(dataTable);
  9288. return returnValue;
  9289. }
  9290. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9291. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9292. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9293. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9294. public virtual BarhotnieBrovkiDataSet.GenderDataTable GetData() {
  9295. this.Adapter.SelectCommand = this.CommandCollection[0];
  9296. BarhotnieBrovkiDataSet.GenderDataTable dataTable = new BarhotnieBrovkiDataSet.GenderDataTable();
  9297. this.Adapter.Fill(dataTable);
  9298. return dataTable;
  9299. }
  9300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9301. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9302. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9303. public virtual int Update(BarhotnieBrovkiDataSet.GenderDataTable dataTable) {
  9304. return this.Adapter.Update(dataTable);
  9305. }
  9306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9307. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9308. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9309. public virtual int Update(BarhotnieBrovkiDataSet dataSet) {
  9310. return this.Adapter.Update(dataSet, "Gender");
  9311. }
  9312. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9313. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9314. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9315. public virtual int Update(global::System.Data.DataRow dataRow) {
  9316. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9317. dataRow});
  9318. }
  9319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9320. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9321. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9322. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9323. return this.Adapter.Update(dataRows);
  9324. }
  9325. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9326. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9327. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9328. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9329. public virtual int Delete(string Original_Code, string Original_Name) {
  9330. if ((Original_Code == null)) {
  9331. throw new global::System.ArgumentNullException("Original_Code");
  9332. }
  9333. else {
  9334. this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_Code));
  9335. }
  9336. if ((Original_Name == null)) {
  9337. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  9338. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  9339. }
  9340. else {
  9341. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  9342. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Name));
  9343. }
  9344. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9345. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9346. != global::System.Data.ConnectionState.Open)) {
  9347. this.Adapter.DeleteCommand.Connection.Open();
  9348. }
  9349. try {
  9350. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9351. return returnValue;
  9352. }
  9353. finally {
  9354. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9355. this.Adapter.DeleteCommand.Connection.Close();
  9356. }
  9357. }
  9358. }
  9359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9360. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9361. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9362. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9363. public virtual int Insert(string Code, string Name) {
  9364. if ((Code == null)) {
  9365. throw new global::System.ArgumentNullException("Code");
  9366. }
  9367. else {
  9368. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Code));
  9369. }
  9370. if ((Name == null)) {
  9371. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  9372. }
  9373. else {
  9374. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Name));
  9375. }
  9376. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9377. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9378. != global::System.Data.ConnectionState.Open)) {
  9379. this.Adapter.InsertCommand.Connection.Open();
  9380. }
  9381. try {
  9382. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9383. return returnValue;
  9384. }
  9385. finally {
  9386. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9387. this.Adapter.InsertCommand.Connection.Close();
  9388. }
  9389. }
  9390. }
  9391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9392. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9393. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9394. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9395. public virtual int Update(string Code, string Name, string Original_Code, string Original_Name) {
  9396. if ((Code == null)) {
  9397. throw new global::System.ArgumentNullException("Code");
  9398. }
  9399. else {
  9400. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Code));
  9401. }
  9402. if ((Name == null)) {
  9403. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  9404. }
  9405. else {
  9406. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Name));
  9407. }
  9408. if ((Original_Code == null)) {
  9409. throw new global::System.ArgumentNullException("Original_Code");
  9410. }
  9411. else {
  9412. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Original_Code));
  9413. }
  9414. if ((Original_Name == null)) {
  9415. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  9416. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  9417. }
  9418. else {
  9419. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  9420. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Name));
  9421. }
  9422. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9423. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9424. != global::System.Data.ConnectionState.Open)) {
  9425. this.Adapter.UpdateCommand.Connection.Open();
  9426. }
  9427. try {
  9428. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9429. return returnValue;
  9430. }
  9431. finally {
  9432. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9433. this.Adapter.UpdateCommand.Connection.Close();
  9434. }
  9435. }
  9436. }
  9437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9438. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9439. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9440. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9441. public virtual int Update(string Name, string Original_Code, string Original_Name) {
  9442. return this.Update(Original_Code, Name, Original_Code, Original_Name);
  9443. }
  9444. }
  9445. /// <summary>
  9446. ///Represents the connection and commands used to retrieve and save data.
  9447. ///</summary>
  9448. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9449. [global::System.ComponentModel.ToolboxItem(true)]
  9450. [global::System.ComponentModel.DataObjectAttribute(true)]
  9451. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9452. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9453. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9454. public partial class ManufacturerTableAdapter : global::System.ComponentModel.Component {
  9455. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9456. private global::System.Data.SqlClient.SqlConnection _connection;
  9457. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9458. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9459. private bool _clearBeforeFill;
  9460. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9461. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9462. public ManufacturerTableAdapter() {
  9463. this.ClearBeforeFill = true;
  9464. }
  9465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9466. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9467. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9468. get {
  9469. if ((this._adapter == null)) {
  9470. this.InitAdapter();
  9471. }
  9472. return this._adapter;
  9473. }
  9474. }
  9475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9477. internal global::System.Data.SqlClient.SqlConnection Connection {
  9478. get {
  9479. if ((this._connection == null)) {
  9480. this.InitConnection();
  9481. }
  9482. return this._connection;
  9483. }
  9484. set {
  9485. this._connection = value;
  9486. if ((this.Adapter.InsertCommand != null)) {
  9487. this.Adapter.InsertCommand.Connection = value;
  9488. }
  9489. if ((this.Adapter.DeleteCommand != null)) {
  9490. this.Adapter.DeleteCommand.Connection = value;
  9491. }
  9492. if ((this.Adapter.UpdateCommand != null)) {
  9493. this.Adapter.UpdateCommand.Connection = value;
  9494. }
  9495. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9496. if ((this.CommandCollection[i] != null)) {
  9497. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9498. }
  9499. }
  9500. }
  9501. }
  9502. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9503. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9504. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9505. get {
  9506. return this._transaction;
  9507. }
  9508. set {
  9509. this._transaction = value;
  9510. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9511. this.CommandCollection[i].Transaction = this._transaction;
  9512. }
  9513. if (((this.Adapter != null)
  9514. && (this.Adapter.DeleteCommand != null))) {
  9515. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9516. }
  9517. if (((this.Adapter != null)
  9518. && (this.Adapter.InsertCommand != null))) {
  9519. this.Adapter.InsertCommand.Transaction = this._transaction;
  9520. }
  9521. if (((this.Adapter != null)
  9522. && (this.Adapter.UpdateCommand != null))) {
  9523. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9524. }
  9525. }
  9526. }
  9527. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9528. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9529. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9530. get {
  9531. if ((this._commandCollection == null)) {
  9532. this.InitCommandCollection();
  9533. }
  9534. return this._commandCollection;
  9535. }
  9536. }
  9537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9538. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9539. public bool ClearBeforeFill {
  9540. get {
  9541. return this._clearBeforeFill;
  9542. }
  9543. set {
  9544. this._clearBeforeFill = value;
  9545. }
  9546. }
  9547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9549. private void InitAdapter() {
  9550. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9551. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9552. tableMapping.SourceTable = "Table";
  9553. tableMapping.DataSetTable = "Manufacturer";
  9554. tableMapping.ColumnMappings.Add("ID", "ID");
  9555. tableMapping.ColumnMappings.Add("Name", "Name");
  9556. tableMapping.ColumnMappings.Add("StartDate", "StartDate");
  9557. this._adapter.TableMappings.Add(tableMapping);
  9558. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9559. this._adapter.DeleteCommand.Connection = this.Connection;
  9560. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Manufacturer] WHERE (([ID] = @Original_ID) AND ([Name] = @Orig" +
  9561. "inal_Name) AND ((@IsNull_StartDate = 1 AND [StartDate] IS NULL) OR ([StartDate] " +
  9562. "= @Original_StartDate)))";
  9563. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9564. 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, "", "", ""));
  9565. 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, "", "", ""));
  9566. 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, "", "", ""));
  9567. 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, "", "", ""));
  9568. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9569. this._adapter.InsertCommand.Connection = this.Connection;
  9570. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Manufacturer] ([Name], [StartDate]) VALUES (@Name, @StartDate)" +
  9571. ";\r\nSELECT ID, Name, StartDate FROM Manufacturer WHERE (ID = SCOPE_IDENTITY())";
  9572. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9573. 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, "", "", ""));
  9574. 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, "", "", ""));
  9575. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9576. this._adapter.UpdateCommand.Connection = this.Connection;
  9577. 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)));
  9578. SELECT ID, Name, StartDate FROM Manufacturer WHERE (ID = @ID)";
  9579. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9580. 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, "", "", ""));
  9581. 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, "", "", ""));
  9582. 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, "", "", ""));
  9583. 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, "", "", ""));
  9584. 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, "", "", ""));
  9585. 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, "", "", ""));
  9586. 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, "", "", ""));
  9587. }
  9588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9589. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9590. private void InitConnection() {
  9591. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9592. this._connection.ConnectionString = global::Yslugi_Salona_Krasot.Properties.Settings.Default.BarhotnieBrovkiConnectionString;
  9593. }
  9594. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9595. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9596. private void InitCommandCollection() {
  9597. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9598. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9599. this._commandCollection[0].Connection = this.Connection;
  9600. this._commandCollection[0].CommandText = "SELECT ID, Name, StartDate FROM dbo.Manufacturer";
  9601. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9602. }
  9603. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9604. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9605. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9606. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9607. public virtual int Fill(BarhotnieBrovkiDataSet.ManufacturerDataTable dataTable) {
  9608. this.Adapter.SelectCommand = this.CommandCollection[0];
  9609. if ((this.ClearBeforeFill == true)) {
  9610. dataTable.Clear();
  9611. }
  9612. int returnValue = this.Adapter.Fill(dataTable);
  9613. return returnValue;
  9614. }
  9615. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9616. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9617. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9618. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9619. public virtual BarhotnieBrovkiDataSet.ManufacturerDataTable GetData() {
  9620. this.Adapter.SelectCommand = this.CommandCollection[0];
  9621. BarhotnieBrovkiDataSet.ManufacturerDataTable dataTable = new BarhotnieBrovkiDataSet.ManufacturerDataTable();
  9622. this.Adapter.Fill(dataTable);
  9623. return dataTable;
  9624. }
  9625. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9626. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9627. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9628. public virtual int Update(BarhotnieBrovkiDataSet.ManufacturerDataTable dataTable) {
  9629. return this.Adapter.Update(dataTable);
  9630. }
  9631. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9632. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9633. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9634. public virtual int Update(BarhotnieBrovkiDataSet dataSet) {
  9635. return this.Adapter.Update(dataSet, "Manufacturer");
  9636. }
  9637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9638. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9639. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9640. public virtual int Update(global::System.Data.DataRow dataRow) {
  9641. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9642. dataRow});
  9643. }
  9644. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9645. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9646. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9647. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9648. return this.Adapter.Update(dataRows);
  9649. }
  9650. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9651. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9652. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9653. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9654. public virtual int Delete(int Original_ID, string Original_Name, global::System.Nullable<global::System.DateTime> Original_StartDate) {
  9655. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  9656. if ((Original_Name == null)) {
  9657. throw new global::System.ArgumentNullException("Original_Name");
  9658. }
  9659. else {
  9660. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Name));
  9661. }
  9662. if ((Original_StartDate.HasValue == true)) {
  9663. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
  9664. this.Adapter.DeleteCommand.Parameters[3].Value = ((System.DateTime)(Original_StartDate.Value));
  9665. }
  9666. else {
  9667. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
  9668. this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
  9669. }
  9670. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9671. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9672. != global::System.Data.ConnectionState.Open)) {
  9673. this.Adapter.DeleteCommand.Connection.Open();
  9674. }
  9675. try {
  9676. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9677. return returnValue;
  9678. }
  9679. finally {
  9680. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9681. this.Adapter.DeleteCommand.Connection.Close();
  9682. }
  9683. }
  9684. }
  9685. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9686. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9687. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9688. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9689. public virtual int Insert(string Name, global::System.Nullable<global::System.DateTime> StartDate) {
  9690. if ((Name == null)) {
  9691. throw new global::System.ArgumentNullException("Name");
  9692. }
  9693. else {
  9694. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Name));
  9695. }
  9696. if ((StartDate.HasValue == true)) {
  9697. this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(StartDate.Value));
  9698. }
  9699. else {
  9700. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  9701. }
  9702. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9703. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9704. != global::System.Data.ConnectionState.Open)) {
  9705. this.Adapter.InsertCommand.Connection.Open();
  9706. }
  9707. try {
  9708. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9709. return returnValue;
  9710. }
  9711. finally {
  9712. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9713. this.Adapter.InsertCommand.Connection.Close();
  9714. }
  9715. }
  9716. }
  9717. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9718. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9719. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9720. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9721. 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) {
  9722. if ((Name == null)) {
  9723. throw new global::System.ArgumentNullException("Name");
  9724. }
  9725. else {
  9726. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Name));
  9727. }
  9728. if ((StartDate.HasValue == true)) {
  9729. this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(StartDate.Value));
  9730. }
  9731. else {
  9732. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  9733. }
  9734. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  9735. if ((Original_Name == null)) {
  9736. throw new global::System.ArgumentNullException("Original_Name");
  9737. }
  9738. else {
  9739. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Name));
  9740. }
  9741. if ((Original_StartDate.HasValue == true)) {
  9742. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  9743. this.Adapter.UpdateCommand.Parameters[5].Value = ((System.DateTime)(Original_StartDate.Value));
  9744. }
  9745. else {
  9746. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  9747. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  9748. }
  9749. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(ID));
  9750. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9751. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9752. != global::System.Data.ConnectionState.Open)) {
  9753. this.Adapter.UpdateCommand.Connection.Open();
  9754. }
  9755. try {
  9756. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9757. return returnValue;
  9758. }
  9759. finally {
  9760. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9761. this.Adapter.UpdateCommand.Connection.Close();
  9762. }
  9763. }
  9764. }
  9765. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9766. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9767. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9768. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9769. 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) {
  9770. return this.Update(Name, StartDate, Original_ID, Original_Name, Original_StartDate, Original_ID);
  9771. }
  9772. }
  9773. /// <summary>
  9774. ///Represents the connection and commands used to retrieve and save data.
  9775. ///</summary>
  9776. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9777. [global::System.ComponentModel.ToolboxItem(true)]
  9778. [global::System.ComponentModel.DataObjectAttribute(true)]
  9779. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9780. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9781. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9782. public partial class ProductTableAdapter : global::System.ComponentModel.Component {
  9783. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9784. private global::System.Data.SqlClient.SqlConnection _connection;
  9785. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9786. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9787. private bool _clearBeforeFill;
  9788. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9789. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9790. public ProductTableAdapter() {
  9791. this.ClearBeforeFill = true;
  9792. }
  9793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9794. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9795. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9796. get {
  9797. if ((this._adapter == null)) {
  9798. this.InitAdapter();
  9799. }
  9800. return this._adapter;
  9801. }
  9802. }
  9803. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9804. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9805. internal global::System.Data.SqlClient.SqlConnection Connection {
  9806. get {
  9807. if ((this._connection == null)) {
  9808. this.InitConnection();
  9809. }
  9810. return this._connection;
  9811. }
  9812. set {
  9813. this._connection = value;
  9814. if ((this.Adapter.InsertCommand != null)) {
  9815. this.Adapter.InsertCommand.Connection = value;
  9816. }
  9817. if ((this.Adapter.DeleteCommand != null)) {
  9818. this.Adapter.DeleteCommand.Connection = value;
  9819. }
  9820. if ((this.Adapter.UpdateCommand != null)) {
  9821. this.Adapter.UpdateCommand.Connection = value;
  9822. }
  9823. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9824. if ((this.CommandCollection[i] != null)) {
  9825. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9826. }
  9827. }
  9828. }
  9829. }
  9830. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9831. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9832. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9833. get {
  9834. return this._transaction;
  9835. }
  9836. set {
  9837. this._transaction = value;
  9838. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9839. this.CommandCollection[i].Transaction = this._transaction;
  9840. }
  9841. if (((this.Adapter != null)
  9842. && (this.Adapter.DeleteCommand != null))) {
  9843. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9844. }
  9845. if (((this.Adapter != null)
  9846. && (this.Adapter.InsertCommand != null))) {
  9847. this.Adapter.InsertCommand.Transaction = this._transaction;
  9848. }
  9849. if (((this.Adapter != null)
  9850. && (this.Adapter.UpdateCommand != null))) {
  9851. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9852. }
  9853. }
  9854. }
  9855. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9856. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9857. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9858. get {
  9859. if ((this._commandCollection == null)) {
  9860. this.InitCommandCollection();
  9861. }
  9862. return this._commandCollection;
  9863. }
  9864. }
  9865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9867. public bool ClearBeforeFill {
  9868. get {
  9869. return this._clearBeforeFill;
  9870. }
  9871. set {
  9872. this._clearBeforeFill = value;
  9873. }
  9874. }
  9875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9876. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9877. private void InitAdapter() {
  9878. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9879. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9880. tableMapping.SourceTable = "Table";
  9881. tableMapping.DataSetTable = "Product";
  9882. tableMapping.ColumnMappings.Add("ID", "ID");
  9883. tableMapping.ColumnMappings.Add("Title", "Title");
  9884. tableMapping.ColumnMappings.Add("Cost", "Cost");
  9885. tableMapping.ColumnMappings.Add("Description", "Description");
  9886. tableMapping.ColumnMappings.Add("MainImagePath", "MainImagePath");
  9887. tableMapping.ColumnMappings.Add("IsActive", "IsActive");
  9888. tableMapping.ColumnMappings.Add("ManufacturerID", "ManufacturerID");
  9889. this._adapter.TableMappings.Add(tableMapping);
  9890. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9891. this._adapter.DeleteCommand.Connection = this.Connection;
  9892. 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)))";
  9893. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9894. 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, "", "", ""));
  9895. 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, "", "", ""));
  9896. 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, "", "", ""));
  9897. 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, "", "", ""));
  9898. 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, "", "", ""));
  9899. 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, "", "", ""));
  9900. 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, "", "", ""));
  9901. 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, "", "", ""));
  9902. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9903. this._adapter.InsertCommand.Connection = this.Connection;
  9904. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Product] ([Title], [Cost], [Description], [MainImagePath], [IsActive], [ManufacturerID]) VALUES (@Title, @Cost, @Description, @MainImagePath, @IsActive, @ManufacturerID);
  9905. SELECT ID, Title, Cost, Description, MainImagePath, IsActive, ManufacturerID FROM Product WHERE (ID = SCOPE_IDENTITY())";
  9906. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9907. 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, "", "", ""));
  9908. 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, "", "", ""));
  9909. 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, "", "", ""));
  9910. 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, "", "", ""));
  9911. 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, "", "", ""));
  9912. 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, "", "", ""));
  9913. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9914. this._adapter.UpdateCommand.Connection = this.Connection;
  9915. 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)));
  9916. SELECT ID, Title, Cost, Description, MainImagePath, IsActive, ManufacturerID FROM Product WHERE (ID = @ID)";
  9917. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9918. 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, "", "", ""));
  9919. 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, "", "", ""));
  9920. 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, "", "", ""));
  9921. 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, "", "", ""));
  9922. 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, "", "", ""));
  9923. 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, "", "", ""));
  9924. 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, "", "", ""));
  9925. 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, "", "", ""));
  9926. 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, "", "", ""));
  9927. 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, "", "", ""));
  9928. 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, "", "", ""));
  9929. 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, "", "", ""));
  9930. 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, "", "", ""));
  9931. 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, "", "", ""));
  9932. 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, "", "", ""));
  9933. }
  9934. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9935. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9936. private void InitConnection() {
  9937. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9938. this._connection.ConnectionString = global::Yslugi_Salona_Krasot.Properties.Settings.Default.BarhotnieBrovkiConnectionString;
  9939. }
  9940. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9941. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9942. private void InitCommandCollection() {
  9943. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9944. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9945. this._commandCollection[0].Connection = this.Connection;
  9946. this._commandCollection[0].CommandText = "SELECT ID, Title, Cost, Description, MainImagePath, IsActive, ManufacturerID FROM" +
  9947. " dbo.Product";
  9948. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9949. }
  9950. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9951. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9952. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9953. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9954. public virtual int Fill(BarhotnieBrovkiDataSet.ProductDataTable dataTable) {
  9955. this.Adapter.SelectCommand = this.CommandCollection[0];
  9956. if ((this.ClearBeforeFill == true)) {
  9957. dataTable.Clear();
  9958. }
  9959. int returnValue = this.Adapter.Fill(dataTable);
  9960. return returnValue;
  9961. }
  9962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9963. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9964. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9965. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9966. public virtual BarhotnieBrovkiDataSet.ProductDataTable GetData() {
  9967. this.Adapter.SelectCommand = this.CommandCollection[0];
  9968. BarhotnieBrovkiDataSet.ProductDataTable dataTable = new BarhotnieBrovkiDataSet.ProductDataTable();
  9969. this.Adapter.Fill(dataTable);
  9970. return dataTable;
  9971. }
  9972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9973. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9974. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9975. public virtual int Update(BarhotnieBrovkiDataSet.ProductDataTable dataTable) {
  9976. return this.Adapter.Update(dataTable);
  9977. }
  9978. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9979. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9980. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9981. public virtual int Update(BarhotnieBrovkiDataSet dataSet) {
  9982. return this.Adapter.Update(dataSet, "Product");
  9983. }
  9984. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9985. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9986. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9987. public virtual int Update(global::System.Data.DataRow dataRow) {
  9988. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9989. dataRow});
  9990. }
  9991. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9992. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9993. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9994. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9995. return this.Adapter.Update(dataRows);
  9996. }
  9997. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9998. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9999. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10000. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  10001. 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) {
  10002. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  10003. if ((Original_Title == null)) {
  10004. throw new global::System.ArgumentNullException("Original_Title");
  10005. }
  10006. else {
  10007. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Title));
  10008. }
  10009. this.Adapter.DeleteCommand.Parameters[2].Value = ((decimal)(Original_Cost));
  10010. if ((Original_MainImagePath == null)) {
  10011. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  10012. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  10013. }
  10014. else {
  10015. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  10016. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_MainImagePath));
  10017. }
  10018. this.Adapter.DeleteCommand.Parameters[5].Value = ((bool)(Original_IsActive));
  10019. if ((Original_ManufacturerID.HasValue == true)) {
  10020. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0));
  10021. this.Adapter.DeleteCommand.Parameters[7].Value = ((int)(Original_ManufacturerID.Value));
  10022. }
  10023. else {
  10024. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1));
  10025. this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value;
  10026. }
  10027. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  10028. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10029. != global::System.Data.ConnectionState.Open)) {
  10030. this.Adapter.DeleteCommand.Connection.Open();
  10031. }
  10032. try {
  10033. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  10034. return returnValue;
  10035. }
  10036. finally {
  10037. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10038. this.Adapter.DeleteCommand.Connection.Close();
  10039. }
  10040. }
  10041. }
  10042. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10043. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10044. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10045. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  10046. public virtual int Insert(string Title, decimal Cost, string Description, string MainImagePath, bool IsActive, global::System.Nullable<int> ManufacturerID) {
  10047. if ((Title == null)) {
  10048. throw new global::System.ArgumentNullException("Title");
  10049. }
  10050. else {
  10051. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  10052. }
  10053. this.Adapter.InsertCommand.Parameters[1].Value = ((decimal)(Cost));
  10054. if ((Description == null)) {
  10055. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  10056. }
  10057. else {
  10058. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Description));
  10059. }
  10060. if ((MainImagePath == null)) {
  10061. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  10062. }
  10063. else {
  10064. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(MainImagePath));
  10065. }
  10066. this.Adapter.InsertCommand.Parameters[4].Value = ((bool)(IsActive));
  10067. if ((ManufacturerID.HasValue == true)) {
  10068. this.Adapter.InsertCommand.Parameters[5].Value = ((int)(ManufacturerID.Value));
  10069. }
  10070. else {
  10071. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  10072. }
  10073. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  10074. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10075. != global::System.Data.ConnectionState.Open)) {
  10076. this.Adapter.InsertCommand.Connection.Open();
  10077. }
  10078. try {
  10079. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  10080. return returnValue;
  10081. }
  10082. finally {
  10083. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10084. this.Adapter.InsertCommand.Connection.Close();
  10085. }
  10086. }
  10087. }
  10088. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10089. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10090. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10091. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10092. 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) {
  10093. if ((Title == null)) {
  10094. throw new global::System.ArgumentNullException("Title");
  10095. }
  10096. else {
  10097. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  10098. }
  10099. this.Adapter.UpdateCommand.Parameters[1].Value = ((decimal)(Cost));
  10100. if ((Description == null)) {
  10101. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  10102. }
  10103. else {
  10104. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Description));
  10105. }
  10106. if ((MainImagePath == null)) {
  10107. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  10108. }
  10109. else {
  10110. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(MainImagePath));
  10111. }
  10112. this.Adapter.UpdateCommand.Parameters[4].Value = ((bool)(IsActive));
  10113. if ((ManufacturerID.HasValue == true)) {
  10114. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ManufacturerID.Value));
  10115. }
  10116. else {
  10117. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  10118. }
  10119. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ID));
  10120. if ((Original_Title == null)) {
  10121. throw new global::System.ArgumentNullException("Original_Title");
  10122. }
  10123. else {
  10124. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Title));
  10125. }
  10126. this.Adapter.UpdateCommand.Parameters[8].Value = ((decimal)(Original_Cost));
  10127. if ((Original_MainImagePath == null)) {
  10128. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  10129. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  10130. }
  10131. else {
  10132. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  10133. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_MainImagePath));
  10134. }
  10135. this.Adapter.UpdateCommand.Parameters[11].Value = ((bool)(Original_IsActive));
  10136. if ((Original_ManufacturerID.HasValue == true)) {
  10137. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  10138. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Original_ManufacturerID.Value));
  10139. }
  10140. else {
  10141. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  10142. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  10143. }
  10144. this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(ID));
  10145. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  10146. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10147. != global::System.Data.ConnectionState.Open)) {
  10148. this.Adapter.UpdateCommand.Connection.Open();
  10149. }
  10150. try {
  10151. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  10152. return returnValue;
  10153. }
  10154. finally {
  10155. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10156. this.Adapter.UpdateCommand.Connection.Close();
  10157. }
  10158. }
  10159. }
  10160. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10161. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10162. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10163. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10164. 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) {
  10165. return this.Update(Title, Cost, Description, MainImagePath, IsActive, ManufacturerID, Original_ID, Original_Title, Original_Cost, Original_MainImagePath, Original_IsActive, Original_ManufacturerID, Original_ID);
  10166. }
  10167. }
  10168. /// <summary>
  10169. ///Represents the connection and commands used to retrieve and save data.
  10170. ///</summary>
  10171. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10172. [global::System.ComponentModel.ToolboxItem(true)]
  10173. [global::System.ComponentModel.DataObjectAttribute(true)]
  10174. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  10175. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10176. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10177. public partial class ProductPhotoTableAdapter : global::System.ComponentModel.Component {
  10178. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  10179. private global::System.Data.SqlClient.SqlConnection _connection;
  10180. private global::System.Data.SqlClient.SqlTransaction _transaction;
  10181. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  10182. private bool _clearBeforeFill;
  10183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10185. public ProductPhotoTableAdapter() {
  10186. this.ClearBeforeFill = true;
  10187. }
  10188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10190. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  10191. get {
  10192. if ((this._adapter == null)) {
  10193. this.InitAdapter();
  10194. }
  10195. return this._adapter;
  10196. }
  10197. }
  10198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10199. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10200. internal global::System.Data.SqlClient.SqlConnection Connection {
  10201. get {
  10202. if ((this._connection == null)) {
  10203. this.InitConnection();
  10204. }
  10205. return this._connection;
  10206. }
  10207. set {
  10208. this._connection = value;
  10209. if ((this.Adapter.InsertCommand != null)) {
  10210. this.Adapter.InsertCommand.Connection = value;
  10211. }
  10212. if ((this.Adapter.DeleteCommand != null)) {
  10213. this.Adapter.DeleteCommand.Connection = value;
  10214. }
  10215. if ((this.Adapter.UpdateCommand != null)) {
  10216. this.Adapter.UpdateCommand.Connection = value;
  10217. }
  10218. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10219. if ((this.CommandCollection[i] != null)) {
  10220. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  10221. }
  10222. }
  10223. }
  10224. }
  10225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10227. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  10228. get {
  10229. return this._transaction;
  10230. }
  10231. set {
  10232. this._transaction = value;
  10233. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10234. this.CommandCollection[i].Transaction = this._transaction;
  10235. }
  10236. if (((this.Adapter != null)
  10237. && (this.Adapter.DeleteCommand != null))) {
  10238. this.Adapter.DeleteCommand.Transaction = this._transaction;
  10239. }
  10240. if (((this.Adapter != null)
  10241. && (this.Adapter.InsertCommand != null))) {
  10242. this.Adapter.InsertCommand.Transaction = this._transaction;
  10243. }
  10244. if (((this.Adapter != null)
  10245. && (this.Adapter.UpdateCommand != null))) {
  10246. this.Adapter.UpdateCommand.Transaction = this._transaction;
  10247. }
  10248. }
  10249. }
  10250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10252. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  10253. get {
  10254. if ((this._commandCollection == null)) {
  10255. this.InitCommandCollection();
  10256. }
  10257. return this._commandCollection;
  10258. }
  10259. }
  10260. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10261. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10262. public bool ClearBeforeFill {
  10263. get {
  10264. return this._clearBeforeFill;
  10265. }
  10266. set {
  10267. this._clearBeforeFill = value;
  10268. }
  10269. }
  10270. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10271. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10272. private void InitAdapter() {
  10273. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  10274. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  10275. tableMapping.SourceTable = "Table";
  10276. tableMapping.DataSetTable = "ProductPhoto";
  10277. tableMapping.ColumnMappings.Add("ID", "ID");
  10278. tableMapping.ColumnMappings.Add("ProductID", "ProductID");
  10279. tableMapping.ColumnMappings.Add("PhotoPath", "PhotoPath");
  10280. this._adapter.TableMappings.Add(tableMapping);
  10281. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  10282. this._adapter.DeleteCommand.Connection = this.Connection;
  10283. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ProductPhoto] WHERE (([ID] = @Original_ID) AND ([ProductID] = " +
  10284. "@Original_ProductID) AND ([PhotoPath] = @Original_PhotoPath))";
  10285. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  10286. 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, "", "", ""));
  10287. 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, "", "", ""));
  10288. 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, "", "", ""));
  10289. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  10290. this._adapter.InsertCommand.Connection = this.Connection;
  10291. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ProductPhoto] ([ProductID], [PhotoPath]) VALUES (@ProductID, @" +
  10292. "PhotoPath);\r\nSELECT ID, ProductID, PhotoPath FROM ProductPhoto WHERE (ID = SCOPE" +
  10293. "_IDENTITY())";
  10294. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  10295. 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, "", "", ""));
  10296. 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, "", "", ""));
  10297. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  10298. this._adapter.UpdateCommand.Connection = this.Connection;
  10299. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ProductPhoto] SET [ProductID] = @ProductID, [PhotoPath] = @PhotoPath WHERE (([ID] = @Original_ID) AND ([ProductID] = @Original_ProductID) AND ([PhotoPath] = @Original_PhotoPath));
  10300. SELECT ID, ProductID, PhotoPath FROM ProductPhoto WHERE (ID = @ID)";
  10301. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  10302. 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, "", "", ""));
  10303. 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, "", "", ""));
  10304. 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, "", "", ""));
  10305. 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, "", "", ""));
  10306. 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, "", "", ""));
  10307. 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, "", "", ""));
  10308. }
  10309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10310. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10311. private void InitConnection() {
  10312. this._connection = new global::System.Data.SqlClient.SqlConnection();
  10313. this._connection.ConnectionString = global::Yslugi_Salona_Krasot.Properties.Settings.Default.BarhotnieBrovkiConnectionString;
  10314. }
  10315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10316. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10317. private void InitCommandCollection() {
  10318. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  10319. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  10320. this._commandCollection[0].Connection = this.Connection;
  10321. this._commandCollection[0].CommandText = "SELECT ID, ProductID, PhotoPath FROM dbo.ProductPhoto";
  10322. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  10323. }
  10324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10326. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10327. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  10328. public virtual int Fill(BarhotnieBrovkiDataSet.ProductPhotoDataTable dataTable) {
  10329. this.Adapter.SelectCommand = this.CommandCollection[0];
  10330. if ((this.ClearBeforeFill == true)) {
  10331. dataTable.Clear();
  10332. }
  10333. int returnValue = this.Adapter.Fill(dataTable);
  10334. return returnValue;
  10335. }
  10336. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10337. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10338. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10339. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  10340. public virtual BarhotnieBrovkiDataSet.ProductPhotoDataTable GetData() {
  10341. this.Adapter.SelectCommand = this.CommandCollection[0];
  10342. BarhotnieBrovkiDataSet.ProductPhotoDataTable dataTable = new BarhotnieBrovkiDataSet.ProductPhotoDataTable();
  10343. this.Adapter.Fill(dataTable);
  10344. return dataTable;
  10345. }
  10346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10347. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10348. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10349. public virtual int Update(BarhotnieBrovkiDataSet.ProductPhotoDataTable dataTable) {
  10350. return this.Adapter.Update(dataTable);
  10351. }
  10352. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10353. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10354. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10355. public virtual int Update(BarhotnieBrovkiDataSet dataSet) {
  10356. return this.Adapter.Update(dataSet, "ProductPhoto");
  10357. }
  10358. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10359. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10360. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10361. public virtual int Update(global::System.Data.DataRow dataRow) {
  10362. return this.Adapter.Update(new global::System.Data.DataRow[] {
  10363. dataRow});
  10364. }
  10365. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10366. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10367. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10368. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  10369. return this.Adapter.Update(dataRows);
  10370. }
  10371. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10372. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10373. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10374. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  10375. public virtual int Delete(int Original_ID, int Original_ProductID, string Original_PhotoPath) {
  10376. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  10377. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ProductID));
  10378. if ((Original_PhotoPath == null)) {
  10379. throw new global::System.ArgumentNullException("Original_PhotoPath");
  10380. }
  10381. else {
  10382. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_PhotoPath));
  10383. }
  10384. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  10385. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10386. != global::System.Data.ConnectionState.Open)) {
  10387. this.Adapter.DeleteCommand.Connection.Open();
  10388. }
  10389. try {
  10390. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  10391. return returnValue;
  10392. }
  10393. finally {
  10394. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10395. this.Adapter.DeleteCommand.Connection.Close();
  10396. }
  10397. }
  10398. }
  10399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10401. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10402. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  10403. public virtual int Insert(int ProductID, string PhotoPath) {
  10404. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ProductID));
  10405. if ((PhotoPath == null)) {
  10406. throw new global::System.ArgumentNullException("PhotoPath");
  10407. }
  10408. else {
  10409. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(PhotoPath));
  10410. }
  10411. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  10412. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10413. != global::System.Data.ConnectionState.Open)) {
  10414. this.Adapter.InsertCommand.Connection.Open();
  10415. }
  10416. try {
  10417. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  10418. return returnValue;
  10419. }
  10420. finally {
  10421. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10422. this.Adapter.InsertCommand.Connection.Close();
  10423. }
  10424. }
  10425. }
  10426. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10427. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10428. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10429. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10430. public virtual int Update(int ProductID, string PhotoPath, int Original_ID, int Original_ProductID, string Original_PhotoPath, int ID) {
  10431. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ProductID));
  10432. if ((PhotoPath == null)) {
  10433. throw new global::System.ArgumentNullException("PhotoPath");
  10434. }
  10435. else {
  10436. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(PhotoPath));
  10437. }
  10438. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  10439. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ProductID));
  10440. if ((Original_PhotoPath == null)) {
  10441. throw new global::System.ArgumentNullException("Original_PhotoPath");
  10442. }
  10443. else {
  10444. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_PhotoPath));
  10445. }
  10446. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID));
  10447. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  10448. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10449. != global::System.Data.ConnectionState.Open)) {
  10450. this.Adapter.UpdateCommand.Connection.Open();
  10451. }
  10452. try {
  10453. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  10454. return returnValue;
  10455. }
  10456. finally {
  10457. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10458. this.Adapter.UpdateCommand.Connection.Close();
  10459. }
  10460. }
  10461. }
  10462. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10463. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10464. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10465. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10466. public virtual int Update(int ProductID, string PhotoPath, int Original_ID, int Original_ProductID, string Original_PhotoPath) {
  10467. return this.Update(ProductID, PhotoPath, Original_ID, Original_ProductID, Original_PhotoPath, Original_ID);
  10468. }
  10469. }
  10470. /// <summary>
  10471. ///Represents the connection and commands used to retrieve and save data.
  10472. ///</summary>
  10473. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10474. [global::System.ComponentModel.ToolboxItem(true)]
  10475. [global::System.ComponentModel.DataObjectAttribute(true)]
  10476. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  10477. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10478. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10479. public partial class ProductSaleTableAdapter : global::System.ComponentModel.Component {
  10480. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  10481. private global::System.Data.SqlClient.SqlConnection _connection;
  10482. private global::System.Data.SqlClient.SqlTransaction _transaction;
  10483. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  10484. private bool _clearBeforeFill;
  10485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10486. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10487. public ProductSaleTableAdapter() {
  10488. this.ClearBeforeFill = true;
  10489. }
  10490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10492. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  10493. get {
  10494. if ((this._adapter == null)) {
  10495. this.InitAdapter();
  10496. }
  10497. return this._adapter;
  10498. }
  10499. }
  10500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10502. internal global::System.Data.SqlClient.SqlConnection Connection {
  10503. get {
  10504. if ((this._connection == null)) {
  10505. this.InitConnection();
  10506. }
  10507. return this._connection;
  10508. }
  10509. set {
  10510. this._connection = value;
  10511. if ((this.Adapter.InsertCommand != null)) {
  10512. this.Adapter.InsertCommand.Connection = value;
  10513. }
  10514. if ((this.Adapter.DeleteCommand != null)) {
  10515. this.Adapter.DeleteCommand.Connection = value;
  10516. }
  10517. if ((this.Adapter.UpdateCommand != null)) {
  10518. this.Adapter.UpdateCommand.Connection = value;
  10519. }
  10520. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10521. if ((this.CommandCollection[i] != null)) {
  10522. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  10523. }
  10524. }
  10525. }
  10526. }
  10527. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10528. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10529. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  10530. get {
  10531. return this._transaction;
  10532. }
  10533. set {
  10534. this._transaction = value;
  10535. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10536. this.CommandCollection[i].Transaction = this._transaction;
  10537. }
  10538. if (((this.Adapter != null)
  10539. && (this.Adapter.DeleteCommand != null))) {
  10540. this.Adapter.DeleteCommand.Transaction = this._transaction;
  10541. }
  10542. if (((this.Adapter != null)
  10543. && (this.Adapter.InsertCommand != null))) {
  10544. this.Adapter.InsertCommand.Transaction = this._transaction;
  10545. }
  10546. if (((this.Adapter != null)
  10547. && (this.Adapter.UpdateCommand != null))) {
  10548. this.Adapter.UpdateCommand.Transaction = this._transaction;
  10549. }
  10550. }
  10551. }
  10552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10554. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  10555. get {
  10556. if ((this._commandCollection == null)) {
  10557. this.InitCommandCollection();
  10558. }
  10559. return this._commandCollection;
  10560. }
  10561. }
  10562. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10563. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10564. public bool ClearBeforeFill {
  10565. get {
  10566. return this._clearBeforeFill;
  10567. }
  10568. set {
  10569. this._clearBeforeFill = value;
  10570. }
  10571. }
  10572. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10573. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10574. private void InitAdapter() {
  10575. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  10576. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  10577. tableMapping.SourceTable = "Table";
  10578. tableMapping.DataSetTable = "ProductSale";
  10579. tableMapping.ColumnMappings.Add("ID", "ID");
  10580. tableMapping.ColumnMappings.Add("SaleDate", "SaleDate");
  10581. tableMapping.ColumnMappings.Add("ProductID", "ProductID");
  10582. tableMapping.ColumnMappings.Add("Quantity", "Quantity");
  10583. tableMapping.ColumnMappings.Add("ClientServiceID", "ClientServiceID");
  10584. this._adapter.TableMappings.Add(tableMapping);
  10585. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  10586. this._adapter.DeleteCommand.Connection = this.Connection;
  10587. 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)))";
  10588. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  10589. 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, "", "", ""));
  10590. 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, "", "", ""));
  10591. 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, "", "", ""));
  10592. 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, "", "", ""));
  10593. 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, "", "", ""));
  10594. 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, "", "", ""));
  10595. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  10596. this._adapter.InsertCommand.Connection = this.Connection;
  10597. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ProductSale] ([SaleDate], [ProductID], [Quantity], [ClientServ" +
  10598. "iceID]) VALUES (@SaleDate, @ProductID, @Quantity, @ClientServiceID);\r\nSELECT ID," +
  10599. " SaleDate, ProductID, Quantity, ClientServiceID FROM ProductSale WHERE (ID = SCO" +
  10600. "PE_IDENTITY())";
  10601. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  10602. 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, "", "", ""));
  10603. 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, "", "", ""));
  10604. 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, "", "", ""));
  10605. 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, "", "", ""));
  10606. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  10607. this._adapter.UpdateCommand.Connection = this.Connection;
  10608. 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)));
  10609. SELECT ID, SaleDate, ProductID, Quantity, ClientServiceID FROM ProductSale WHERE (ID = @ID)";
  10610. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  10611. 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, "", "", ""));
  10612. 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, "", "", ""));
  10613. 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, "", "", ""));
  10614. 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, "", "", ""));
  10615. 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, "", "", ""));
  10616. 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, "", "", ""));
  10617. 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, "", "", ""));
  10618. 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, "", "", ""));
  10619. 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, "", "", ""));
  10620. 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, "", "", ""));
  10621. 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, "", "", ""));
  10622. }
  10623. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10625. private void InitConnection() {
  10626. this._connection = new global::System.Data.SqlClient.SqlConnection();
  10627. this._connection.ConnectionString = global::Yslugi_Salona_Krasot.Properties.Settings.Default.BarhotnieBrovkiConnectionString;
  10628. }
  10629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10631. private void InitCommandCollection() {
  10632. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  10633. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  10634. this._commandCollection[0].Connection = this.Connection;
  10635. this._commandCollection[0].CommandText = "SELECT ID, SaleDate, ProductID, Quantity, ClientServiceID FROM dbo.ProductSale";
  10636. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  10637. }
  10638. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10639. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10640. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10641. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  10642. public virtual int Fill(BarhotnieBrovkiDataSet.ProductSaleDataTable dataTable) {
  10643. this.Adapter.SelectCommand = this.CommandCollection[0];
  10644. if ((this.ClearBeforeFill == true)) {
  10645. dataTable.Clear();
  10646. }
  10647. int returnValue = this.Adapter.Fill(dataTable);
  10648. return returnValue;
  10649. }
  10650. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10651. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10652. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10653. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  10654. public virtual BarhotnieBrovkiDataSet.ProductSaleDataTable GetData() {
  10655. this.Adapter.SelectCommand = this.CommandCollection[0];
  10656. BarhotnieBrovkiDataSet.ProductSaleDataTable dataTable = new BarhotnieBrovkiDataSet.ProductSaleDataTable();
  10657. this.Adapter.Fill(dataTable);
  10658. return dataTable;
  10659. }
  10660. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10661. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10662. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10663. public virtual int Update(BarhotnieBrovkiDataSet.ProductSaleDataTable dataTable) {
  10664. return this.Adapter.Update(dataTable);
  10665. }
  10666. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10667. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10668. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10669. public virtual int Update(BarhotnieBrovkiDataSet dataSet) {
  10670. return this.Adapter.Update(dataSet, "ProductSale");
  10671. }
  10672. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10674. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10675. public virtual int Update(global::System.Data.DataRow dataRow) {
  10676. return this.Adapter.Update(new global::System.Data.DataRow[] {
  10677. dataRow});
  10678. }
  10679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10680. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10681. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10682. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  10683. return this.Adapter.Update(dataRows);
  10684. }
  10685. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10686. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10687. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10688. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  10689. public virtual int Delete(int Original_ID, System.DateTime Original_SaleDate, int Original_ProductID, int Original_Quantity, global::System.Nullable<int> Original_ClientServiceID) {
  10690. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  10691. this.Adapter.DeleteCommand.Parameters[1].Value = ((System.DateTime)(Original_SaleDate));
  10692. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_ProductID));
  10693. this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_Quantity));
  10694. if ((Original_ClientServiceID.HasValue == true)) {
  10695. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
  10696. this.Adapter.DeleteCommand.Parameters[5].Value = ((int)(Original_ClientServiceID.Value));
  10697. }
  10698. else {
  10699. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
  10700. this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
  10701. }
  10702. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  10703. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10704. != global::System.Data.ConnectionState.Open)) {
  10705. this.Adapter.DeleteCommand.Connection.Open();
  10706. }
  10707. try {
  10708. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  10709. return returnValue;
  10710. }
  10711. finally {
  10712. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10713. this.Adapter.DeleteCommand.Connection.Close();
  10714. }
  10715. }
  10716. }
  10717. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10718. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10719. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10720. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  10721. public virtual int Insert(System.DateTime SaleDate, int ProductID, int Quantity, global::System.Nullable<int> ClientServiceID) {
  10722. this.Adapter.InsertCommand.Parameters[0].Value = ((System.DateTime)(SaleDate));
  10723. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(ProductID));
  10724. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Quantity));
  10725. if ((ClientServiceID.HasValue == true)) {
  10726. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(ClientServiceID.Value));
  10727. }
  10728. else {
  10729. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  10730. }
  10731. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  10732. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10733. != global::System.Data.ConnectionState.Open)) {
  10734. this.Adapter.InsertCommand.Connection.Open();
  10735. }
  10736. try {
  10737. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  10738. return returnValue;
  10739. }
  10740. finally {
  10741. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10742. this.Adapter.InsertCommand.Connection.Close();
  10743. }
  10744. }
  10745. }
  10746. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10747. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10748. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10749. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10750. 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) {
  10751. this.Adapter.UpdateCommand.Parameters[0].Value = ((System.DateTime)(SaleDate));
  10752. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(ProductID));
  10753. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Quantity));
  10754. if ((ClientServiceID.HasValue == true)) {
  10755. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(ClientServiceID.Value));
  10756. }
  10757. else {
  10758. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  10759. }
  10760. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_ID));
  10761. this.Adapter.UpdateCommand.Parameters[5].Value = ((System.DateTime)(Original_SaleDate));
  10762. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ProductID));
  10763. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_Quantity));
  10764. if ((Original_ClientServiceID.HasValue == true)) {
  10765. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  10766. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_ClientServiceID.Value));
  10767. }
  10768. else {
  10769. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  10770. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  10771. }
  10772. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(ID));
  10773. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  10774. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10775. != global::System.Data.ConnectionState.Open)) {
  10776. this.Adapter.UpdateCommand.Connection.Open();
  10777. }
  10778. try {
  10779. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  10780. return returnValue;
  10781. }
  10782. finally {
  10783. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10784. this.Adapter.UpdateCommand.Connection.Close();
  10785. }
  10786. }
  10787. }
  10788. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10789. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10790. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10791. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10792. 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) {
  10793. return this.Update(SaleDate, ProductID, Quantity, ClientServiceID, Original_ID, Original_SaleDate, Original_ProductID, Original_Quantity, Original_ClientServiceID, Original_ID);
  10794. }
  10795. }
  10796. /// <summary>
  10797. ///Represents the connection and commands used to retrieve and save data.
  10798. ///</summary>
  10799. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10800. [global::System.ComponentModel.ToolboxItem(true)]
  10801. [global::System.ComponentModel.DataObjectAttribute(true)]
  10802. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  10803. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10804. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10805. public partial class ServiceTableAdapter : global::System.ComponentModel.Component {
  10806. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  10807. private global::System.Data.SqlClient.SqlConnection _connection;
  10808. private global::System.Data.SqlClient.SqlTransaction _transaction;
  10809. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  10810. private bool _clearBeforeFill;
  10811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10812. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10813. public ServiceTableAdapter() {
  10814. this.ClearBeforeFill = true;
  10815. }
  10816. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10817. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10818. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  10819. get {
  10820. if ((this._adapter == null)) {
  10821. this.InitAdapter();
  10822. }
  10823. return this._adapter;
  10824. }
  10825. }
  10826. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10827. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10828. internal global::System.Data.SqlClient.SqlConnection Connection {
  10829. get {
  10830. if ((this._connection == null)) {
  10831. this.InitConnection();
  10832. }
  10833. return this._connection;
  10834. }
  10835. set {
  10836. this._connection = value;
  10837. if ((this.Adapter.InsertCommand != null)) {
  10838. this.Adapter.InsertCommand.Connection = value;
  10839. }
  10840. if ((this.Adapter.DeleteCommand != null)) {
  10841. this.Adapter.DeleteCommand.Connection = value;
  10842. }
  10843. if ((this.Adapter.UpdateCommand != null)) {
  10844. this.Adapter.UpdateCommand.Connection = value;
  10845. }
  10846. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10847. if ((this.CommandCollection[i] != null)) {
  10848. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  10849. }
  10850. }
  10851. }
  10852. }
  10853. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10854. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10855. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  10856. get {
  10857. return this._transaction;
  10858. }
  10859. set {
  10860. this._transaction = value;
  10861. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10862. this.CommandCollection[i].Transaction = this._transaction;
  10863. }
  10864. if (((this.Adapter != null)
  10865. && (this.Adapter.DeleteCommand != null))) {
  10866. this.Adapter.DeleteCommand.Transaction = this._transaction;
  10867. }
  10868. if (((this.Adapter != null)
  10869. && (this.Adapter.InsertCommand != null))) {
  10870. this.Adapter.InsertCommand.Transaction = this._transaction;
  10871. }
  10872. if (((this.Adapter != null)
  10873. && (this.Adapter.UpdateCommand != null))) {
  10874. this.Adapter.UpdateCommand.Transaction = this._transaction;
  10875. }
  10876. }
  10877. }
  10878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10879. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10880. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  10881. get {
  10882. if ((this._commandCollection == null)) {
  10883. this.InitCommandCollection();
  10884. }
  10885. return this._commandCollection;
  10886. }
  10887. }
  10888. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10889. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10890. public bool ClearBeforeFill {
  10891. get {
  10892. return this._clearBeforeFill;
  10893. }
  10894. set {
  10895. this._clearBeforeFill = value;
  10896. }
  10897. }
  10898. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10899. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10900. private void InitAdapter() {
  10901. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  10902. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  10903. tableMapping.SourceTable = "Table";
  10904. tableMapping.DataSetTable = "Service";
  10905. tableMapping.ColumnMappings.Add("ID", "ID");
  10906. tableMapping.ColumnMappings.Add("Title", "Title");
  10907. tableMapping.ColumnMappings.Add("Cost", "Cost");
  10908. tableMapping.ColumnMappings.Add("DurationInSeconds", "DurationInSeconds");
  10909. tableMapping.ColumnMappings.Add("Description", "Description");
  10910. tableMapping.ColumnMappings.Add("Discount", "Discount");
  10911. tableMapping.ColumnMappings.Add("MainImagePath", "MainImagePath");
  10912. this._adapter.TableMappings.Add(tableMapping);
  10913. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  10914. this._adapter.DeleteCommand.Connection = this.Connection;
  10915. 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)))";
  10916. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  10917. 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, "", "", ""));
  10918. 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, "", "", ""));
  10919. 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, "", "", ""));
  10920. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DurationInSeconds", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DurationInSeconds", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10921. 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, "", "", ""));
  10922. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Discount", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Discount", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10923. 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, "", "", ""));
  10924. 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, "", "", ""));
  10925. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  10926. this._adapter.InsertCommand.Connection = this.Connection;
  10927. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Service] ([Title], [Cost], [DurationInSeconds], [Description], [Discount], [MainImagePath]) VALUES (@Title, @Cost, @DurationInSeconds, @Description, @Discount, @MainImagePath);
  10928. SELECT ID, Title, Cost, DurationInSeconds, Description, Discount, MainImagePath FROM Service WHERE (ID = SCOPE_IDENTITY())";
  10929. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  10930. 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, "", "", ""));
  10931. 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, "", "", ""));
  10932. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DurationInSeconds", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DurationInSeconds", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10933. 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, "", "", ""));
  10934. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Discount", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Discount", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10935. 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, "", "", ""));
  10936. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  10937. this._adapter.UpdateCommand.Connection = this.Connection;
  10938. 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)));
  10939. SELECT ID, Title, Cost, DurationInSeconds, Description, Discount, MainImagePath FROM Service WHERE (ID = @ID)";
  10940. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  10941. 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, "", "", ""));
  10942. 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, "", "", ""));
  10943. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DurationInSeconds", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DurationInSeconds", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10944. 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, "", "", ""));
  10945. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Discount", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Discount", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10946. 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, "", "", ""));
  10947. 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, "", "", ""));
  10948. 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, "", "", ""));
  10949. 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, "", "", ""));
  10950. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DurationInSeconds", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DurationInSeconds", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10951. 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, "", "", ""));
  10952. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Discount", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Discount", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10953. 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, "", "", ""));
  10954. 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, "", "", ""));
  10955. 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, "", "", ""));
  10956. }
  10957. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10958. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10959. private void InitConnection() {
  10960. this._connection = new global::System.Data.SqlClient.SqlConnection();
  10961. this._connection.ConnectionString = global::Yslugi_Salona_Krasot.Properties.Settings.Default.BarhotnieBrovkiConnectionString;
  10962. }
  10963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10965. private void InitCommandCollection() {
  10966. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  10967. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  10968. this._commandCollection[0].Connection = this.Connection;
  10969. this._commandCollection[0].CommandText = "SELECT ID, Title, Cost, DurationInSeconds, Description, Discount, MainImagePath F" +
  10970. "ROM dbo.Service";
  10971. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  10972. }
  10973. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10974. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10975. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10976. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  10977. public virtual int Fill(BarhotnieBrovkiDataSet.ServiceDataTable dataTable) {
  10978. this.Adapter.SelectCommand = this.CommandCollection[0];
  10979. if ((this.ClearBeforeFill == true)) {
  10980. dataTable.Clear();
  10981. }
  10982. int returnValue = this.Adapter.Fill(dataTable);
  10983. return returnValue;
  10984. }
  10985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10986. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10987. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10988. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  10989. public virtual BarhotnieBrovkiDataSet.ServiceDataTable GetData() {
  10990. this.Adapter.SelectCommand = this.CommandCollection[0];
  10991. BarhotnieBrovkiDataSet.ServiceDataTable dataTable = new BarhotnieBrovkiDataSet.ServiceDataTable();
  10992. this.Adapter.Fill(dataTable);
  10993. return dataTable;
  10994. }
  10995. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10996. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10997. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10998. public virtual int Update(BarhotnieBrovkiDataSet.ServiceDataTable dataTable) {
  10999. return this.Adapter.Update(dataTable);
  11000. }
  11001. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11002. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11003. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11004. public virtual int Update(BarhotnieBrovkiDataSet dataSet) {
  11005. return this.Adapter.Update(dataSet, "Service");
  11006. }
  11007. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11008. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11009. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11010. public virtual int Update(global::System.Data.DataRow dataRow) {
  11011. return this.Adapter.Update(new global::System.Data.DataRow[] {
  11012. dataRow});
  11013. }
  11014. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11015. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11016. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11017. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  11018. return this.Adapter.Update(dataRows);
  11019. }
  11020. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11021. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11022. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11023. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  11024. public virtual int Delete(int Original_ID, string Original_Title, decimal Original_Cost, int Original_DurationInSeconds, global::System.Nullable<double> Original_Discount, string Original_MainImagePath) {
  11025. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  11026. if ((Original_Title == null)) {
  11027. throw new global::System.ArgumentNullException("Original_Title");
  11028. }
  11029. else {
  11030. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Title));
  11031. }
  11032. this.Adapter.DeleteCommand.Parameters[2].Value = ((decimal)(Original_Cost));
  11033. this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_DurationInSeconds));
  11034. if ((Original_Discount.HasValue == true)) {
  11035. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
  11036. this.Adapter.DeleteCommand.Parameters[5].Value = ((double)(Original_Discount.Value));
  11037. }
  11038. else {
  11039. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
  11040. this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
  11041. }
  11042. if ((Original_MainImagePath == null)) {
  11043. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1));
  11044. this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value;
  11045. }
  11046. else {
  11047. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0));
  11048. this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_MainImagePath));
  11049. }
  11050. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  11051. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11052. != global::System.Data.ConnectionState.Open)) {
  11053. this.Adapter.DeleteCommand.Connection.Open();
  11054. }
  11055. try {
  11056. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  11057. return returnValue;
  11058. }
  11059. finally {
  11060. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11061. this.Adapter.DeleteCommand.Connection.Close();
  11062. }
  11063. }
  11064. }
  11065. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11066. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11067. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11068. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  11069. public virtual int Insert(string Title, decimal Cost, int DurationInSeconds, string Description, global::System.Nullable<double> Discount, string MainImagePath) {
  11070. if ((Title == null)) {
  11071. throw new global::System.ArgumentNullException("Title");
  11072. }
  11073. else {
  11074. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  11075. }
  11076. this.Adapter.InsertCommand.Parameters[1].Value = ((decimal)(Cost));
  11077. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(DurationInSeconds));
  11078. if ((Description == null)) {
  11079. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  11080. }
  11081. else {
  11082. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Description));
  11083. }
  11084. if ((Discount.HasValue == true)) {
  11085. this.Adapter.InsertCommand.Parameters[4].Value = ((double)(Discount.Value));
  11086. }
  11087. else {
  11088. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  11089. }
  11090. if ((MainImagePath == null)) {
  11091. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  11092. }
  11093. else {
  11094. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(MainImagePath));
  11095. }
  11096. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  11097. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11098. != global::System.Data.ConnectionState.Open)) {
  11099. this.Adapter.InsertCommand.Connection.Open();
  11100. }
  11101. try {
  11102. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  11103. return returnValue;
  11104. }
  11105. finally {
  11106. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11107. this.Adapter.InsertCommand.Connection.Close();
  11108. }
  11109. }
  11110. }
  11111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11113. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11114. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  11115. public virtual int Update(string Title, decimal Cost, int DurationInSeconds, string Description, global::System.Nullable<double> Discount, string MainImagePath, int Original_ID, string Original_Title, decimal Original_Cost, int Original_DurationInSeconds, global::System.Nullable<double> Original_Discount, string Original_MainImagePath, int ID) {
  11116. if ((Title == null)) {
  11117. throw new global::System.ArgumentNullException("Title");
  11118. }
  11119. else {
  11120. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  11121. }
  11122. this.Adapter.UpdateCommand.Parameters[1].Value = ((decimal)(Cost));
  11123. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(DurationInSeconds));
  11124. if ((Description == null)) {
  11125. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  11126. }
  11127. else {
  11128. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Description));
  11129. }
  11130. if ((Discount.HasValue == true)) {
  11131. this.Adapter.UpdateCommand.Parameters[4].Value = ((double)(Discount.Value));
  11132. }
  11133. else {
  11134. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  11135. }
  11136. if ((MainImagePath == null)) {
  11137. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  11138. }
  11139. else {
  11140. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(MainImagePath));
  11141. }
  11142. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ID));
  11143. if ((Original_Title == null)) {
  11144. throw new global::System.ArgumentNullException("Original_Title");
  11145. }
  11146. else {
  11147. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Title));
  11148. }
  11149. this.Adapter.UpdateCommand.Parameters[8].Value = ((decimal)(Original_Cost));
  11150. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_DurationInSeconds));
  11151. if ((Original_Discount.HasValue == true)) {
  11152. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  11153. this.Adapter.UpdateCommand.Parameters[11].Value = ((double)(Original_Discount.Value));
  11154. }
  11155. else {
  11156. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  11157. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  11158. }
  11159. if ((Original_MainImagePath == null)) {
  11160. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  11161. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  11162. }
  11163. else {
  11164. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  11165. this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_MainImagePath));
  11166. }
  11167. this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(ID));
  11168. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  11169. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11170. != global::System.Data.ConnectionState.Open)) {
  11171. this.Adapter.UpdateCommand.Connection.Open();
  11172. }
  11173. try {
  11174. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  11175. return returnValue;
  11176. }
  11177. finally {
  11178. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11179. this.Adapter.UpdateCommand.Connection.Close();
  11180. }
  11181. }
  11182. }
  11183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11185. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11186. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  11187. public virtual int Update(string Title, decimal Cost, int DurationInSeconds, string Description, global::System.Nullable<double> Discount, string MainImagePath, int Original_ID, string Original_Title, decimal Original_Cost, int Original_DurationInSeconds, global::System.Nullable<double> Original_Discount, string Original_MainImagePath) {
  11188. return this.Update(Title, Cost, DurationInSeconds, Description, Discount, MainImagePath, Original_ID, Original_Title, Original_Cost, Original_DurationInSeconds, Original_Discount, Original_MainImagePath, Original_ID);
  11189. }
  11190. }
  11191. /// <summary>
  11192. ///Represents the connection and commands used to retrieve and save data.
  11193. ///</summary>
  11194. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  11195. [global::System.ComponentModel.ToolboxItem(true)]
  11196. [global::System.ComponentModel.DataObjectAttribute(true)]
  11197. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  11198. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  11199. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11200. public partial class Service_b_importTableAdapter : global::System.ComponentModel.Component {
  11201. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  11202. private global::System.Data.SqlClient.SqlConnection _connection;
  11203. private global::System.Data.SqlClient.SqlTransaction _transaction;
  11204. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  11205. private bool _clearBeforeFill;
  11206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11207. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11208. public Service_b_importTableAdapter() {
  11209. this.ClearBeforeFill = true;
  11210. }
  11211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11213. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  11214. get {
  11215. if ((this._adapter == null)) {
  11216. this.InitAdapter();
  11217. }
  11218. return this._adapter;
  11219. }
  11220. }
  11221. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11222. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11223. internal global::System.Data.SqlClient.SqlConnection Connection {
  11224. get {
  11225. if ((this._connection == null)) {
  11226. this.InitConnection();
  11227. }
  11228. return this._connection;
  11229. }
  11230. set {
  11231. this._connection = value;
  11232. if ((this.Adapter.InsertCommand != null)) {
  11233. this.Adapter.InsertCommand.Connection = value;
  11234. }
  11235. if ((this.Adapter.DeleteCommand != null)) {
  11236. this.Adapter.DeleteCommand.Connection = value;
  11237. }
  11238. if ((this.Adapter.UpdateCommand != null)) {
  11239. this.Adapter.UpdateCommand.Connection = value;
  11240. }
  11241. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  11242. if ((this.CommandCollection[i] != null)) {
  11243. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  11244. }
  11245. }
  11246. }
  11247. }
  11248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11249. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11250. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  11251. get {
  11252. return this._transaction;
  11253. }
  11254. set {
  11255. this._transaction = value;
  11256. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  11257. this.CommandCollection[i].Transaction = this._transaction;
  11258. }
  11259. if (((this.Adapter != null)
  11260. && (this.Adapter.DeleteCommand != null))) {
  11261. this.Adapter.DeleteCommand.Transaction = this._transaction;
  11262. }
  11263. if (((this.Adapter != null)
  11264. && (this.Adapter.InsertCommand != null))) {
  11265. this.Adapter.InsertCommand.Transaction = this._transaction;
  11266. }
  11267. if (((this.Adapter != null)
  11268. && (this.Adapter.UpdateCommand != null))) {
  11269. this.Adapter.UpdateCommand.Transaction = this._transaction;
  11270. }
  11271. }
  11272. }
  11273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11274. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11275. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  11276. get {
  11277. if ((this._commandCollection == null)) {
  11278. this.InitCommandCollection();
  11279. }
  11280. return this._commandCollection;
  11281. }
  11282. }
  11283. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11284. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11285. public bool ClearBeforeFill {
  11286. get {
  11287. return this._clearBeforeFill;
  11288. }
  11289. set {
  11290. this._clearBeforeFill = value;
  11291. }
  11292. }
  11293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11294. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11295. private void InitAdapter() {
  11296. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  11297. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  11298. tableMapping.SourceTable = "Table";
  11299. tableMapping.DataSetTable = "Service_b_import";
  11300. tableMapping.ColumnMappings.Add("Наименование_услуги", "Наименование_услуги");
  11301. tableMapping.ColumnMappings.Add("Главное_изображение", "Главное_изображение");
  11302. tableMapping.ColumnMappings.Add("Длительность", "Длительность");
  11303. tableMapping.ColumnMappings.Add("Стоимость", "Стоимость");
  11304. tableMapping.ColumnMappings.Add("Действующая_скидка", "Действующая_скидка");
  11305. tableMapping.ColumnMappings.Add("ID", "ID");
  11306. this._adapter.TableMappings.Add(tableMapping);
  11307. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  11308. this._adapter.DeleteCommand.Connection = this.Connection;
  11309. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Service_b_import] WHERE (([Наименование_услуги] = @Original_Наименование_услуги) AND ([Главное_изображение] = @Original_Главное_изображение) AND ([Длительность] = @Original_Длительность) AND ([Стоимость] = @Original_Стоимость) AND ([Действующая_скидка] = @Original_Действующая_скидка) AND ([ID] = @Original_ID))";
  11310. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  11311. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Наименование_услуги", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование_услуги", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11312. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Главное_изображение", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Главное_изображение", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11313. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Длительность", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Длительность", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11314. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Стоимость", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11315. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Действующая_скидка", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Действующая_скидка", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11316. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11317. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  11318. this._adapter.InsertCommand.Connection = this.Connection;
  11319. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Service_b_import] ([Наименование_услуги], [Главное_изображение], [Длительность], [Стоимость], [Действующая_скидка], [ID]) VALUES (@Наименование_услуги, @Главное_изображение, @Длительность, @Стоимость, @Действующая_скидка, @ID);
  11320. SELECT Наименование_услуги, Главное_изображение, Длительность, Стоимость, Действующая_скидка, ID FROM Service_b_import WHERE (ID = @ID)";
  11321. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  11322. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Наименование_услуги", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование_услуги", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11323. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Главное_изображение", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Главное_изображение", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11324. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Длительность", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Длительность", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11325. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Стоимость", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11326. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Действующая_скидка", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Действующая_скидка", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11327. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11328. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  11329. this._adapter.UpdateCommand.Connection = this.Connection;
  11330. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Service_b_import] SET [Наименование_услуги] = @Наименование_услуги, [Главное_изображение] = @Главное_изображение, [Длительность] = @Длительность, [Стоимость] = @Стоимость, [Действующая_скидка] = @Действующая_скидка, [ID] = @ID WHERE (([Наименование_услуги] = @Original_Наименование_услуги) AND ([Главное_изображение] = @Original_Главное_изображение) AND ([Длительность] = @Original_Длительность) AND ([Стоимость] = @Original_Стоимость) AND ([Действующая_скидка] = @Original_Действующая_скидка) AND ([ID] = @Original_ID));
  11331. SELECT Наименование_услуги, Главное_изображение, Длительность, Стоимость, Действующая_скидка, ID FROM Service_b_import WHERE (ID = @ID)";
  11332. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  11333. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Наименование_услуги", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование_услуги", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11334. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Главное_изображение", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Главное_изображение", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11335. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Длительность", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Длительность", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11336. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Стоимость", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11337. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Действующая_скидка", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Действующая_скидка", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11338. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11339. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Наименование_услуги", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование_услуги", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11340. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Главное_изображение", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Главное_изображение", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11341. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Длительность", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Длительность", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11342. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Стоимость", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11343. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Действующая_скидка", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Действующая_скидка", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11344. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11345. }
  11346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11347. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11348. private void InitConnection() {
  11349. this._connection = new global::System.Data.SqlClient.SqlConnection();
  11350. this._connection.ConnectionString = global::Yslugi_Salona_Krasot.Properties.Settings.Default.BarhotnieBrovkiConnectionString;
  11351. }
  11352. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11353. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11354. private void InitCommandCollection() {
  11355. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  11356. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  11357. this._commandCollection[0].Connection = this.Connection;
  11358. this._commandCollection[0].CommandText = "SELECT Наименование_услуги, Главное_изображение, Длительность, Стоимость, Действу" +
  11359. "ющая_скидка, ID FROM dbo.Service_b_import";
  11360. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  11361. }
  11362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11363. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11364. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11365. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  11366. public virtual int Fill(BarhotnieBrovkiDataSet.Service_b_importDataTable dataTable) {
  11367. this.Adapter.SelectCommand = this.CommandCollection[0];
  11368. if ((this.ClearBeforeFill == true)) {
  11369. dataTable.Clear();
  11370. }
  11371. int returnValue = this.Adapter.Fill(dataTable);
  11372. return returnValue;
  11373. }
  11374. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11375. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11376. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11377. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  11378. public virtual BarhotnieBrovkiDataSet.Service_b_importDataTable GetData() {
  11379. this.Adapter.SelectCommand = this.CommandCollection[0];
  11380. BarhotnieBrovkiDataSet.Service_b_importDataTable dataTable = new BarhotnieBrovkiDataSet.Service_b_importDataTable();
  11381. this.Adapter.Fill(dataTable);
  11382. return dataTable;
  11383. }
  11384. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11385. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11386. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11387. public virtual int Update(BarhotnieBrovkiDataSet.Service_b_importDataTable dataTable) {
  11388. return this.Adapter.Update(dataTable);
  11389. }
  11390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11392. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11393. public virtual int Update(BarhotnieBrovkiDataSet dataSet) {
  11394. return this.Adapter.Update(dataSet, "Service_b_import");
  11395. }
  11396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11398. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11399. public virtual int Update(global::System.Data.DataRow dataRow) {
  11400. return this.Adapter.Update(new global::System.Data.DataRow[] {
  11401. dataRow});
  11402. }
  11403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11404. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11405. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11406. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  11407. return this.Adapter.Update(dataRows);
  11408. }
  11409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11411. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11412. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  11413. public virtual int Delete(string Original_Наименование_услуги, string Original_Главное_изображение, string Original_Длительность, string Original_Стоимость, string Original_Действующая_скидка, long Original_ID) {
  11414. if ((Original_Наименование_услуги == null)) {
  11415. throw new global::System.ArgumentNullException("Original_Наименование_услуги");
  11416. }
  11417. else {
  11418. this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_Наименование_услуги));
  11419. }
  11420. if ((Original_Главное_изображение == null)) {
  11421. throw new global::System.ArgumentNullException("Original_Главное_изображение");
  11422. }
  11423. else {
  11424. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Главное_изображение));
  11425. }
  11426. if ((Original_Длительность == null)) {
  11427. throw new global::System.ArgumentNullException("Original_Длительность");
  11428. }
  11429. else {
  11430. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Длительность));
  11431. }
  11432. if ((Original_Стоимость == null)) {
  11433. throw new global::System.ArgumentNullException("Original_Стоимость");
  11434. }
  11435. else {
  11436. this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_Стоимость));
  11437. }
  11438. if ((Original_Действующая_скидка == null)) {
  11439. throw new global::System.ArgumentNullException("Original_Действующая_скидка");
  11440. }
  11441. else {
  11442. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Действующая_скидка));
  11443. }
  11444. this.Adapter.DeleteCommand.Parameters[5].Value = ((long)(Original_ID));
  11445. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  11446. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11447. != global::System.Data.ConnectionState.Open)) {
  11448. this.Adapter.DeleteCommand.Connection.Open();
  11449. }
  11450. try {
  11451. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  11452. return returnValue;
  11453. }
  11454. finally {
  11455. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11456. this.Adapter.DeleteCommand.Connection.Close();
  11457. }
  11458. }
  11459. }
  11460. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11461. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11462. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11463. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  11464. public virtual int Insert(string Наименование_услуги, string Главное_изображение, string Длительность, string Стоимость, string Действующая_скидка, long ID) {
  11465. if ((Наименование_услуги == null)) {
  11466. throw new global::System.ArgumentNullException("Наименование_услуги");
  11467. }
  11468. else {
  11469. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Наименование_услуги));
  11470. }
  11471. if ((Главное_изображение == null)) {
  11472. throw new global::System.ArgumentNullException("Главное_изображение");
  11473. }
  11474. else {
  11475. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Главное_изображение));
  11476. }
  11477. if ((Длительность == null)) {
  11478. throw new global::System.ArgumentNullException("Длительность");
  11479. }
  11480. else {
  11481. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Длительность));
  11482. }
  11483. if ((Стоимость == null)) {
  11484. throw new global::System.ArgumentNullException("Стоимость");
  11485. }
  11486. else {
  11487. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Стоимость));
  11488. }
  11489. if ((Действующая_скидка == null)) {
  11490. throw new global::System.ArgumentNullException("Действующая_скидка");
  11491. }
  11492. else {
  11493. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Действующая_скидка));
  11494. }
  11495. this.Adapter.InsertCommand.Parameters[5].Value = ((long)(ID));
  11496. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  11497. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11498. != global::System.Data.ConnectionState.Open)) {
  11499. this.Adapter.InsertCommand.Connection.Open();
  11500. }
  11501. try {
  11502. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  11503. return returnValue;
  11504. }
  11505. finally {
  11506. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11507. this.Adapter.InsertCommand.Connection.Close();
  11508. }
  11509. }
  11510. }
  11511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11512. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11513. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11514. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  11515. public virtual int Update(string Наименование_услуги, string Главное_изображение, string Длительность, string Стоимость, string Действующая_скидка, long ID, string Original_Наименование_услуги, string Original_Главное_изображение, string Original_Длительность, string Original_Стоимость, string Original_Действующая_скидка, long Original_ID) {
  11516. if ((Наименование_услуги == null)) {
  11517. throw new global::System.ArgumentNullException("Наименование_услуги");
  11518. }
  11519. else {
  11520. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Наименование_услуги));
  11521. }
  11522. if ((Главное_изображение == null)) {
  11523. throw new global::System.ArgumentNullException("Главное_изображение");
  11524. }
  11525. else {
  11526. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Главное_изображение));
  11527. }
  11528. if ((Длительность == null)) {
  11529. throw new global::System.ArgumentNullException("Длительность");
  11530. }
  11531. else {
  11532. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Длительность));
  11533. }
  11534. if ((Стоимость == null)) {
  11535. throw new global::System.ArgumentNullException("Стоимость");
  11536. }
  11537. else {
  11538. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Стоимость));
  11539. }
  11540. if ((Действующая_скидка == null)) {
  11541. throw new global::System.ArgumentNullException("Действующая_скидка");
  11542. }
  11543. else {
  11544. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Действующая_скидка));
  11545. }
  11546. this.Adapter.UpdateCommand.Parameters[5].Value = ((long)(ID));
  11547. if ((Original_Наименование_услуги == null)) {
  11548. throw new global::System.ArgumentNullException("Original_Наименование_услуги");
  11549. }
  11550. else {
  11551. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_Наименование_услуги));
  11552. }
  11553. if ((Original_Главное_изображение == null)) {
  11554. throw new global::System.ArgumentNullException("Original_Главное_изображение");
  11555. }
  11556. else {
  11557. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Главное_изображение));
  11558. }
  11559. if ((Original_Длительность == null)) {
  11560. throw new global::System.ArgumentNullException("Original_Длительность");
  11561. }
  11562. else {
  11563. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_Длительность));
  11564. }
  11565. if ((Original_Стоимость == null)) {
  11566. throw new global::System.ArgumentNullException("Original_Стоимость");
  11567. }
  11568. else {
  11569. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_Стоимость));
  11570. }
  11571. if ((Original_Действующая_скидка == null)) {
  11572. throw new global::System.ArgumentNullException("Original_Действующая_скидка");
  11573. }
  11574. else {
  11575. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_Действующая_скидка));
  11576. }
  11577. this.Adapter.UpdateCommand.Parameters[11].Value = ((long)(Original_ID));
  11578. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  11579. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11580. != global::System.Data.ConnectionState.Open)) {
  11581. this.Adapter.UpdateCommand.Connection.Open();
  11582. }
  11583. try {
  11584. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  11585. return returnValue;
  11586. }
  11587. finally {
  11588. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11589. this.Adapter.UpdateCommand.Connection.Close();
  11590. }
  11591. }
  11592. }
  11593. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11594. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11595. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11596. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  11597. public virtual int Update(string Наименование_услуги, string Главное_изображение, string Длительность, string Стоимость, string Действующая_скидка, string Original_Наименование_услуги, string Original_Главное_изображение, string Original_Длительность, string Original_Стоимость, string Original_Действующая_скидка, long Original_ID) {
  11598. return this.Update(Наименование_услуги, Главное_изображение, Длительность, Стоимость, Действующая_скидка, Original_ID, Original_Наименование_услуги, Original_Главное_изображение, Original_Длительность, Original_Стоимость, Original_Действующая_скидка, Original_ID);
  11599. }
  11600. }
  11601. /// <summary>
  11602. ///Represents the connection and commands used to retrieve and save data.
  11603. ///</summary>
  11604. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  11605. [global::System.ComponentModel.ToolboxItem(true)]
  11606. [global::System.ComponentModel.DataObjectAttribute(true)]
  11607. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  11608. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  11609. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11610. public partial class Serviceclient_b_importTableAdapter : global::System.ComponentModel.Component {
  11611. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  11612. private global::System.Data.SqlClient.SqlConnection _connection;
  11613. private global::System.Data.SqlClient.SqlTransaction _transaction;
  11614. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  11615. private bool _clearBeforeFill;
  11616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11617. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11618. public Serviceclient_b_importTableAdapter() {
  11619. this.ClearBeforeFill = true;
  11620. }
  11621. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11622. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11623. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  11624. get {
  11625. if ((this._adapter == null)) {
  11626. this.InitAdapter();
  11627. }
  11628. return this._adapter;
  11629. }
  11630. }
  11631. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11632. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11633. internal global::System.Data.SqlClient.SqlConnection Connection {
  11634. get {
  11635. if ((this._connection == null)) {
  11636. this.InitConnection();
  11637. }
  11638. return this._connection;
  11639. }
  11640. set {
  11641. this._connection = value;
  11642. if ((this.Adapter.InsertCommand != null)) {
  11643. this.Adapter.InsertCommand.Connection = value;
  11644. }
  11645. if ((this.Adapter.DeleteCommand != null)) {
  11646. this.Adapter.DeleteCommand.Connection = value;
  11647. }
  11648. if ((this.Adapter.UpdateCommand != null)) {
  11649. this.Adapter.UpdateCommand.Connection = value;
  11650. }
  11651. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  11652. if ((this.CommandCollection[i] != null)) {
  11653. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  11654. }
  11655. }
  11656. }
  11657. }
  11658. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11659. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11660. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  11661. get {
  11662. return this._transaction;
  11663. }
  11664. set {
  11665. this._transaction = value;
  11666. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  11667. this.CommandCollection[i].Transaction = this._transaction;
  11668. }
  11669. if (((this.Adapter != null)
  11670. && (this.Adapter.DeleteCommand != null))) {
  11671. this.Adapter.DeleteCommand.Transaction = this._transaction;
  11672. }
  11673. if (((this.Adapter != null)
  11674. && (this.Adapter.InsertCommand != null))) {
  11675. this.Adapter.InsertCommand.Transaction = this._transaction;
  11676. }
  11677. if (((this.Adapter != null)
  11678. && (this.Adapter.UpdateCommand != null))) {
  11679. this.Adapter.UpdateCommand.Transaction = this._transaction;
  11680. }
  11681. }
  11682. }
  11683. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11684. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11685. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  11686. get {
  11687. if ((this._commandCollection == null)) {
  11688. this.InitCommandCollection();
  11689. }
  11690. return this._commandCollection;
  11691. }
  11692. }
  11693. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11694. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11695. public bool ClearBeforeFill {
  11696. get {
  11697. return this._clearBeforeFill;
  11698. }
  11699. set {
  11700. this._clearBeforeFill = value;
  11701. }
  11702. }
  11703. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11704. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11705. private void InitAdapter() {
  11706. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  11707. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  11708. tableMapping.SourceTable = "Table";
  11709. tableMapping.DataSetTable = "Serviceclient_b_import";
  11710. tableMapping.ColumnMappings.Add("ID", "ID");
  11711. tableMapping.ColumnMappings.Add("Услуга", "Услуга");
  11712. tableMapping.ColumnMappings.Add("Начало_оказания_услуги", "Начало_оказания_услуги");
  11713. tableMapping.ColumnMappings.Add("Клиент", "Клиент");
  11714. this._adapter.TableMappings.Add(tableMapping);
  11715. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  11716. this._adapter.DeleteCommand.Connection = this.Connection;
  11717. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Serviceclient_b_import] WHERE (([ID] = @Original_ID) AND ([Усл" +
  11718. "уга] = @Original_Услуга) AND ([Начало_оказания_услуги] = @Original_Начало_оказан" +
  11719. "ия_услуги) AND ([Клиент] = @Original_Клиент))";
  11720. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  11721. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11722. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Услуга", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Услуга", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11723. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Начало_оказания_услуги", global::System.Data.SqlDbType.DateTime2, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Начало_оказания_услуги", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11724. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Клиент", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Клиент", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11725. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  11726. this._adapter.InsertCommand.Connection = this.Connection;
  11727. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Serviceclient_b_import] ([ID], [Услуга], [Начало_оказания_услу" +
  11728. "ги], [Клиент]) VALUES (@ID, @Услуга, @Начало_оказания_услуги, @Клиент);\r\nSELECT " +
  11729. "ID, Услуга, Начало_оказания_услуги, Клиент FROM Serviceclient_b_import WHERE (ID" +
  11730. " = @ID)";
  11731. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  11732. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11733. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Услуга", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Услуга", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11734. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Начало_оказания_услуги", global::System.Data.SqlDbType.DateTime2, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Начало_оказания_услуги", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11735. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Клиент", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Клиент", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11736. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  11737. this._adapter.UpdateCommand.Connection = this.Connection;
  11738. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Serviceclient_b_import] SET [ID] = @ID, [Услуга] = @Услуга, [Начало_оказания_услуги] = @Начало_оказания_услуги, [Клиент] = @Клиент WHERE (([ID] = @Original_ID) AND ([Услуга] = @Original_Услуга) AND ([Начало_оказания_услуги] = @Original_Начало_оказания_услуги) AND ([Клиент] = @Original_Клиент));
  11739. SELECT ID, Услуга, Начало_оказания_услуги, Клиент FROM Serviceclient_b_import WHERE (ID = @ID)";
  11740. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  11741. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11742. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Услуга", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Услуга", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11743. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Начало_оказания_услуги", global::System.Data.SqlDbType.DateTime2, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Начало_оказания_услуги", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11744. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Клиент", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Клиент", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11745. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11746. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Услуга", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Услуга", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11747. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Начало_оказания_услуги", global::System.Data.SqlDbType.DateTime2, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Начало_оказания_услуги", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11748. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Клиент", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Клиент", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11749. }
  11750. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11751. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11752. private void InitConnection() {
  11753. this._connection = new global::System.Data.SqlClient.SqlConnection();
  11754. this._connection.ConnectionString = global::Yslugi_Salona_Krasot.Properties.Settings.Default.BarhotnieBrovkiConnectionString;
  11755. }
  11756. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11757. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11758. private void InitCommandCollection() {
  11759. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  11760. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  11761. this._commandCollection[0].Connection = this.Connection;
  11762. this._commandCollection[0].CommandText = "SELECT ID, Услуга, Начало_оказания_услуги, Клиент FROM dbo.Serviceclient_b_import" +
  11763. "";
  11764. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  11765. }
  11766. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11767. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11768. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11769. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  11770. public virtual int Fill(BarhotnieBrovkiDataSet.Serviceclient_b_importDataTable dataTable) {
  11771. this.Adapter.SelectCommand = this.CommandCollection[0];
  11772. if ((this.ClearBeforeFill == true)) {
  11773. dataTable.Clear();
  11774. }
  11775. int returnValue = this.Adapter.Fill(dataTable);
  11776. return returnValue;
  11777. }
  11778. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11779. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11780. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11781. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  11782. public virtual BarhotnieBrovkiDataSet.Serviceclient_b_importDataTable GetData() {
  11783. this.Adapter.SelectCommand = this.CommandCollection[0];
  11784. BarhotnieBrovkiDataSet.Serviceclient_b_importDataTable dataTable = new BarhotnieBrovkiDataSet.Serviceclient_b_importDataTable();
  11785. this.Adapter.Fill(dataTable);
  11786. return dataTable;
  11787. }
  11788. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11789. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11790. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11791. public virtual int Update(BarhotnieBrovkiDataSet.Serviceclient_b_importDataTable dataTable) {
  11792. return this.Adapter.Update(dataTable);
  11793. }
  11794. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11795. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11796. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11797. public virtual int Update(BarhotnieBrovkiDataSet dataSet) {
  11798. return this.Adapter.Update(dataSet, "Serviceclient_b_import");
  11799. }
  11800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11802. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11803. public virtual int Update(global::System.Data.DataRow dataRow) {
  11804. return this.Adapter.Update(new global::System.Data.DataRow[] {
  11805. dataRow});
  11806. }
  11807. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11808. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11809. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11810. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  11811. return this.Adapter.Update(dataRows);
  11812. }
  11813. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11814. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11815. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11816. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  11817. public virtual int Delete(long Original_ID, string Original_Услуга, System.DateTime Original_Начало_оказания_услуги, string Original_Клиент) {
  11818. this.Adapter.DeleteCommand.Parameters[0].Value = ((long)(Original_ID));
  11819. if ((Original_Услуга == null)) {
  11820. throw new global::System.ArgumentNullException("Original_Услуга");
  11821. }
  11822. else {
  11823. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Услуга));
  11824. }
  11825. this.Adapter.DeleteCommand.Parameters[2].Value = ((System.DateTime)(Original_Начало_оказания_услуги));
  11826. if ((Original_Клиент == null)) {
  11827. throw new global::System.ArgumentNullException("Original_Клиент");
  11828. }
  11829. else {
  11830. this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_Клиент));
  11831. }
  11832. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  11833. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11834. != global::System.Data.ConnectionState.Open)) {
  11835. this.Adapter.DeleteCommand.Connection.Open();
  11836. }
  11837. try {
  11838. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  11839. return returnValue;
  11840. }
  11841. finally {
  11842. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11843. this.Adapter.DeleteCommand.Connection.Close();
  11844. }
  11845. }
  11846. }
  11847. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11848. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11849. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11850. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  11851. public virtual int Insert(long ID, string Услуга, System.DateTime Начало_оказания_услуги, string Клиент) {
  11852. this.Adapter.InsertCommand.Parameters[0].Value = ((long)(ID));
  11853. if ((Услуга == null)) {
  11854. throw new global::System.ArgumentNullException("Услуга");
  11855. }
  11856. else {
  11857. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Услуга));
  11858. }
  11859. this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(Начало_оказания_услуги));
  11860. if ((Клиент == null)) {
  11861. throw new global::System.ArgumentNullException("Клиент");
  11862. }
  11863. else {
  11864. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Клиент));
  11865. }
  11866. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  11867. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11868. != global::System.Data.ConnectionState.Open)) {
  11869. this.Adapter.InsertCommand.Connection.Open();
  11870. }
  11871. try {
  11872. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  11873. return returnValue;
  11874. }
  11875. finally {
  11876. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11877. this.Adapter.InsertCommand.Connection.Close();
  11878. }
  11879. }
  11880. }
  11881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11883. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11884. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  11885. public virtual int Update(long ID, string Услуга, System.DateTime Начало_оказания_услуги, string Клиент, long Original_ID, string Original_Услуга, System.DateTime Original_Начало_оказания_услуги, string Original_Клиент) {
  11886. this.Adapter.UpdateCommand.Parameters[0].Value = ((long)(ID));
  11887. if ((Услуга == null)) {
  11888. throw new global::System.ArgumentNullException("Услуга");
  11889. }
  11890. else {
  11891. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Услуга));
  11892. }
  11893. this.Adapter.UpdateCommand.Parameters[2].Value = ((System.DateTime)(Начало_оказания_услуги));
  11894. if ((Клиент == null)) {
  11895. throw new global::System.ArgumentNullException("Клиент");
  11896. }
  11897. else {
  11898. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Клиент));
  11899. }
  11900. this.Adapter.UpdateCommand.Parameters[4].Value = ((long)(Original_ID));
  11901. if ((Original_Услуга == null)) {
  11902. throw new global::System.ArgumentNullException("Original_Услуга");
  11903. }
  11904. else {
  11905. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Услуга));
  11906. }
  11907. this.Adapter.UpdateCommand.Parameters[6].Value = ((System.DateTime)(Original_Начало_оказания_услуги));
  11908. if ((Original_Клиент == null)) {
  11909. throw new global::System.ArgumentNullException("Original_Клиент");
  11910. }
  11911. else {
  11912. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Клиент));
  11913. }
  11914. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  11915. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11916. != global::System.Data.ConnectionState.Open)) {
  11917. this.Adapter.UpdateCommand.Connection.Open();
  11918. }
  11919. try {
  11920. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  11921. return returnValue;
  11922. }
  11923. finally {
  11924. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11925. this.Adapter.UpdateCommand.Connection.Close();
  11926. }
  11927. }
  11928. }
  11929. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11930. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11931. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11932. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  11933. public virtual int Update(string Услуга, System.DateTime Начало_оказания_услуги, string Клиент, long Original_ID, string Original_Услуга, System.DateTime Original_Начало_оказания_услуги, string Original_Клиент) {
  11934. return this.Update(Original_ID, Услуга, Начало_оказания_услуги, Клиент, Original_ID, Original_Услуга, Original_Начало_оказания_услуги, Original_Клиент);
  11935. }
  11936. }
  11937. /// <summary>
  11938. ///Represents the connection and commands used to retrieve and save data.
  11939. ///</summary>
  11940. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  11941. [global::System.ComponentModel.ToolboxItem(true)]
  11942. [global::System.ComponentModel.DataObjectAttribute(true)]
  11943. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  11944. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  11945. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11946. public partial class ServicePhotoTableAdapter : global::System.ComponentModel.Component {
  11947. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  11948. private global::System.Data.SqlClient.SqlConnection _connection;
  11949. private global::System.Data.SqlClient.SqlTransaction _transaction;
  11950. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  11951. private bool _clearBeforeFill;
  11952. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11953. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11954. public ServicePhotoTableAdapter() {
  11955. this.ClearBeforeFill = true;
  11956. }
  11957. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11958. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11959. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  11960. get {
  11961. if ((this._adapter == null)) {
  11962. this.InitAdapter();
  11963. }
  11964. return this._adapter;
  11965. }
  11966. }
  11967. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11968. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11969. internal global::System.Data.SqlClient.SqlConnection Connection {
  11970. get {
  11971. if ((this._connection == null)) {
  11972. this.InitConnection();
  11973. }
  11974. return this._connection;
  11975. }
  11976. set {
  11977. this._connection = value;
  11978. if ((this.Adapter.InsertCommand != null)) {
  11979. this.Adapter.InsertCommand.Connection = value;
  11980. }
  11981. if ((this.Adapter.DeleteCommand != null)) {
  11982. this.Adapter.DeleteCommand.Connection = value;
  11983. }
  11984. if ((this.Adapter.UpdateCommand != null)) {
  11985. this.Adapter.UpdateCommand.Connection = value;
  11986. }
  11987. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  11988. if ((this.CommandCollection[i] != null)) {
  11989. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  11990. }
  11991. }
  11992. }
  11993. }
  11994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11995. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11996. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  11997. get {
  11998. return this._transaction;
  11999. }
  12000. set {
  12001. this._transaction = value;
  12002. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  12003. this.CommandCollection[i].Transaction = this._transaction;
  12004. }
  12005. if (((this.Adapter != null)
  12006. && (this.Adapter.DeleteCommand != null))) {
  12007. this.Adapter.DeleteCommand.Transaction = this._transaction;
  12008. }
  12009. if (((this.Adapter != null)
  12010. && (this.Adapter.InsertCommand != null))) {
  12011. this.Adapter.InsertCommand.Transaction = this._transaction;
  12012. }
  12013. if (((this.Adapter != null)
  12014. && (this.Adapter.UpdateCommand != null))) {
  12015. this.Adapter.UpdateCommand.Transaction = this._transaction;
  12016. }
  12017. }
  12018. }
  12019. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12020. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12021. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  12022. get {
  12023. if ((this._commandCollection == null)) {
  12024. this.InitCommandCollection();
  12025. }
  12026. return this._commandCollection;
  12027. }
  12028. }
  12029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12031. public bool ClearBeforeFill {
  12032. get {
  12033. return this._clearBeforeFill;
  12034. }
  12035. set {
  12036. this._clearBeforeFill = value;
  12037. }
  12038. }
  12039. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12041. private void InitAdapter() {
  12042. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  12043. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  12044. tableMapping.SourceTable = "Table";
  12045. tableMapping.DataSetTable = "ServicePhoto";
  12046. tableMapping.ColumnMappings.Add("ID", "ID");
  12047. tableMapping.ColumnMappings.Add("ServiceID", "ServiceID");
  12048. tableMapping.ColumnMappings.Add("PhotoPath", "PhotoPath");
  12049. this._adapter.TableMappings.Add(tableMapping);
  12050. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  12051. this._adapter.DeleteCommand.Connection = this.Connection;
  12052. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ServicePhoto] WHERE (([ID] = @Original_ID) AND ([ServiceID] = " +
  12053. "@Original_ServiceID) AND ([PhotoPath] = @Original_PhotoPath))";
  12054. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  12055. 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, "", "", ""));
  12056. 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, "", "", ""));
  12057. 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, "", "", ""));
  12058. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  12059. this._adapter.InsertCommand.Connection = this.Connection;
  12060. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ServicePhoto] ([ServiceID], [PhotoPath]) VALUES (@ServiceID, @" +
  12061. "PhotoPath);\r\nSELECT ID, ServiceID, PhotoPath FROM ServicePhoto WHERE (ID = SCOPE" +
  12062. "_IDENTITY())";
  12063. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  12064. 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, "", "", ""));
  12065. 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, "", "", ""));
  12066. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  12067. this._adapter.UpdateCommand.Connection = this.Connection;
  12068. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ServicePhoto] SET [ServiceID] = @ServiceID, [PhotoPath] = @PhotoPath WHERE (([ID] = @Original_ID) AND ([ServiceID] = @Original_ServiceID) AND ([PhotoPath] = @Original_PhotoPath));
  12069. SELECT ID, ServiceID, PhotoPath FROM ServicePhoto WHERE (ID = @ID)";
  12070. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  12071. 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, "", "", ""));
  12072. 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, "", "", ""));
  12073. 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, "", "", ""));
  12074. 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, "", "", ""));
  12075. 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, "", "", ""));
  12076. 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, "", "", ""));
  12077. }
  12078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12079. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12080. private void InitConnection() {
  12081. this._connection = new global::System.Data.SqlClient.SqlConnection();
  12082. this._connection.ConnectionString = global::Yslugi_Salona_Krasot.Properties.Settings.Default.BarhotnieBrovkiConnectionString;
  12083. }
  12084. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12085. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12086. private void InitCommandCollection() {
  12087. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  12088. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  12089. this._commandCollection[0].Connection = this.Connection;
  12090. this._commandCollection[0].CommandText = "SELECT ID, ServiceID, PhotoPath FROM dbo.ServicePhoto";
  12091. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  12092. }
  12093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12094. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12095. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12096. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  12097. public virtual int Fill(BarhotnieBrovkiDataSet.ServicePhotoDataTable dataTable) {
  12098. this.Adapter.SelectCommand = this.CommandCollection[0];
  12099. if ((this.ClearBeforeFill == true)) {
  12100. dataTable.Clear();
  12101. }
  12102. int returnValue = this.Adapter.Fill(dataTable);
  12103. return returnValue;
  12104. }
  12105. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12106. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12107. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12108. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  12109. public virtual BarhotnieBrovkiDataSet.ServicePhotoDataTable GetData() {
  12110. this.Adapter.SelectCommand = this.CommandCollection[0];
  12111. BarhotnieBrovkiDataSet.ServicePhotoDataTable dataTable = new BarhotnieBrovkiDataSet.ServicePhotoDataTable();
  12112. this.Adapter.Fill(dataTable);
  12113. return dataTable;
  12114. }
  12115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12116. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12117. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12118. public virtual int Update(BarhotnieBrovkiDataSet.ServicePhotoDataTable dataTable) {
  12119. return this.Adapter.Update(dataTable);
  12120. }
  12121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12123. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12124. public virtual int Update(BarhotnieBrovkiDataSet dataSet) {
  12125. return this.Adapter.Update(dataSet, "ServicePhoto");
  12126. }
  12127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12128. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12129. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12130. public virtual int Update(global::System.Data.DataRow dataRow) {
  12131. return this.Adapter.Update(new global::System.Data.DataRow[] {
  12132. dataRow});
  12133. }
  12134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12135. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12136. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12137. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  12138. return this.Adapter.Update(dataRows);
  12139. }
  12140. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12141. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12142. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12143. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  12144. public virtual int Delete(int Original_ID, int Original_ServiceID, string Original_PhotoPath) {
  12145. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  12146. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ServiceID));
  12147. if ((Original_PhotoPath == null)) {
  12148. throw new global::System.ArgumentNullException("Original_PhotoPath");
  12149. }
  12150. else {
  12151. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_PhotoPath));
  12152. }
  12153. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  12154. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  12155. != global::System.Data.ConnectionState.Open)) {
  12156. this.Adapter.DeleteCommand.Connection.Open();
  12157. }
  12158. try {
  12159. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  12160. return returnValue;
  12161. }
  12162. finally {
  12163. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  12164. this.Adapter.DeleteCommand.Connection.Close();
  12165. }
  12166. }
  12167. }
  12168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12169. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12170. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12171. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  12172. public virtual int Insert(int ServiceID, string PhotoPath) {
  12173. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ServiceID));
  12174. if ((PhotoPath == null)) {
  12175. throw new global::System.ArgumentNullException("PhotoPath");
  12176. }
  12177. else {
  12178. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(PhotoPath));
  12179. }
  12180. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  12181. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  12182. != global::System.Data.ConnectionState.Open)) {
  12183. this.Adapter.InsertCommand.Connection.Open();
  12184. }
  12185. try {
  12186. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  12187. return returnValue;
  12188. }
  12189. finally {
  12190. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  12191. this.Adapter.InsertCommand.Connection.Close();
  12192. }
  12193. }
  12194. }
  12195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12197. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12198. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  12199. public virtual int Update(int ServiceID, string PhotoPath, int Original_ID, int Original_ServiceID, string Original_PhotoPath, int ID) {
  12200. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ServiceID));
  12201. if ((PhotoPath == null)) {
  12202. throw new global::System.ArgumentNullException("PhotoPath");
  12203. }
  12204. else {
  12205. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(PhotoPath));
  12206. }
  12207. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  12208. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ServiceID));
  12209. if ((Original_PhotoPath == null)) {
  12210. throw new global::System.ArgumentNullException("Original_PhotoPath");
  12211. }
  12212. else {
  12213. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_PhotoPath));
  12214. }
  12215. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID));
  12216. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  12217. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  12218. != global::System.Data.ConnectionState.Open)) {
  12219. this.Adapter.UpdateCommand.Connection.Open();
  12220. }
  12221. try {
  12222. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  12223. return returnValue;
  12224. }
  12225. finally {
  12226. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  12227. this.Adapter.UpdateCommand.Connection.Close();
  12228. }
  12229. }
  12230. }
  12231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12233. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12234. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  12235. public virtual int Update(int ServiceID, string PhotoPath, int Original_ID, int Original_ServiceID, string Original_PhotoPath) {
  12236. return this.Update(ServiceID, PhotoPath, Original_ID, Original_ServiceID, Original_PhotoPath, Original_ID);
  12237. }
  12238. }
  12239. /// <summary>
  12240. ///Represents the connection and commands used to retrieve and save data.
  12241. ///</summary>
  12242. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  12243. [global::System.ComponentModel.ToolboxItem(true)]
  12244. [global::System.ComponentModel.DataObjectAttribute(true)]
  12245. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  12246. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  12247. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12248. public partial class TagTableAdapter : global::System.ComponentModel.Component {
  12249. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  12250. private global::System.Data.SqlClient.SqlConnection _connection;
  12251. private global::System.Data.SqlClient.SqlTransaction _transaction;
  12252. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  12253. private bool _clearBeforeFill;
  12254. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12255. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12256. public TagTableAdapter() {
  12257. this.ClearBeforeFill = true;
  12258. }
  12259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12260. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12261. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  12262. get {
  12263. if ((this._adapter == null)) {
  12264. this.InitAdapter();
  12265. }
  12266. return this._adapter;
  12267. }
  12268. }
  12269. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12270. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12271. internal global::System.Data.SqlClient.SqlConnection Connection {
  12272. get {
  12273. if ((this._connection == null)) {
  12274. this.InitConnection();
  12275. }
  12276. return this._connection;
  12277. }
  12278. set {
  12279. this._connection = value;
  12280. if ((this.Adapter.InsertCommand != null)) {
  12281. this.Adapter.InsertCommand.Connection = value;
  12282. }
  12283. if ((this.Adapter.DeleteCommand != null)) {
  12284. this.Adapter.DeleteCommand.Connection = value;
  12285. }
  12286. if ((this.Adapter.UpdateCommand != null)) {
  12287. this.Adapter.UpdateCommand.Connection = value;
  12288. }
  12289. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  12290. if ((this.CommandCollection[i] != null)) {
  12291. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  12292. }
  12293. }
  12294. }
  12295. }
  12296. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12297. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12298. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  12299. get {
  12300. return this._transaction;
  12301. }
  12302. set {
  12303. this._transaction = value;
  12304. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  12305. this.CommandCollection[i].Transaction = this._transaction;
  12306. }
  12307. if (((this.Adapter != null)
  12308. && (this.Adapter.DeleteCommand != null))) {
  12309. this.Adapter.DeleteCommand.Transaction = this._transaction;
  12310. }
  12311. if (((this.Adapter != null)
  12312. && (this.Adapter.InsertCommand != null))) {
  12313. this.Adapter.InsertCommand.Transaction = this._transaction;
  12314. }
  12315. if (((this.Adapter != null)
  12316. && (this.Adapter.UpdateCommand != null))) {
  12317. this.Adapter.UpdateCommand.Transaction = this._transaction;
  12318. }
  12319. }
  12320. }
  12321. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12322. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12323. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  12324. get {
  12325. if ((this._commandCollection == null)) {
  12326. this.InitCommandCollection();
  12327. }
  12328. return this._commandCollection;
  12329. }
  12330. }
  12331. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12332. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12333. public bool ClearBeforeFill {
  12334. get {
  12335. return this._clearBeforeFill;
  12336. }
  12337. set {
  12338. this._clearBeforeFill = value;
  12339. }
  12340. }
  12341. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12342. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12343. private void InitAdapter() {
  12344. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  12345. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  12346. tableMapping.SourceTable = "Table";
  12347. tableMapping.DataSetTable = "Tag";
  12348. tableMapping.ColumnMappings.Add("ID", "ID");
  12349. tableMapping.ColumnMappings.Add("Title", "Title");
  12350. tableMapping.ColumnMappings.Add("Color", "Color");
  12351. this._adapter.TableMappings.Add(tableMapping);
  12352. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  12353. this._adapter.DeleteCommand.Connection = this.Connection;
  12354. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Tag] WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Tit" +
  12355. "le) AND ([Color] = @Original_Color))";
  12356. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  12357. 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, "", "", ""));
  12358. 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, "", "", ""));
  12359. 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, "", "", ""));
  12360. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  12361. this._adapter.InsertCommand.Connection = this.Connection;
  12362. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Tag] ([Title], [Color]) VALUES (@Title, @Color);\r\nSELECT ID, T" +
  12363. "itle, Color FROM Tag WHERE (ID = SCOPE_IDENTITY())";
  12364. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  12365. 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, "", "", ""));
  12366. 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, "", "", ""));
  12367. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  12368. this._adapter.UpdateCommand.Connection = this.Connection;
  12369. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Tag] SET [Title] = @Title, [Color] = @Color WHERE (([ID] = @Origina" +
  12370. "l_ID) AND ([Title] = @Original_Title) AND ([Color] = @Original_Color));\r\nSELECT " +
  12371. "ID, Title, Color FROM Tag WHERE (ID = @ID)";
  12372. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  12373. 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, "", "", ""));
  12374. 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, "", "", ""));
  12375. 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, "", "", ""));
  12376. 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, "", "", ""));
  12377. 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, "", "", ""));
  12378. 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, "", "", ""));
  12379. }
  12380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12382. private void InitConnection() {
  12383. this._connection = new global::System.Data.SqlClient.SqlConnection();
  12384. this._connection.ConnectionString = global::Yslugi_Salona_Krasot.Properties.Settings.Default.BarhotnieBrovkiConnectionString;
  12385. }
  12386. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12387. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12388. private void InitCommandCollection() {
  12389. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  12390. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  12391. this._commandCollection[0].Connection = this.Connection;
  12392. this._commandCollection[0].CommandText = "SELECT ID, Title, Color FROM dbo.Tag";
  12393. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  12394. }
  12395. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12396. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12397. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12398. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  12399. public virtual int Fill(BarhotnieBrovkiDataSet.TagDataTable dataTable) {
  12400. this.Adapter.SelectCommand = this.CommandCollection[0];
  12401. if ((this.ClearBeforeFill == true)) {
  12402. dataTable.Clear();
  12403. }
  12404. int returnValue = this.Adapter.Fill(dataTable);
  12405. return returnValue;
  12406. }
  12407. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12408. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12409. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12410. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  12411. public virtual BarhotnieBrovkiDataSet.TagDataTable GetData() {
  12412. this.Adapter.SelectCommand = this.CommandCollection[0];
  12413. BarhotnieBrovkiDataSet.TagDataTable dataTable = new BarhotnieBrovkiDataSet.TagDataTable();
  12414. this.Adapter.Fill(dataTable);
  12415. return dataTable;
  12416. }
  12417. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12418. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12419. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12420. public virtual int Update(BarhotnieBrovkiDataSet.TagDataTable dataTable) {
  12421. return this.Adapter.Update(dataTable);
  12422. }
  12423. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12424. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12425. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12426. public virtual int Update(BarhotnieBrovkiDataSet dataSet) {
  12427. return this.Adapter.Update(dataSet, "Tag");
  12428. }
  12429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12431. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12432. public virtual int Update(global::System.Data.DataRow dataRow) {
  12433. return this.Adapter.Update(new global::System.Data.DataRow[] {
  12434. dataRow});
  12435. }
  12436. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12437. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12438. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12439. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  12440. return this.Adapter.Update(dataRows);
  12441. }
  12442. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12443. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12444. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12445. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  12446. public virtual int Delete(int Original_ID, string Original_Title, string Original_Color) {
  12447. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  12448. if ((Original_Title == null)) {
  12449. throw new global::System.ArgumentNullException("Original_Title");
  12450. }
  12451. else {
  12452. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Title));
  12453. }
  12454. if ((Original_Color == null)) {
  12455. throw new global::System.ArgumentNullException("Original_Color");
  12456. }
  12457. else {
  12458. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Color));
  12459. }
  12460. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  12461. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  12462. != global::System.Data.ConnectionState.Open)) {
  12463. this.Adapter.DeleteCommand.Connection.Open();
  12464. }
  12465. try {
  12466. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  12467. return returnValue;
  12468. }
  12469. finally {
  12470. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  12471. this.Adapter.DeleteCommand.Connection.Close();
  12472. }
  12473. }
  12474. }
  12475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12477. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12478. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  12479. public virtual int Insert(string Title, string Color) {
  12480. if ((Title == null)) {
  12481. throw new global::System.ArgumentNullException("Title");
  12482. }
  12483. else {
  12484. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  12485. }
  12486. if ((Color == null)) {
  12487. throw new global::System.ArgumentNullException("Color");
  12488. }
  12489. else {
  12490. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Color));
  12491. }
  12492. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  12493. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  12494. != global::System.Data.ConnectionState.Open)) {
  12495. this.Adapter.InsertCommand.Connection.Open();
  12496. }
  12497. try {
  12498. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  12499. return returnValue;
  12500. }
  12501. finally {
  12502. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  12503. this.Adapter.InsertCommand.Connection.Close();
  12504. }
  12505. }
  12506. }
  12507. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12508. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12509. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12510. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  12511. public virtual int Update(string Title, string Color, int Original_ID, string Original_Title, string Original_Color, int ID) {
  12512. if ((Title == null)) {
  12513. throw new global::System.ArgumentNullException("Title");
  12514. }
  12515. else {
  12516. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  12517. }
  12518. if ((Color == null)) {
  12519. throw new global::System.ArgumentNullException("Color");
  12520. }
  12521. else {
  12522. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Color));
  12523. }
  12524. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  12525. if ((Original_Title == null)) {
  12526. throw new global::System.ArgumentNullException("Original_Title");
  12527. }
  12528. else {
  12529. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Title));
  12530. }
  12531. if ((Original_Color == null)) {
  12532. throw new global::System.ArgumentNullException("Original_Color");
  12533. }
  12534. else {
  12535. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Color));
  12536. }
  12537. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID));
  12538. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  12539. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  12540. != global::System.Data.ConnectionState.Open)) {
  12541. this.Adapter.UpdateCommand.Connection.Open();
  12542. }
  12543. try {
  12544. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  12545. return returnValue;
  12546. }
  12547. finally {
  12548. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  12549. this.Adapter.UpdateCommand.Connection.Close();
  12550. }
  12551. }
  12552. }
  12553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12555. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12556. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  12557. public virtual int Update(string Title, string Color, int Original_ID, string Original_Title, string Original_Color) {
  12558. return this.Update(Title, Color, Original_ID, Original_Title, Original_Color, Original_ID);
  12559. }
  12560. }
  12561. /// <summary>
  12562. ///Represents the connection and commands used to retrieve and save data.
  12563. ///</summary>
  12564. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  12565. [global::System.ComponentModel.ToolboxItem(true)]
  12566. [global::System.ComponentModel.DataObjectAttribute(true)]
  12567. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  12568. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  12569. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12570. public partial class TagOfClientTableAdapter : global::System.ComponentModel.Component {
  12571. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  12572. private global::System.Data.SqlClient.SqlConnection _connection;
  12573. private global::System.Data.SqlClient.SqlTransaction _transaction;
  12574. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  12575. private bool _clearBeforeFill;
  12576. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12577. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12578. public TagOfClientTableAdapter() {
  12579. this.ClearBeforeFill = true;
  12580. }
  12581. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12582. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12583. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  12584. get {
  12585. if ((this._adapter == null)) {
  12586. this.InitAdapter();
  12587. }
  12588. return this._adapter;
  12589. }
  12590. }
  12591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12592. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12593. internal global::System.Data.SqlClient.SqlConnection Connection {
  12594. get {
  12595. if ((this._connection == null)) {
  12596. this.InitConnection();
  12597. }
  12598. return this._connection;
  12599. }
  12600. set {
  12601. this._connection = value;
  12602. if ((this.Adapter.InsertCommand != null)) {
  12603. this.Adapter.InsertCommand.Connection = value;
  12604. }
  12605. if ((this.Adapter.DeleteCommand != null)) {
  12606. this.Adapter.DeleteCommand.Connection = value;
  12607. }
  12608. if ((this.Adapter.UpdateCommand != null)) {
  12609. this.Adapter.UpdateCommand.Connection = value;
  12610. }
  12611. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  12612. if ((this.CommandCollection[i] != null)) {
  12613. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  12614. }
  12615. }
  12616. }
  12617. }
  12618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12619. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12620. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  12621. get {
  12622. return this._transaction;
  12623. }
  12624. set {
  12625. this._transaction = value;
  12626. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  12627. this.CommandCollection[i].Transaction = this._transaction;
  12628. }
  12629. if (((this.Adapter != null)
  12630. && (this.Adapter.DeleteCommand != null))) {
  12631. this.Adapter.DeleteCommand.Transaction = this._transaction;
  12632. }
  12633. if (((this.Adapter != null)
  12634. && (this.Adapter.InsertCommand != null))) {
  12635. this.Adapter.InsertCommand.Transaction = this._transaction;
  12636. }
  12637. if (((this.Adapter != null)
  12638. && (this.Adapter.UpdateCommand != null))) {
  12639. this.Adapter.UpdateCommand.Transaction = this._transaction;
  12640. }
  12641. }
  12642. }
  12643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12644. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12645. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  12646. get {
  12647. if ((this._commandCollection == null)) {
  12648. this.InitCommandCollection();
  12649. }
  12650. return this._commandCollection;
  12651. }
  12652. }
  12653. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12654. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12655. public bool ClearBeforeFill {
  12656. get {
  12657. return this._clearBeforeFill;
  12658. }
  12659. set {
  12660. this._clearBeforeFill = value;
  12661. }
  12662. }
  12663. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12664. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12665. private void InitAdapter() {
  12666. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  12667. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  12668. tableMapping.SourceTable = "Table";
  12669. tableMapping.DataSetTable = "TagOfClient";
  12670. tableMapping.ColumnMappings.Add("ClientID", "ClientID");
  12671. tableMapping.ColumnMappings.Add("TagID", "TagID");
  12672. this._adapter.TableMappings.Add(tableMapping);
  12673. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  12674. this._adapter.DeleteCommand.Connection = this.Connection;
  12675. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[TagOfClient] WHERE (([ClientID] = @Original_ClientID) AND ([Ta" +
  12676. "gID] = @Original_TagID))";
  12677. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  12678. 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, "", "", ""));
  12679. 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, "", "", ""));
  12680. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  12681. this._adapter.InsertCommand.Connection = this.Connection;
  12682. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[TagOfClient] ([ClientID], [TagID]) VALUES (@ClientID, @TagID);" +
  12683. "\r\nSELECT ClientID, TagID FROM TagOfClient WHERE (ClientID = @ClientID) AND (TagI" +
  12684. "D = @TagID)";
  12685. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  12686. 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, "", "", ""));
  12687. 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, "", "", ""));
  12688. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  12689. this._adapter.UpdateCommand.Connection = this.Connection;
  12690. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[TagOfClient] SET [ClientID] = @ClientID, [TagID] = @TagID WHERE (([" +
  12691. "ClientID] = @Original_ClientID) AND ([TagID] = @Original_TagID));\r\nSELECT Client" +
  12692. "ID, TagID FROM TagOfClient WHERE (ClientID = @ClientID) AND (TagID = @TagID)";
  12693. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  12694. 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, "", "", ""));
  12695. 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, "", "", ""));
  12696. 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, "", "", ""));
  12697. 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, "", "", ""));
  12698. }
  12699. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12700. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12701. private void InitConnection() {
  12702. this._connection = new global::System.Data.SqlClient.SqlConnection();
  12703. this._connection.ConnectionString = global::Yslugi_Salona_Krasot.Properties.Settings.Default.BarhotnieBrovkiConnectionString;
  12704. }
  12705. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12706. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12707. private void InitCommandCollection() {
  12708. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  12709. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  12710. this._commandCollection[0].Connection = this.Connection;
  12711. this._commandCollection[0].CommandText = "SELECT ClientID, TagID FROM dbo.TagOfClient";
  12712. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  12713. }
  12714. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12715. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12716. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12717. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  12718. public virtual int Fill(BarhotnieBrovkiDataSet.TagOfClientDataTable dataTable) {
  12719. this.Adapter.SelectCommand = this.CommandCollection[0];
  12720. if ((this.ClearBeforeFill == true)) {
  12721. dataTable.Clear();
  12722. }
  12723. int returnValue = this.Adapter.Fill(dataTable);
  12724. return returnValue;
  12725. }
  12726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12728. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12729. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  12730. public virtual BarhotnieBrovkiDataSet.TagOfClientDataTable GetData() {
  12731. this.Adapter.SelectCommand = this.CommandCollection[0];
  12732. BarhotnieBrovkiDataSet.TagOfClientDataTable dataTable = new BarhotnieBrovkiDataSet.TagOfClientDataTable();
  12733. this.Adapter.Fill(dataTable);
  12734. return dataTable;
  12735. }
  12736. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12737. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12738. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12739. public virtual int Update(BarhotnieBrovkiDataSet.TagOfClientDataTable dataTable) {
  12740. return this.Adapter.Update(dataTable);
  12741. }
  12742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12743. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12744. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12745. public virtual int Update(BarhotnieBrovkiDataSet dataSet) {
  12746. return this.Adapter.Update(dataSet, "TagOfClient");
  12747. }
  12748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12750. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12751. public virtual int Update(global::System.Data.DataRow dataRow) {
  12752. return this.Adapter.Update(new global::System.Data.DataRow[] {
  12753. dataRow});
  12754. }
  12755. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12756. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12757. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12758. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  12759. return this.Adapter.Update(dataRows);
  12760. }
  12761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12763. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12764. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  12765. public virtual int Delete(int Original_ClientID, int Original_TagID) {
  12766. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ClientID));
  12767. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_TagID));
  12768. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  12769. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  12770. != global::System.Data.ConnectionState.Open)) {
  12771. this.Adapter.DeleteCommand.Connection.Open();
  12772. }
  12773. try {
  12774. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  12775. return returnValue;
  12776. }
  12777. finally {
  12778. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  12779. this.Adapter.DeleteCommand.Connection.Close();
  12780. }
  12781. }
  12782. }
  12783. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12784. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12785. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12786. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  12787. public virtual int Insert(int ClientID, int TagID) {
  12788. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ClientID));
  12789. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(TagID));
  12790. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  12791. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  12792. != global::System.Data.ConnectionState.Open)) {
  12793. this.Adapter.InsertCommand.Connection.Open();
  12794. }
  12795. try {
  12796. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  12797. return returnValue;
  12798. }
  12799. finally {
  12800. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  12801. this.Adapter.InsertCommand.Connection.Close();
  12802. }
  12803. }
  12804. }
  12805. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12806. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12807. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12808. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  12809. public virtual int Update(int ClientID, int TagID, int Original_ClientID, int Original_TagID) {
  12810. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ClientID));
  12811. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(TagID));
  12812. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ClientID));
  12813. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_TagID));
  12814. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  12815. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  12816. != global::System.Data.ConnectionState.Open)) {
  12817. this.Adapter.UpdateCommand.Connection.Open();
  12818. }
  12819. try {
  12820. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  12821. return returnValue;
  12822. }
  12823. finally {
  12824. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  12825. this.Adapter.UpdateCommand.Connection.Close();
  12826. }
  12827. }
  12828. }
  12829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12830. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12831. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12832. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  12833. public virtual int Update(int Original_ClientID, int Original_TagID) {
  12834. return this.Update(Original_ClientID, Original_TagID, Original_ClientID, Original_TagID);
  12835. }
  12836. }
  12837. /// <summary>
  12838. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  12839. ///</summary>
  12840. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  12841. [global::System.ComponentModel.ToolboxItem(true)]
  12842. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  12843. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  12844. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  12845. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  12846. private UpdateOrderOption _updateOrder;
  12847. private AttachedProductTableAdapter _attachedProductTableAdapter;
  12848. private ClientTableAdapter _clientTableAdapter;
  12849. private Client_b_importTableAdapter _client_b_importTableAdapter;
  12850. private ClientServiceTableAdapter _clientServiceTableAdapter;
  12851. private DocumentByServiceTableAdapter _documentByServiceTableAdapter;
  12852. private GenderTableAdapter _genderTableAdapter;
  12853. private ManufacturerTableAdapter _manufacturerTableAdapter;
  12854. private ProductTableAdapter _productTableAdapter;
  12855. private ProductPhotoTableAdapter _productPhotoTableAdapter;
  12856. private ProductSaleTableAdapter _productSaleTableAdapter;
  12857. private ServiceTableAdapter _serviceTableAdapter;
  12858. private Service_b_importTableAdapter _service_b_importTableAdapter;
  12859. private Serviceclient_b_importTableAdapter _serviceclient_b_importTableAdapter;
  12860. private ServicePhotoTableAdapter _servicePhotoTableAdapter;
  12861. private TagTableAdapter _tagTableAdapter;
  12862. private TagOfClientTableAdapter _tagOfClientTableAdapter;
  12863. private bool _backupDataSetBeforeUpdate;
  12864. private global::System.Data.IDbConnection _connection;
  12865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12867. public UpdateOrderOption UpdateOrder {
  12868. get {
  12869. return this._updateOrder;
  12870. }
  12871. set {
  12872. this._updateOrder = value;
  12873. }
  12874. }
  12875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12876. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12877. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  12878. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  12879. "a", "System.Drawing.Design.UITypeEditor")]
  12880. public AttachedProductTableAdapter AttachedProductTableAdapter {
  12881. get {
  12882. return this._attachedProductTableAdapter;
  12883. }
  12884. set {
  12885. this._attachedProductTableAdapter = value;
  12886. }
  12887. }
  12888. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12889. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12890. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  12891. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  12892. "a", "System.Drawing.Design.UITypeEditor")]
  12893. public ClientTableAdapter ClientTableAdapter {
  12894. get {
  12895. return this._clientTableAdapter;
  12896. }
  12897. set {
  12898. this._clientTableAdapter = value;
  12899. }
  12900. }
  12901. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12902. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12903. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  12904. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  12905. "a", "System.Drawing.Design.UITypeEditor")]
  12906. public Client_b_importTableAdapter Client_b_importTableAdapter {
  12907. get {
  12908. return this._client_b_importTableAdapter;
  12909. }
  12910. set {
  12911. this._client_b_importTableAdapter = value;
  12912. }
  12913. }
  12914. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12915. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12916. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  12917. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  12918. "a", "System.Drawing.Design.UITypeEditor")]
  12919. public ClientServiceTableAdapter ClientServiceTableAdapter {
  12920. get {
  12921. return this._clientServiceTableAdapter;
  12922. }
  12923. set {
  12924. this._clientServiceTableAdapter = value;
  12925. }
  12926. }
  12927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12928. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12929. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  12930. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  12931. "a", "System.Drawing.Design.UITypeEditor")]
  12932. public DocumentByServiceTableAdapter DocumentByServiceTableAdapter {
  12933. get {
  12934. return this._documentByServiceTableAdapter;
  12935. }
  12936. set {
  12937. this._documentByServiceTableAdapter = value;
  12938. }
  12939. }
  12940. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12941. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12942. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  12943. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  12944. "a", "System.Drawing.Design.UITypeEditor")]
  12945. public GenderTableAdapter GenderTableAdapter {
  12946. get {
  12947. return this._genderTableAdapter;
  12948. }
  12949. set {
  12950. this._genderTableAdapter = value;
  12951. }
  12952. }
  12953. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12954. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12955. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  12956. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  12957. "a", "System.Drawing.Design.UITypeEditor")]
  12958. public ManufacturerTableAdapter ManufacturerTableAdapter {
  12959. get {
  12960. return this._manufacturerTableAdapter;
  12961. }
  12962. set {
  12963. this._manufacturerTableAdapter = value;
  12964. }
  12965. }
  12966. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12967. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12968. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  12969. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  12970. "a", "System.Drawing.Design.UITypeEditor")]
  12971. public ProductTableAdapter ProductTableAdapter {
  12972. get {
  12973. return this._productTableAdapter;
  12974. }
  12975. set {
  12976. this._productTableAdapter = value;
  12977. }
  12978. }
  12979. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12980. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12981. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  12982. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  12983. "a", "System.Drawing.Design.UITypeEditor")]
  12984. public ProductPhotoTableAdapter ProductPhotoTableAdapter {
  12985. get {
  12986. return this._productPhotoTableAdapter;
  12987. }
  12988. set {
  12989. this._productPhotoTableAdapter = value;
  12990. }
  12991. }
  12992. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12993. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12994. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  12995. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  12996. "a", "System.Drawing.Design.UITypeEditor")]
  12997. public ProductSaleTableAdapter ProductSaleTableAdapter {
  12998. get {
  12999. return this._productSaleTableAdapter;
  13000. }
  13001. set {
  13002. this._productSaleTableAdapter = value;
  13003. }
  13004. }
  13005. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13006. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13007. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  13008. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  13009. "a", "System.Drawing.Design.UITypeEditor")]
  13010. public ServiceTableAdapter ServiceTableAdapter {
  13011. get {
  13012. return this._serviceTableAdapter;
  13013. }
  13014. set {
  13015. this._serviceTableAdapter = value;
  13016. }
  13017. }
  13018. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13019. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13020. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  13021. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  13022. "a", "System.Drawing.Design.UITypeEditor")]
  13023. public Service_b_importTableAdapter Service_b_importTableAdapter {
  13024. get {
  13025. return this._service_b_importTableAdapter;
  13026. }
  13027. set {
  13028. this._service_b_importTableAdapter = value;
  13029. }
  13030. }
  13031. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13032. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13033. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  13034. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  13035. "a", "System.Drawing.Design.UITypeEditor")]
  13036. public Serviceclient_b_importTableAdapter Serviceclient_b_importTableAdapter {
  13037. get {
  13038. return this._serviceclient_b_importTableAdapter;
  13039. }
  13040. set {
  13041. this._serviceclient_b_importTableAdapter = value;
  13042. }
  13043. }
  13044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13046. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  13047. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  13048. "a", "System.Drawing.Design.UITypeEditor")]
  13049. public ServicePhotoTableAdapter ServicePhotoTableAdapter {
  13050. get {
  13051. return this._servicePhotoTableAdapter;
  13052. }
  13053. set {
  13054. this._servicePhotoTableAdapter = value;
  13055. }
  13056. }
  13057. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13058. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13059. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  13060. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  13061. "a", "System.Drawing.Design.UITypeEditor")]
  13062. public TagTableAdapter TagTableAdapter {
  13063. get {
  13064. return this._tagTableAdapter;
  13065. }
  13066. set {
  13067. this._tagTableAdapter = value;
  13068. }
  13069. }
  13070. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13071. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13072. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  13073. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  13074. "a", "System.Drawing.Design.UITypeEditor")]
  13075. public TagOfClientTableAdapter TagOfClientTableAdapter {
  13076. get {
  13077. return this._tagOfClientTableAdapter;
  13078. }
  13079. set {
  13080. this._tagOfClientTableAdapter = value;
  13081. }
  13082. }
  13083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13085. public bool BackupDataSetBeforeUpdate {
  13086. get {
  13087. return this._backupDataSetBeforeUpdate;
  13088. }
  13089. set {
  13090. this._backupDataSetBeforeUpdate = value;
  13091. }
  13092. }
  13093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13094. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13095. [global::System.ComponentModel.Browsable(false)]
  13096. public global::System.Data.IDbConnection Connection {
  13097. get {
  13098. if ((this._connection != null)) {
  13099. return this._connection;
  13100. }
  13101. if (((this._attachedProductTableAdapter != null)
  13102. && (this._attachedProductTableAdapter.Connection != null))) {
  13103. return this._attachedProductTableAdapter.Connection;
  13104. }
  13105. if (((this._clientTableAdapter != null)
  13106. && (this._clientTableAdapter.Connection != null))) {
  13107. return this._clientTableAdapter.Connection;
  13108. }
  13109. if (((this._client_b_importTableAdapter != null)
  13110. && (this._client_b_importTableAdapter.Connection != null))) {
  13111. return this._client_b_importTableAdapter.Connection;
  13112. }
  13113. if (((this._clientServiceTableAdapter != null)
  13114. && (this._clientServiceTableAdapter.Connection != null))) {
  13115. return this._clientServiceTableAdapter.Connection;
  13116. }
  13117. if (((this._documentByServiceTableAdapter != null)
  13118. && (this._documentByServiceTableAdapter.Connection != null))) {
  13119. return this._documentByServiceTableAdapter.Connection;
  13120. }
  13121. if (((this._genderTableAdapter != null)
  13122. && (this._genderTableAdapter.Connection != null))) {
  13123. return this._genderTableAdapter.Connection;
  13124. }
  13125. if (((this._manufacturerTableAdapter != null)
  13126. && (this._manufacturerTableAdapter.Connection != null))) {
  13127. return this._manufacturerTableAdapter.Connection;
  13128. }
  13129. if (((this._productTableAdapter != null)
  13130. && (this._productTableAdapter.Connection != null))) {
  13131. return this._productTableAdapter.Connection;
  13132. }
  13133. if (((this._productPhotoTableAdapter != null)
  13134. && (this._productPhotoTableAdapter.Connection != null))) {
  13135. return this._productPhotoTableAdapter.Connection;
  13136. }
  13137. if (((this._productSaleTableAdapter != null)
  13138. && (this._productSaleTableAdapter.Connection != null))) {
  13139. return this._productSaleTableAdapter.Connection;
  13140. }
  13141. if (((this._serviceTableAdapter != null)
  13142. && (this._serviceTableAdapter.Connection != null))) {
  13143. return this._serviceTableAdapter.Connection;
  13144. }
  13145. if (((this._service_b_importTableAdapter != null)
  13146. && (this._service_b_importTableAdapter.Connection != null))) {
  13147. return this._service_b_importTableAdapter.Connection;
  13148. }
  13149. if (((this._serviceclient_b_importTableAdapter != null)
  13150. && (this._serviceclient_b_importTableAdapter.Connection != null))) {
  13151. return this._serviceclient_b_importTableAdapter.Connection;
  13152. }
  13153. if (((this._servicePhotoTableAdapter != null)
  13154. && (this._servicePhotoTableAdapter.Connection != null))) {
  13155. return this._servicePhotoTableAdapter.Connection;
  13156. }
  13157. if (((this._tagTableAdapter != null)
  13158. && (this._tagTableAdapter.Connection != null))) {
  13159. return this._tagTableAdapter.Connection;
  13160. }
  13161. if (((this._tagOfClientTableAdapter != null)
  13162. && (this._tagOfClientTableAdapter.Connection != null))) {
  13163. return this._tagOfClientTableAdapter.Connection;
  13164. }
  13165. return null;
  13166. }
  13167. set {
  13168. this._connection = value;
  13169. }
  13170. }
  13171. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13172. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13173. [global::System.ComponentModel.Browsable(false)]
  13174. public int TableAdapterInstanceCount {
  13175. get {
  13176. int count = 0;
  13177. if ((this._attachedProductTableAdapter != null)) {
  13178. count = (count + 1);
  13179. }
  13180. if ((this._clientTableAdapter != null)) {
  13181. count = (count + 1);
  13182. }
  13183. if ((this._client_b_importTableAdapter != null)) {
  13184. count = (count + 1);
  13185. }
  13186. if ((this._clientServiceTableAdapter != null)) {
  13187. count = (count + 1);
  13188. }
  13189. if ((this._documentByServiceTableAdapter != null)) {
  13190. count = (count + 1);
  13191. }
  13192. if ((this._genderTableAdapter != null)) {
  13193. count = (count + 1);
  13194. }
  13195. if ((this._manufacturerTableAdapter != null)) {
  13196. count = (count + 1);
  13197. }
  13198. if ((this._productTableAdapter != null)) {
  13199. count = (count + 1);
  13200. }
  13201. if ((this._productPhotoTableAdapter != null)) {
  13202. count = (count + 1);
  13203. }
  13204. if ((this._productSaleTableAdapter != null)) {
  13205. count = (count + 1);
  13206. }
  13207. if ((this._serviceTableAdapter != null)) {
  13208. count = (count + 1);
  13209. }
  13210. if ((this._service_b_importTableAdapter != null)) {
  13211. count = (count + 1);
  13212. }
  13213. if ((this._serviceclient_b_importTableAdapter != null)) {
  13214. count = (count + 1);
  13215. }
  13216. if ((this._servicePhotoTableAdapter != null)) {
  13217. count = (count + 1);
  13218. }
  13219. if ((this._tagTableAdapter != null)) {
  13220. count = (count + 1);
  13221. }
  13222. if ((this._tagOfClientTableAdapter != null)) {
  13223. count = (count + 1);
  13224. }
  13225. return count;
  13226. }
  13227. }
  13228. /// <summary>
  13229. ///Update rows in top-down order.
  13230. ///</summary>
  13231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13233. private int UpdateUpdatedRows(BarhotnieBrovkiDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  13234. int result = 0;
  13235. if ((this._genderTableAdapter != null)) {
  13236. global::System.Data.DataRow[] updatedRows = dataSet.Gender.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13237. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13238. if (((updatedRows != null)
  13239. && (0 < updatedRows.Length))) {
  13240. result = (result + this._genderTableAdapter.Update(updatedRows));
  13241. allChangedRows.AddRange(updatedRows);
  13242. }
  13243. }
  13244. if ((this._clientTableAdapter != null)) {
  13245. global::System.Data.DataRow[] updatedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13246. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13247. if (((updatedRows != null)
  13248. && (0 < updatedRows.Length))) {
  13249. result = (result + this._clientTableAdapter.Update(updatedRows));
  13250. allChangedRows.AddRange(updatedRows);
  13251. }
  13252. }
  13253. if ((this._manufacturerTableAdapter != null)) {
  13254. global::System.Data.DataRow[] updatedRows = dataSet.Manufacturer.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13255. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13256. if (((updatedRows != null)
  13257. && (0 < updatedRows.Length))) {
  13258. result = (result + this._manufacturerTableAdapter.Update(updatedRows));
  13259. allChangedRows.AddRange(updatedRows);
  13260. }
  13261. }
  13262. if ((this._serviceTableAdapter != null)) {
  13263. global::System.Data.DataRow[] updatedRows = dataSet.Service.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13264. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13265. if (((updatedRows != null)
  13266. && (0 < updatedRows.Length))) {
  13267. result = (result + this._serviceTableAdapter.Update(updatedRows));
  13268. allChangedRows.AddRange(updatedRows);
  13269. }
  13270. }
  13271. if ((this._clientServiceTableAdapter != null)) {
  13272. global::System.Data.DataRow[] updatedRows = dataSet.ClientService.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13273. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13274. if (((updatedRows != null)
  13275. && (0 < updatedRows.Length))) {
  13276. result = (result + this._clientServiceTableAdapter.Update(updatedRows));
  13277. allChangedRows.AddRange(updatedRows);
  13278. }
  13279. }
  13280. if ((this._productTableAdapter != null)) {
  13281. global::System.Data.DataRow[] updatedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13282. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13283. if (((updatedRows != null)
  13284. && (0 < updatedRows.Length))) {
  13285. result = (result + this._productTableAdapter.Update(updatedRows));
  13286. allChangedRows.AddRange(updatedRows);
  13287. }
  13288. }
  13289. if ((this._tagTableAdapter != null)) {
  13290. global::System.Data.DataRow[] updatedRows = dataSet.Tag.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13291. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13292. if (((updatedRows != null)
  13293. && (0 < updatedRows.Length))) {
  13294. result = (result + this._tagTableAdapter.Update(updatedRows));
  13295. allChangedRows.AddRange(updatedRows);
  13296. }
  13297. }
  13298. if ((this._attachedProductTableAdapter != null)) {
  13299. global::System.Data.DataRow[] updatedRows = dataSet.AttachedProduct.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13300. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13301. if (((updatedRows != null)
  13302. && (0 < updatedRows.Length))) {
  13303. result = (result + this._attachedProductTableAdapter.Update(updatedRows));
  13304. allChangedRows.AddRange(updatedRows);
  13305. }
  13306. }
  13307. if ((this._client_b_importTableAdapter != null)) {
  13308. global::System.Data.DataRow[] updatedRows = dataSet.Client_b_import.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13309. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13310. if (((updatedRows != null)
  13311. && (0 < updatedRows.Length))) {
  13312. result = (result + this._client_b_importTableAdapter.Update(updatedRows));
  13313. allChangedRows.AddRange(updatedRows);
  13314. }
  13315. }
  13316. if ((this._documentByServiceTableAdapter != null)) {
  13317. global::System.Data.DataRow[] updatedRows = dataSet.DocumentByService.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13318. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13319. if (((updatedRows != null)
  13320. && (0 < updatedRows.Length))) {
  13321. result = (result + this._documentByServiceTableAdapter.Update(updatedRows));
  13322. allChangedRows.AddRange(updatedRows);
  13323. }
  13324. }
  13325. if ((this._productPhotoTableAdapter != null)) {
  13326. global::System.Data.DataRow[] updatedRows = dataSet.ProductPhoto.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13327. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13328. if (((updatedRows != null)
  13329. && (0 < updatedRows.Length))) {
  13330. result = (result + this._productPhotoTableAdapter.Update(updatedRows));
  13331. allChangedRows.AddRange(updatedRows);
  13332. }
  13333. }
  13334. if ((this._productSaleTableAdapter != null)) {
  13335. global::System.Data.DataRow[] updatedRows = dataSet.ProductSale.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13336. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13337. if (((updatedRows != null)
  13338. && (0 < updatedRows.Length))) {
  13339. result = (result + this._productSaleTableAdapter.Update(updatedRows));
  13340. allChangedRows.AddRange(updatedRows);
  13341. }
  13342. }
  13343. if ((this._service_b_importTableAdapter != null)) {
  13344. global::System.Data.DataRow[] updatedRows = dataSet.Service_b_import.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13345. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13346. if (((updatedRows != null)
  13347. && (0 < updatedRows.Length))) {
  13348. result = (result + this._service_b_importTableAdapter.Update(updatedRows));
  13349. allChangedRows.AddRange(updatedRows);
  13350. }
  13351. }
  13352. if ((this._serviceclient_b_importTableAdapter != null)) {
  13353. global::System.Data.DataRow[] updatedRows = dataSet.Serviceclient_b_import.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13354. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13355. if (((updatedRows != null)
  13356. && (0 < updatedRows.Length))) {
  13357. result = (result + this._serviceclient_b_importTableAdapter.Update(updatedRows));
  13358. allChangedRows.AddRange(updatedRows);
  13359. }
  13360. }
  13361. if ((this._servicePhotoTableAdapter != null)) {
  13362. global::System.Data.DataRow[] updatedRows = dataSet.ServicePhoto.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13363. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13364. if (((updatedRows != null)
  13365. && (0 < updatedRows.Length))) {
  13366. result = (result + this._servicePhotoTableAdapter.Update(updatedRows));
  13367. allChangedRows.AddRange(updatedRows);
  13368. }
  13369. }
  13370. if ((this._tagOfClientTableAdapter != null)) {
  13371. global::System.Data.DataRow[] updatedRows = dataSet.TagOfClient.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13372. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13373. if (((updatedRows != null)
  13374. && (0 < updatedRows.Length))) {
  13375. result = (result + this._tagOfClientTableAdapter.Update(updatedRows));
  13376. allChangedRows.AddRange(updatedRows);
  13377. }
  13378. }
  13379. return result;
  13380. }
  13381. /// <summary>
  13382. ///Insert rows in top-down order.
  13383. ///</summary>
  13384. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13385. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13386. private int UpdateInsertedRows(BarhotnieBrovkiDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  13387. int result = 0;
  13388. if ((this._genderTableAdapter != null)) {
  13389. global::System.Data.DataRow[] addedRows = dataSet.Gender.Select(null, null, global::System.Data.DataViewRowState.Added);
  13390. if (((addedRows != null)
  13391. && (0 < addedRows.Length))) {
  13392. result = (result + this._genderTableAdapter.Update(addedRows));
  13393. allAddedRows.AddRange(addedRows);
  13394. }
  13395. }
  13396. if ((this._clientTableAdapter != null)) {
  13397. global::System.Data.DataRow[] addedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.Added);
  13398. if (((addedRows != null)
  13399. && (0 < addedRows.Length))) {
  13400. result = (result + this._clientTableAdapter.Update(addedRows));
  13401. allAddedRows.AddRange(addedRows);
  13402. }
  13403. }
  13404. if ((this._manufacturerTableAdapter != null)) {
  13405. global::System.Data.DataRow[] addedRows = dataSet.Manufacturer.Select(null, null, global::System.Data.DataViewRowState.Added);
  13406. if (((addedRows != null)
  13407. && (0 < addedRows.Length))) {
  13408. result = (result + this._manufacturerTableAdapter.Update(addedRows));
  13409. allAddedRows.AddRange(addedRows);
  13410. }
  13411. }
  13412. if ((this._serviceTableAdapter != null)) {
  13413. global::System.Data.DataRow[] addedRows = dataSet.Service.Select(null, null, global::System.Data.DataViewRowState.Added);
  13414. if (((addedRows != null)
  13415. && (0 < addedRows.Length))) {
  13416. result = (result + this._serviceTableAdapter.Update(addedRows));
  13417. allAddedRows.AddRange(addedRows);
  13418. }
  13419. }
  13420. if ((this._clientServiceTableAdapter != null)) {
  13421. global::System.Data.DataRow[] addedRows = dataSet.ClientService.Select(null, null, global::System.Data.DataViewRowState.Added);
  13422. if (((addedRows != null)
  13423. && (0 < addedRows.Length))) {
  13424. result = (result + this._clientServiceTableAdapter.Update(addedRows));
  13425. allAddedRows.AddRange(addedRows);
  13426. }
  13427. }
  13428. if ((this._productTableAdapter != null)) {
  13429. global::System.Data.DataRow[] addedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.Added);
  13430. if (((addedRows != null)
  13431. && (0 < addedRows.Length))) {
  13432. result = (result + this._productTableAdapter.Update(addedRows));
  13433. allAddedRows.AddRange(addedRows);
  13434. }
  13435. }
  13436. if ((this._tagTableAdapter != null)) {
  13437. global::System.Data.DataRow[] addedRows = dataSet.Tag.Select(null, null, global::System.Data.DataViewRowState.Added);
  13438. if (((addedRows != null)
  13439. && (0 < addedRows.Length))) {
  13440. result = (result + this._tagTableAdapter.Update(addedRows));
  13441. allAddedRows.AddRange(addedRows);
  13442. }
  13443. }
  13444. if ((this._attachedProductTableAdapter != null)) {
  13445. global::System.Data.DataRow[] addedRows = dataSet.AttachedProduct.Select(null, null, global::System.Data.DataViewRowState.Added);
  13446. if (((addedRows != null)
  13447. && (0 < addedRows.Length))) {
  13448. result = (result + this._attachedProductTableAdapter.Update(addedRows));
  13449. allAddedRows.AddRange(addedRows);
  13450. }
  13451. }
  13452. if ((this._client_b_importTableAdapter != null)) {
  13453. global::System.Data.DataRow[] addedRows = dataSet.Client_b_import.Select(null, null, global::System.Data.DataViewRowState.Added);
  13454. if (((addedRows != null)
  13455. && (0 < addedRows.Length))) {
  13456. result = (result + this._client_b_importTableAdapter.Update(addedRows));
  13457. allAddedRows.AddRange(addedRows);
  13458. }
  13459. }
  13460. if ((this._documentByServiceTableAdapter != null)) {
  13461. global::System.Data.DataRow[] addedRows = dataSet.DocumentByService.Select(null, null, global::System.Data.DataViewRowState.Added);
  13462. if (((addedRows != null)
  13463. && (0 < addedRows.Length))) {
  13464. result = (result + this._documentByServiceTableAdapter.Update(addedRows));
  13465. allAddedRows.AddRange(addedRows);
  13466. }
  13467. }
  13468. if ((this._productPhotoTableAdapter != null)) {
  13469. global::System.Data.DataRow[] addedRows = dataSet.ProductPhoto.Select(null, null, global::System.Data.DataViewRowState.Added);
  13470. if (((addedRows != null)
  13471. && (0 < addedRows.Length))) {
  13472. result = (result + this._productPhotoTableAdapter.Update(addedRows));
  13473. allAddedRows.AddRange(addedRows);
  13474. }
  13475. }
  13476. if ((this._productSaleTableAdapter != null)) {
  13477. global::System.Data.DataRow[] addedRows = dataSet.ProductSale.Select(null, null, global::System.Data.DataViewRowState.Added);
  13478. if (((addedRows != null)
  13479. && (0 < addedRows.Length))) {
  13480. result = (result + this._productSaleTableAdapter.Update(addedRows));
  13481. allAddedRows.AddRange(addedRows);
  13482. }
  13483. }
  13484. if ((this._service_b_importTableAdapter != null)) {
  13485. global::System.Data.DataRow[] addedRows = dataSet.Service_b_import.Select(null, null, global::System.Data.DataViewRowState.Added);
  13486. if (((addedRows != null)
  13487. && (0 < addedRows.Length))) {
  13488. result = (result + this._service_b_importTableAdapter.Update(addedRows));
  13489. allAddedRows.AddRange(addedRows);
  13490. }
  13491. }
  13492. if ((this._serviceclient_b_importTableAdapter != null)) {
  13493. global::System.Data.DataRow[] addedRows = dataSet.Serviceclient_b_import.Select(null, null, global::System.Data.DataViewRowState.Added);
  13494. if (((addedRows != null)
  13495. && (0 < addedRows.Length))) {
  13496. result = (result + this._serviceclient_b_importTableAdapter.Update(addedRows));
  13497. allAddedRows.AddRange(addedRows);
  13498. }
  13499. }
  13500. if ((this._servicePhotoTableAdapter != null)) {
  13501. global::System.Data.DataRow[] addedRows = dataSet.ServicePhoto.Select(null, null, global::System.Data.DataViewRowState.Added);
  13502. if (((addedRows != null)
  13503. && (0 < addedRows.Length))) {
  13504. result = (result + this._servicePhotoTableAdapter.Update(addedRows));
  13505. allAddedRows.AddRange(addedRows);
  13506. }
  13507. }
  13508. if ((this._tagOfClientTableAdapter != null)) {
  13509. global::System.Data.DataRow[] addedRows = dataSet.TagOfClient.Select(null, null, global::System.Data.DataViewRowState.Added);
  13510. if (((addedRows != null)
  13511. && (0 < addedRows.Length))) {
  13512. result = (result + this._tagOfClientTableAdapter.Update(addedRows));
  13513. allAddedRows.AddRange(addedRows);
  13514. }
  13515. }
  13516. return result;
  13517. }
  13518. /// <summary>
  13519. ///Delete rows in bottom-up order.
  13520. ///</summary>
  13521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13523. private int UpdateDeletedRows(BarhotnieBrovkiDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  13524. int result = 0;
  13525. if ((this._tagOfClientTableAdapter != null)) {
  13526. global::System.Data.DataRow[] deletedRows = dataSet.TagOfClient.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  13527. if (((deletedRows != null)
  13528. && (0 < deletedRows.Length))) {
  13529. result = (result + this._tagOfClientTableAdapter.Update(deletedRows));
  13530. allChangedRows.AddRange(deletedRows);
  13531. }
  13532. }
  13533. if ((this._servicePhotoTableAdapter != null)) {
  13534. global::System.Data.DataRow[] deletedRows = dataSet.ServicePhoto.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  13535. if (((deletedRows != null)
  13536. && (0 < deletedRows.Length))) {
  13537. result = (result + this._servicePhotoTableAdapter.Update(deletedRows));
  13538. allChangedRows.AddRange(deletedRows);
  13539. }
  13540. }
  13541. if ((this._serviceclient_b_importTableAdapter != null)) {
  13542. global::System.Data.DataRow[] deletedRows = dataSet.Serviceclient_b_import.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  13543. if (((deletedRows != null)
  13544. && (0 < deletedRows.Length))) {
  13545. result = (result + this._serviceclient_b_importTableAdapter.Update(deletedRows));
  13546. allChangedRows.AddRange(deletedRows);
  13547. }
  13548. }
  13549. if ((this._service_b_importTableAdapter != null)) {
  13550. global::System.Data.DataRow[] deletedRows = dataSet.Service_b_import.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  13551. if (((deletedRows != null)
  13552. && (0 < deletedRows.Length))) {
  13553. result = (result + this._service_b_importTableAdapter.Update(deletedRows));
  13554. allChangedRows.AddRange(deletedRows);
  13555. }
  13556. }
  13557. if ((this._productSaleTableAdapter != null)) {
  13558. global::System.Data.DataRow[] deletedRows = dataSet.ProductSale.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  13559. if (((deletedRows != null)
  13560. && (0 < deletedRows.Length))) {
  13561. result = (result + this._productSaleTableAdapter.Update(deletedRows));
  13562. allChangedRows.AddRange(deletedRows);
  13563. }
  13564. }
  13565. if ((this._productPhotoTableAdapter != null)) {
  13566. global::System.Data.DataRow[] deletedRows = dataSet.ProductPhoto.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  13567. if (((deletedRows != null)
  13568. && (0 < deletedRows.Length))) {
  13569. result = (result + this._productPhotoTableAdapter.Update(deletedRows));
  13570. allChangedRows.AddRange(deletedRows);
  13571. }
  13572. }
  13573. if ((this._documentByServiceTableAdapter != null)) {
  13574. global::System.Data.DataRow[] deletedRows = dataSet.DocumentByService.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  13575. if (((deletedRows != null)
  13576. && (0 < deletedRows.Length))) {
  13577. result = (result + this._documentByServiceTableAdapter.Update(deletedRows));
  13578. allChangedRows.AddRange(deletedRows);
  13579. }
  13580. }
  13581. if ((this._client_b_importTableAdapter != null)) {
  13582. global::System.Data.DataRow[] deletedRows = dataSet.Client_b_import.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  13583. if (((deletedRows != null)
  13584. && (0 < deletedRows.Length))) {
  13585. result = (result + this._client_b_importTableAdapter.Update(deletedRows));
  13586. allChangedRows.AddRange(deletedRows);
  13587. }
  13588. }
  13589. if ((this._attachedProductTableAdapter != null)) {
  13590. global::System.Data.DataRow[] deletedRows = dataSet.AttachedProduct.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  13591. if (((deletedRows != null)
  13592. && (0 < deletedRows.Length))) {
  13593. result = (result + this._attachedProductTableAdapter.Update(deletedRows));
  13594. allChangedRows.AddRange(deletedRows);
  13595. }
  13596. }
  13597. if ((this._tagTableAdapter != null)) {
  13598. global::System.Data.DataRow[] deletedRows = dataSet.Tag.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  13599. if (((deletedRows != null)
  13600. && (0 < deletedRows.Length))) {
  13601. result = (result + this._tagTableAdapter.Update(deletedRows));
  13602. allChangedRows.AddRange(deletedRows);
  13603. }
  13604. }
  13605. if ((this._productTableAdapter != null)) {
  13606. global::System.Data.DataRow[] deletedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  13607. if (((deletedRows != null)
  13608. && (0 < deletedRows.Length))) {
  13609. result = (result + this._productTableAdapter.Update(deletedRows));
  13610. allChangedRows.AddRange(deletedRows);
  13611. }
  13612. }
  13613. if ((this._clientServiceTableAdapter != null)) {
  13614. global::System.Data.DataRow[] deletedRows = dataSet.ClientService.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  13615. if (((deletedRows != null)
  13616. && (0 < deletedRows.Length))) {
  13617. result = (result + this._clientServiceTableAdapter.Update(deletedRows));
  13618. allChangedRows.AddRange(deletedRows);
  13619. }
  13620. }
  13621. if ((this._serviceTableAdapter != null)) {
  13622. global::System.Data.DataRow[] deletedRows = dataSet.Service.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  13623. if (((deletedRows != null)
  13624. && (0 < deletedRows.Length))) {
  13625. result = (result + this._serviceTableAdapter.Update(deletedRows));
  13626. allChangedRows.AddRange(deletedRows);
  13627. }
  13628. }
  13629. if ((this._manufacturerTableAdapter != null)) {
  13630. global::System.Data.DataRow[] deletedRows = dataSet.Manufacturer.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  13631. if (((deletedRows != null)
  13632. && (0 < deletedRows.Length))) {
  13633. result = (result + this._manufacturerTableAdapter.Update(deletedRows));
  13634. allChangedRows.AddRange(deletedRows);
  13635. }
  13636. }
  13637. if ((this._clientTableAdapter != null)) {
  13638. global::System.Data.DataRow[] deletedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  13639. if (((deletedRows != null)
  13640. && (0 < deletedRows.Length))) {
  13641. result = (result + this._clientTableAdapter.Update(deletedRows));
  13642. allChangedRows.AddRange(deletedRows);
  13643. }
  13644. }
  13645. if ((this._genderTableAdapter != null)) {
  13646. global::System.Data.DataRow[] deletedRows = dataSet.Gender.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  13647. if (((deletedRows != null)
  13648. && (0 < deletedRows.Length))) {
  13649. result = (result + this._genderTableAdapter.Update(deletedRows));
  13650. allChangedRows.AddRange(deletedRows);
  13651. }
  13652. }
  13653. return result;
  13654. }
  13655. /// <summary>
  13656. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  13657. ///</summary>
  13658. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13659. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13660. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  13661. if (((updatedRows == null)
  13662. || (updatedRows.Length < 1))) {
  13663. return updatedRows;
  13664. }
  13665. if (((allAddedRows == null)
  13666. || (allAddedRows.Count < 1))) {
  13667. return updatedRows;
  13668. }
  13669. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  13670. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  13671. global::System.Data.DataRow row = updatedRows[i];
  13672. if ((allAddedRows.Contains(row) == false)) {
  13673. realUpdatedRows.Add(row);
  13674. }
  13675. }
  13676. return realUpdatedRows.ToArray();
  13677. }
  13678. /// <summary>
  13679. ///Update all changes to the dataset.
  13680. ///</summary>
  13681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13682. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13683. public virtual int UpdateAll(BarhotnieBrovkiDataSet dataSet) {
  13684. if ((dataSet == null)) {
  13685. throw new global::System.ArgumentNullException("dataSet");
  13686. }
  13687. if ((dataSet.HasChanges() == false)) {
  13688. return 0;
  13689. }
  13690. if (((this._attachedProductTableAdapter != null)
  13691. && (this.MatchTableAdapterConnection(this._attachedProductTableAdapter.Connection) == false))) {
  13692. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  13693. "r, должны использовать одинаковую строку подключения.");
  13694. }
  13695. if (((this._clientTableAdapter != null)
  13696. && (this.MatchTableAdapterConnection(this._clientTableAdapter.Connection) == false))) {
  13697. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  13698. "r, должны использовать одинаковую строку подключения.");
  13699. }
  13700. if (((this._client_b_importTableAdapter != null)
  13701. && (this.MatchTableAdapterConnection(this._client_b_importTableAdapter.Connection) == false))) {
  13702. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  13703. "r, должны использовать одинаковую строку подключения.");
  13704. }
  13705. if (((this._clientServiceTableAdapter != null)
  13706. && (this.MatchTableAdapterConnection(this._clientServiceTableAdapter.Connection) == false))) {
  13707. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  13708. "r, должны использовать одинаковую строку подключения.");
  13709. }
  13710. if (((this._documentByServiceTableAdapter != null)
  13711. && (this.MatchTableAdapterConnection(this._documentByServiceTableAdapter.Connection) == false))) {
  13712. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  13713. "r, должны использовать одинаковую строку подключения.");
  13714. }
  13715. if (((this._genderTableAdapter != null)
  13716. && (this.MatchTableAdapterConnection(this._genderTableAdapter.Connection) == false))) {
  13717. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  13718. "r, должны использовать одинаковую строку подключения.");
  13719. }
  13720. if (((this._manufacturerTableAdapter != null)
  13721. && (this.MatchTableAdapterConnection(this._manufacturerTableAdapter.Connection) == false))) {
  13722. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  13723. "r, должны использовать одинаковую строку подключения.");
  13724. }
  13725. if (((this._productTableAdapter != null)
  13726. && (this.MatchTableAdapterConnection(this._productTableAdapter.Connection) == false))) {
  13727. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  13728. "r, должны использовать одинаковую строку подключения.");
  13729. }
  13730. if (((this._productPhotoTableAdapter != null)
  13731. && (this.MatchTableAdapterConnection(this._productPhotoTableAdapter.Connection) == false))) {
  13732. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  13733. "r, должны использовать одинаковую строку подключения.");
  13734. }
  13735. if (((this._productSaleTableAdapter != null)
  13736. && (this.MatchTableAdapterConnection(this._productSaleTableAdapter.Connection) == false))) {
  13737. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  13738. "r, должны использовать одинаковую строку подключения.");
  13739. }
  13740. if (((this._serviceTableAdapter != null)
  13741. && (this.MatchTableAdapterConnection(this._serviceTableAdapter.Connection) == false))) {
  13742. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  13743. "r, должны использовать одинаковую строку подключения.");
  13744. }
  13745. if (((this._service_b_importTableAdapter != null)
  13746. && (this.MatchTableAdapterConnection(this._service_b_importTableAdapter.Connection) == false))) {
  13747. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  13748. "r, должны использовать одинаковую строку подключения.");
  13749. }
  13750. if (((this._serviceclient_b_importTableAdapter != null)
  13751. && (this.MatchTableAdapterConnection(this._serviceclient_b_importTableAdapter.Connection) == false))) {
  13752. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  13753. "r, должны использовать одинаковую строку подключения.");
  13754. }
  13755. if (((this._servicePhotoTableAdapter != null)
  13756. && (this.MatchTableAdapterConnection(this._servicePhotoTableAdapter.Connection) == false))) {
  13757. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  13758. "r, должны использовать одинаковую строку подключения.");
  13759. }
  13760. if (((this._tagTableAdapter != null)
  13761. && (this.MatchTableAdapterConnection(this._tagTableAdapter.Connection) == false))) {
  13762. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  13763. "r, должны использовать одинаковую строку подключения.");
  13764. }
  13765. if (((this._tagOfClientTableAdapter != null)
  13766. && (this.MatchTableAdapterConnection(this._tagOfClientTableAdapter.Connection) == false))) {
  13767. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  13768. "r, должны использовать одинаковую строку подключения.");
  13769. }
  13770. global::System.Data.IDbConnection workConnection = this.Connection;
  13771. if ((workConnection == null)) {
  13772. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  13773. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  13774. }
  13775. bool workConnOpened = false;
  13776. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  13777. == global::System.Data.ConnectionState.Broken)) {
  13778. workConnection.Close();
  13779. }
  13780. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  13781. workConnection.Open();
  13782. workConnOpened = true;
  13783. }
  13784. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  13785. if ((workTransaction == null)) {
  13786. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  13787. "и или текущее состояние не позволяет начать транзакцию.");
  13788. }
  13789. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  13790. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  13791. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  13792. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  13793. int result = 0;
  13794. global::System.Data.DataSet backupDataSet = null;
  13795. if (this.BackupDataSetBeforeUpdate) {
  13796. backupDataSet = new global::System.Data.DataSet();
  13797. backupDataSet.Merge(dataSet);
  13798. }
  13799. try {
  13800. // ---- Prepare for update -----------
  13801. //
  13802. if ((this._attachedProductTableAdapter != null)) {
  13803. revertConnections.Add(this._attachedProductTableAdapter, this._attachedProductTableAdapter.Connection);
  13804. this._attachedProductTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  13805. this._attachedProductTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  13806. if (this._attachedProductTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  13807. this._attachedProductTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  13808. adaptersWithAcceptChangesDuringUpdate.Add(this._attachedProductTableAdapter.Adapter);
  13809. }
  13810. }
  13811. if ((this._clientTableAdapter != null)) {
  13812. revertConnections.Add(this._clientTableAdapter, this._clientTableAdapter.Connection);
  13813. this._clientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  13814. this._clientTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  13815. if (this._clientTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  13816. this._clientTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  13817. adaptersWithAcceptChangesDuringUpdate.Add(this._clientTableAdapter.Adapter);
  13818. }
  13819. }
  13820. if ((this._client_b_importTableAdapter != null)) {
  13821. revertConnections.Add(this._client_b_importTableAdapter, this._client_b_importTableAdapter.Connection);
  13822. this._client_b_importTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  13823. this._client_b_importTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  13824. if (this._client_b_importTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  13825. this._client_b_importTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  13826. adaptersWithAcceptChangesDuringUpdate.Add(this._client_b_importTableAdapter.Adapter);
  13827. }
  13828. }
  13829. if ((this._clientServiceTableAdapter != null)) {
  13830. revertConnections.Add(this._clientServiceTableAdapter, this._clientServiceTableAdapter.Connection);
  13831. this._clientServiceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  13832. this._clientServiceTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  13833. if (this._clientServiceTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  13834. this._clientServiceTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  13835. adaptersWithAcceptChangesDuringUpdate.Add(this._clientServiceTableAdapter.Adapter);
  13836. }
  13837. }
  13838. if ((this._documentByServiceTableAdapter != null)) {
  13839. revertConnections.Add(this._documentByServiceTableAdapter, this._documentByServiceTableAdapter.Connection);
  13840. this._documentByServiceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  13841. this._documentByServiceTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  13842. if (this._documentByServiceTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  13843. this._documentByServiceTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  13844. adaptersWithAcceptChangesDuringUpdate.Add(this._documentByServiceTableAdapter.Adapter);
  13845. }
  13846. }
  13847. if ((this._genderTableAdapter != null)) {
  13848. revertConnections.Add(this._genderTableAdapter, this._genderTableAdapter.Connection);
  13849. this._genderTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  13850. this._genderTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  13851. if (this._genderTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  13852. this._genderTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  13853. adaptersWithAcceptChangesDuringUpdate.Add(this._genderTableAdapter.Adapter);
  13854. }
  13855. }
  13856. if ((this._manufacturerTableAdapter != null)) {
  13857. revertConnections.Add(this._manufacturerTableAdapter, this._manufacturerTableAdapter.Connection);
  13858. this._manufacturerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  13859. this._manufacturerTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  13860. if (this._manufacturerTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  13861. this._manufacturerTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  13862. adaptersWithAcceptChangesDuringUpdate.Add(this._manufacturerTableAdapter.Adapter);
  13863. }
  13864. }
  13865. if ((this._productTableAdapter != null)) {
  13866. revertConnections.Add(this._productTableAdapter, this._productTableAdapter.Connection);
  13867. this._productTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  13868. this._productTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  13869. if (this._productTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  13870. this._productTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  13871. adaptersWithAcceptChangesDuringUpdate.Add(this._productTableAdapter.Adapter);
  13872. }
  13873. }
  13874. if ((this._productPhotoTableAdapter != null)) {
  13875. revertConnections.Add(this._productPhotoTableAdapter, this._productPhotoTableAdapter.Connection);
  13876. this._productPhotoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  13877. this._productPhotoTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  13878. if (this._productPhotoTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  13879. this._productPhotoTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  13880. adaptersWithAcceptChangesDuringUpdate.Add(this._productPhotoTableAdapter.Adapter);
  13881. }
  13882. }
  13883. if ((this._productSaleTableAdapter != null)) {
  13884. revertConnections.Add(this._productSaleTableAdapter, this._productSaleTableAdapter.Connection);
  13885. this._productSaleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  13886. this._productSaleTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  13887. if (this._productSaleTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  13888. this._productSaleTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  13889. adaptersWithAcceptChangesDuringUpdate.Add(this._productSaleTableAdapter.Adapter);
  13890. }
  13891. }
  13892. if ((this._serviceTableAdapter != null)) {
  13893. revertConnections.Add(this._serviceTableAdapter, this._serviceTableAdapter.Connection);
  13894. this._serviceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  13895. this._serviceTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  13896. if (this._serviceTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  13897. this._serviceTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  13898. adaptersWithAcceptChangesDuringUpdate.Add(this._serviceTableAdapter.Adapter);
  13899. }
  13900. }
  13901. if ((this._service_b_importTableAdapter != null)) {
  13902. revertConnections.Add(this._service_b_importTableAdapter, this._service_b_importTableAdapter.Connection);
  13903. this._service_b_importTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  13904. this._service_b_importTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  13905. if (this._service_b_importTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  13906. this._service_b_importTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  13907. adaptersWithAcceptChangesDuringUpdate.Add(this._service_b_importTableAdapter.Adapter);
  13908. }
  13909. }
  13910. if ((this._serviceclient_b_importTableAdapter != null)) {
  13911. revertConnections.Add(this._serviceclient_b_importTableAdapter, this._serviceclient_b_importTableAdapter.Connection);
  13912. this._serviceclient_b_importTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  13913. this._serviceclient_b_importTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  13914. if (this._serviceclient_b_importTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  13915. this._serviceclient_b_importTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  13916. adaptersWithAcceptChangesDuringUpdate.Add(this._serviceclient_b_importTableAdapter.Adapter);
  13917. }
  13918. }
  13919. if ((this._servicePhotoTableAdapter != null)) {
  13920. revertConnections.Add(this._servicePhotoTableAdapter, this._servicePhotoTableAdapter.Connection);
  13921. this._servicePhotoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  13922. this._servicePhotoTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  13923. if (this._servicePhotoTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  13924. this._servicePhotoTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  13925. adaptersWithAcceptChangesDuringUpdate.Add(this._servicePhotoTableAdapter.Adapter);
  13926. }
  13927. }
  13928. if ((this._tagTableAdapter != null)) {
  13929. revertConnections.Add(this._tagTableAdapter, this._tagTableAdapter.Connection);
  13930. this._tagTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  13931. this._tagTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  13932. if (this._tagTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  13933. this._tagTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  13934. adaptersWithAcceptChangesDuringUpdate.Add(this._tagTableAdapter.Adapter);
  13935. }
  13936. }
  13937. if ((this._tagOfClientTableAdapter != null)) {
  13938. revertConnections.Add(this._tagOfClientTableAdapter, this._tagOfClientTableAdapter.Connection);
  13939. this._tagOfClientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  13940. this._tagOfClientTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  13941. if (this._tagOfClientTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  13942. this._tagOfClientTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  13943. adaptersWithAcceptChangesDuringUpdate.Add(this._tagOfClientTableAdapter.Adapter);
  13944. }
  13945. }
  13946. //
  13947. //---- Perform updates -----------
  13948. //
  13949. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  13950. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  13951. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  13952. }
  13953. else {
  13954. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  13955. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  13956. }
  13957. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  13958. //
  13959. //---- Commit updates -----------
  13960. //
  13961. workTransaction.Commit();
  13962. if ((0 < allAddedRows.Count)) {
  13963. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  13964. allAddedRows.CopyTo(rows);
  13965. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  13966. global::System.Data.DataRow row = rows[i];
  13967. row.AcceptChanges();
  13968. }
  13969. }
  13970. if ((0 < allChangedRows.Count)) {
  13971. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  13972. allChangedRows.CopyTo(rows);
  13973. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  13974. global::System.Data.DataRow row = rows[i];
  13975. row.AcceptChanges();
  13976. }
  13977. }
  13978. }
  13979. catch (global::System.Exception ex) {
  13980. workTransaction.Rollback();
  13981. // ---- Restore the dataset -----------
  13982. if (this.BackupDataSetBeforeUpdate) {
  13983. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  13984. dataSet.Clear();
  13985. dataSet.Merge(backupDataSet);
  13986. }
  13987. else {
  13988. if ((0 < allAddedRows.Count)) {
  13989. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  13990. allAddedRows.CopyTo(rows);
  13991. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  13992. global::System.Data.DataRow row = rows[i];
  13993. row.AcceptChanges();
  13994. row.SetAdded();
  13995. }
  13996. }
  13997. }
  13998. throw ex;
  13999. }
  14000. finally {
  14001. if (workConnOpened) {
  14002. workConnection.Close();
  14003. }
  14004. if ((this._attachedProductTableAdapter != null)) {
  14005. this._attachedProductTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._attachedProductTableAdapter]));
  14006. this._attachedProductTableAdapter.Transaction = null;
  14007. }
  14008. if ((this._clientTableAdapter != null)) {
  14009. this._clientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._clientTableAdapter]));
  14010. this._clientTableAdapter.Transaction = null;
  14011. }
  14012. if ((this._client_b_importTableAdapter != null)) {
  14013. this._client_b_importTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._client_b_importTableAdapter]));
  14014. this._client_b_importTableAdapter.Transaction = null;
  14015. }
  14016. if ((this._clientServiceTableAdapter != null)) {
  14017. this._clientServiceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._clientServiceTableAdapter]));
  14018. this._clientServiceTableAdapter.Transaction = null;
  14019. }
  14020. if ((this._documentByServiceTableAdapter != null)) {
  14021. this._documentByServiceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._documentByServiceTableAdapter]));
  14022. this._documentByServiceTableAdapter.Transaction = null;
  14023. }
  14024. if ((this._genderTableAdapter != null)) {
  14025. this._genderTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._genderTableAdapter]));
  14026. this._genderTableAdapter.Transaction = null;
  14027. }
  14028. if ((this._manufacturerTableAdapter != null)) {
  14029. this._manufacturerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._manufacturerTableAdapter]));
  14030. this._manufacturerTableAdapter.Transaction = null;
  14031. }
  14032. if ((this._productTableAdapter != null)) {
  14033. this._productTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productTableAdapter]));
  14034. this._productTableAdapter.Transaction = null;
  14035. }
  14036. if ((this._productPhotoTableAdapter != null)) {
  14037. this._productPhotoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productPhotoTableAdapter]));
  14038. this._productPhotoTableAdapter.Transaction = null;
  14039. }
  14040. if ((this._productSaleTableAdapter != null)) {
  14041. this._productSaleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productSaleTableAdapter]));
  14042. this._productSaleTableAdapter.Transaction = null;
  14043. }
  14044. if ((this._serviceTableAdapter != null)) {
  14045. this._serviceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._serviceTableAdapter]));
  14046. this._serviceTableAdapter.Transaction = null;
  14047. }
  14048. if ((this._service_b_importTableAdapter != null)) {
  14049. this._service_b_importTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._service_b_importTableAdapter]));
  14050. this._service_b_importTableAdapter.Transaction = null;
  14051. }
  14052. if ((this._serviceclient_b_importTableAdapter != null)) {
  14053. this._serviceclient_b_importTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._serviceclient_b_importTableAdapter]));
  14054. this._serviceclient_b_importTableAdapter.Transaction = null;
  14055. }
  14056. if ((this._servicePhotoTableAdapter != null)) {
  14057. this._servicePhotoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._servicePhotoTableAdapter]));
  14058. this._servicePhotoTableAdapter.Transaction = null;
  14059. }
  14060. if ((this._tagTableAdapter != null)) {
  14061. this._tagTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tagTableAdapter]));
  14062. this._tagTableAdapter.Transaction = null;
  14063. }
  14064. if ((this._tagOfClientTableAdapter != null)) {
  14065. this._tagOfClientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tagOfClientTableAdapter]));
  14066. this._tagOfClientTableAdapter.Transaction = null;
  14067. }
  14068. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  14069. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  14070. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  14071. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  14072. global::System.Data.Common.DataAdapter adapter = adapters[i];
  14073. adapter.AcceptChangesDuringUpdate = true;
  14074. }
  14075. }
  14076. }
  14077. return result;
  14078. }
  14079. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14080. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14081. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  14082. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  14083. }
  14084. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14085. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14086. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  14087. if ((this._connection != null)) {
  14088. return true;
  14089. }
  14090. if (((this.Connection == null)
  14091. || (inputConnection == null))) {
  14092. return true;
  14093. }
  14094. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  14095. return true;
  14096. }
  14097. return false;
  14098. }
  14099. /// <summary>
  14100. ///Update Order Option
  14101. ///</summary>
  14102. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14103. public enum UpdateOrderOption {
  14104. InsertUpdateDelete = 0,
  14105. UpdateInsertDelete = 1,
  14106. }
  14107. /// <summary>
  14108. ///Used to sort self-referenced table's rows
  14109. ///</summary>
  14110. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14111. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  14112. private global::System.Data.DataRelation _relation;
  14113. private int _childFirst;
  14114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14115. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14116. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  14117. this._relation = relation;
  14118. if (childFirst) {
  14119. this._childFirst = -1;
  14120. }
  14121. else {
  14122. this._childFirst = 1;
  14123. }
  14124. }
  14125. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14126. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14127. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  14128. global::System.Diagnostics.Debug.Assert((row != null));
  14129. global::System.Data.DataRow root = row;
  14130. distance = 0;
  14131. 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>();
  14132. traversedRows[row] = row;
  14133. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  14134. for (
  14135. ; ((parent != null)
  14136. && (traversedRows.ContainsKey(parent) == false));
  14137. ) {
  14138. distance = (distance + 1);
  14139. root = parent;
  14140. traversedRows[parent] = parent;
  14141. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  14142. }
  14143. if ((distance == 0)) {
  14144. traversedRows.Clear();
  14145. traversedRows[row] = row;
  14146. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  14147. for (
  14148. ; ((parent != null)
  14149. && (traversedRows.ContainsKey(parent) == false));
  14150. ) {
  14151. distance = (distance + 1);
  14152. root = parent;
  14153. traversedRows[parent] = parent;
  14154. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  14155. }
  14156. }
  14157. return root;
  14158. }
  14159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14160. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14161. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  14162. if (object.ReferenceEquals(row1, row2)) {
  14163. return 0;
  14164. }
  14165. if ((row1 == null)) {
  14166. return -1;
  14167. }
  14168. if ((row2 == null)) {
  14169. return 1;
  14170. }
  14171. int distance1 = 0;
  14172. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  14173. int distance2 = 0;
  14174. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  14175. if (object.ReferenceEquals(root1, root2)) {
  14176. return (this._childFirst * distance1.CompareTo(distance2));
  14177. }
  14178. else {
  14179. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  14180. && (root2.Table != null)));
  14181. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  14182. return -1;
  14183. }
  14184. else {
  14185. return 1;
  14186. }
  14187. }
  14188. }
  14189. }
  14190. }
  14191. }
  14192. #pragma warning restore 1591