BB_GebelDataSet.Designer.cs 746 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace Бархатные_бровки_Gebel {
  12. /// <summary>
  13. ///Represents a strongly typed in-memory cache of data.
  14. ///</summary>
  15. [global::System.Serializable()]
  16. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  17. [global::System.ComponentModel.ToolboxItem(true)]
  18. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")]
  19. [global::System.Xml.Serialization.XmlRootAttribute("BB_GebelDataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class BB_GebelDataSet : global::System.Data.DataSet {
  22. private AttachedProductDataTable tableAttachedProduct;
  23. private AvtorizaciaDataTable tableAvtorizacia;
  24. private clientDataTable tableclient;
  25. private client_Service_DataTable tableclient_Service_;
  26. private DocumentServiceDataTable tableDocumentService;
  27. private GenderDataTable tableGender;
  28. private ManufactureDataTable tableManufacture;
  29. private Photo_prouctDataTable tablePhoto_prouct;
  30. private ProductDataTable tableProduct;
  31. private SaleDataTable tableSale;
  32. private serviceDataTable tableservice;
  33. private Service_photoDataTable tableService_photo;
  34. private TagDataTable tableTag;
  35. private Tag_clientDataTable tableTag_client;
  36. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  37. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  38. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  39. public BB_GebelDataSet() {
  40. this.BeginInit();
  41. this.InitClass();
  42. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  43. base.Tables.CollectionChanged += schemaChangedHandler;
  44. base.Relations.CollectionChanged += schemaChangedHandler;
  45. this.EndInit();
  46. }
  47. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  48. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  49. protected BB_GebelDataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  50. base(info, context, false) {
  51. if ((this.IsBinarySerialized(info, context) == true)) {
  52. this.InitVars(false);
  53. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  54. this.Tables.CollectionChanged += schemaChangedHandler1;
  55. this.Relations.CollectionChanged += schemaChangedHandler1;
  56. return;
  57. }
  58. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  59. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  60. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  61. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  62. if ((ds.Tables["AttachedProduct"] != null)) {
  63. base.Tables.Add(new AttachedProductDataTable(ds.Tables["AttachedProduct"]));
  64. }
  65. if ((ds.Tables["Avtorizacia"] != null)) {
  66. base.Tables.Add(new AvtorizaciaDataTable(ds.Tables["Avtorizacia"]));
  67. }
  68. if ((ds.Tables["client"] != null)) {
  69. base.Tables.Add(new clientDataTable(ds.Tables["client"]));
  70. }
  71. if ((ds.Tables["client Service "] != null)) {
  72. base.Tables.Add(new client_Service_DataTable(ds.Tables["client Service "]));
  73. }
  74. if ((ds.Tables["DocumentService"] != null)) {
  75. base.Tables.Add(new DocumentServiceDataTable(ds.Tables["DocumentService"]));
  76. }
  77. if ((ds.Tables["Gender"] != null)) {
  78. base.Tables.Add(new GenderDataTable(ds.Tables["Gender"]));
  79. }
  80. if ((ds.Tables["Manufacture"] != null)) {
  81. base.Tables.Add(new ManufactureDataTable(ds.Tables["Manufacture"]));
  82. }
  83. if ((ds.Tables["Photo prouct"] != null)) {
  84. base.Tables.Add(new Photo_prouctDataTable(ds.Tables["Photo prouct"]));
  85. }
  86. if ((ds.Tables["Product"] != null)) {
  87. base.Tables.Add(new ProductDataTable(ds.Tables["Product"]));
  88. }
  89. if ((ds.Tables["Sale"] != null)) {
  90. base.Tables.Add(new SaleDataTable(ds.Tables["Sale"]));
  91. }
  92. if ((ds.Tables["service"] != null)) {
  93. base.Tables.Add(new serviceDataTable(ds.Tables["service"]));
  94. }
  95. if ((ds.Tables["Service photo"] != null)) {
  96. base.Tables.Add(new Service_photoDataTable(ds.Tables["Service photo"]));
  97. }
  98. if ((ds.Tables["Tag"] != null)) {
  99. base.Tables.Add(new TagDataTable(ds.Tables["Tag"]));
  100. }
  101. if ((ds.Tables["Tag client"] != null)) {
  102. base.Tables.Add(new Tag_clientDataTable(ds.Tables["Tag client"]));
  103. }
  104. this.DataSetName = ds.DataSetName;
  105. this.Prefix = ds.Prefix;
  106. this.Namespace = ds.Namespace;
  107. this.Locale = ds.Locale;
  108. this.CaseSensitive = ds.CaseSensitive;
  109. this.EnforceConstraints = ds.EnforceConstraints;
  110. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  111. this.InitVars();
  112. }
  113. else {
  114. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  115. }
  116. this.GetSerializationData(info, context);
  117. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  118. base.Tables.CollectionChanged += schemaChangedHandler;
  119. this.Relations.CollectionChanged += schemaChangedHandler;
  120. }
  121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  123. [global::System.ComponentModel.Browsable(false)]
  124. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  125. public AttachedProductDataTable AttachedProduct {
  126. get {
  127. return this.tableAttachedProduct;
  128. }
  129. }
  130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  131. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  132. [global::System.ComponentModel.Browsable(false)]
  133. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  134. public AvtorizaciaDataTable Avtorizacia {
  135. get {
  136. return this.tableAvtorizacia;
  137. }
  138. }
  139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  141. [global::System.ComponentModel.Browsable(false)]
  142. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  143. public clientDataTable client {
  144. get {
  145. return this.tableclient;
  146. }
  147. }
  148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  150. [global::System.ComponentModel.Browsable(false)]
  151. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  152. public client_Service_DataTable client_Service_ {
  153. get {
  154. return this.tableclient_Service_;
  155. }
  156. }
  157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  159. [global::System.ComponentModel.Browsable(false)]
  160. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  161. public DocumentServiceDataTable DocumentService {
  162. get {
  163. return this.tableDocumentService;
  164. }
  165. }
  166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  167. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  168. [global::System.ComponentModel.Browsable(false)]
  169. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  170. public GenderDataTable Gender {
  171. get {
  172. return this.tableGender;
  173. }
  174. }
  175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  176. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  177. [global::System.ComponentModel.Browsable(false)]
  178. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  179. public ManufactureDataTable Manufacture {
  180. get {
  181. return this.tableManufacture;
  182. }
  183. }
  184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  186. [global::System.ComponentModel.Browsable(false)]
  187. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  188. public Photo_prouctDataTable Photo_prouct {
  189. get {
  190. return this.tablePhoto_prouct;
  191. }
  192. }
  193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  194. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  195. [global::System.ComponentModel.Browsable(false)]
  196. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  197. public ProductDataTable Product {
  198. get {
  199. return this.tableProduct;
  200. }
  201. }
  202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  204. [global::System.ComponentModel.Browsable(false)]
  205. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  206. public SaleDataTable Sale {
  207. get {
  208. return this.tableSale;
  209. }
  210. }
  211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  213. [global::System.ComponentModel.Browsable(false)]
  214. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  215. public serviceDataTable service {
  216. get {
  217. return this.tableservice;
  218. }
  219. }
  220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  221. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  222. [global::System.ComponentModel.Browsable(false)]
  223. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  224. public Service_photoDataTable Service_photo {
  225. get {
  226. return this.tableService_photo;
  227. }
  228. }
  229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  230. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  231. [global::System.ComponentModel.Browsable(false)]
  232. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  233. public TagDataTable Tag {
  234. get {
  235. return this.tableTag;
  236. }
  237. }
  238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  239. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  240. [global::System.ComponentModel.Browsable(false)]
  241. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  242. public Tag_clientDataTable Tag_client {
  243. get {
  244. return this.tableTag_client;
  245. }
  246. }
  247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  249. [global::System.ComponentModel.BrowsableAttribute(true)]
  250. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  251. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  252. get {
  253. return this._schemaSerializationMode;
  254. }
  255. set {
  256. this._schemaSerializationMode = value;
  257. }
  258. }
  259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  260. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  261. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  262. public new global::System.Data.DataTableCollection Tables {
  263. get {
  264. return base.Tables;
  265. }
  266. }
  267. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  268. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  269. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  270. public new global::System.Data.DataRelationCollection Relations {
  271. get {
  272. return base.Relations;
  273. }
  274. }
  275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  276. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  277. protected override void InitializeDerivedDataSet() {
  278. this.BeginInit();
  279. this.InitClass();
  280. this.EndInit();
  281. }
  282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  284. public override global::System.Data.DataSet Clone() {
  285. BB_GebelDataSet cln = ((BB_GebelDataSet)(base.Clone()));
  286. cln.InitVars();
  287. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  288. return cln;
  289. }
  290. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  291. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  292. protected override bool ShouldSerializeTables() {
  293. return false;
  294. }
  295. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  296. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  297. protected override bool ShouldSerializeRelations() {
  298. return false;
  299. }
  300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  301. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  302. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  303. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  304. this.Reset();
  305. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  306. ds.ReadXml(reader);
  307. if ((ds.Tables["AttachedProduct"] != null)) {
  308. base.Tables.Add(new AttachedProductDataTable(ds.Tables["AttachedProduct"]));
  309. }
  310. if ((ds.Tables["Avtorizacia"] != null)) {
  311. base.Tables.Add(new AvtorizaciaDataTable(ds.Tables["Avtorizacia"]));
  312. }
  313. if ((ds.Tables["client"] != null)) {
  314. base.Tables.Add(new clientDataTable(ds.Tables["client"]));
  315. }
  316. if ((ds.Tables["client Service "] != null)) {
  317. base.Tables.Add(new client_Service_DataTable(ds.Tables["client Service "]));
  318. }
  319. if ((ds.Tables["DocumentService"] != null)) {
  320. base.Tables.Add(new DocumentServiceDataTable(ds.Tables["DocumentService"]));
  321. }
  322. if ((ds.Tables["Gender"] != null)) {
  323. base.Tables.Add(new GenderDataTable(ds.Tables["Gender"]));
  324. }
  325. if ((ds.Tables["Manufacture"] != null)) {
  326. base.Tables.Add(new ManufactureDataTable(ds.Tables["Manufacture"]));
  327. }
  328. if ((ds.Tables["Photo prouct"] != null)) {
  329. base.Tables.Add(new Photo_prouctDataTable(ds.Tables["Photo prouct"]));
  330. }
  331. if ((ds.Tables["Product"] != null)) {
  332. base.Tables.Add(new ProductDataTable(ds.Tables["Product"]));
  333. }
  334. if ((ds.Tables["Sale"] != null)) {
  335. base.Tables.Add(new SaleDataTable(ds.Tables["Sale"]));
  336. }
  337. if ((ds.Tables["service"] != null)) {
  338. base.Tables.Add(new serviceDataTable(ds.Tables["service"]));
  339. }
  340. if ((ds.Tables["Service photo"] != null)) {
  341. base.Tables.Add(new Service_photoDataTable(ds.Tables["Service photo"]));
  342. }
  343. if ((ds.Tables["Tag"] != null)) {
  344. base.Tables.Add(new TagDataTable(ds.Tables["Tag"]));
  345. }
  346. if ((ds.Tables["Tag client"] != null)) {
  347. base.Tables.Add(new Tag_clientDataTable(ds.Tables["Tag client"]));
  348. }
  349. this.DataSetName = ds.DataSetName;
  350. this.Prefix = ds.Prefix;
  351. this.Namespace = ds.Namespace;
  352. this.Locale = ds.Locale;
  353. this.CaseSensitive = ds.CaseSensitive;
  354. this.EnforceConstraints = ds.EnforceConstraints;
  355. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  356. this.InitVars();
  357. }
  358. else {
  359. this.ReadXml(reader);
  360. this.InitVars();
  361. }
  362. }
  363. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  364. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  365. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  366. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  367. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  368. stream.Position = 0;
  369. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  370. }
  371. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  372. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  373. internal void InitVars() {
  374. this.InitVars(true);
  375. }
  376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  378. internal void InitVars(bool initTable) {
  379. this.tableAttachedProduct = ((AttachedProductDataTable)(base.Tables["AttachedProduct"]));
  380. if ((initTable == true)) {
  381. if ((this.tableAttachedProduct != null)) {
  382. this.tableAttachedProduct.InitVars();
  383. }
  384. }
  385. this.tableAvtorizacia = ((AvtorizaciaDataTable)(base.Tables["Avtorizacia"]));
  386. if ((initTable == true)) {
  387. if ((this.tableAvtorizacia != null)) {
  388. this.tableAvtorizacia.InitVars();
  389. }
  390. }
  391. this.tableclient = ((clientDataTable)(base.Tables["client"]));
  392. if ((initTable == true)) {
  393. if ((this.tableclient != null)) {
  394. this.tableclient.InitVars();
  395. }
  396. }
  397. this.tableclient_Service_ = ((client_Service_DataTable)(base.Tables["client Service "]));
  398. if ((initTable == true)) {
  399. if ((this.tableclient_Service_ != null)) {
  400. this.tableclient_Service_.InitVars();
  401. }
  402. }
  403. this.tableDocumentService = ((DocumentServiceDataTable)(base.Tables["DocumentService"]));
  404. if ((initTable == true)) {
  405. if ((this.tableDocumentService != null)) {
  406. this.tableDocumentService.InitVars();
  407. }
  408. }
  409. this.tableGender = ((GenderDataTable)(base.Tables["Gender"]));
  410. if ((initTable == true)) {
  411. if ((this.tableGender != null)) {
  412. this.tableGender.InitVars();
  413. }
  414. }
  415. this.tableManufacture = ((ManufactureDataTable)(base.Tables["Manufacture"]));
  416. if ((initTable == true)) {
  417. if ((this.tableManufacture != null)) {
  418. this.tableManufacture.InitVars();
  419. }
  420. }
  421. this.tablePhoto_prouct = ((Photo_prouctDataTable)(base.Tables["Photo prouct"]));
  422. if ((initTable == true)) {
  423. if ((this.tablePhoto_prouct != null)) {
  424. this.tablePhoto_prouct.InitVars();
  425. }
  426. }
  427. this.tableProduct = ((ProductDataTable)(base.Tables["Product"]));
  428. if ((initTable == true)) {
  429. if ((this.tableProduct != null)) {
  430. this.tableProduct.InitVars();
  431. }
  432. }
  433. this.tableSale = ((SaleDataTable)(base.Tables["Sale"]));
  434. if ((initTable == true)) {
  435. if ((this.tableSale != null)) {
  436. this.tableSale.InitVars();
  437. }
  438. }
  439. this.tableservice = ((serviceDataTable)(base.Tables["service"]));
  440. if ((initTable == true)) {
  441. if ((this.tableservice != null)) {
  442. this.tableservice.InitVars();
  443. }
  444. }
  445. this.tableService_photo = ((Service_photoDataTable)(base.Tables["Service photo"]));
  446. if ((initTable == true)) {
  447. if ((this.tableService_photo != null)) {
  448. this.tableService_photo.InitVars();
  449. }
  450. }
  451. this.tableTag = ((TagDataTable)(base.Tables["Tag"]));
  452. if ((initTable == true)) {
  453. if ((this.tableTag != null)) {
  454. this.tableTag.InitVars();
  455. }
  456. }
  457. this.tableTag_client = ((Tag_clientDataTable)(base.Tables["Tag client"]));
  458. if ((initTable == true)) {
  459. if ((this.tableTag_client != null)) {
  460. this.tableTag_client.InitVars();
  461. }
  462. }
  463. }
  464. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  465. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  466. private void InitClass() {
  467. this.DataSetName = "BB_GebelDataSet";
  468. this.Prefix = "";
  469. this.Namespace = "http://tempuri.org/BB_GebelDataSet.xsd";
  470. this.EnforceConstraints = true;
  471. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  472. this.tableAttachedProduct = new AttachedProductDataTable();
  473. base.Tables.Add(this.tableAttachedProduct);
  474. this.tableAvtorizacia = new AvtorizaciaDataTable();
  475. base.Tables.Add(this.tableAvtorizacia);
  476. this.tableclient = new clientDataTable();
  477. base.Tables.Add(this.tableclient);
  478. this.tableclient_Service_ = new client_Service_DataTable();
  479. base.Tables.Add(this.tableclient_Service_);
  480. this.tableDocumentService = new DocumentServiceDataTable();
  481. base.Tables.Add(this.tableDocumentService);
  482. this.tableGender = new GenderDataTable();
  483. base.Tables.Add(this.tableGender);
  484. this.tableManufacture = new ManufactureDataTable();
  485. base.Tables.Add(this.tableManufacture);
  486. this.tablePhoto_prouct = new Photo_prouctDataTable();
  487. base.Tables.Add(this.tablePhoto_prouct);
  488. this.tableProduct = new ProductDataTable();
  489. base.Tables.Add(this.tableProduct);
  490. this.tableSale = new SaleDataTable();
  491. base.Tables.Add(this.tableSale);
  492. this.tableservice = new serviceDataTable();
  493. base.Tables.Add(this.tableservice);
  494. this.tableService_photo = new Service_photoDataTable();
  495. base.Tables.Add(this.tableService_photo);
  496. this.tableTag = new TagDataTable();
  497. base.Tables.Add(this.tableTag);
  498. this.tableTag_client = new Tag_clientDataTable();
  499. base.Tables.Add(this.tableTag_client);
  500. }
  501. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  502. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  503. private bool ShouldSerializeAttachedProduct() {
  504. return false;
  505. }
  506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  508. private bool ShouldSerializeAvtorizacia() {
  509. return false;
  510. }
  511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  512. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  513. private bool ShouldSerializeclient() {
  514. return false;
  515. }
  516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  517. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  518. private bool ShouldSerializeclient_Service_() {
  519. return false;
  520. }
  521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  523. private bool ShouldSerializeDocumentService() {
  524. return false;
  525. }
  526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  528. private bool ShouldSerializeGender() {
  529. return false;
  530. }
  531. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  532. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  533. private bool ShouldSerializeManufacture() {
  534. return false;
  535. }
  536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  537. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  538. private bool ShouldSerializePhoto_prouct() {
  539. return false;
  540. }
  541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  543. private bool ShouldSerializeProduct() {
  544. return false;
  545. }
  546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  548. private bool ShouldSerializeSale() {
  549. return false;
  550. }
  551. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  552. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  553. private bool ShouldSerializeservice() {
  554. return false;
  555. }
  556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  557. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  558. private bool ShouldSerializeService_photo() {
  559. return false;
  560. }
  561. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  562. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  563. private bool ShouldSerializeTag() {
  564. return false;
  565. }
  566. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  567. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  568. private bool ShouldSerializeTag_client() {
  569. return false;
  570. }
  571. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  572. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  573. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  574. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  575. this.InitVars();
  576. }
  577. }
  578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  580. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  581. BB_GebelDataSet ds = new BB_GebelDataSet();
  582. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  583. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  584. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  585. any.Namespace = ds.Namespace;
  586. sequence.Items.Add(any);
  587. type.Particle = sequence;
  588. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  589. if (xs.Contains(dsSchema.TargetNamespace)) {
  590. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  591. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  592. try {
  593. global::System.Xml.Schema.XmlSchema schema = null;
  594. dsSchema.Write(s1);
  595. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  596. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  597. s2.SetLength(0);
  598. schema.Write(s2);
  599. if ((s1.Length == s2.Length)) {
  600. s1.Position = 0;
  601. s2.Position = 0;
  602. for (; ((s1.Position != s1.Length)
  603. && (s1.ReadByte() == s2.ReadByte())); ) {
  604. ;
  605. }
  606. if ((s1.Position == s1.Length)) {
  607. return type;
  608. }
  609. }
  610. }
  611. }
  612. finally {
  613. if ((s1 != null)) {
  614. s1.Close();
  615. }
  616. if ((s2 != null)) {
  617. s2.Close();
  618. }
  619. }
  620. }
  621. xs.Add(dsSchema);
  622. return type;
  623. }
  624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  625. public delegate void AttachedProductRowChangeEventHandler(object sender, AttachedProductRowChangeEvent e);
  626. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  627. public delegate void AvtorizaciaRowChangeEventHandler(object sender, AvtorizaciaRowChangeEvent e);
  628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  629. public delegate void clientRowChangeEventHandler(object sender, clientRowChangeEvent e);
  630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  631. public delegate void client_Service_RowChangeEventHandler(object sender, client_Service_RowChangeEvent e);
  632. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  633. public delegate void DocumentServiceRowChangeEventHandler(object sender, DocumentServiceRowChangeEvent e);
  634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  635. public delegate void GenderRowChangeEventHandler(object sender, GenderRowChangeEvent e);
  636. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  637. public delegate void ManufactureRowChangeEventHandler(object sender, ManufactureRowChangeEvent e);
  638. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  639. public delegate void Photo_prouctRowChangeEventHandler(object sender, Photo_prouctRowChangeEvent e);
  640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  641. public delegate void ProductRowChangeEventHandler(object sender, ProductRowChangeEvent e);
  642. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  643. public delegate void SaleRowChangeEventHandler(object sender, SaleRowChangeEvent e);
  644. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  645. public delegate void serviceRowChangeEventHandler(object sender, serviceRowChangeEvent e);
  646. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  647. public delegate void Service_photoRowChangeEventHandler(object sender, Service_photoRowChangeEvent e);
  648. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  649. public delegate void TagRowChangeEventHandler(object sender, TagRowChangeEvent e);
  650. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  651. public delegate void Tag_clientRowChangeEventHandler(object sender, Tag_clientRowChangeEvent e);
  652. /// <summary>
  653. ///Represents the strongly named DataTable class.
  654. ///</summary>
  655. [global::System.Serializable()]
  656. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  657. public partial class AttachedProductDataTable : global::System.Data.TypedTableBase<AttachedProductRow> {
  658. private global::System.Data.DataColumn columnMain_Product_ID;
  659. private global::System.Data.DataColumn columnAttached_Product_ID;
  660. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  661. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  662. public AttachedProductDataTable() {
  663. this.TableName = "AttachedProduct";
  664. this.BeginInit();
  665. this.InitClass();
  666. this.EndInit();
  667. }
  668. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  669. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  670. internal AttachedProductDataTable(global::System.Data.DataTable table) {
  671. this.TableName = table.TableName;
  672. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  673. this.CaseSensitive = table.CaseSensitive;
  674. }
  675. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  676. this.Locale = table.Locale;
  677. }
  678. if ((table.Namespace != table.DataSet.Namespace)) {
  679. this.Namespace = table.Namespace;
  680. }
  681. this.Prefix = table.Prefix;
  682. this.MinimumCapacity = table.MinimumCapacity;
  683. }
  684. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  685. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  686. protected AttachedProductDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  687. base(info, context) {
  688. this.InitVars();
  689. }
  690. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  691. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  692. public global::System.Data.DataColumn Main_Product_IDColumn {
  693. get {
  694. return this.columnMain_Product_ID;
  695. }
  696. }
  697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  698. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  699. public global::System.Data.DataColumn Attached_Product_IDColumn {
  700. get {
  701. return this.columnAttached_Product_ID;
  702. }
  703. }
  704. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  705. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  706. [global::System.ComponentModel.Browsable(false)]
  707. public int Count {
  708. get {
  709. return this.Rows.Count;
  710. }
  711. }
  712. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  713. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  714. public AttachedProductRow this[int index] {
  715. get {
  716. return ((AttachedProductRow)(this.Rows[index]));
  717. }
  718. }
  719. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  720. public event AttachedProductRowChangeEventHandler AttachedProductRowChanging;
  721. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  722. public event AttachedProductRowChangeEventHandler AttachedProductRowChanged;
  723. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  724. public event AttachedProductRowChangeEventHandler AttachedProductRowDeleting;
  725. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  726. public event AttachedProductRowChangeEventHandler AttachedProductRowDeleted;
  727. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  728. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  729. public void AddAttachedProductRow(AttachedProductRow row) {
  730. this.Rows.Add(row);
  731. }
  732. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  733. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  734. public AttachedProductRow AddAttachedProductRow(int Main_Product_ID) {
  735. AttachedProductRow rowAttachedProductRow = ((AttachedProductRow)(this.NewRow()));
  736. object[] columnValuesArray = new object[] {
  737. Main_Product_ID,
  738. null};
  739. rowAttachedProductRow.ItemArray = columnValuesArray;
  740. this.Rows.Add(rowAttachedProductRow);
  741. return rowAttachedProductRow;
  742. }
  743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  745. public AttachedProductRow FindByMain_Product_ID(int Main_Product_ID) {
  746. return ((AttachedProductRow)(this.Rows.Find(new object[] {
  747. Main_Product_ID})));
  748. }
  749. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  750. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  751. public override global::System.Data.DataTable Clone() {
  752. AttachedProductDataTable cln = ((AttachedProductDataTable)(base.Clone()));
  753. cln.InitVars();
  754. return cln;
  755. }
  756. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  757. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  758. protected override global::System.Data.DataTable CreateInstance() {
  759. return new AttachedProductDataTable();
  760. }
  761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  763. internal void InitVars() {
  764. this.columnMain_Product_ID = base.Columns["Main_Product_ID"];
  765. this.columnAttached_Product_ID = base.Columns["Attached_Product_ID"];
  766. }
  767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  768. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  769. private void InitClass() {
  770. this.columnMain_Product_ID = new global::System.Data.DataColumn("Main_Product_ID", typeof(int), null, global::System.Data.MappingType.Element);
  771. base.Columns.Add(this.columnMain_Product_ID);
  772. this.columnAttached_Product_ID = new global::System.Data.DataColumn("Attached_Product_ID", typeof(int), null, global::System.Data.MappingType.Element);
  773. base.Columns.Add(this.columnAttached_Product_ID);
  774. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  775. this.columnMain_Product_ID}, true));
  776. this.columnMain_Product_ID.AllowDBNull = false;
  777. this.columnMain_Product_ID.Unique = true;
  778. this.columnAttached_Product_ID.AutoIncrement = true;
  779. this.columnAttached_Product_ID.AutoIncrementSeed = -1;
  780. this.columnAttached_Product_ID.AutoIncrementStep = -1;
  781. this.columnAttached_Product_ID.AllowDBNull = false;
  782. this.columnAttached_Product_ID.ReadOnly = true;
  783. }
  784. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  785. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  786. public AttachedProductRow NewAttachedProductRow() {
  787. return ((AttachedProductRow)(this.NewRow()));
  788. }
  789. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  790. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  791. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  792. return new AttachedProductRow(builder);
  793. }
  794. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  795. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  796. protected override global::System.Type GetRowType() {
  797. return typeof(AttachedProductRow);
  798. }
  799. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  800. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  801. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  802. base.OnRowChanged(e);
  803. if ((this.AttachedProductRowChanged != null)) {
  804. this.AttachedProductRowChanged(this, new AttachedProductRowChangeEvent(((AttachedProductRow)(e.Row)), e.Action));
  805. }
  806. }
  807. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  808. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  809. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  810. base.OnRowChanging(e);
  811. if ((this.AttachedProductRowChanging != null)) {
  812. this.AttachedProductRowChanging(this, new AttachedProductRowChangeEvent(((AttachedProductRow)(e.Row)), e.Action));
  813. }
  814. }
  815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  816. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  817. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  818. base.OnRowDeleted(e);
  819. if ((this.AttachedProductRowDeleted != null)) {
  820. this.AttachedProductRowDeleted(this, new AttachedProductRowChangeEvent(((AttachedProductRow)(e.Row)), e.Action));
  821. }
  822. }
  823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  824. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  825. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  826. base.OnRowDeleting(e);
  827. if ((this.AttachedProductRowDeleting != null)) {
  828. this.AttachedProductRowDeleting(this, new AttachedProductRowChangeEvent(((AttachedProductRow)(e.Row)), e.Action));
  829. }
  830. }
  831. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  832. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  833. public void RemoveAttachedProductRow(AttachedProductRow row) {
  834. this.Rows.Remove(row);
  835. }
  836. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  837. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  838. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  839. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  840. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  841. BB_GebelDataSet ds = new BB_GebelDataSet();
  842. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  843. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  844. any1.MinOccurs = new decimal(0);
  845. any1.MaxOccurs = decimal.MaxValue;
  846. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  847. sequence.Items.Add(any1);
  848. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  849. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  850. any2.MinOccurs = new decimal(1);
  851. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  852. sequence.Items.Add(any2);
  853. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  854. attribute1.Name = "namespace";
  855. attribute1.FixedValue = ds.Namespace;
  856. type.Attributes.Add(attribute1);
  857. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  858. attribute2.Name = "tableTypeName";
  859. attribute2.FixedValue = "AttachedProductDataTable";
  860. type.Attributes.Add(attribute2);
  861. type.Particle = sequence;
  862. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  863. if (xs.Contains(dsSchema.TargetNamespace)) {
  864. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  865. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  866. try {
  867. global::System.Xml.Schema.XmlSchema schema = null;
  868. dsSchema.Write(s1);
  869. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  870. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  871. s2.SetLength(0);
  872. schema.Write(s2);
  873. if ((s1.Length == s2.Length)) {
  874. s1.Position = 0;
  875. s2.Position = 0;
  876. for (; ((s1.Position != s1.Length)
  877. && (s1.ReadByte() == s2.ReadByte())); ) {
  878. ;
  879. }
  880. if ((s1.Position == s1.Length)) {
  881. return type;
  882. }
  883. }
  884. }
  885. }
  886. finally {
  887. if ((s1 != null)) {
  888. s1.Close();
  889. }
  890. if ((s2 != null)) {
  891. s2.Close();
  892. }
  893. }
  894. }
  895. xs.Add(dsSchema);
  896. return type;
  897. }
  898. }
  899. /// <summary>
  900. ///Represents the strongly named DataTable class.
  901. ///</summary>
  902. [global::System.Serializable()]
  903. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  904. public partial class AvtorizaciaDataTable : global::System.Data.TypedTableBase<AvtorizaciaRow> {
  905. private global::System.Data.DataColumn columnLogin;
  906. private global::System.Data.DataColumn columnPassword;
  907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  909. public AvtorizaciaDataTable() {
  910. this.TableName = "Avtorizacia";
  911. this.BeginInit();
  912. this.InitClass();
  913. this.EndInit();
  914. }
  915. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  916. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  917. internal AvtorizaciaDataTable(global::System.Data.DataTable table) {
  918. this.TableName = table.TableName;
  919. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  920. this.CaseSensitive = table.CaseSensitive;
  921. }
  922. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  923. this.Locale = table.Locale;
  924. }
  925. if ((table.Namespace != table.DataSet.Namespace)) {
  926. this.Namespace = table.Namespace;
  927. }
  928. this.Prefix = table.Prefix;
  929. this.MinimumCapacity = table.MinimumCapacity;
  930. }
  931. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  932. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  933. protected AvtorizaciaDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  934. base(info, context) {
  935. this.InitVars();
  936. }
  937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  938. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  939. public global::System.Data.DataColumn LoginColumn {
  940. get {
  941. return this.columnLogin;
  942. }
  943. }
  944. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  945. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  946. public global::System.Data.DataColumn PasswordColumn {
  947. get {
  948. return this.columnPassword;
  949. }
  950. }
  951. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  952. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  953. [global::System.ComponentModel.Browsable(false)]
  954. public int Count {
  955. get {
  956. return this.Rows.Count;
  957. }
  958. }
  959. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  960. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  961. public AvtorizaciaRow this[int index] {
  962. get {
  963. return ((AvtorizaciaRow)(this.Rows[index]));
  964. }
  965. }
  966. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  967. public event AvtorizaciaRowChangeEventHandler AvtorizaciaRowChanging;
  968. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  969. public event AvtorizaciaRowChangeEventHandler AvtorizaciaRowChanged;
  970. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  971. public event AvtorizaciaRowChangeEventHandler AvtorizaciaRowDeleting;
  972. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  973. public event AvtorizaciaRowChangeEventHandler AvtorizaciaRowDeleted;
  974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  975. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  976. public void AddAvtorizaciaRow(AvtorizaciaRow row) {
  977. this.Rows.Add(row);
  978. }
  979. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  980. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  981. public AvtorizaciaRow AddAvtorizaciaRow(string Login, string Password) {
  982. AvtorizaciaRow rowAvtorizaciaRow = ((AvtorizaciaRow)(this.NewRow()));
  983. object[] columnValuesArray = new object[] {
  984. Login,
  985. Password};
  986. rowAvtorizaciaRow.ItemArray = columnValuesArray;
  987. this.Rows.Add(rowAvtorizaciaRow);
  988. return rowAvtorizaciaRow;
  989. }
  990. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  991. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  992. public override global::System.Data.DataTable Clone() {
  993. AvtorizaciaDataTable cln = ((AvtorizaciaDataTable)(base.Clone()));
  994. cln.InitVars();
  995. return cln;
  996. }
  997. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  998. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  999. protected override global::System.Data.DataTable CreateInstance() {
  1000. return new AvtorizaciaDataTable();
  1001. }
  1002. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1003. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1004. internal void InitVars() {
  1005. this.columnLogin = base.Columns["Login"];
  1006. this.columnPassword = base.Columns["Password"];
  1007. }
  1008. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1009. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1010. private void InitClass() {
  1011. this.columnLogin = new global::System.Data.DataColumn("Login", typeof(string), null, global::System.Data.MappingType.Element);
  1012. base.Columns.Add(this.columnLogin);
  1013. this.columnPassword = new global::System.Data.DataColumn("Password", typeof(string), null, global::System.Data.MappingType.Element);
  1014. base.Columns.Add(this.columnPassword);
  1015. this.columnLogin.AllowDBNull = false;
  1016. this.columnLogin.MaxLength = 2147483647;
  1017. this.columnPassword.AllowDBNull = false;
  1018. this.columnPassword.MaxLength = 2147483647;
  1019. }
  1020. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1021. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1022. public AvtorizaciaRow NewAvtorizaciaRow() {
  1023. return ((AvtorizaciaRow)(this.NewRow()));
  1024. }
  1025. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1026. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1027. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1028. return new AvtorizaciaRow(builder);
  1029. }
  1030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1032. protected override global::System.Type GetRowType() {
  1033. return typeof(AvtorizaciaRow);
  1034. }
  1035. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1036. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1037. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1038. base.OnRowChanged(e);
  1039. if ((this.AvtorizaciaRowChanged != null)) {
  1040. this.AvtorizaciaRowChanged(this, new AvtorizaciaRowChangeEvent(((AvtorizaciaRow)(e.Row)), e.Action));
  1041. }
  1042. }
  1043. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1044. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1045. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1046. base.OnRowChanging(e);
  1047. if ((this.AvtorizaciaRowChanging != null)) {
  1048. this.AvtorizaciaRowChanging(this, new AvtorizaciaRowChangeEvent(((AvtorizaciaRow)(e.Row)), e.Action));
  1049. }
  1050. }
  1051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1053. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1054. base.OnRowDeleted(e);
  1055. if ((this.AvtorizaciaRowDeleted != null)) {
  1056. this.AvtorizaciaRowDeleted(this, new AvtorizaciaRowChangeEvent(((AvtorizaciaRow)(e.Row)), e.Action));
  1057. }
  1058. }
  1059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1060. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1061. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1062. base.OnRowDeleting(e);
  1063. if ((this.AvtorizaciaRowDeleting != null)) {
  1064. this.AvtorizaciaRowDeleting(this, new AvtorizaciaRowChangeEvent(((AvtorizaciaRow)(e.Row)), e.Action));
  1065. }
  1066. }
  1067. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1068. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1069. public void RemoveAvtorizaciaRow(AvtorizaciaRow row) {
  1070. this.Rows.Remove(row);
  1071. }
  1072. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1073. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1074. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1075. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1076. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1077. BB_GebelDataSet ds = new BB_GebelDataSet();
  1078. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1079. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1080. any1.MinOccurs = new decimal(0);
  1081. any1.MaxOccurs = decimal.MaxValue;
  1082. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1083. sequence.Items.Add(any1);
  1084. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1085. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1086. any2.MinOccurs = new decimal(1);
  1087. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1088. sequence.Items.Add(any2);
  1089. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1090. attribute1.Name = "namespace";
  1091. attribute1.FixedValue = ds.Namespace;
  1092. type.Attributes.Add(attribute1);
  1093. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1094. attribute2.Name = "tableTypeName";
  1095. attribute2.FixedValue = "AvtorizaciaDataTable";
  1096. type.Attributes.Add(attribute2);
  1097. type.Particle = sequence;
  1098. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1099. if (xs.Contains(dsSchema.TargetNamespace)) {
  1100. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1101. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1102. try {
  1103. global::System.Xml.Schema.XmlSchema schema = null;
  1104. dsSchema.Write(s1);
  1105. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1106. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1107. s2.SetLength(0);
  1108. schema.Write(s2);
  1109. if ((s1.Length == s2.Length)) {
  1110. s1.Position = 0;
  1111. s2.Position = 0;
  1112. for (; ((s1.Position != s1.Length)
  1113. && (s1.ReadByte() == s2.ReadByte())); ) {
  1114. ;
  1115. }
  1116. if ((s1.Position == s1.Length)) {
  1117. return type;
  1118. }
  1119. }
  1120. }
  1121. }
  1122. finally {
  1123. if ((s1 != null)) {
  1124. s1.Close();
  1125. }
  1126. if ((s2 != null)) {
  1127. s2.Close();
  1128. }
  1129. }
  1130. }
  1131. xs.Add(dsSchema);
  1132. return type;
  1133. }
  1134. }
  1135. /// <summary>
  1136. ///Represents the strongly named DataTable class.
  1137. ///</summary>
  1138. [global::System.Serializable()]
  1139. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1140. public partial class clientDataTable : global::System.Data.TypedTableBase<clientRow> {
  1141. private global::System.Data.DataColumn columnID;
  1142. private global::System.Data.DataColumn columnФамилия;
  1143. private global::System.Data.DataColumn columnИмя;
  1144. private global::System.Data.DataColumn columnОтчество;
  1145. private global::System.Data.DataColumn columnПол;
  1146. private global::System.Data.DataColumn columnТелефон;
  1147. private global::System.Data.DataColumn columnДата_рождения;
  1148. private global::System.Data.DataColumn columnEmail;
  1149. private global::System.Data.DataColumn columnДата_регистрации;
  1150. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1151. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1152. public clientDataTable() {
  1153. this.TableName = "client";
  1154. this.BeginInit();
  1155. this.InitClass();
  1156. this.EndInit();
  1157. }
  1158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1159. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1160. internal clientDataTable(global::System.Data.DataTable table) {
  1161. this.TableName = table.TableName;
  1162. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1163. this.CaseSensitive = table.CaseSensitive;
  1164. }
  1165. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1166. this.Locale = table.Locale;
  1167. }
  1168. if ((table.Namespace != table.DataSet.Namespace)) {
  1169. this.Namespace = table.Namespace;
  1170. }
  1171. this.Prefix = table.Prefix;
  1172. this.MinimumCapacity = table.MinimumCapacity;
  1173. }
  1174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1175. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1176. protected clientDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1177. base(info, context) {
  1178. this.InitVars();
  1179. }
  1180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1181. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1182. public global::System.Data.DataColumn IDColumn {
  1183. get {
  1184. return this.columnID;
  1185. }
  1186. }
  1187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1188. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1189. public global::System.Data.DataColumn ФамилияColumn {
  1190. get {
  1191. return this.columnФамилия;
  1192. }
  1193. }
  1194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1196. public global::System.Data.DataColumn ИмяColumn {
  1197. get {
  1198. return this.columnИмя;
  1199. }
  1200. }
  1201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1203. public global::System.Data.DataColumn ОтчествоColumn {
  1204. get {
  1205. return this.columnОтчество;
  1206. }
  1207. }
  1208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1209. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1210. public global::System.Data.DataColumn ПолColumn {
  1211. get {
  1212. return this.columnПол;
  1213. }
  1214. }
  1215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1216. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1217. public global::System.Data.DataColumn ТелефонColumn {
  1218. get {
  1219. return this.columnТелефон;
  1220. }
  1221. }
  1222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1224. public global::System.Data.DataColumn Дата_рожденияColumn {
  1225. get {
  1226. return this.columnДата_рождения;
  1227. }
  1228. }
  1229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1230. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1231. public global::System.Data.DataColumn EmailColumn {
  1232. get {
  1233. return this.columnEmail;
  1234. }
  1235. }
  1236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1237. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1238. public global::System.Data.DataColumn Дата_регистрацииColumn {
  1239. get {
  1240. return this.columnДата_регистрации;
  1241. }
  1242. }
  1243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1245. [global::System.ComponentModel.Browsable(false)]
  1246. public int Count {
  1247. get {
  1248. return this.Rows.Count;
  1249. }
  1250. }
  1251. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1252. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1253. public clientRow this[int index] {
  1254. get {
  1255. return ((clientRow)(this.Rows[index]));
  1256. }
  1257. }
  1258. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1259. public event clientRowChangeEventHandler clientRowChanging;
  1260. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1261. public event clientRowChangeEventHandler clientRowChanged;
  1262. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1263. public event clientRowChangeEventHandler clientRowDeleting;
  1264. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1265. public event clientRowChangeEventHandler clientRowDeleted;
  1266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1268. public void AddclientRow(clientRow row) {
  1269. this.Rows.Add(row);
  1270. }
  1271. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1272. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1273. public clientRow AddclientRow(string ID, string Фамилия, string Имя, string Отчество, string Пол, string Телефон, System.DateTime Дата_рождения, string Email, System.DateTime Дата_регистрации) {
  1274. clientRow rowclientRow = ((clientRow)(this.NewRow()));
  1275. object[] columnValuesArray = new object[] {
  1276. ID,
  1277. Фамилия,
  1278. Имя,
  1279. Отчество,
  1280. Пол,
  1281. Телефон,
  1282. Дата_рождения,
  1283. Email,
  1284. Дата_регистрации};
  1285. rowclientRow.ItemArray = columnValuesArray;
  1286. this.Rows.Add(rowclientRow);
  1287. return rowclientRow;
  1288. }
  1289. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1290. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1291. public clientRow FindByID(string ID) {
  1292. return ((clientRow)(this.Rows.Find(new object[] {
  1293. ID})));
  1294. }
  1295. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1296. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1297. public override global::System.Data.DataTable Clone() {
  1298. clientDataTable cln = ((clientDataTable)(base.Clone()));
  1299. cln.InitVars();
  1300. return cln;
  1301. }
  1302. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1303. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1304. protected override global::System.Data.DataTable CreateInstance() {
  1305. return new clientDataTable();
  1306. }
  1307. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1308. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1309. internal void InitVars() {
  1310. this.columnID = base.Columns["ID"];
  1311. this.columnФамилия = base.Columns["Фамилия"];
  1312. this.columnИмя = base.Columns["Имя"];
  1313. this.columnОтчество = base.Columns["Отчество"];
  1314. this.columnПол = base.Columns["Пол"];
  1315. this.columnТелефон = base.Columns["Телефон"];
  1316. this.columnДата_рождения = base.Columns["Дата_рождения"];
  1317. this.columnEmail = base.Columns["Email"];
  1318. this.columnДата_регистрации = base.Columns["Дата_регистрации"];
  1319. }
  1320. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1321. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1322. private void InitClass() {
  1323. this.columnID = new global::System.Data.DataColumn("ID", typeof(string), null, global::System.Data.MappingType.Element);
  1324. base.Columns.Add(this.columnID);
  1325. this.columnФамилия = new global::System.Data.DataColumn("Фамилия", typeof(string), null, global::System.Data.MappingType.Element);
  1326. base.Columns.Add(this.columnФамилия);
  1327. this.columnИмя = new global::System.Data.DataColumn("Имя", typeof(string), null, global::System.Data.MappingType.Element);
  1328. base.Columns.Add(this.columnИмя);
  1329. this.columnОтчество = new global::System.Data.DataColumn("Отчество", typeof(string), null, global::System.Data.MappingType.Element);
  1330. base.Columns.Add(this.columnОтчество);
  1331. this.columnПол = new global::System.Data.DataColumn("Пол", typeof(string), null, global::System.Data.MappingType.Element);
  1332. base.Columns.Add(this.columnПол);
  1333. this.columnТелефон = new global::System.Data.DataColumn("Телефон", typeof(string), null, global::System.Data.MappingType.Element);
  1334. base.Columns.Add(this.columnТелефон);
  1335. this.columnДата_рождения = new global::System.Data.DataColumn("Дата_рождения", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1336. base.Columns.Add(this.columnДата_рождения);
  1337. this.columnEmail = new global::System.Data.DataColumn("Email", typeof(string), null, global::System.Data.MappingType.Element);
  1338. base.Columns.Add(this.columnEmail);
  1339. this.columnДата_регистрации = new global::System.Data.DataColumn("Дата_регистрации", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1340. base.Columns.Add(this.columnДата_регистрации);
  1341. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1342. this.columnID}, true));
  1343. this.columnID.AllowDBNull = false;
  1344. this.columnID.Unique = true;
  1345. this.columnID.MaxLength = 50;
  1346. this.columnФамилия.AllowDBNull = false;
  1347. this.columnФамилия.MaxLength = 50;
  1348. this.columnИмя.AllowDBNull = false;
  1349. this.columnИмя.MaxLength = 50;
  1350. this.columnОтчество.AllowDBNull = false;
  1351. this.columnОтчество.MaxLength = 50;
  1352. this.columnПол.AllowDBNull = false;
  1353. this.columnПол.MaxLength = 50;
  1354. this.columnТелефон.AllowDBNull = false;
  1355. this.columnТелефон.MaxLength = 50;
  1356. this.columnДата_рождения.AllowDBNull = false;
  1357. this.columnEmail.AllowDBNull = false;
  1358. this.columnEmail.MaxLength = 50;
  1359. this.columnДата_регистрации.AllowDBNull = false;
  1360. }
  1361. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1362. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1363. public clientRow NewclientRow() {
  1364. return ((clientRow)(this.NewRow()));
  1365. }
  1366. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1367. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1368. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1369. return new clientRow(builder);
  1370. }
  1371. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1372. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1373. protected override global::System.Type GetRowType() {
  1374. return typeof(clientRow);
  1375. }
  1376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1378. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1379. base.OnRowChanged(e);
  1380. if ((this.clientRowChanged != null)) {
  1381. this.clientRowChanged(this, new clientRowChangeEvent(((clientRow)(e.Row)), e.Action));
  1382. }
  1383. }
  1384. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1385. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1386. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1387. base.OnRowChanging(e);
  1388. if ((this.clientRowChanging != null)) {
  1389. this.clientRowChanging(this, new clientRowChangeEvent(((clientRow)(e.Row)), e.Action));
  1390. }
  1391. }
  1392. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1393. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1394. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1395. base.OnRowDeleted(e);
  1396. if ((this.clientRowDeleted != null)) {
  1397. this.clientRowDeleted(this, new clientRowChangeEvent(((clientRow)(e.Row)), e.Action));
  1398. }
  1399. }
  1400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1402. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1403. base.OnRowDeleting(e);
  1404. if ((this.clientRowDeleting != null)) {
  1405. this.clientRowDeleting(this, new clientRowChangeEvent(((clientRow)(e.Row)), e.Action));
  1406. }
  1407. }
  1408. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1409. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1410. public void RemoveclientRow(clientRow row) {
  1411. this.Rows.Remove(row);
  1412. }
  1413. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1414. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1415. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1416. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1417. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1418. BB_GebelDataSet ds = new BB_GebelDataSet();
  1419. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1420. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1421. any1.MinOccurs = new decimal(0);
  1422. any1.MaxOccurs = decimal.MaxValue;
  1423. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1424. sequence.Items.Add(any1);
  1425. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1426. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1427. any2.MinOccurs = new decimal(1);
  1428. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1429. sequence.Items.Add(any2);
  1430. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1431. attribute1.Name = "namespace";
  1432. attribute1.FixedValue = ds.Namespace;
  1433. type.Attributes.Add(attribute1);
  1434. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1435. attribute2.Name = "tableTypeName";
  1436. attribute2.FixedValue = "clientDataTable";
  1437. type.Attributes.Add(attribute2);
  1438. type.Particle = sequence;
  1439. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1440. if (xs.Contains(dsSchema.TargetNamespace)) {
  1441. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1442. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1443. try {
  1444. global::System.Xml.Schema.XmlSchema schema = null;
  1445. dsSchema.Write(s1);
  1446. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1447. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1448. s2.SetLength(0);
  1449. schema.Write(s2);
  1450. if ((s1.Length == s2.Length)) {
  1451. s1.Position = 0;
  1452. s2.Position = 0;
  1453. for (; ((s1.Position != s1.Length)
  1454. && (s1.ReadByte() == s2.ReadByte())); ) {
  1455. ;
  1456. }
  1457. if ((s1.Position == s1.Length)) {
  1458. return type;
  1459. }
  1460. }
  1461. }
  1462. }
  1463. finally {
  1464. if ((s1 != null)) {
  1465. s1.Close();
  1466. }
  1467. if ((s2 != null)) {
  1468. s2.Close();
  1469. }
  1470. }
  1471. }
  1472. xs.Add(dsSchema);
  1473. return type;
  1474. }
  1475. }
  1476. /// <summary>
  1477. ///Represents the strongly named DataTable class.
  1478. ///</summary>
  1479. [global::System.Serializable()]
  1480. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1481. public partial class client_Service_DataTable : global::System.Data.TypedTableBase<client_Service_Row> {
  1482. private global::System.Data.DataColumn columnID;
  1483. private global::System.Data.DataColumn columnID_client;
  1484. private global::System.Data.DataColumn columnID_service;
  1485. private global::System.Data.DataColumn columnStartTime;
  1486. private global::System.Data.DataColumn columnComments;
  1487. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1488. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1489. public client_Service_DataTable() {
  1490. this.TableName = "client Service ";
  1491. this.BeginInit();
  1492. this.InitClass();
  1493. this.EndInit();
  1494. }
  1495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1497. internal client_Service_DataTable(global::System.Data.DataTable table) {
  1498. this.TableName = table.TableName;
  1499. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1500. this.CaseSensitive = table.CaseSensitive;
  1501. }
  1502. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1503. this.Locale = table.Locale;
  1504. }
  1505. if ((table.Namespace != table.DataSet.Namespace)) {
  1506. this.Namespace = table.Namespace;
  1507. }
  1508. this.Prefix = table.Prefix;
  1509. this.MinimumCapacity = table.MinimumCapacity;
  1510. }
  1511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1512. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1513. protected client_Service_DataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1514. base(info, context) {
  1515. this.InitVars();
  1516. }
  1517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1518. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1519. public global::System.Data.DataColumn IDColumn {
  1520. get {
  1521. return this.columnID;
  1522. }
  1523. }
  1524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1525. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1526. public global::System.Data.DataColumn ID_clientColumn {
  1527. get {
  1528. return this.columnID_client;
  1529. }
  1530. }
  1531. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1532. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1533. public global::System.Data.DataColumn ID_serviceColumn {
  1534. get {
  1535. return this.columnID_service;
  1536. }
  1537. }
  1538. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1539. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1540. public global::System.Data.DataColumn StartTimeColumn {
  1541. get {
  1542. return this.columnStartTime;
  1543. }
  1544. }
  1545. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1546. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1547. public global::System.Data.DataColumn CommentsColumn {
  1548. get {
  1549. return this.columnComments;
  1550. }
  1551. }
  1552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1554. [global::System.ComponentModel.Browsable(false)]
  1555. public int Count {
  1556. get {
  1557. return this.Rows.Count;
  1558. }
  1559. }
  1560. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1561. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1562. public client_Service_Row this[int index] {
  1563. get {
  1564. return ((client_Service_Row)(this.Rows[index]));
  1565. }
  1566. }
  1567. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1568. public event client_Service_RowChangeEventHandler client_Service_RowChanging;
  1569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1570. public event client_Service_RowChangeEventHandler client_Service_RowChanged;
  1571. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1572. public event client_Service_RowChangeEventHandler client_Service_RowDeleting;
  1573. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1574. public event client_Service_RowChangeEventHandler client_Service_RowDeleted;
  1575. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1576. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1577. public void Addclient_Service_Row(client_Service_Row row) {
  1578. this.Rows.Add(row);
  1579. }
  1580. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1581. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1582. public client_Service_Row Addclient_Service_Row(int ID, int ID_client, int ID_service, System.DateTime StartTime, string Comments) {
  1583. client_Service_Row rowclient_Service_Row = ((client_Service_Row)(this.NewRow()));
  1584. object[] columnValuesArray = new object[] {
  1585. ID,
  1586. ID_client,
  1587. ID_service,
  1588. StartTime,
  1589. Comments};
  1590. rowclient_Service_Row.ItemArray = columnValuesArray;
  1591. this.Rows.Add(rowclient_Service_Row);
  1592. return rowclient_Service_Row;
  1593. }
  1594. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1595. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1596. public client_Service_Row FindByID(int ID) {
  1597. return ((client_Service_Row)(this.Rows.Find(new object[] {
  1598. ID})));
  1599. }
  1600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1601. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1602. public override global::System.Data.DataTable Clone() {
  1603. client_Service_DataTable cln = ((client_Service_DataTable)(base.Clone()));
  1604. cln.InitVars();
  1605. return cln;
  1606. }
  1607. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1608. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1609. protected override global::System.Data.DataTable CreateInstance() {
  1610. return new client_Service_DataTable();
  1611. }
  1612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1614. internal void InitVars() {
  1615. this.columnID = base.Columns["ID"];
  1616. this.columnID_client = base.Columns["ID_client"];
  1617. this.columnID_service = base.Columns["ID_service"];
  1618. this.columnStartTime = base.Columns["StartTime"];
  1619. this.columnComments = base.Columns["Comments"];
  1620. }
  1621. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1622. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1623. private void InitClass() {
  1624. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  1625. base.Columns.Add(this.columnID);
  1626. this.columnID_client = new global::System.Data.DataColumn("ID_client", typeof(int), null, global::System.Data.MappingType.Element);
  1627. base.Columns.Add(this.columnID_client);
  1628. this.columnID_service = new global::System.Data.DataColumn("ID_service", typeof(int), null, global::System.Data.MappingType.Element);
  1629. base.Columns.Add(this.columnID_service);
  1630. this.columnStartTime = new global::System.Data.DataColumn("StartTime", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1631. base.Columns.Add(this.columnStartTime);
  1632. this.columnComments = new global::System.Data.DataColumn("Comments", typeof(string), null, global::System.Data.MappingType.Element);
  1633. base.Columns.Add(this.columnComments);
  1634. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1635. this.columnID}, true));
  1636. this.columnID.AllowDBNull = false;
  1637. this.columnID.Unique = true;
  1638. this.columnID_client.AllowDBNull = false;
  1639. this.columnID_service.AllowDBNull = false;
  1640. this.columnStartTime.AllowDBNull = false;
  1641. this.columnComments.MaxLength = 2147483647;
  1642. }
  1643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1644. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1645. public client_Service_Row Newclient_Service_Row() {
  1646. return ((client_Service_Row)(this.NewRow()));
  1647. }
  1648. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1649. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1650. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1651. return new client_Service_Row(builder);
  1652. }
  1653. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1654. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1655. protected override global::System.Type GetRowType() {
  1656. return typeof(client_Service_Row);
  1657. }
  1658. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1659. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1660. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1661. base.OnRowChanged(e);
  1662. if ((this.client_Service_RowChanged != null)) {
  1663. this.client_Service_RowChanged(this, new client_Service_RowChangeEvent(((client_Service_Row)(e.Row)), e.Action));
  1664. }
  1665. }
  1666. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1667. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1668. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1669. base.OnRowChanging(e);
  1670. if ((this.client_Service_RowChanging != null)) {
  1671. this.client_Service_RowChanging(this, new client_Service_RowChangeEvent(((client_Service_Row)(e.Row)), e.Action));
  1672. }
  1673. }
  1674. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1675. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1676. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1677. base.OnRowDeleted(e);
  1678. if ((this.client_Service_RowDeleted != null)) {
  1679. this.client_Service_RowDeleted(this, new client_Service_RowChangeEvent(((client_Service_Row)(e.Row)), e.Action));
  1680. }
  1681. }
  1682. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1683. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1684. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1685. base.OnRowDeleting(e);
  1686. if ((this.client_Service_RowDeleting != null)) {
  1687. this.client_Service_RowDeleting(this, new client_Service_RowChangeEvent(((client_Service_Row)(e.Row)), e.Action));
  1688. }
  1689. }
  1690. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1691. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1692. public void Removeclient_Service_Row(client_Service_Row row) {
  1693. this.Rows.Remove(row);
  1694. }
  1695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1696. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1697. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1698. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1699. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1700. BB_GebelDataSet ds = new BB_GebelDataSet();
  1701. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1702. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1703. any1.MinOccurs = new decimal(0);
  1704. any1.MaxOccurs = decimal.MaxValue;
  1705. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1706. sequence.Items.Add(any1);
  1707. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1708. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1709. any2.MinOccurs = new decimal(1);
  1710. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1711. sequence.Items.Add(any2);
  1712. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1713. attribute1.Name = "namespace";
  1714. attribute1.FixedValue = ds.Namespace;
  1715. type.Attributes.Add(attribute1);
  1716. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1717. attribute2.Name = "tableTypeName";
  1718. attribute2.FixedValue = "client_Service_DataTable";
  1719. type.Attributes.Add(attribute2);
  1720. type.Particle = sequence;
  1721. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1722. if (xs.Contains(dsSchema.TargetNamespace)) {
  1723. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1724. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1725. try {
  1726. global::System.Xml.Schema.XmlSchema schema = null;
  1727. dsSchema.Write(s1);
  1728. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1729. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1730. s2.SetLength(0);
  1731. schema.Write(s2);
  1732. if ((s1.Length == s2.Length)) {
  1733. s1.Position = 0;
  1734. s2.Position = 0;
  1735. for (; ((s1.Position != s1.Length)
  1736. && (s1.ReadByte() == s2.ReadByte())); ) {
  1737. ;
  1738. }
  1739. if ((s1.Position == s1.Length)) {
  1740. return type;
  1741. }
  1742. }
  1743. }
  1744. }
  1745. finally {
  1746. if ((s1 != null)) {
  1747. s1.Close();
  1748. }
  1749. if ((s2 != null)) {
  1750. s2.Close();
  1751. }
  1752. }
  1753. }
  1754. xs.Add(dsSchema);
  1755. return type;
  1756. }
  1757. }
  1758. /// <summary>
  1759. ///Represents the strongly named DataTable class.
  1760. ///</summary>
  1761. [global::System.Serializable()]
  1762. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1763. public partial class DocumentServiceDataTable : global::System.Data.TypedTableBase<DocumentServiceRow> {
  1764. private global::System.Data.DataColumn columnID;
  1765. private global::System.Data.DataColumn columnID_client_service;
  1766. private global::System.Data.DataColumn columnDocumentPath;
  1767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1768. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1769. public DocumentServiceDataTable() {
  1770. this.TableName = "DocumentService";
  1771. this.BeginInit();
  1772. this.InitClass();
  1773. this.EndInit();
  1774. }
  1775. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1776. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1777. internal DocumentServiceDataTable(global::System.Data.DataTable table) {
  1778. this.TableName = table.TableName;
  1779. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1780. this.CaseSensitive = table.CaseSensitive;
  1781. }
  1782. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1783. this.Locale = table.Locale;
  1784. }
  1785. if ((table.Namespace != table.DataSet.Namespace)) {
  1786. this.Namespace = table.Namespace;
  1787. }
  1788. this.Prefix = table.Prefix;
  1789. this.MinimumCapacity = table.MinimumCapacity;
  1790. }
  1791. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1792. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1793. protected DocumentServiceDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1794. base(info, context) {
  1795. this.InitVars();
  1796. }
  1797. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1798. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1799. public global::System.Data.DataColumn IDColumn {
  1800. get {
  1801. return this.columnID;
  1802. }
  1803. }
  1804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1806. public global::System.Data.DataColumn ID_client_serviceColumn {
  1807. get {
  1808. return this.columnID_client_service;
  1809. }
  1810. }
  1811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1812. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1813. public global::System.Data.DataColumn DocumentPathColumn {
  1814. get {
  1815. return this.columnDocumentPath;
  1816. }
  1817. }
  1818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1819. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1820. [global::System.ComponentModel.Browsable(false)]
  1821. public int Count {
  1822. get {
  1823. return this.Rows.Count;
  1824. }
  1825. }
  1826. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1827. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1828. public DocumentServiceRow this[int index] {
  1829. get {
  1830. return ((DocumentServiceRow)(this.Rows[index]));
  1831. }
  1832. }
  1833. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1834. public event DocumentServiceRowChangeEventHandler DocumentServiceRowChanging;
  1835. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1836. public event DocumentServiceRowChangeEventHandler DocumentServiceRowChanged;
  1837. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1838. public event DocumentServiceRowChangeEventHandler DocumentServiceRowDeleting;
  1839. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1840. public event DocumentServiceRowChangeEventHandler DocumentServiceRowDeleted;
  1841. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1842. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1843. public void AddDocumentServiceRow(DocumentServiceRow row) {
  1844. this.Rows.Add(row);
  1845. }
  1846. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1847. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1848. public DocumentServiceRow AddDocumentServiceRow(int ID, int ID_client_service, string DocumentPath) {
  1849. DocumentServiceRow rowDocumentServiceRow = ((DocumentServiceRow)(this.NewRow()));
  1850. object[] columnValuesArray = new object[] {
  1851. ID,
  1852. ID_client_service,
  1853. DocumentPath};
  1854. rowDocumentServiceRow.ItemArray = columnValuesArray;
  1855. this.Rows.Add(rowDocumentServiceRow);
  1856. return rowDocumentServiceRow;
  1857. }
  1858. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1859. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1860. public DocumentServiceRow FindByID(int ID) {
  1861. return ((DocumentServiceRow)(this.Rows.Find(new object[] {
  1862. ID})));
  1863. }
  1864. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1865. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1866. public override global::System.Data.DataTable Clone() {
  1867. DocumentServiceDataTable cln = ((DocumentServiceDataTable)(base.Clone()));
  1868. cln.InitVars();
  1869. return cln;
  1870. }
  1871. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1872. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1873. protected override global::System.Data.DataTable CreateInstance() {
  1874. return new DocumentServiceDataTable();
  1875. }
  1876. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1877. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1878. internal void InitVars() {
  1879. this.columnID = base.Columns["ID"];
  1880. this.columnID_client_service = base.Columns["ID_client_service"];
  1881. this.columnDocumentPath = base.Columns["DocumentPath"];
  1882. }
  1883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1884. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1885. private void InitClass() {
  1886. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  1887. base.Columns.Add(this.columnID);
  1888. this.columnID_client_service = new global::System.Data.DataColumn("ID_client_service", typeof(int), null, global::System.Data.MappingType.Element);
  1889. base.Columns.Add(this.columnID_client_service);
  1890. this.columnDocumentPath = new global::System.Data.DataColumn("DocumentPath", typeof(string), null, global::System.Data.MappingType.Element);
  1891. base.Columns.Add(this.columnDocumentPath);
  1892. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1893. this.columnID}, true));
  1894. this.columnID.AllowDBNull = false;
  1895. this.columnID.Unique = true;
  1896. this.columnID_client_service.AllowDBNull = false;
  1897. this.columnDocumentPath.AllowDBNull = false;
  1898. this.columnDocumentPath.MaxLength = 2147483647;
  1899. }
  1900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1901. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1902. public DocumentServiceRow NewDocumentServiceRow() {
  1903. return ((DocumentServiceRow)(this.NewRow()));
  1904. }
  1905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1906. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1907. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1908. return new DocumentServiceRow(builder);
  1909. }
  1910. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1911. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1912. protected override global::System.Type GetRowType() {
  1913. return typeof(DocumentServiceRow);
  1914. }
  1915. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1916. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1917. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1918. base.OnRowChanged(e);
  1919. if ((this.DocumentServiceRowChanged != null)) {
  1920. this.DocumentServiceRowChanged(this, new DocumentServiceRowChangeEvent(((DocumentServiceRow)(e.Row)), e.Action));
  1921. }
  1922. }
  1923. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1924. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1925. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1926. base.OnRowChanging(e);
  1927. if ((this.DocumentServiceRowChanging != null)) {
  1928. this.DocumentServiceRowChanging(this, new DocumentServiceRowChangeEvent(((DocumentServiceRow)(e.Row)), e.Action));
  1929. }
  1930. }
  1931. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1932. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1933. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1934. base.OnRowDeleted(e);
  1935. if ((this.DocumentServiceRowDeleted != null)) {
  1936. this.DocumentServiceRowDeleted(this, new DocumentServiceRowChangeEvent(((DocumentServiceRow)(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 OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1942. base.OnRowDeleting(e);
  1943. if ((this.DocumentServiceRowDeleting != null)) {
  1944. this.DocumentServiceRowDeleting(this, new DocumentServiceRowChangeEvent(((DocumentServiceRow)(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. public void RemoveDocumentServiceRow(DocumentServiceRow row) {
  1950. this.Rows.Remove(row);
  1951. }
  1952. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1953. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1954. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1955. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1956. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1957. BB_GebelDataSet ds = new BB_GebelDataSet();
  1958. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1959. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1960. any1.MinOccurs = new decimal(0);
  1961. any1.MaxOccurs = decimal.MaxValue;
  1962. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1963. sequence.Items.Add(any1);
  1964. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1965. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1966. any2.MinOccurs = new decimal(1);
  1967. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1968. sequence.Items.Add(any2);
  1969. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1970. attribute1.Name = "namespace";
  1971. attribute1.FixedValue = ds.Namespace;
  1972. type.Attributes.Add(attribute1);
  1973. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1974. attribute2.Name = "tableTypeName";
  1975. attribute2.FixedValue = "DocumentServiceDataTable";
  1976. type.Attributes.Add(attribute2);
  1977. type.Particle = sequence;
  1978. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1979. if (xs.Contains(dsSchema.TargetNamespace)) {
  1980. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1981. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1982. try {
  1983. global::System.Xml.Schema.XmlSchema schema = null;
  1984. dsSchema.Write(s1);
  1985. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1986. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1987. s2.SetLength(0);
  1988. schema.Write(s2);
  1989. if ((s1.Length == s2.Length)) {
  1990. s1.Position = 0;
  1991. s2.Position = 0;
  1992. for (; ((s1.Position != s1.Length)
  1993. && (s1.ReadByte() == s2.ReadByte())); ) {
  1994. ;
  1995. }
  1996. if ((s1.Position == s1.Length)) {
  1997. return type;
  1998. }
  1999. }
  2000. }
  2001. }
  2002. finally {
  2003. if ((s1 != null)) {
  2004. s1.Close();
  2005. }
  2006. if ((s2 != null)) {
  2007. s2.Close();
  2008. }
  2009. }
  2010. }
  2011. xs.Add(dsSchema);
  2012. return type;
  2013. }
  2014. }
  2015. /// <summary>
  2016. ///Represents the strongly named DataTable class.
  2017. ///</summary>
  2018. [global::System.Serializable()]
  2019. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2020. public partial class GenderDataTable : global::System.Data.TypedTableBase<GenderRow> {
  2021. private global::System.Data.DataColumn columnCode;
  2022. private global::System.Data.DataColumn columnName;
  2023. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2024. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2025. public GenderDataTable() {
  2026. this.TableName = "Gender";
  2027. this.BeginInit();
  2028. this.InitClass();
  2029. this.EndInit();
  2030. }
  2031. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2032. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2033. internal GenderDataTable(global::System.Data.DataTable table) {
  2034. this.TableName = table.TableName;
  2035. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2036. this.CaseSensitive = table.CaseSensitive;
  2037. }
  2038. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2039. this.Locale = table.Locale;
  2040. }
  2041. if ((table.Namespace != table.DataSet.Namespace)) {
  2042. this.Namespace = table.Namespace;
  2043. }
  2044. this.Prefix = table.Prefix;
  2045. this.MinimumCapacity = table.MinimumCapacity;
  2046. }
  2047. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2048. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2049. protected GenderDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2050. base(info, context) {
  2051. this.InitVars();
  2052. }
  2053. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2054. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2055. public global::System.Data.DataColumn CodeColumn {
  2056. get {
  2057. return this.columnCode;
  2058. }
  2059. }
  2060. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2061. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2062. public global::System.Data.DataColumn NameColumn {
  2063. get {
  2064. return this.columnName;
  2065. }
  2066. }
  2067. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2068. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2069. [global::System.ComponentModel.Browsable(false)]
  2070. public int Count {
  2071. get {
  2072. return this.Rows.Count;
  2073. }
  2074. }
  2075. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2076. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2077. public GenderRow this[int index] {
  2078. get {
  2079. return ((GenderRow)(this.Rows[index]));
  2080. }
  2081. }
  2082. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2083. public event GenderRowChangeEventHandler GenderRowChanging;
  2084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2085. public event GenderRowChangeEventHandler GenderRowChanged;
  2086. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2087. public event GenderRowChangeEventHandler GenderRowDeleting;
  2088. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2089. public event GenderRowChangeEventHandler GenderRowDeleted;
  2090. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2091. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2092. public void AddGenderRow(GenderRow row) {
  2093. this.Rows.Add(row);
  2094. }
  2095. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2096. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2097. public GenderRow AddGenderRow(int Code, string Name) {
  2098. GenderRow rowGenderRow = ((GenderRow)(this.NewRow()));
  2099. object[] columnValuesArray = new object[] {
  2100. Code,
  2101. Name};
  2102. rowGenderRow.ItemArray = columnValuesArray;
  2103. this.Rows.Add(rowGenderRow);
  2104. return rowGenderRow;
  2105. }
  2106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2108. public GenderRow FindByCode(int Code) {
  2109. return ((GenderRow)(this.Rows.Find(new object[] {
  2110. Code})));
  2111. }
  2112. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2113. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2114. public override global::System.Data.DataTable Clone() {
  2115. GenderDataTable cln = ((GenderDataTable)(base.Clone()));
  2116. cln.InitVars();
  2117. return cln;
  2118. }
  2119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2120. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2121. protected override global::System.Data.DataTable CreateInstance() {
  2122. return new GenderDataTable();
  2123. }
  2124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2125. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2126. internal void InitVars() {
  2127. this.columnCode = base.Columns["Code"];
  2128. this.columnName = base.Columns["Name"];
  2129. }
  2130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2131. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2132. private void InitClass() {
  2133. this.columnCode = new global::System.Data.DataColumn("Code", typeof(int), null, global::System.Data.MappingType.Element);
  2134. base.Columns.Add(this.columnCode);
  2135. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  2136. base.Columns.Add(this.columnName);
  2137. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2138. this.columnCode}, true));
  2139. this.columnCode.AllowDBNull = false;
  2140. this.columnCode.Unique = true;
  2141. this.columnName.MaxLength = 50;
  2142. }
  2143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2144. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2145. public GenderRow NewGenderRow() {
  2146. return ((GenderRow)(this.NewRow()));
  2147. }
  2148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2150. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2151. return new GenderRow(builder);
  2152. }
  2153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2154. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2155. protected override global::System.Type GetRowType() {
  2156. return typeof(GenderRow);
  2157. }
  2158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2159. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2160. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2161. base.OnRowChanged(e);
  2162. if ((this.GenderRowChanged != null)) {
  2163. this.GenderRowChanged(this, new GenderRowChangeEvent(((GenderRow)(e.Row)), e.Action));
  2164. }
  2165. }
  2166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2167. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2168. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2169. base.OnRowChanging(e);
  2170. if ((this.GenderRowChanging != null)) {
  2171. this.GenderRowChanging(this, new GenderRowChangeEvent(((GenderRow)(e.Row)), e.Action));
  2172. }
  2173. }
  2174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2175. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2176. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2177. base.OnRowDeleted(e);
  2178. if ((this.GenderRowDeleted != null)) {
  2179. this.GenderRowDeleted(this, new GenderRowChangeEvent(((GenderRow)(e.Row)), e.Action));
  2180. }
  2181. }
  2182. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2183. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2184. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2185. base.OnRowDeleting(e);
  2186. if ((this.GenderRowDeleting != null)) {
  2187. this.GenderRowDeleting(this, new GenderRowChangeEvent(((GenderRow)(e.Row)), e.Action));
  2188. }
  2189. }
  2190. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2191. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2192. public void RemoveGenderRow(GenderRow row) {
  2193. this.Rows.Remove(row);
  2194. }
  2195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2197. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2198. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2199. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2200. BB_GebelDataSet ds = new BB_GebelDataSet();
  2201. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2202. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2203. any1.MinOccurs = new decimal(0);
  2204. any1.MaxOccurs = decimal.MaxValue;
  2205. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2206. sequence.Items.Add(any1);
  2207. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2208. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2209. any2.MinOccurs = new decimal(1);
  2210. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2211. sequence.Items.Add(any2);
  2212. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2213. attribute1.Name = "namespace";
  2214. attribute1.FixedValue = ds.Namespace;
  2215. type.Attributes.Add(attribute1);
  2216. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2217. attribute2.Name = "tableTypeName";
  2218. attribute2.FixedValue = "GenderDataTable";
  2219. type.Attributes.Add(attribute2);
  2220. type.Particle = sequence;
  2221. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2222. if (xs.Contains(dsSchema.TargetNamespace)) {
  2223. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2224. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2225. try {
  2226. global::System.Xml.Schema.XmlSchema schema = null;
  2227. dsSchema.Write(s1);
  2228. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2229. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2230. s2.SetLength(0);
  2231. schema.Write(s2);
  2232. if ((s1.Length == s2.Length)) {
  2233. s1.Position = 0;
  2234. s2.Position = 0;
  2235. for (; ((s1.Position != s1.Length)
  2236. && (s1.ReadByte() == s2.ReadByte())); ) {
  2237. ;
  2238. }
  2239. if ((s1.Position == s1.Length)) {
  2240. return type;
  2241. }
  2242. }
  2243. }
  2244. }
  2245. finally {
  2246. if ((s1 != null)) {
  2247. s1.Close();
  2248. }
  2249. if ((s2 != null)) {
  2250. s2.Close();
  2251. }
  2252. }
  2253. }
  2254. xs.Add(dsSchema);
  2255. return type;
  2256. }
  2257. }
  2258. /// <summary>
  2259. ///Represents the strongly named DataTable class.
  2260. ///</summary>
  2261. [global::System.Serializable()]
  2262. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2263. public partial class ManufactureDataTable : global::System.Data.TypedTableBase<ManufactureRow> {
  2264. private global::System.Data.DataColumn columnID;
  2265. private global::System.Data.DataColumn columnName;
  2266. private global::System.Data.DataColumn columnDate_Start;
  2267. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2268. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2269. public ManufactureDataTable() {
  2270. this.TableName = "Manufacture";
  2271. this.BeginInit();
  2272. this.InitClass();
  2273. this.EndInit();
  2274. }
  2275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2276. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2277. internal ManufactureDataTable(global::System.Data.DataTable table) {
  2278. this.TableName = table.TableName;
  2279. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2280. this.CaseSensitive = table.CaseSensitive;
  2281. }
  2282. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2283. this.Locale = table.Locale;
  2284. }
  2285. if ((table.Namespace != table.DataSet.Namespace)) {
  2286. this.Namespace = table.Namespace;
  2287. }
  2288. this.Prefix = table.Prefix;
  2289. this.MinimumCapacity = table.MinimumCapacity;
  2290. }
  2291. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2292. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2293. protected ManufactureDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2294. base(info, context) {
  2295. this.InitVars();
  2296. }
  2297. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2298. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2299. public global::System.Data.DataColumn IDColumn {
  2300. get {
  2301. return this.columnID;
  2302. }
  2303. }
  2304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2306. public global::System.Data.DataColumn NameColumn {
  2307. get {
  2308. return this.columnName;
  2309. }
  2310. }
  2311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2312. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2313. public global::System.Data.DataColumn Date_StartColumn {
  2314. get {
  2315. return this.columnDate_Start;
  2316. }
  2317. }
  2318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2319. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2320. [global::System.ComponentModel.Browsable(false)]
  2321. public int Count {
  2322. get {
  2323. return this.Rows.Count;
  2324. }
  2325. }
  2326. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2327. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2328. public ManufactureRow this[int index] {
  2329. get {
  2330. return ((ManufactureRow)(this.Rows[index]));
  2331. }
  2332. }
  2333. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2334. public event ManufactureRowChangeEventHandler ManufactureRowChanging;
  2335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2336. public event ManufactureRowChangeEventHandler ManufactureRowChanged;
  2337. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2338. public event ManufactureRowChangeEventHandler ManufactureRowDeleting;
  2339. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2340. public event ManufactureRowChangeEventHandler ManufactureRowDeleted;
  2341. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2342. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2343. public void AddManufactureRow(ManufactureRow row) {
  2344. this.Rows.Add(row);
  2345. }
  2346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2347. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2348. public ManufactureRow AddManufactureRow(int ID, string Name, System.DateTime Date_Start) {
  2349. ManufactureRow rowManufactureRow = ((ManufactureRow)(this.NewRow()));
  2350. object[] columnValuesArray = new object[] {
  2351. ID,
  2352. Name,
  2353. Date_Start};
  2354. rowManufactureRow.ItemArray = columnValuesArray;
  2355. this.Rows.Add(rowManufactureRow);
  2356. return rowManufactureRow;
  2357. }
  2358. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2359. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2360. public ManufactureRow FindByID(int ID) {
  2361. return ((ManufactureRow)(this.Rows.Find(new object[] {
  2362. ID})));
  2363. }
  2364. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2365. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2366. public override global::System.Data.DataTable Clone() {
  2367. ManufactureDataTable cln = ((ManufactureDataTable)(base.Clone()));
  2368. cln.InitVars();
  2369. return cln;
  2370. }
  2371. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2372. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2373. protected override global::System.Data.DataTable CreateInstance() {
  2374. return new ManufactureDataTable();
  2375. }
  2376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2378. internal void InitVars() {
  2379. this.columnID = base.Columns["ID"];
  2380. this.columnName = base.Columns["Name"];
  2381. this.columnDate_Start = base.Columns["Date_Start"];
  2382. }
  2383. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2384. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2385. private void InitClass() {
  2386. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  2387. base.Columns.Add(this.columnID);
  2388. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  2389. base.Columns.Add(this.columnName);
  2390. this.columnDate_Start = new global::System.Data.DataColumn("Date_Start", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  2391. base.Columns.Add(this.columnDate_Start);
  2392. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2393. this.columnID}, true));
  2394. this.columnID.AllowDBNull = false;
  2395. this.columnID.Unique = true;
  2396. this.columnName.AllowDBNull = false;
  2397. this.columnName.MaxLength = 50;
  2398. }
  2399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2401. public ManufactureRow NewManufactureRow() {
  2402. return ((ManufactureRow)(this.NewRow()));
  2403. }
  2404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2406. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2407. return new ManufactureRow(builder);
  2408. }
  2409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2411. protected override global::System.Type GetRowType() {
  2412. return typeof(ManufactureRow);
  2413. }
  2414. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2415. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2416. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2417. base.OnRowChanged(e);
  2418. if ((this.ManufactureRowChanged != null)) {
  2419. this.ManufactureRowChanged(this, new ManufactureRowChangeEvent(((ManufactureRow)(e.Row)), e.Action));
  2420. }
  2421. }
  2422. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2423. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2424. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2425. base.OnRowChanging(e);
  2426. if ((this.ManufactureRowChanging != null)) {
  2427. this.ManufactureRowChanging(this, new ManufactureRowChangeEvent(((ManufactureRow)(e.Row)), e.Action));
  2428. }
  2429. }
  2430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2431. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2432. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2433. base.OnRowDeleted(e);
  2434. if ((this.ManufactureRowDeleted != null)) {
  2435. this.ManufactureRowDeleted(this, new ManufactureRowChangeEvent(((ManufactureRow)(e.Row)), e.Action));
  2436. }
  2437. }
  2438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2439. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2440. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2441. base.OnRowDeleting(e);
  2442. if ((this.ManufactureRowDeleting != null)) {
  2443. this.ManufactureRowDeleting(this, new ManufactureRowChangeEvent(((ManufactureRow)(e.Row)), e.Action));
  2444. }
  2445. }
  2446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2447. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2448. public void RemoveManufactureRow(ManufactureRow row) {
  2449. this.Rows.Remove(row);
  2450. }
  2451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2452. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2453. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2454. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2455. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2456. BB_GebelDataSet ds = new BB_GebelDataSet();
  2457. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2458. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2459. any1.MinOccurs = new decimal(0);
  2460. any1.MaxOccurs = decimal.MaxValue;
  2461. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2462. sequence.Items.Add(any1);
  2463. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2464. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2465. any2.MinOccurs = new decimal(1);
  2466. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2467. sequence.Items.Add(any2);
  2468. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2469. attribute1.Name = "namespace";
  2470. attribute1.FixedValue = ds.Namespace;
  2471. type.Attributes.Add(attribute1);
  2472. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2473. attribute2.Name = "tableTypeName";
  2474. attribute2.FixedValue = "ManufactureDataTable";
  2475. type.Attributes.Add(attribute2);
  2476. type.Particle = sequence;
  2477. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2478. if (xs.Contains(dsSchema.TargetNamespace)) {
  2479. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2480. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2481. try {
  2482. global::System.Xml.Schema.XmlSchema schema = null;
  2483. dsSchema.Write(s1);
  2484. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2485. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2486. s2.SetLength(0);
  2487. schema.Write(s2);
  2488. if ((s1.Length == s2.Length)) {
  2489. s1.Position = 0;
  2490. s2.Position = 0;
  2491. for (; ((s1.Position != s1.Length)
  2492. && (s1.ReadByte() == s2.ReadByte())); ) {
  2493. ;
  2494. }
  2495. if ((s1.Position == s1.Length)) {
  2496. return type;
  2497. }
  2498. }
  2499. }
  2500. }
  2501. finally {
  2502. if ((s1 != null)) {
  2503. s1.Close();
  2504. }
  2505. if ((s2 != null)) {
  2506. s2.Close();
  2507. }
  2508. }
  2509. }
  2510. xs.Add(dsSchema);
  2511. return type;
  2512. }
  2513. }
  2514. /// <summary>
  2515. ///Represents the strongly named DataTable class.
  2516. ///</summary>
  2517. [global::System.Serializable()]
  2518. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2519. public partial class Photo_prouctDataTable : global::System.Data.TypedTableBase<Photo_prouctRow> {
  2520. private global::System.Data.DataColumn columnID;
  2521. private global::System.Data.DataColumn columnID_product;
  2522. private global::System.Data.DataColumn columnPath_photo;
  2523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2524. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2525. public Photo_prouctDataTable() {
  2526. this.TableName = "Photo prouct";
  2527. this.BeginInit();
  2528. this.InitClass();
  2529. this.EndInit();
  2530. }
  2531. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2532. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2533. internal Photo_prouctDataTable(global::System.Data.DataTable table) {
  2534. this.TableName = table.TableName;
  2535. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2536. this.CaseSensitive = table.CaseSensitive;
  2537. }
  2538. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2539. this.Locale = table.Locale;
  2540. }
  2541. if ((table.Namespace != table.DataSet.Namespace)) {
  2542. this.Namespace = table.Namespace;
  2543. }
  2544. this.Prefix = table.Prefix;
  2545. this.MinimumCapacity = table.MinimumCapacity;
  2546. }
  2547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2549. protected Photo_prouctDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2550. base(info, context) {
  2551. this.InitVars();
  2552. }
  2553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2555. public global::System.Data.DataColumn IDColumn {
  2556. get {
  2557. return this.columnID;
  2558. }
  2559. }
  2560. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2561. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2562. public global::System.Data.DataColumn ID_productColumn {
  2563. get {
  2564. return this.columnID_product;
  2565. }
  2566. }
  2567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2569. public global::System.Data.DataColumn Path_photoColumn {
  2570. get {
  2571. return this.columnPath_photo;
  2572. }
  2573. }
  2574. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2575. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2576. [global::System.ComponentModel.Browsable(false)]
  2577. public int Count {
  2578. get {
  2579. return this.Rows.Count;
  2580. }
  2581. }
  2582. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2583. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2584. public Photo_prouctRow this[int index] {
  2585. get {
  2586. return ((Photo_prouctRow)(this.Rows[index]));
  2587. }
  2588. }
  2589. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2590. public event Photo_prouctRowChangeEventHandler Photo_prouctRowChanging;
  2591. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2592. public event Photo_prouctRowChangeEventHandler Photo_prouctRowChanged;
  2593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2594. public event Photo_prouctRowChangeEventHandler Photo_prouctRowDeleting;
  2595. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2596. public event Photo_prouctRowChangeEventHandler Photo_prouctRowDeleted;
  2597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2598. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2599. public void AddPhoto_prouctRow(Photo_prouctRow row) {
  2600. this.Rows.Add(row);
  2601. }
  2602. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2603. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2604. public Photo_prouctRow AddPhoto_prouctRow(int ID, int ID_product, string Path_photo) {
  2605. Photo_prouctRow rowPhoto_prouctRow = ((Photo_prouctRow)(this.NewRow()));
  2606. object[] columnValuesArray = new object[] {
  2607. ID,
  2608. ID_product,
  2609. Path_photo};
  2610. rowPhoto_prouctRow.ItemArray = columnValuesArray;
  2611. this.Rows.Add(rowPhoto_prouctRow);
  2612. return rowPhoto_prouctRow;
  2613. }
  2614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2615. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2616. public Photo_prouctRow FindByID(int ID) {
  2617. return ((Photo_prouctRow)(this.Rows.Find(new object[] {
  2618. ID})));
  2619. }
  2620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2621. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2622. public override global::System.Data.DataTable Clone() {
  2623. Photo_prouctDataTable cln = ((Photo_prouctDataTable)(base.Clone()));
  2624. cln.InitVars();
  2625. return cln;
  2626. }
  2627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2629. protected override global::System.Data.DataTable CreateInstance() {
  2630. return new Photo_prouctDataTable();
  2631. }
  2632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2634. internal void InitVars() {
  2635. this.columnID = base.Columns["ID"];
  2636. this.columnID_product = base.Columns["ID_product"];
  2637. this.columnPath_photo = base.Columns["Path_photo"];
  2638. }
  2639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2641. private void InitClass() {
  2642. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  2643. base.Columns.Add(this.columnID);
  2644. this.columnID_product = new global::System.Data.DataColumn("ID_product", typeof(int), null, global::System.Data.MappingType.Element);
  2645. base.Columns.Add(this.columnID_product);
  2646. this.columnPath_photo = new global::System.Data.DataColumn("Path_photo", typeof(string), null, global::System.Data.MappingType.Element);
  2647. base.Columns.Add(this.columnPath_photo);
  2648. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2649. this.columnID}, true));
  2650. this.columnID.AllowDBNull = false;
  2651. this.columnID.Unique = true;
  2652. this.columnID_product.AllowDBNull = false;
  2653. this.columnPath_photo.AllowDBNull = false;
  2654. this.columnPath_photo.MaxLength = 50;
  2655. }
  2656. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2657. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2658. public Photo_prouctRow NewPhoto_prouctRow() {
  2659. return ((Photo_prouctRow)(this.NewRow()));
  2660. }
  2661. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2662. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2663. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2664. return new Photo_prouctRow(builder);
  2665. }
  2666. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2667. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2668. protected override global::System.Type GetRowType() {
  2669. return typeof(Photo_prouctRow);
  2670. }
  2671. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2672. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2673. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2674. base.OnRowChanged(e);
  2675. if ((this.Photo_prouctRowChanged != null)) {
  2676. this.Photo_prouctRowChanged(this, new Photo_prouctRowChangeEvent(((Photo_prouctRow)(e.Row)), e.Action));
  2677. }
  2678. }
  2679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2680. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2681. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2682. base.OnRowChanging(e);
  2683. if ((this.Photo_prouctRowChanging != null)) {
  2684. this.Photo_prouctRowChanging(this, new Photo_prouctRowChangeEvent(((Photo_prouctRow)(e.Row)), e.Action));
  2685. }
  2686. }
  2687. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2688. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2689. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2690. base.OnRowDeleted(e);
  2691. if ((this.Photo_prouctRowDeleted != null)) {
  2692. this.Photo_prouctRowDeleted(this, new Photo_prouctRowChangeEvent(((Photo_prouctRow)(e.Row)), e.Action));
  2693. }
  2694. }
  2695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2696. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2697. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2698. base.OnRowDeleting(e);
  2699. if ((this.Photo_prouctRowDeleting != null)) {
  2700. this.Photo_prouctRowDeleting(this, new Photo_prouctRowChangeEvent(((Photo_prouctRow)(e.Row)), e.Action));
  2701. }
  2702. }
  2703. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2704. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2705. public void RemovePhoto_prouctRow(Photo_prouctRow row) {
  2706. this.Rows.Remove(row);
  2707. }
  2708. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2709. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2710. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2711. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2712. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2713. BB_GebelDataSet ds = new BB_GebelDataSet();
  2714. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2715. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2716. any1.MinOccurs = new decimal(0);
  2717. any1.MaxOccurs = decimal.MaxValue;
  2718. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2719. sequence.Items.Add(any1);
  2720. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2721. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2722. any2.MinOccurs = new decimal(1);
  2723. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2724. sequence.Items.Add(any2);
  2725. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2726. attribute1.Name = "namespace";
  2727. attribute1.FixedValue = ds.Namespace;
  2728. type.Attributes.Add(attribute1);
  2729. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2730. attribute2.Name = "tableTypeName";
  2731. attribute2.FixedValue = "Photo_prouctDataTable";
  2732. type.Attributes.Add(attribute2);
  2733. type.Particle = sequence;
  2734. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2735. if (xs.Contains(dsSchema.TargetNamespace)) {
  2736. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2737. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2738. try {
  2739. global::System.Xml.Schema.XmlSchema schema = null;
  2740. dsSchema.Write(s1);
  2741. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2742. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2743. s2.SetLength(0);
  2744. schema.Write(s2);
  2745. if ((s1.Length == s2.Length)) {
  2746. s1.Position = 0;
  2747. s2.Position = 0;
  2748. for (; ((s1.Position != s1.Length)
  2749. && (s1.ReadByte() == s2.ReadByte())); ) {
  2750. ;
  2751. }
  2752. if ((s1.Position == s1.Length)) {
  2753. return type;
  2754. }
  2755. }
  2756. }
  2757. }
  2758. finally {
  2759. if ((s1 != null)) {
  2760. s1.Close();
  2761. }
  2762. if ((s2 != null)) {
  2763. s2.Close();
  2764. }
  2765. }
  2766. }
  2767. xs.Add(dsSchema);
  2768. return type;
  2769. }
  2770. }
  2771. /// <summary>
  2772. ///Represents the strongly named DataTable class.
  2773. ///</summary>
  2774. [global::System.Serializable()]
  2775. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2776. public partial class ProductDataTable : global::System.Data.TypedTableBase<ProductRow> {
  2777. private global::System.Data.DataColumn columnID;
  2778. private global::System.Data.DataColumn columnTitle;
  2779. private global::System.Data.DataColumn columnCost;
  2780. private global::System.Data.DataColumn columnDescription;
  2781. private global::System.Data.DataColumn columnPath_MainImage;
  2782. private global::System.Data.DataColumn columnActive;
  2783. private global::System.Data.DataColumn columnID_manufacturer;
  2784. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2785. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2786. public ProductDataTable() {
  2787. this.TableName = "Product";
  2788. this.BeginInit();
  2789. this.InitClass();
  2790. this.EndInit();
  2791. }
  2792. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2793. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2794. internal ProductDataTable(global::System.Data.DataTable table) {
  2795. this.TableName = table.TableName;
  2796. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2797. this.CaseSensitive = table.CaseSensitive;
  2798. }
  2799. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2800. this.Locale = table.Locale;
  2801. }
  2802. if ((table.Namespace != table.DataSet.Namespace)) {
  2803. this.Namespace = table.Namespace;
  2804. }
  2805. this.Prefix = table.Prefix;
  2806. this.MinimumCapacity = table.MinimumCapacity;
  2807. }
  2808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2810. protected ProductDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2811. base(info, context) {
  2812. this.InitVars();
  2813. }
  2814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2816. public global::System.Data.DataColumn IDColumn {
  2817. get {
  2818. return this.columnID;
  2819. }
  2820. }
  2821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2822. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2823. public global::System.Data.DataColumn TitleColumn {
  2824. get {
  2825. return this.columnTitle;
  2826. }
  2827. }
  2828. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2829. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2830. public global::System.Data.DataColumn CostColumn {
  2831. get {
  2832. return this.columnCost;
  2833. }
  2834. }
  2835. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2836. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2837. public global::System.Data.DataColumn DescriptionColumn {
  2838. get {
  2839. return this.columnDescription;
  2840. }
  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 Path_MainImageColumn {
  2845. get {
  2846. return this.columnPath_MainImage;
  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 ActiveColumn {
  2852. get {
  2853. return this.columnActive;
  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 ID_manufacturerColumn {
  2859. get {
  2860. return this.columnID_manufacturer;
  2861. }
  2862. }
  2863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2864. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2865. [global::System.ComponentModel.Browsable(false)]
  2866. public int Count {
  2867. get {
  2868. return this.Rows.Count;
  2869. }
  2870. }
  2871. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2872. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2873. public ProductRow this[int index] {
  2874. get {
  2875. return ((ProductRow)(this.Rows[index]));
  2876. }
  2877. }
  2878. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2879. public event ProductRowChangeEventHandler ProductRowChanging;
  2880. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2881. public event ProductRowChangeEventHandler ProductRowChanged;
  2882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2883. public event ProductRowChangeEventHandler ProductRowDeleting;
  2884. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2885. public event ProductRowChangeEventHandler ProductRowDeleted;
  2886. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2887. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2888. public void AddProductRow(ProductRow row) {
  2889. this.Rows.Add(row);
  2890. }
  2891. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2892. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2893. public ProductRow AddProductRow(int ID, string Title, decimal Cost, string Description, string Path_MainImage, bool Active, int ID_manufacturer) {
  2894. ProductRow rowProductRow = ((ProductRow)(this.NewRow()));
  2895. object[] columnValuesArray = new object[] {
  2896. ID,
  2897. Title,
  2898. Cost,
  2899. Description,
  2900. Path_MainImage,
  2901. Active,
  2902. ID_manufacturer};
  2903. rowProductRow.ItemArray = columnValuesArray;
  2904. this.Rows.Add(rowProductRow);
  2905. return rowProductRow;
  2906. }
  2907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2909. public ProductRow FindByID(int ID) {
  2910. return ((ProductRow)(this.Rows.Find(new object[] {
  2911. ID})));
  2912. }
  2913. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2914. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2915. public override global::System.Data.DataTable Clone() {
  2916. ProductDataTable cln = ((ProductDataTable)(base.Clone()));
  2917. cln.InitVars();
  2918. return cln;
  2919. }
  2920. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2921. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2922. protected override global::System.Data.DataTable CreateInstance() {
  2923. return new ProductDataTable();
  2924. }
  2925. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2926. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2927. internal void InitVars() {
  2928. this.columnID = base.Columns["ID"];
  2929. this.columnTitle = base.Columns["Title"];
  2930. this.columnCost = base.Columns["Cost"];
  2931. this.columnDescription = base.Columns["Description"];
  2932. this.columnPath_MainImage = base.Columns["Path_MainImage"];
  2933. this.columnActive = base.Columns["Active"];
  2934. this.columnID_manufacturer = base.Columns["ID_manufacturer"];
  2935. }
  2936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2937. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2938. private void InitClass() {
  2939. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  2940. base.Columns.Add(this.columnID);
  2941. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  2942. base.Columns.Add(this.columnTitle);
  2943. this.columnCost = new global::System.Data.DataColumn("Cost", typeof(decimal), null, global::System.Data.MappingType.Element);
  2944. base.Columns.Add(this.columnCost);
  2945. this.columnDescription = new global::System.Data.DataColumn("Description", typeof(string), null, global::System.Data.MappingType.Element);
  2946. base.Columns.Add(this.columnDescription);
  2947. this.columnPath_MainImage = new global::System.Data.DataColumn("Path_MainImage", typeof(string), null, global::System.Data.MappingType.Element);
  2948. base.Columns.Add(this.columnPath_MainImage);
  2949. this.columnActive = new global::System.Data.DataColumn("Active", typeof(bool), null, global::System.Data.MappingType.Element);
  2950. base.Columns.Add(this.columnActive);
  2951. this.columnID_manufacturer = new global::System.Data.DataColumn("ID_manufacturer", typeof(int), null, global::System.Data.MappingType.Element);
  2952. base.Columns.Add(this.columnID_manufacturer);
  2953. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2954. this.columnID}, true));
  2955. this.columnID.AllowDBNull = false;
  2956. this.columnID.Unique = true;
  2957. this.columnTitle.AllowDBNull = false;
  2958. this.columnTitle.MaxLength = 2147483647;
  2959. this.columnCost.AllowDBNull = false;
  2960. this.columnDescription.MaxLength = 2147483647;
  2961. this.columnPath_MainImage.MaxLength = 2147483647;
  2962. this.columnActive.AllowDBNull = false;
  2963. }
  2964. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2965. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2966. public ProductRow NewProductRow() {
  2967. return ((ProductRow)(this.NewRow()));
  2968. }
  2969. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2970. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2971. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2972. return new ProductRow(builder);
  2973. }
  2974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2975. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2976. protected override global::System.Type GetRowType() {
  2977. return typeof(ProductRow);
  2978. }
  2979. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2980. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2981. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2982. base.OnRowChanged(e);
  2983. if ((this.ProductRowChanged != null)) {
  2984. this.ProductRowChanged(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2985. }
  2986. }
  2987. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2988. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2989. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2990. base.OnRowChanging(e);
  2991. if ((this.ProductRowChanging != null)) {
  2992. this.ProductRowChanging(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2993. }
  2994. }
  2995. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2996. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2997. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2998. base.OnRowDeleted(e);
  2999. if ((this.ProductRowDeleted != null)) {
  3000. this.ProductRowDeleted(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  3001. }
  3002. }
  3003. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3004. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3005. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3006. base.OnRowDeleting(e);
  3007. if ((this.ProductRowDeleting != null)) {
  3008. this.ProductRowDeleting(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  3009. }
  3010. }
  3011. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3012. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3013. public void RemoveProductRow(ProductRow row) {
  3014. this.Rows.Remove(row);
  3015. }
  3016. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3017. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3018. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3019. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3020. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3021. BB_GebelDataSet ds = new BB_GebelDataSet();
  3022. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3023. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3024. any1.MinOccurs = new decimal(0);
  3025. any1.MaxOccurs = decimal.MaxValue;
  3026. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3027. sequence.Items.Add(any1);
  3028. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3029. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3030. any2.MinOccurs = new decimal(1);
  3031. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3032. sequence.Items.Add(any2);
  3033. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3034. attribute1.Name = "namespace";
  3035. attribute1.FixedValue = ds.Namespace;
  3036. type.Attributes.Add(attribute1);
  3037. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3038. attribute2.Name = "tableTypeName";
  3039. attribute2.FixedValue = "ProductDataTable";
  3040. type.Attributes.Add(attribute2);
  3041. type.Particle = sequence;
  3042. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3043. if (xs.Contains(dsSchema.TargetNamespace)) {
  3044. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3045. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3046. try {
  3047. global::System.Xml.Schema.XmlSchema schema = null;
  3048. dsSchema.Write(s1);
  3049. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3050. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3051. s2.SetLength(0);
  3052. schema.Write(s2);
  3053. if ((s1.Length == s2.Length)) {
  3054. s1.Position = 0;
  3055. s2.Position = 0;
  3056. for (; ((s1.Position != s1.Length)
  3057. && (s1.ReadByte() == s2.ReadByte())); ) {
  3058. ;
  3059. }
  3060. if ((s1.Position == s1.Length)) {
  3061. return type;
  3062. }
  3063. }
  3064. }
  3065. }
  3066. finally {
  3067. if ((s1 != null)) {
  3068. s1.Close();
  3069. }
  3070. if ((s2 != null)) {
  3071. s2.Close();
  3072. }
  3073. }
  3074. }
  3075. xs.Add(dsSchema);
  3076. return type;
  3077. }
  3078. }
  3079. /// <summary>
  3080. ///Represents the strongly named DataTable class.
  3081. ///</summary>
  3082. [global::System.Serializable()]
  3083. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3084. public partial class SaleDataTable : global::System.Data.TypedTableBase<SaleRow> {
  3085. private global::System.Data.DataColumn columnID;
  3086. private global::System.Data.DataColumn columnDate_Sale;
  3087. private global::System.Data.DataColumn columnID_Product;
  3088. private global::System.Data.DataColumn columnQuantity;
  3089. private global::System.Data.DataColumn columnID_client_service;
  3090. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3091. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3092. public SaleDataTable() {
  3093. this.TableName = "Sale";
  3094. this.BeginInit();
  3095. this.InitClass();
  3096. this.EndInit();
  3097. }
  3098. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3099. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3100. internal SaleDataTable(global::System.Data.DataTable table) {
  3101. this.TableName = table.TableName;
  3102. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3103. this.CaseSensitive = table.CaseSensitive;
  3104. }
  3105. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3106. this.Locale = table.Locale;
  3107. }
  3108. if ((table.Namespace != table.DataSet.Namespace)) {
  3109. this.Namespace = table.Namespace;
  3110. }
  3111. this.Prefix = table.Prefix;
  3112. this.MinimumCapacity = table.MinimumCapacity;
  3113. }
  3114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3115. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3116. protected SaleDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3117. base(info, context) {
  3118. this.InitVars();
  3119. }
  3120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3121. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3122. public global::System.Data.DataColumn IDColumn {
  3123. get {
  3124. return this.columnID;
  3125. }
  3126. }
  3127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3128. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3129. public global::System.Data.DataColumn Date_SaleColumn {
  3130. get {
  3131. return this.columnDate_Sale;
  3132. }
  3133. }
  3134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3135. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3136. public global::System.Data.DataColumn ID_ProductColumn {
  3137. get {
  3138. return this.columnID_Product;
  3139. }
  3140. }
  3141. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3142. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3143. public global::System.Data.DataColumn QuantityColumn {
  3144. get {
  3145. return this.columnQuantity;
  3146. }
  3147. }
  3148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3150. public global::System.Data.DataColumn ID_client_serviceColumn {
  3151. get {
  3152. return this.columnID_client_service;
  3153. }
  3154. }
  3155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3156. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3157. [global::System.ComponentModel.Browsable(false)]
  3158. public int Count {
  3159. get {
  3160. return this.Rows.Count;
  3161. }
  3162. }
  3163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3164. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3165. public SaleRow this[int index] {
  3166. get {
  3167. return ((SaleRow)(this.Rows[index]));
  3168. }
  3169. }
  3170. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3171. public event SaleRowChangeEventHandler SaleRowChanging;
  3172. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3173. public event SaleRowChangeEventHandler SaleRowChanged;
  3174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3175. public event SaleRowChangeEventHandler SaleRowDeleting;
  3176. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3177. public event SaleRowChangeEventHandler SaleRowDeleted;
  3178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3180. public void AddSaleRow(SaleRow row) {
  3181. this.Rows.Add(row);
  3182. }
  3183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3185. public SaleRow AddSaleRow(int ID, System.DateTime Date_Sale, int ID_Product, int Quantity, int ID_client_service) {
  3186. SaleRow rowSaleRow = ((SaleRow)(this.NewRow()));
  3187. object[] columnValuesArray = new object[] {
  3188. ID,
  3189. Date_Sale,
  3190. ID_Product,
  3191. Quantity,
  3192. ID_client_service};
  3193. rowSaleRow.ItemArray = columnValuesArray;
  3194. this.Rows.Add(rowSaleRow);
  3195. return rowSaleRow;
  3196. }
  3197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3198. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3199. public SaleRow FindByID(int ID) {
  3200. return ((SaleRow)(this.Rows.Find(new object[] {
  3201. ID})));
  3202. }
  3203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3204. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3205. public override global::System.Data.DataTable Clone() {
  3206. SaleDataTable cln = ((SaleDataTable)(base.Clone()));
  3207. cln.InitVars();
  3208. return cln;
  3209. }
  3210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3212. protected override global::System.Data.DataTable CreateInstance() {
  3213. return new SaleDataTable();
  3214. }
  3215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3216. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3217. internal void InitVars() {
  3218. this.columnID = base.Columns["ID"];
  3219. this.columnDate_Sale = base.Columns["Date_Sale"];
  3220. this.columnID_Product = base.Columns["ID_Product"];
  3221. this.columnQuantity = base.Columns["Quantity"];
  3222. this.columnID_client_service = base.Columns["ID_client_service"];
  3223. }
  3224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3225. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3226. private void InitClass() {
  3227. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3228. base.Columns.Add(this.columnID);
  3229. this.columnDate_Sale = new global::System.Data.DataColumn("Date_Sale", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  3230. base.Columns.Add(this.columnDate_Sale);
  3231. this.columnID_Product = new global::System.Data.DataColumn("ID_Product", typeof(int), null, global::System.Data.MappingType.Element);
  3232. base.Columns.Add(this.columnID_Product);
  3233. this.columnQuantity = new global::System.Data.DataColumn("Quantity", typeof(int), null, global::System.Data.MappingType.Element);
  3234. base.Columns.Add(this.columnQuantity);
  3235. this.columnID_client_service = new global::System.Data.DataColumn("ID_client_service", typeof(int), null, global::System.Data.MappingType.Element);
  3236. base.Columns.Add(this.columnID_client_service);
  3237. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3238. this.columnID}, true));
  3239. this.columnID.AllowDBNull = false;
  3240. this.columnID.Unique = true;
  3241. this.columnDate_Sale.AllowDBNull = false;
  3242. this.columnID_Product.AllowDBNull = false;
  3243. this.columnQuantity.AllowDBNull = false;
  3244. }
  3245. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3246. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3247. public SaleRow NewSaleRow() {
  3248. return ((SaleRow)(this.NewRow()));
  3249. }
  3250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3252. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3253. return new SaleRow(builder);
  3254. }
  3255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3256. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3257. protected override global::System.Type GetRowType() {
  3258. return typeof(SaleRow);
  3259. }
  3260. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3261. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3262. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3263. base.OnRowChanged(e);
  3264. if ((this.SaleRowChanged != null)) {
  3265. this.SaleRowChanged(this, new SaleRowChangeEvent(((SaleRow)(e.Row)), e.Action));
  3266. }
  3267. }
  3268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3269. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3270. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3271. base.OnRowChanging(e);
  3272. if ((this.SaleRowChanging != null)) {
  3273. this.SaleRowChanging(this, new SaleRowChangeEvent(((SaleRow)(e.Row)), e.Action));
  3274. }
  3275. }
  3276. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3277. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3278. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3279. base.OnRowDeleted(e);
  3280. if ((this.SaleRowDeleted != null)) {
  3281. this.SaleRowDeleted(this, new SaleRowChangeEvent(((SaleRow)(e.Row)), e.Action));
  3282. }
  3283. }
  3284. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3285. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3286. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3287. base.OnRowDeleting(e);
  3288. if ((this.SaleRowDeleting != null)) {
  3289. this.SaleRowDeleting(this, new SaleRowChangeEvent(((SaleRow)(e.Row)), e.Action));
  3290. }
  3291. }
  3292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3293. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3294. public void RemoveSaleRow(SaleRow row) {
  3295. this.Rows.Remove(row);
  3296. }
  3297. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3298. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3299. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3300. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3301. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3302. BB_GebelDataSet ds = new BB_GebelDataSet();
  3303. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3304. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3305. any1.MinOccurs = new decimal(0);
  3306. any1.MaxOccurs = decimal.MaxValue;
  3307. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3308. sequence.Items.Add(any1);
  3309. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3310. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3311. any2.MinOccurs = new decimal(1);
  3312. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3313. sequence.Items.Add(any2);
  3314. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3315. attribute1.Name = "namespace";
  3316. attribute1.FixedValue = ds.Namespace;
  3317. type.Attributes.Add(attribute1);
  3318. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3319. attribute2.Name = "tableTypeName";
  3320. attribute2.FixedValue = "SaleDataTable";
  3321. type.Attributes.Add(attribute2);
  3322. type.Particle = sequence;
  3323. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3324. if (xs.Contains(dsSchema.TargetNamespace)) {
  3325. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3326. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3327. try {
  3328. global::System.Xml.Schema.XmlSchema schema = null;
  3329. dsSchema.Write(s1);
  3330. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3331. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3332. s2.SetLength(0);
  3333. schema.Write(s2);
  3334. if ((s1.Length == s2.Length)) {
  3335. s1.Position = 0;
  3336. s2.Position = 0;
  3337. for (; ((s1.Position != s1.Length)
  3338. && (s1.ReadByte() == s2.ReadByte())); ) {
  3339. ;
  3340. }
  3341. if ((s1.Position == s1.Length)) {
  3342. return type;
  3343. }
  3344. }
  3345. }
  3346. }
  3347. finally {
  3348. if ((s1 != null)) {
  3349. s1.Close();
  3350. }
  3351. if ((s2 != null)) {
  3352. s2.Close();
  3353. }
  3354. }
  3355. }
  3356. xs.Add(dsSchema);
  3357. return type;
  3358. }
  3359. }
  3360. /// <summary>
  3361. ///Represents the strongly named DataTable class.
  3362. ///</summary>
  3363. [global::System.Serializable()]
  3364. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3365. public partial class serviceDataTable : global::System.Data.TypedTableBase<serviceRow> {
  3366. private global::System.Data.DataColumn columnID;
  3367. private global::System.Data.DataColumn columnНаименование_услуги;
  3368. private global::System.Data.DataColumn columnГлавное_изображение;
  3369. private global::System.Data.DataColumn columnДлительность;
  3370. private global::System.Data.DataColumn columnСтоимость;
  3371. private global::System.Data.DataColumn columnДействующая_скидка;
  3372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3374. public serviceDataTable() {
  3375. this.TableName = "service";
  3376. this.BeginInit();
  3377. this.InitClass();
  3378. this.EndInit();
  3379. }
  3380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3382. internal serviceDataTable(global::System.Data.DataTable table) {
  3383. this.TableName = table.TableName;
  3384. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3385. this.CaseSensitive = table.CaseSensitive;
  3386. }
  3387. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3388. this.Locale = table.Locale;
  3389. }
  3390. if ((table.Namespace != table.DataSet.Namespace)) {
  3391. this.Namespace = table.Namespace;
  3392. }
  3393. this.Prefix = table.Prefix;
  3394. this.MinimumCapacity = table.MinimumCapacity;
  3395. }
  3396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3398. protected serviceDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3399. base(info, context) {
  3400. this.InitVars();
  3401. }
  3402. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3403. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3404. public global::System.Data.DataColumn IDColumn {
  3405. get {
  3406. return this.columnID;
  3407. }
  3408. }
  3409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3411. public global::System.Data.DataColumn Наименование_услугиColumn {
  3412. get {
  3413. return this.columnНаименование_услуги;
  3414. }
  3415. }
  3416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3418. public global::System.Data.DataColumn Главное_изображениеColumn {
  3419. get {
  3420. return this.columnГлавное_изображение;
  3421. }
  3422. }
  3423. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3424. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3425. public global::System.Data.DataColumn ДлительностьColumn {
  3426. get {
  3427. return this.columnДлительность;
  3428. }
  3429. }
  3430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3431. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3432. public global::System.Data.DataColumn СтоимостьColumn {
  3433. get {
  3434. return this.columnСтоимость;
  3435. }
  3436. }
  3437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3438. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3439. public global::System.Data.DataColumn Действующая_скидкаColumn {
  3440. get {
  3441. return this.columnДействующая_скидка;
  3442. }
  3443. }
  3444. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3445. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3446. [global::System.ComponentModel.Browsable(false)]
  3447. public int Count {
  3448. get {
  3449. return this.Rows.Count;
  3450. }
  3451. }
  3452. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3453. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3454. public serviceRow this[int index] {
  3455. get {
  3456. return ((serviceRow)(this.Rows[index]));
  3457. }
  3458. }
  3459. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3460. public event serviceRowChangeEventHandler serviceRowChanging;
  3461. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3462. public event serviceRowChangeEventHandler serviceRowChanged;
  3463. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3464. public event serviceRowChangeEventHandler serviceRowDeleting;
  3465. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3466. public event serviceRowChangeEventHandler serviceRowDeleted;
  3467. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3468. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3469. public void AddserviceRow(serviceRow row) {
  3470. this.Rows.Add(row);
  3471. }
  3472. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3474. public serviceRow AddserviceRow(int ID, string Наименование_услуги, string Главное_изображение, string Длительность, string Стоимость, string Действующая_скидка) {
  3475. serviceRow rowserviceRow = ((serviceRow)(this.NewRow()));
  3476. object[] columnValuesArray = new object[] {
  3477. ID,
  3478. Наименование_услуги,
  3479. Главное_изображение,
  3480. Длительность,
  3481. Стоимость,
  3482. Действующая_скидка};
  3483. rowserviceRow.ItemArray = columnValuesArray;
  3484. this.Rows.Add(rowserviceRow);
  3485. return rowserviceRow;
  3486. }
  3487. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3488. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3489. public serviceRow FindByID(int ID) {
  3490. return ((serviceRow)(this.Rows.Find(new object[] {
  3491. ID})));
  3492. }
  3493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3494. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3495. public override global::System.Data.DataTable Clone() {
  3496. serviceDataTable cln = ((serviceDataTable)(base.Clone()));
  3497. cln.InitVars();
  3498. return cln;
  3499. }
  3500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3502. protected override global::System.Data.DataTable CreateInstance() {
  3503. return new serviceDataTable();
  3504. }
  3505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3507. internal void InitVars() {
  3508. this.columnID = base.Columns["ID"];
  3509. this.columnНаименование_услуги = base.Columns["Наименование_услуги"];
  3510. this.columnГлавное_изображение = base.Columns["Главное_изображение"];
  3511. this.columnДлительность = base.Columns["Длительность"];
  3512. this.columnСтоимость = base.Columns["Стоимость"];
  3513. this.columnДействующая_скидка = base.Columns["Действующая_скидка"];
  3514. }
  3515. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3516. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3517. private void InitClass() {
  3518. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3519. base.Columns.Add(this.columnID);
  3520. this.columnНаименование_услуги = new global::System.Data.DataColumn("Наименование_услуги", typeof(string), null, global::System.Data.MappingType.Element);
  3521. base.Columns.Add(this.columnНаименование_услуги);
  3522. this.columnГлавное_изображение = new global::System.Data.DataColumn("Главное_изображение", typeof(string), null, global::System.Data.MappingType.Element);
  3523. base.Columns.Add(this.columnГлавное_изображение);
  3524. this.columnДлительность = new global::System.Data.DataColumn("Длительность", typeof(string), null, global::System.Data.MappingType.Element);
  3525. base.Columns.Add(this.columnДлительность);
  3526. this.columnСтоимость = new global::System.Data.DataColumn("Стоимость", typeof(string), null, global::System.Data.MappingType.Element);
  3527. base.Columns.Add(this.columnСтоимость);
  3528. this.columnДействующая_скидка = new global::System.Data.DataColumn("Действующая_скидка", typeof(string), null, global::System.Data.MappingType.Element);
  3529. base.Columns.Add(this.columnДействующая_скидка);
  3530. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3531. this.columnID}, true));
  3532. this.columnID.AllowDBNull = false;
  3533. this.columnID.Unique = true;
  3534. this.columnНаименование_услуги.AllowDBNull = false;
  3535. this.columnНаименование_услуги.MaxLength = 50;
  3536. this.columnГлавное_изображение.AllowDBNull = false;
  3537. this.columnГлавное_изображение.MaxLength = 100;
  3538. this.columnДлительность.AllowDBNull = false;
  3539. this.columnДлительность.MaxLength = 50;
  3540. this.columnСтоимость.AllowDBNull = false;
  3541. this.columnСтоимость.MaxLength = 50;
  3542. this.columnДействующая_скидка.AllowDBNull = false;
  3543. this.columnДействующая_скидка.MaxLength = 50;
  3544. }
  3545. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3546. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3547. public serviceRow NewserviceRow() {
  3548. return ((serviceRow)(this.NewRow()));
  3549. }
  3550. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3551. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3552. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3553. return new serviceRow(builder);
  3554. }
  3555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3556. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3557. protected override global::System.Type GetRowType() {
  3558. return typeof(serviceRow);
  3559. }
  3560. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3561. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3562. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3563. base.OnRowChanged(e);
  3564. if ((this.serviceRowChanged != null)) {
  3565. this.serviceRowChanged(this, new serviceRowChangeEvent(((serviceRow)(e.Row)), e.Action));
  3566. }
  3567. }
  3568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3570. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3571. base.OnRowChanging(e);
  3572. if ((this.serviceRowChanging != null)) {
  3573. this.serviceRowChanging(this, new serviceRowChangeEvent(((serviceRow)(e.Row)), e.Action));
  3574. }
  3575. }
  3576. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3577. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3578. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3579. base.OnRowDeleted(e);
  3580. if ((this.serviceRowDeleted != null)) {
  3581. this.serviceRowDeleted(this, new serviceRowChangeEvent(((serviceRow)(e.Row)), e.Action));
  3582. }
  3583. }
  3584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3586. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3587. base.OnRowDeleting(e);
  3588. if ((this.serviceRowDeleting != null)) {
  3589. this.serviceRowDeleting(this, new serviceRowChangeEvent(((serviceRow)(e.Row)), e.Action));
  3590. }
  3591. }
  3592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3594. public void RemoveserviceRow(serviceRow row) {
  3595. this.Rows.Remove(row);
  3596. }
  3597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3598. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3599. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3600. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3601. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3602. BB_GebelDataSet ds = new BB_GebelDataSet();
  3603. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3604. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3605. any1.MinOccurs = new decimal(0);
  3606. any1.MaxOccurs = decimal.MaxValue;
  3607. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3608. sequence.Items.Add(any1);
  3609. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3610. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3611. any2.MinOccurs = new decimal(1);
  3612. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3613. sequence.Items.Add(any2);
  3614. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3615. attribute1.Name = "namespace";
  3616. attribute1.FixedValue = ds.Namespace;
  3617. type.Attributes.Add(attribute1);
  3618. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3619. attribute2.Name = "tableTypeName";
  3620. attribute2.FixedValue = "serviceDataTable";
  3621. type.Attributes.Add(attribute2);
  3622. type.Particle = sequence;
  3623. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3624. if (xs.Contains(dsSchema.TargetNamespace)) {
  3625. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3626. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3627. try {
  3628. global::System.Xml.Schema.XmlSchema schema = null;
  3629. dsSchema.Write(s1);
  3630. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3631. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3632. s2.SetLength(0);
  3633. schema.Write(s2);
  3634. if ((s1.Length == s2.Length)) {
  3635. s1.Position = 0;
  3636. s2.Position = 0;
  3637. for (; ((s1.Position != s1.Length)
  3638. && (s1.ReadByte() == s2.ReadByte())); ) {
  3639. ;
  3640. }
  3641. if ((s1.Position == s1.Length)) {
  3642. return type;
  3643. }
  3644. }
  3645. }
  3646. }
  3647. finally {
  3648. if ((s1 != null)) {
  3649. s1.Close();
  3650. }
  3651. if ((s2 != null)) {
  3652. s2.Close();
  3653. }
  3654. }
  3655. }
  3656. xs.Add(dsSchema);
  3657. return type;
  3658. }
  3659. }
  3660. /// <summary>
  3661. ///Represents the strongly named DataTable class.
  3662. ///</summary>
  3663. [global::System.Serializable()]
  3664. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3665. public partial class Service_photoDataTable : global::System.Data.TypedTableBase<Service_photoRow> {
  3666. private global::System.Data.DataColumn columnID;
  3667. private global::System.Data.DataColumn columnID_Service;
  3668. private global::System.Data.DataColumn columnPath_photo;
  3669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3670. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3671. public Service_photoDataTable() {
  3672. this.TableName = "Service photo";
  3673. this.BeginInit();
  3674. this.InitClass();
  3675. this.EndInit();
  3676. }
  3677. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3678. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3679. internal Service_photoDataTable(global::System.Data.DataTable table) {
  3680. this.TableName = table.TableName;
  3681. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3682. this.CaseSensitive = table.CaseSensitive;
  3683. }
  3684. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3685. this.Locale = table.Locale;
  3686. }
  3687. if ((table.Namespace != table.DataSet.Namespace)) {
  3688. this.Namespace = table.Namespace;
  3689. }
  3690. this.Prefix = table.Prefix;
  3691. this.MinimumCapacity = table.MinimumCapacity;
  3692. }
  3693. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3694. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3695. protected Service_photoDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3696. base(info, context) {
  3697. this.InitVars();
  3698. }
  3699. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3700. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3701. public global::System.Data.DataColumn IDColumn {
  3702. get {
  3703. return this.columnID;
  3704. }
  3705. }
  3706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3708. public global::System.Data.DataColumn ID_ServiceColumn {
  3709. get {
  3710. return this.columnID_Service;
  3711. }
  3712. }
  3713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3715. public global::System.Data.DataColumn Path_photoColumn {
  3716. get {
  3717. return this.columnPath_photo;
  3718. }
  3719. }
  3720. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3721. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3722. [global::System.ComponentModel.Browsable(false)]
  3723. public int Count {
  3724. get {
  3725. return this.Rows.Count;
  3726. }
  3727. }
  3728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3729. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3730. public Service_photoRow this[int index] {
  3731. get {
  3732. return ((Service_photoRow)(this.Rows[index]));
  3733. }
  3734. }
  3735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3736. public event Service_photoRowChangeEventHandler Service_photoRowChanging;
  3737. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3738. public event Service_photoRowChangeEventHandler Service_photoRowChanged;
  3739. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3740. public event Service_photoRowChangeEventHandler Service_photoRowDeleting;
  3741. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3742. public event Service_photoRowChangeEventHandler Service_photoRowDeleted;
  3743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3745. public void AddService_photoRow(Service_photoRow row) {
  3746. this.Rows.Add(row);
  3747. }
  3748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3750. public Service_photoRow AddService_photoRow(int ID, int ID_Service, string Path_photo) {
  3751. Service_photoRow rowService_photoRow = ((Service_photoRow)(this.NewRow()));
  3752. object[] columnValuesArray = new object[] {
  3753. ID,
  3754. ID_Service,
  3755. Path_photo};
  3756. rowService_photoRow.ItemArray = columnValuesArray;
  3757. this.Rows.Add(rowService_photoRow);
  3758. return rowService_photoRow;
  3759. }
  3760. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3761. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3762. public Service_photoRow FindByID(int ID) {
  3763. return ((Service_photoRow)(this.Rows.Find(new object[] {
  3764. ID})));
  3765. }
  3766. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3767. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3768. public override global::System.Data.DataTable Clone() {
  3769. Service_photoDataTable cln = ((Service_photoDataTable)(base.Clone()));
  3770. cln.InitVars();
  3771. return cln;
  3772. }
  3773. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3774. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3775. protected override global::System.Data.DataTable CreateInstance() {
  3776. return new Service_photoDataTable();
  3777. }
  3778. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3779. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3780. internal void InitVars() {
  3781. this.columnID = base.Columns["ID"];
  3782. this.columnID_Service = base.Columns["ID_Service"];
  3783. this.columnPath_photo = base.Columns["Path_photo"];
  3784. }
  3785. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3786. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3787. private void InitClass() {
  3788. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3789. base.Columns.Add(this.columnID);
  3790. this.columnID_Service = new global::System.Data.DataColumn("ID_Service", typeof(int), null, global::System.Data.MappingType.Element);
  3791. base.Columns.Add(this.columnID_Service);
  3792. this.columnPath_photo = new global::System.Data.DataColumn("Path_photo", typeof(string), null, global::System.Data.MappingType.Element);
  3793. base.Columns.Add(this.columnPath_photo);
  3794. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3795. this.columnID}, true));
  3796. this.columnID.AllowDBNull = false;
  3797. this.columnID.Unique = true;
  3798. this.columnID_Service.AllowDBNull = false;
  3799. this.columnPath_photo.AllowDBNull = false;
  3800. this.columnPath_photo.MaxLength = 2147483647;
  3801. }
  3802. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3803. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3804. public Service_photoRow NewService_photoRow() {
  3805. return ((Service_photoRow)(this.NewRow()));
  3806. }
  3807. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3808. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3809. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3810. return new Service_photoRow(builder);
  3811. }
  3812. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3813. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3814. protected override global::System.Type GetRowType() {
  3815. return typeof(Service_photoRow);
  3816. }
  3817. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3818. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3819. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3820. base.OnRowChanged(e);
  3821. if ((this.Service_photoRowChanged != null)) {
  3822. this.Service_photoRowChanged(this, new Service_photoRowChangeEvent(((Service_photoRow)(e.Row)), e.Action));
  3823. }
  3824. }
  3825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3826. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3827. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3828. base.OnRowChanging(e);
  3829. if ((this.Service_photoRowChanging != null)) {
  3830. this.Service_photoRowChanging(this, new Service_photoRowChangeEvent(((Service_photoRow)(e.Row)), e.Action));
  3831. }
  3832. }
  3833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3835. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3836. base.OnRowDeleted(e);
  3837. if ((this.Service_photoRowDeleted != null)) {
  3838. this.Service_photoRowDeleted(this, new Service_photoRowChangeEvent(((Service_photoRow)(e.Row)), e.Action));
  3839. }
  3840. }
  3841. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3842. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3843. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3844. base.OnRowDeleting(e);
  3845. if ((this.Service_photoRowDeleting != null)) {
  3846. this.Service_photoRowDeleting(this, new Service_photoRowChangeEvent(((Service_photoRow)(e.Row)), e.Action));
  3847. }
  3848. }
  3849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3850. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3851. public void RemoveService_photoRow(Service_photoRow row) {
  3852. this.Rows.Remove(row);
  3853. }
  3854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3855. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3856. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3857. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3858. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3859. BB_GebelDataSet ds = new BB_GebelDataSet();
  3860. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3861. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3862. any1.MinOccurs = new decimal(0);
  3863. any1.MaxOccurs = decimal.MaxValue;
  3864. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3865. sequence.Items.Add(any1);
  3866. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3867. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3868. any2.MinOccurs = new decimal(1);
  3869. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3870. sequence.Items.Add(any2);
  3871. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3872. attribute1.Name = "namespace";
  3873. attribute1.FixedValue = ds.Namespace;
  3874. type.Attributes.Add(attribute1);
  3875. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3876. attribute2.Name = "tableTypeName";
  3877. attribute2.FixedValue = "Service_photoDataTable";
  3878. type.Attributes.Add(attribute2);
  3879. type.Particle = sequence;
  3880. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3881. if (xs.Contains(dsSchema.TargetNamespace)) {
  3882. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3883. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3884. try {
  3885. global::System.Xml.Schema.XmlSchema schema = null;
  3886. dsSchema.Write(s1);
  3887. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3888. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3889. s2.SetLength(0);
  3890. schema.Write(s2);
  3891. if ((s1.Length == s2.Length)) {
  3892. s1.Position = 0;
  3893. s2.Position = 0;
  3894. for (; ((s1.Position != s1.Length)
  3895. && (s1.ReadByte() == s2.ReadByte())); ) {
  3896. ;
  3897. }
  3898. if ((s1.Position == s1.Length)) {
  3899. return type;
  3900. }
  3901. }
  3902. }
  3903. }
  3904. finally {
  3905. if ((s1 != null)) {
  3906. s1.Close();
  3907. }
  3908. if ((s2 != null)) {
  3909. s2.Close();
  3910. }
  3911. }
  3912. }
  3913. xs.Add(dsSchema);
  3914. return type;
  3915. }
  3916. }
  3917. /// <summary>
  3918. ///Represents the strongly named DataTable class.
  3919. ///</summary>
  3920. [global::System.Serializable()]
  3921. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3922. public partial class TagDataTable : global::System.Data.TypedTableBase<TagRow> {
  3923. private global::System.Data.DataColumn columnID;
  3924. private global::System.Data.DataColumn columnTitle;
  3925. private global::System.Data.DataColumn columnColor;
  3926. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3927. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3928. public TagDataTable() {
  3929. this.TableName = "Tag";
  3930. this.BeginInit();
  3931. this.InitClass();
  3932. this.EndInit();
  3933. }
  3934. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3935. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3936. internal TagDataTable(global::System.Data.DataTable table) {
  3937. this.TableName = table.TableName;
  3938. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3939. this.CaseSensitive = table.CaseSensitive;
  3940. }
  3941. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3942. this.Locale = table.Locale;
  3943. }
  3944. if ((table.Namespace != table.DataSet.Namespace)) {
  3945. this.Namespace = table.Namespace;
  3946. }
  3947. this.Prefix = table.Prefix;
  3948. this.MinimumCapacity = table.MinimumCapacity;
  3949. }
  3950. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3951. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3952. protected TagDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3953. base(info, context) {
  3954. this.InitVars();
  3955. }
  3956. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3957. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3958. public global::System.Data.DataColumn IDColumn {
  3959. get {
  3960. return this.columnID;
  3961. }
  3962. }
  3963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3965. public global::System.Data.DataColumn TitleColumn {
  3966. get {
  3967. return this.columnTitle;
  3968. }
  3969. }
  3970. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3971. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3972. public global::System.Data.DataColumn ColorColumn {
  3973. get {
  3974. return this.columnColor;
  3975. }
  3976. }
  3977. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3978. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3979. [global::System.ComponentModel.Browsable(false)]
  3980. public int Count {
  3981. get {
  3982. return this.Rows.Count;
  3983. }
  3984. }
  3985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3986. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3987. public TagRow this[int index] {
  3988. get {
  3989. return ((TagRow)(this.Rows[index]));
  3990. }
  3991. }
  3992. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3993. public event TagRowChangeEventHandler TagRowChanging;
  3994. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3995. public event TagRowChangeEventHandler TagRowChanged;
  3996. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3997. public event TagRowChangeEventHandler TagRowDeleting;
  3998. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3999. public event TagRowChangeEventHandler TagRowDeleted;
  4000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4001. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4002. public void AddTagRow(TagRow row) {
  4003. this.Rows.Add(row);
  4004. }
  4005. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4006. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4007. public TagRow AddTagRow(int ID, string Title, string Color) {
  4008. TagRow rowTagRow = ((TagRow)(this.NewRow()));
  4009. object[] columnValuesArray = new object[] {
  4010. ID,
  4011. Title,
  4012. Color};
  4013. rowTagRow.ItemArray = columnValuesArray;
  4014. this.Rows.Add(rowTagRow);
  4015. return rowTagRow;
  4016. }
  4017. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4018. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4019. public TagRow FindByID(int ID) {
  4020. return ((TagRow)(this.Rows.Find(new object[] {
  4021. ID})));
  4022. }
  4023. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4024. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4025. public override global::System.Data.DataTable Clone() {
  4026. TagDataTable cln = ((TagDataTable)(base.Clone()));
  4027. cln.InitVars();
  4028. return cln;
  4029. }
  4030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4032. protected override global::System.Data.DataTable CreateInstance() {
  4033. return new TagDataTable();
  4034. }
  4035. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4036. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4037. internal void InitVars() {
  4038. this.columnID = base.Columns["ID"];
  4039. this.columnTitle = base.Columns["Title"];
  4040. this.columnColor = base.Columns["Color"];
  4041. }
  4042. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4043. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4044. private void InitClass() {
  4045. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  4046. base.Columns.Add(this.columnID);
  4047. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  4048. base.Columns.Add(this.columnTitle);
  4049. this.columnColor = new global::System.Data.DataColumn("Color", typeof(string), null, global::System.Data.MappingType.Element);
  4050. base.Columns.Add(this.columnColor);
  4051. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  4052. this.columnID}, true));
  4053. this.columnID.AllowDBNull = false;
  4054. this.columnID.Unique = true;
  4055. this.columnTitle.AllowDBNull = false;
  4056. this.columnTitle.MaxLength = 2147483647;
  4057. this.columnColor.AllowDBNull = false;
  4058. this.columnColor.MaxLength = 2147483647;
  4059. }
  4060. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4061. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4062. public TagRow NewTagRow() {
  4063. return ((TagRow)(this.NewRow()));
  4064. }
  4065. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4066. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4067. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  4068. return new TagRow(builder);
  4069. }
  4070. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4071. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4072. protected override global::System.Type GetRowType() {
  4073. return typeof(TagRow);
  4074. }
  4075. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4076. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4077. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  4078. base.OnRowChanged(e);
  4079. if ((this.TagRowChanged != null)) {
  4080. this.TagRowChanged(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  4081. }
  4082. }
  4083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4085. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  4086. base.OnRowChanging(e);
  4087. if ((this.TagRowChanging != null)) {
  4088. this.TagRowChanging(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  4089. }
  4090. }
  4091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4093. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  4094. base.OnRowDeleted(e);
  4095. if ((this.TagRowDeleted != null)) {
  4096. this.TagRowDeleted(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  4097. }
  4098. }
  4099. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4100. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4101. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  4102. base.OnRowDeleting(e);
  4103. if ((this.TagRowDeleting != null)) {
  4104. this.TagRowDeleting(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  4105. }
  4106. }
  4107. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4108. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4109. public void RemoveTagRow(TagRow row) {
  4110. this.Rows.Remove(row);
  4111. }
  4112. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4113. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4114. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  4115. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  4116. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  4117. BB_GebelDataSet ds = new BB_GebelDataSet();
  4118. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  4119. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  4120. any1.MinOccurs = new decimal(0);
  4121. any1.MaxOccurs = decimal.MaxValue;
  4122. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4123. sequence.Items.Add(any1);
  4124. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  4125. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  4126. any2.MinOccurs = new decimal(1);
  4127. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4128. sequence.Items.Add(any2);
  4129. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4130. attribute1.Name = "namespace";
  4131. attribute1.FixedValue = ds.Namespace;
  4132. type.Attributes.Add(attribute1);
  4133. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4134. attribute2.Name = "tableTypeName";
  4135. attribute2.FixedValue = "TagDataTable";
  4136. type.Attributes.Add(attribute2);
  4137. type.Particle = sequence;
  4138. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  4139. if (xs.Contains(dsSchema.TargetNamespace)) {
  4140. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  4141. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  4142. try {
  4143. global::System.Xml.Schema.XmlSchema schema = null;
  4144. dsSchema.Write(s1);
  4145. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  4146. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  4147. s2.SetLength(0);
  4148. schema.Write(s2);
  4149. if ((s1.Length == s2.Length)) {
  4150. s1.Position = 0;
  4151. s2.Position = 0;
  4152. for (; ((s1.Position != s1.Length)
  4153. && (s1.ReadByte() == s2.ReadByte())); ) {
  4154. ;
  4155. }
  4156. if ((s1.Position == s1.Length)) {
  4157. return type;
  4158. }
  4159. }
  4160. }
  4161. }
  4162. finally {
  4163. if ((s1 != null)) {
  4164. s1.Close();
  4165. }
  4166. if ((s2 != null)) {
  4167. s2.Close();
  4168. }
  4169. }
  4170. }
  4171. xs.Add(dsSchema);
  4172. return type;
  4173. }
  4174. }
  4175. /// <summary>
  4176. ///Represents the strongly named DataTable class.
  4177. ///</summary>
  4178. [global::System.Serializable()]
  4179. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  4180. public partial class Tag_clientDataTable : global::System.Data.TypedTableBase<Tag_clientRow> {
  4181. private global::System.Data.DataColumn columnID_client;
  4182. private global::System.Data.DataColumn columnID_Tag;
  4183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4185. public Tag_clientDataTable() {
  4186. this.TableName = "Tag client";
  4187. this.BeginInit();
  4188. this.InitClass();
  4189. this.EndInit();
  4190. }
  4191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4192. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4193. internal Tag_clientDataTable(global::System.Data.DataTable table) {
  4194. this.TableName = table.TableName;
  4195. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  4196. this.CaseSensitive = table.CaseSensitive;
  4197. }
  4198. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  4199. this.Locale = table.Locale;
  4200. }
  4201. if ((table.Namespace != table.DataSet.Namespace)) {
  4202. this.Namespace = table.Namespace;
  4203. }
  4204. this.Prefix = table.Prefix;
  4205. this.MinimumCapacity = table.MinimumCapacity;
  4206. }
  4207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4208. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4209. protected Tag_clientDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  4210. base(info, context) {
  4211. this.InitVars();
  4212. }
  4213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4214. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4215. public global::System.Data.DataColumn ID_clientColumn {
  4216. get {
  4217. return this.columnID_client;
  4218. }
  4219. }
  4220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4221. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4222. public global::System.Data.DataColumn ID_TagColumn {
  4223. get {
  4224. return this.columnID_Tag;
  4225. }
  4226. }
  4227. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4228. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4229. [global::System.ComponentModel.Browsable(false)]
  4230. public int Count {
  4231. get {
  4232. return this.Rows.Count;
  4233. }
  4234. }
  4235. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4236. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4237. public Tag_clientRow this[int index] {
  4238. get {
  4239. return ((Tag_clientRow)(this.Rows[index]));
  4240. }
  4241. }
  4242. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4243. public event Tag_clientRowChangeEventHandler Tag_clientRowChanging;
  4244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4245. public event Tag_clientRowChangeEventHandler Tag_clientRowChanged;
  4246. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4247. public event Tag_clientRowChangeEventHandler Tag_clientRowDeleting;
  4248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4249. public event Tag_clientRowChangeEventHandler Tag_clientRowDeleted;
  4250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4252. public void AddTag_clientRow(Tag_clientRow row) {
  4253. this.Rows.Add(row);
  4254. }
  4255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4256. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4257. public Tag_clientRow AddTag_clientRow(int ID_client, int ID_Tag) {
  4258. Tag_clientRow rowTag_clientRow = ((Tag_clientRow)(this.NewRow()));
  4259. object[] columnValuesArray = new object[] {
  4260. ID_client,
  4261. ID_Tag};
  4262. rowTag_clientRow.ItemArray = columnValuesArray;
  4263. this.Rows.Add(rowTag_clientRow);
  4264. return rowTag_clientRow;
  4265. }
  4266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4268. public Tag_clientRow FindByID_client(int ID_client) {
  4269. return ((Tag_clientRow)(this.Rows.Find(new object[] {
  4270. ID_client})));
  4271. }
  4272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4274. public override global::System.Data.DataTable Clone() {
  4275. Tag_clientDataTable cln = ((Tag_clientDataTable)(base.Clone()));
  4276. cln.InitVars();
  4277. return cln;
  4278. }
  4279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4280. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4281. protected override global::System.Data.DataTable CreateInstance() {
  4282. return new Tag_clientDataTable();
  4283. }
  4284. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4285. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4286. internal void InitVars() {
  4287. this.columnID_client = base.Columns["ID_client"];
  4288. this.columnID_Tag = base.Columns["ID_Tag"];
  4289. }
  4290. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4291. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4292. private void InitClass() {
  4293. this.columnID_client = new global::System.Data.DataColumn("ID_client", typeof(int), null, global::System.Data.MappingType.Element);
  4294. base.Columns.Add(this.columnID_client);
  4295. this.columnID_Tag = new global::System.Data.DataColumn("ID_Tag", typeof(int), null, global::System.Data.MappingType.Element);
  4296. base.Columns.Add(this.columnID_Tag);
  4297. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  4298. this.columnID_client}, true));
  4299. this.columnID_client.AllowDBNull = false;
  4300. this.columnID_client.Unique = true;
  4301. this.columnID_Tag.AllowDBNull = false;
  4302. }
  4303. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4304. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4305. public Tag_clientRow NewTag_clientRow() {
  4306. return ((Tag_clientRow)(this.NewRow()));
  4307. }
  4308. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4309. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4310. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  4311. return new Tag_clientRow(builder);
  4312. }
  4313. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4314. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4315. protected override global::System.Type GetRowType() {
  4316. return typeof(Tag_clientRow);
  4317. }
  4318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4319. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4320. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  4321. base.OnRowChanged(e);
  4322. if ((this.Tag_clientRowChanged != null)) {
  4323. this.Tag_clientRowChanged(this, new Tag_clientRowChangeEvent(((Tag_clientRow)(e.Row)), e.Action));
  4324. }
  4325. }
  4326. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4327. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4328. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  4329. base.OnRowChanging(e);
  4330. if ((this.Tag_clientRowChanging != null)) {
  4331. this.Tag_clientRowChanging(this, new Tag_clientRowChangeEvent(((Tag_clientRow)(e.Row)), e.Action));
  4332. }
  4333. }
  4334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4336. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  4337. base.OnRowDeleted(e);
  4338. if ((this.Tag_clientRowDeleted != null)) {
  4339. this.Tag_clientRowDeleted(this, new Tag_clientRowChangeEvent(((Tag_clientRow)(e.Row)), e.Action));
  4340. }
  4341. }
  4342. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4343. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4344. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  4345. base.OnRowDeleting(e);
  4346. if ((this.Tag_clientRowDeleting != null)) {
  4347. this.Tag_clientRowDeleting(this, new Tag_clientRowChangeEvent(((Tag_clientRow)(e.Row)), e.Action));
  4348. }
  4349. }
  4350. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4351. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4352. public void RemoveTag_clientRow(Tag_clientRow row) {
  4353. this.Rows.Remove(row);
  4354. }
  4355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4357. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  4358. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  4359. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  4360. BB_GebelDataSet ds = new BB_GebelDataSet();
  4361. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  4362. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  4363. any1.MinOccurs = new decimal(0);
  4364. any1.MaxOccurs = decimal.MaxValue;
  4365. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4366. sequence.Items.Add(any1);
  4367. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  4368. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  4369. any2.MinOccurs = new decimal(1);
  4370. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4371. sequence.Items.Add(any2);
  4372. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4373. attribute1.Name = "namespace";
  4374. attribute1.FixedValue = ds.Namespace;
  4375. type.Attributes.Add(attribute1);
  4376. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4377. attribute2.Name = "tableTypeName";
  4378. attribute2.FixedValue = "Tag_clientDataTable";
  4379. type.Attributes.Add(attribute2);
  4380. type.Particle = sequence;
  4381. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  4382. if (xs.Contains(dsSchema.TargetNamespace)) {
  4383. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  4384. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  4385. try {
  4386. global::System.Xml.Schema.XmlSchema schema = null;
  4387. dsSchema.Write(s1);
  4388. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  4389. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  4390. s2.SetLength(0);
  4391. schema.Write(s2);
  4392. if ((s1.Length == s2.Length)) {
  4393. s1.Position = 0;
  4394. s2.Position = 0;
  4395. for (; ((s1.Position != s1.Length)
  4396. && (s1.ReadByte() == s2.ReadByte())); ) {
  4397. ;
  4398. }
  4399. if ((s1.Position == s1.Length)) {
  4400. return type;
  4401. }
  4402. }
  4403. }
  4404. }
  4405. finally {
  4406. if ((s1 != null)) {
  4407. s1.Close();
  4408. }
  4409. if ((s2 != null)) {
  4410. s2.Close();
  4411. }
  4412. }
  4413. }
  4414. xs.Add(dsSchema);
  4415. return type;
  4416. }
  4417. }
  4418. /// <summary>
  4419. ///Represents strongly named DataRow class.
  4420. ///</summary>
  4421. public partial class AttachedProductRow : global::System.Data.DataRow {
  4422. private AttachedProductDataTable tableAttachedProduct;
  4423. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4424. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4425. internal AttachedProductRow(global::System.Data.DataRowBuilder rb) :
  4426. base(rb) {
  4427. this.tableAttachedProduct = ((AttachedProductDataTable)(this.Table));
  4428. }
  4429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4431. public int Main_Product_ID {
  4432. get {
  4433. return ((int)(this[this.tableAttachedProduct.Main_Product_IDColumn]));
  4434. }
  4435. set {
  4436. this[this.tableAttachedProduct.Main_Product_IDColumn] = value;
  4437. }
  4438. }
  4439. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4440. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4441. public int Attached_Product_ID {
  4442. get {
  4443. return ((int)(this[this.tableAttachedProduct.Attached_Product_IDColumn]));
  4444. }
  4445. set {
  4446. this[this.tableAttachedProduct.Attached_Product_IDColumn] = value;
  4447. }
  4448. }
  4449. }
  4450. /// <summary>
  4451. ///Represents strongly named DataRow class.
  4452. ///</summary>
  4453. public partial class AvtorizaciaRow : global::System.Data.DataRow {
  4454. private AvtorizaciaDataTable tableAvtorizacia;
  4455. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4456. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4457. internal AvtorizaciaRow(global::System.Data.DataRowBuilder rb) :
  4458. base(rb) {
  4459. this.tableAvtorizacia = ((AvtorizaciaDataTable)(this.Table));
  4460. }
  4461. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4462. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4463. public string Login {
  4464. get {
  4465. return ((string)(this[this.tableAvtorizacia.LoginColumn]));
  4466. }
  4467. set {
  4468. this[this.tableAvtorizacia.LoginColumn] = value;
  4469. }
  4470. }
  4471. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4473. public string Password {
  4474. get {
  4475. return ((string)(this[this.tableAvtorizacia.PasswordColumn]));
  4476. }
  4477. set {
  4478. this[this.tableAvtorizacia.PasswordColumn] = value;
  4479. }
  4480. }
  4481. }
  4482. /// <summary>
  4483. ///Represents strongly named DataRow class.
  4484. ///</summary>
  4485. public partial class clientRow : global::System.Data.DataRow {
  4486. private clientDataTable tableclient;
  4487. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4488. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4489. internal clientRow(global::System.Data.DataRowBuilder rb) :
  4490. base(rb) {
  4491. this.tableclient = ((clientDataTable)(this.Table));
  4492. }
  4493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4494. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4495. public string ID {
  4496. get {
  4497. return ((string)(this[this.tableclient.IDColumn]));
  4498. }
  4499. set {
  4500. this[this.tableclient.IDColumn] = value;
  4501. }
  4502. }
  4503. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4504. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4505. public string Фамилия {
  4506. get {
  4507. return ((string)(this[this.tableclient.ФамилияColumn]));
  4508. }
  4509. set {
  4510. this[this.tableclient.ФамилияColumn] = value;
  4511. }
  4512. }
  4513. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4514. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4515. public string Имя {
  4516. get {
  4517. return ((string)(this[this.tableclient.ИмяColumn]));
  4518. }
  4519. set {
  4520. this[this.tableclient.ИмяColumn] = value;
  4521. }
  4522. }
  4523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4524. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4525. public string Отчество {
  4526. get {
  4527. return ((string)(this[this.tableclient.ОтчествоColumn]));
  4528. }
  4529. set {
  4530. this[this.tableclient.ОтчествоColumn] = value;
  4531. }
  4532. }
  4533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4535. public string Пол {
  4536. get {
  4537. return ((string)(this[this.tableclient.ПолColumn]));
  4538. }
  4539. set {
  4540. this[this.tableclient.ПолColumn] = value;
  4541. }
  4542. }
  4543. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4544. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4545. public string Телефон {
  4546. get {
  4547. return ((string)(this[this.tableclient.ТелефонColumn]));
  4548. }
  4549. set {
  4550. this[this.tableclient.ТелефонColumn] = value;
  4551. }
  4552. }
  4553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4555. public System.DateTime Дата_рождения {
  4556. get {
  4557. return ((global::System.DateTime)(this[this.tableclient.Дата_рожденияColumn]));
  4558. }
  4559. set {
  4560. this[this.tableclient.Дата_рожденияColumn] = value;
  4561. }
  4562. }
  4563. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4564. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4565. public string Email {
  4566. get {
  4567. return ((string)(this[this.tableclient.EmailColumn]));
  4568. }
  4569. set {
  4570. this[this.tableclient.EmailColumn] = value;
  4571. }
  4572. }
  4573. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4574. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4575. public System.DateTime Дата_регистрации {
  4576. get {
  4577. return ((global::System.DateTime)(this[this.tableclient.Дата_регистрацииColumn]));
  4578. }
  4579. set {
  4580. this[this.tableclient.Дата_регистрацииColumn] = value;
  4581. }
  4582. }
  4583. }
  4584. /// <summary>
  4585. ///Represents strongly named DataRow class.
  4586. ///</summary>
  4587. public partial class client_Service_Row : global::System.Data.DataRow {
  4588. private client_Service_DataTable tableclient_Service_;
  4589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4590. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4591. internal client_Service_Row(global::System.Data.DataRowBuilder rb) :
  4592. base(rb) {
  4593. this.tableclient_Service_ = ((client_Service_DataTable)(this.Table));
  4594. }
  4595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4596. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4597. public int ID {
  4598. get {
  4599. return ((int)(this[this.tableclient_Service_.IDColumn]));
  4600. }
  4601. set {
  4602. this[this.tableclient_Service_.IDColumn] = value;
  4603. }
  4604. }
  4605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4607. public int ID_client {
  4608. get {
  4609. return ((int)(this[this.tableclient_Service_.ID_clientColumn]));
  4610. }
  4611. set {
  4612. this[this.tableclient_Service_.ID_clientColumn] = value;
  4613. }
  4614. }
  4615. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4616. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4617. public int ID_service {
  4618. get {
  4619. return ((int)(this[this.tableclient_Service_.ID_serviceColumn]));
  4620. }
  4621. set {
  4622. this[this.tableclient_Service_.ID_serviceColumn] = value;
  4623. }
  4624. }
  4625. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4626. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4627. public System.DateTime StartTime {
  4628. get {
  4629. return ((global::System.DateTime)(this[this.tableclient_Service_.StartTimeColumn]));
  4630. }
  4631. set {
  4632. this[this.tableclient_Service_.StartTimeColumn] = value;
  4633. }
  4634. }
  4635. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4636. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4637. public string Comments {
  4638. get {
  4639. try {
  4640. return ((string)(this[this.tableclient_Service_.CommentsColumn]));
  4641. }
  4642. catch (global::System.InvalidCastException e) {
  4643. throw new global::System.Data.StrongTypingException("Значение для столбца \'Comments\' в таблице \'client Service \' равно DBNull.", e);
  4644. }
  4645. }
  4646. set {
  4647. this[this.tableclient_Service_.CommentsColumn] = value;
  4648. }
  4649. }
  4650. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4651. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4652. public bool IsCommentsNull() {
  4653. return this.IsNull(this.tableclient_Service_.CommentsColumn);
  4654. }
  4655. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4656. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4657. public void SetCommentsNull() {
  4658. this[this.tableclient_Service_.CommentsColumn] = global::System.Convert.DBNull;
  4659. }
  4660. }
  4661. /// <summary>
  4662. ///Represents strongly named DataRow class.
  4663. ///</summary>
  4664. public partial class DocumentServiceRow : global::System.Data.DataRow {
  4665. private DocumentServiceDataTable tableDocumentService;
  4666. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4667. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4668. internal DocumentServiceRow(global::System.Data.DataRowBuilder rb) :
  4669. base(rb) {
  4670. this.tableDocumentService = ((DocumentServiceDataTable)(this.Table));
  4671. }
  4672. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4674. public int ID {
  4675. get {
  4676. return ((int)(this[this.tableDocumentService.IDColumn]));
  4677. }
  4678. set {
  4679. this[this.tableDocumentService.IDColumn] = value;
  4680. }
  4681. }
  4682. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4683. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4684. public int ID_client_service {
  4685. get {
  4686. return ((int)(this[this.tableDocumentService.ID_client_serviceColumn]));
  4687. }
  4688. set {
  4689. this[this.tableDocumentService.ID_client_serviceColumn] = value;
  4690. }
  4691. }
  4692. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4693. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4694. public string DocumentPath {
  4695. get {
  4696. return ((string)(this[this.tableDocumentService.DocumentPathColumn]));
  4697. }
  4698. set {
  4699. this[this.tableDocumentService.DocumentPathColumn] = value;
  4700. }
  4701. }
  4702. }
  4703. /// <summary>
  4704. ///Represents strongly named DataRow class.
  4705. ///</summary>
  4706. public partial class GenderRow : global::System.Data.DataRow {
  4707. private GenderDataTable tableGender;
  4708. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4709. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4710. internal GenderRow(global::System.Data.DataRowBuilder rb) :
  4711. base(rb) {
  4712. this.tableGender = ((GenderDataTable)(this.Table));
  4713. }
  4714. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4715. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4716. public int Code {
  4717. get {
  4718. return ((int)(this[this.tableGender.CodeColumn]));
  4719. }
  4720. set {
  4721. this[this.tableGender.CodeColumn] = value;
  4722. }
  4723. }
  4724. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4725. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4726. public string Name {
  4727. get {
  4728. try {
  4729. return ((string)(this[this.tableGender.NameColumn]));
  4730. }
  4731. catch (global::System.InvalidCastException e) {
  4732. throw new global::System.Data.StrongTypingException("Значение для столбца \'Name\' в таблице \'Gender\' равно DBNull.", e);
  4733. }
  4734. }
  4735. set {
  4736. this[this.tableGender.NameColumn] = value;
  4737. }
  4738. }
  4739. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4740. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4741. public bool IsNameNull() {
  4742. return this.IsNull(this.tableGender.NameColumn);
  4743. }
  4744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4746. public void SetNameNull() {
  4747. this[this.tableGender.NameColumn] = global::System.Convert.DBNull;
  4748. }
  4749. }
  4750. /// <summary>
  4751. ///Represents strongly named DataRow class.
  4752. ///</summary>
  4753. public partial class ManufactureRow : global::System.Data.DataRow {
  4754. private ManufactureDataTable tableManufacture;
  4755. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4756. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4757. internal ManufactureRow(global::System.Data.DataRowBuilder rb) :
  4758. base(rb) {
  4759. this.tableManufacture = ((ManufactureDataTable)(this.Table));
  4760. }
  4761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4763. public int ID {
  4764. get {
  4765. return ((int)(this[this.tableManufacture.IDColumn]));
  4766. }
  4767. set {
  4768. this[this.tableManufacture.IDColumn] = value;
  4769. }
  4770. }
  4771. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4772. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4773. public string Name {
  4774. get {
  4775. return ((string)(this[this.tableManufacture.NameColumn]));
  4776. }
  4777. set {
  4778. this[this.tableManufacture.NameColumn] = value;
  4779. }
  4780. }
  4781. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4782. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4783. public System.DateTime Date_Start {
  4784. get {
  4785. try {
  4786. return ((global::System.DateTime)(this[this.tableManufacture.Date_StartColumn]));
  4787. }
  4788. catch (global::System.InvalidCastException e) {
  4789. throw new global::System.Data.StrongTypingException("Значение для столбца \'Date_Start\' в таблице \'Manufacture\' равно DBNull.", e);
  4790. }
  4791. }
  4792. set {
  4793. this[this.tableManufacture.Date_StartColumn] = value;
  4794. }
  4795. }
  4796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4797. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4798. public bool IsDate_StartNull() {
  4799. return this.IsNull(this.tableManufacture.Date_StartColumn);
  4800. }
  4801. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4802. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4803. public void SetDate_StartNull() {
  4804. this[this.tableManufacture.Date_StartColumn] = global::System.Convert.DBNull;
  4805. }
  4806. }
  4807. /// <summary>
  4808. ///Represents strongly named DataRow class.
  4809. ///</summary>
  4810. public partial class Photo_prouctRow : global::System.Data.DataRow {
  4811. private Photo_prouctDataTable tablePhoto_prouct;
  4812. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4813. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4814. internal Photo_prouctRow(global::System.Data.DataRowBuilder rb) :
  4815. base(rb) {
  4816. this.tablePhoto_prouct = ((Photo_prouctDataTable)(this.Table));
  4817. }
  4818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4819. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4820. public int ID {
  4821. get {
  4822. return ((int)(this[this.tablePhoto_prouct.IDColumn]));
  4823. }
  4824. set {
  4825. this[this.tablePhoto_prouct.IDColumn] = value;
  4826. }
  4827. }
  4828. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4829. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4830. public int ID_product {
  4831. get {
  4832. return ((int)(this[this.tablePhoto_prouct.ID_productColumn]));
  4833. }
  4834. set {
  4835. this[this.tablePhoto_prouct.ID_productColumn] = value;
  4836. }
  4837. }
  4838. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4839. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4840. public string Path_photo {
  4841. get {
  4842. return ((string)(this[this.tablePhoto_prouct.Path_photoColumn]));
  4843. }
  4844. set {
  4845. this[this.tablePhoto_prouct.Path_photoColumn] = value;
  4846. }
  4847. }
  4848. }
  4849. /// <summary>
  4850. ///Represents strongly named DataRow class.
  4851. ///</summary>
  4852. public partial class ProductRow : global::System.Data.DataRow {
  4853. private ProductDataTable tableProduct;
  4854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4855. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4856. internal ProductRow(global::System.Data.DataRowBuilder rb) :
  4857. base(rb) {
  4858. this.tableProduct = ((ProductDataTable)(this.Table));
  4859. }
  4860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4862. public int ID {
  4863. get {
  4864. return ((int)(this[this.tableProduct.IDColumn]));
  4865. }
  4866. set {
  4867. this[this.tableProduct.IDColumn] = value;
  4868. }
  4869. }
  4870. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4871. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4872. public string Title {
  4873. get {
  4874. return ((string)(this[this.tableProduct.TitleColumn]));
  4875. }
  4876. set {
  4877. this[this.tableProduct.TitleColumn] = value;
  4878. }
  4879. }
  4880. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4881. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4882. public decimal Cost {
  4883. get {
  4884. return ((decimal)(this[this.tableProduct.CostColumn]));
  4885. }
  4886. set {
  4887. this[this.tableProduct.CostColumn] = value;
  4888. }
  4889. }
  4890. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4891. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4892. public string Description {
  4893. get {
  4894. try {
  4895. return ((string)(this[this.tableProduct.DescriptionColumn]));
  4896. }
  4897. catch (global::System.InvalidCastException e) {
  4898. throw new global::System.Data.StrongTypingException("Значение для столбца \'Description\' в таблице \'Product\' равно DBNull.", e);
  4899. }
  4900. }
  4901. set {
  4902. this[this.tableProduct.DescriptionColumn] = value;
  4903. }
  4904. }
  4905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4906. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4907. public string Path_MainImage {
  4908. get {
  4909. try {
  4910. return ((string)(this[this.tableProduct.Path_MainImageColumn]));
  4911. }
  4912. catch (global::System.InvalidCastException e) {
  4913. throw new global::System.Data.StrongTypingException("Значение для столбца \'Path_MainImage\' в таблице \'Product\' равно DBNull.", e);
  4914. }
  4915. }
  4916. set {
  4917. this[this.tableProduct.Path_MainImageColumn] = value;
  4918. }
  4919. }
  4920. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4921. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4922. public bool Active {
  4923. get {
  4924. return ((bool)(this[this.tableProduct.ActiveColumn]));
  4925. }
  4926. set {
  4927. this[this.tableProduct.ActiveColumn] = value;
  4928. }
  4929. }
  4930. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4931. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4932. public int ID_manufacturer {
  4933. get {
  4934. try {
  4935. return ((int)(this[this.tableProduct.ID_manufacturerColumn]));
  4936. }
  4937. catch (global::System.InvalidCastException e) {
  4938. throw new global::System.Data.StrongTypingException("Значение для столбца \'ID_manufacturer\' в таблице \'Product\' равно DBNull.", e);
  4939. }
  4940. }
  4941. set {
  4942. this[this.tableProduct.ID_manufacturerColumn] = value;
  4943. }
  4944. }
  4945. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4946. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4947. public bool IsDescriptionNull() {
  4948. return this.IsNull(this.tableProduct.DescriptionColumn);
  4949. }
  4950. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4951. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4952. public void SetDescriptionNull() {
  4953. this[this.tableProduct.DescriptionColumn] = global::System.Convert.DBNull;
  4954. }
  4955. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4956. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4957. public bool IsPath_MainImageNull() {
  4958. return this.IsNull(this.tableProduct.Path_MainImageColumn);
  4959. }
  4960. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4961. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4962. public void SetPath_MainImageNull() {
  4963. this[this.tableProduct.Path_MainImageColumn] = global::System.Convert.DBNull;
  4964. }
  4965. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4966. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4967. public bool IsID_manufacturerNull() {
  4968. return this.IsNull(this.tableProduct.ID_manufacturerColumn);
  4969. }
  4970. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4971. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4972. public void SetID_manufacturerNull() {
  4973. this[this.tableProduct.ID_manufacturerColumn] = global::System.Convert.DBNull;
  4974. }
  4975. }
  4976. /// <summary>
  4977. ///Represents strongly named DataRow class.
  4978. ///</summary>
  4979. public partial class SaleRow : global::System.Data.DataRow {
  4980. private SaleDataTable tableSale;
  4981. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4982. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4983. internal SaleRow(global::System.Data.DataRowBuilder rb) :
  4984. base(rb) {
  4985. this.tableSale = ((SaleDataTable)(this.Table));
  4986. }
  4987. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4988. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4989. public int ID {
  4990. get {
  4991. return ((int)(this[this.tableSale.IDColumn]));
  4992. }
  4993. set {
  4994. this[this.tableSale.IDColumn] = value;
  4995. }
  4996. }
  4997. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4998. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4999. public System.DateTime Date_Sale {
  5000. get {
  5001. return ((global::System.DateTime)(this[this.tableSale.Date_SaleColumn]));
  5002. }
  5003. set {
  5004. this[this.tableSale.Date_SaleColumn] = value;
  5005. }
  5006. }
  5007. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5008. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5009. public int ID_Product {
  5010. get {
  5011. return ((int)(this[this.tableSale.ID_ProductColumn]));
  5012. }
  5013. set {
  5014. this[this.tableSale.ID_ProductColumn] = value;
  5015. }
  5016. }
  5017. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5018. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5019. public int Quantity {
  5020. get {
  5021. return ((int)(this[this.tableSale.QuantityColumn]));
  5022. }
  5023. set {
  5024. this[this.tableSale.QuantityColumn] = value;
  5025. }
  5026. }
  5027. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5028. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5029. public int ID_client_service {
  5030. get {
  5031. try {
  5032. return ((int)(this[this.tableSale.ID_client_serviceColumn]));
  5033. }
  5034. catch (global::System.InvalidCastException e) {
  5035. throw new global::System.Data.StrongTypingException("Значение для столбца \'ID_client_service\' в таблице \'Sale\' равно DBNull.", e);
  5036. }
  5037. }
  5038. set {
  5039. this[this.tableSale.ID_client_serviceColumn] = value;
  5040. }
  5041. }
  5042. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5043. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5044. public bool IsID_client_serviceNull() {
  5045. return this.IsNull(this.tableSale.ID_client_serviceColumn);
  5046. }
  5047. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5048. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5049. public void SetID_client_serviceNull() {
  5050. this[this.tableSale.ID_client_serviceColumn] = global::System.Convert.DBNull;
  5051. }
  5052. }
  5053. /// <summary>
  5054. ///Represents strongly named DataRow class.
  5055. ///</summary>
  5056. public partial class serviceRow : global::System.Data.DataRow {
  5057. private serviceDataTable tableservice;
  5058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5059. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5060. internal serviceRow(global::System.Data.DataRowBuilder rb) :
  5061. base(rb) {
  5062. this.tableservice = ((serviceDataTable)(this.Table));
  5063. }
  5064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5065. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5066. public int ID {
  5067. get {
  5068. return ((int)(this[this.tableservice.IDColumn]));
  5069. }
  5070. set {
  5071. this[this.tableservice.IDColumn] = value;
  5072. }
  5073. }
  5074. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5075. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5076. public string Наименование_услуги {
  5077. get {
  5078. return ((string)(this[this.tableservice.Наименование_услугиColumn]));
  5079. }
  5080. set {
  5081. this[this.tableservice.Наименование_услугиColumn] = value;
  5082. }
  5083. }
  5084. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5085. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5086. public string Главное_изображение {
  5087. get {
  5088. return ((string)(this[this.tableservice.Главное_изображениеColumn]));
  5089. }
  5090. set {
  5091. this[this.tableservice.Главное_изображениеColumn] = value;
  5092. }
  5093. }
  5094. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5095. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5096. public string Длительность {
  5097. get {
  5098. return ((string)(this[this.tableservice.ДлительностьColumn]));
  5099. }
  5100. set {
  5101. this[this.tableservice.ДлительностьColumn] = value;
  5102. }
  5103. }
  5104. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5105. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5106. public string Стоимость {
  5107. get {
  5108. return ((string)(this[this.tableservice.СтоимостьColumn]));
  5109. }
  5110. set {
  5111. this[this.tableservice.СтоимостьColumn] = value;
  5112. }
  5113. }
  5114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5115. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5116. public string Действующая_скидка {
  5117. get {
  5118. return ((string)(this[this.tableservice.Действующая_скидкаColumn]));
  5119. }
  5120. set {
  5121. this[this.tableservice.Действующая_скидкаColumn] = value;
  5122. }
  5123. }
  5124. }
  5125. /// <summary>
  5126. ///Represents strongly named DataRow class.
  5127. ///</summary>
  5128. public partial class Service_photoRow : global::System.Data.DataRow {
  5129. private Service_photoDataTable tableService_photo;
  5130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5131. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5132. internal Service_photoRow(global::System.Data.DataRowBuilder rb) :
  5133. base(rb) {
  5134. this.tableService_photo = ((Service_photoDataTable)(this.Table));
  5135. }
  5136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5137. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5138. public int ID {
  5139. get {
  5140. return ((int)(this[this.tableService_photo.IDColumn]));
  5141. }
  5142. set {
  5143. this[this.tableService_photo.IDColumn] = value;
  5144. }
  5145. }
  5146. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5147. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5148. public int ID_Service {
  5149. get {
  5150. return ((int)(this[this.tableService_photo.ID_ServiceColumn]));
  5151. }
  5152. set {
  5153. this[this.tableService_photo.ID_ServiceColumn] = value;
  5154. }
  5155. }
  5156. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5157. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5158. public string Path_photo {
  5159. get {
  5160. return ((string)(this[this.tableService_photo.Path_photoColumn]));
  5161. }
  5162. set {
  5163. this[this.tableService_photo.Path_photoColumn] = value;
  5164. }
  5165. }
  5166. }
  5167. /// <summary>
  5168. ///Represents strongly named DataRow class.
  5169. ///</summary>
  5170. public partial class TagRow : global::System.Data.DataRow {
  5171. private TagDataTable tableTag;
  5172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5174. internal TagRow(global::System.Data.DataRowBuilder rb) :
  5175. base(rb) {
  5176. this.tableTag = ((TagDataTable)(this.Table));
  5177. }
  5178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5180. public int ID {
  5181. get {
  5182. return ((int)(this[this.tableTag.IDColumn]));
  5183. }
  5184. set {
  5185. this[this.tableTag.IDColumn] = value;
  5186. }
  5187. }
  5188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5190. public string Title {
  5191. get {
  5192. return ((string)(this[this.tableTag.TitleColumn]));
  5193. }
  5194. set {
  5195. this[this.tableTag.TitleColumn] = value;
  5196. }
  5197. }
  5198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5199. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5200. public string Color {
  5201. get {
  5202. return ((string)(this[this.tableTag.ColorColumn]));
  5203. }
  5204. set {
  5205. this[this.tableTag.ColorColumn] = value;
  5206. }
  5207. }
  5208. }
  5209. /// <summary>
  5210. ///Represents strongly named DataRow class.
  5211. ///</summary>
  5212. public partial class Tag_clientRow : global::System.Data.DataRow {
  5213. private Tag_clientDataTable tableTag_client;
  5214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5215. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5216. internal Tag_clientRow(global::System.Data.DataRowBuilder rb) :
  5217. base(rb) {
  5218. this.tableTag_client = ((Tag_clientDataTable)(this.Table));
  5219. }
  5220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5221. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5222. public int ID_client {
  5223. get {
  5224. return ((int)(this[this.tableTag_client.ID_clientColumn]));
  5225. }
  5226. set {
  5227. this[this.tableTag_client.ID_clientColumn] = value;
  5228. }
  5229. }
  5230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5232. public int ID_Tag {
  5233. get {
  5234. return ((int)(this[this.tableTag_client.ID_TagColumn]));
  5235. }
  5236. set {
  5237. this[this.tableTag_client.ID_TagColumn] = value;
  5238. }
  5239. }
  5240. }
  5241. /// <summary>
  5242. ///Row event argument class
  5243. ///</summary>
  5244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5245. public class AttachedProductRowChangeEvent : global::System.EventArgs {
  5246. private AttachedProductRow eventRow;
  5247. private global::System.Data.DataRowAction eventAction;
  5248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5249. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5250. public AttachedProductRowChangeEvent(AttachedProductRow row, global::System.Data.DataRowAction action) {
  5251. this.eventRow = row;
  5252. this.eventAction = action;
  5253. }
  5254. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5255. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5256. public AttachedProductRow Row {
  5257. get {
  5258. return this.eventRow;
  5259. }
  5260. }
  5261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5262. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5263. public global::System.Data.DataRowAction Action {
  5264. get {
  5265. return this.eventAction;
  5266. }
  5267. }
  5268. }
  5269. /// <summary>
  5270. ///Row event argument class
  5271. ///</summary>
  5272. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5273. public class AvtorizaciaRowChangeEvent : global::System.EventArgs {
  5274. private AvtorizaciaRow eventRow;
  5275. private global::System.Data.DataRowAction eventAction;
  5276. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5277. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5278. public AvtorizaciaRowChangeEvent(AvtorizaciaRow row, global::System.Data.DataRowAction action) {
  5279. this.eventRow = row;
  5280. this.eventAction = action;
  5281. }
  5282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5284. public AvtorizaciaRow Row {
  5285. get {
  5286. return this.eventRow;
  5287. }
  5288. }
  5289. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5290. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5291. public global::System.Data.DataRowAction Action {
  5292. get {
  5293. return this.eventAction;
  5294. }
  5295. }
  5296. }
  5297. /// <summary>
  5298. ///Row event argument class
  5299. ///</summary>
  5300. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5301. public class clientRowChangeEvent : global::System.EventArgs {
  5302. private clientRow eventRow;
  5303. private global::System.Data.DataRowAction eventAction;
  5304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5306. public clientRowChangeEvent(clientRow row, global::System.Data.DataRowAction action) {
  5307. this.eventRow = row;
  5308. this.eventAction = action;
  5309. }
  5310. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5311. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5312. public clientRow Row {
  5313. get {
  5314. return this.eventRow;
  5315. }
  5316. }
  5317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5319. public global::System.Data.DataRowAction Action {
  5320. get {
  5321. return this.eventAction;
  5322. }
  5323. }
  5324. }
  5325. /// <summary>
  5326. ///Row event argument class
  5327. ///</summary>
  5328. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5329. public class client_Service_RowChangeEvent : global::System.EventArgs {
  5330. private client_Service_Row eventRow;
  5331. private global::System.Data.DataRowAction eventAction;
  5332. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5333. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5334. public client_Service_RowChangeEvent(client_Service_Row row, global::System.Data.DataRowAction action) {
  5335. this.eventRow = row;
  5336. this.eventAction = action;
  5337. }
  5338. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5339. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5340. public client_Service_Row Row {
  5341. get {
  5342. return this.eventRow;
  5343. }
  5344. }
  5345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5346. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5347. public global::System.Data.DataRowAction Action {
  5348. get {
  5349. return this.eventAction;
  5350. }
  5351. }
  5352. }
  5353. /// <summary>
  5354. ///Row event argument class
  5355. ///</summary>
  5356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5357. public class DocumentServiceRowChangeEvent : global::System.EventArgs {
  5358. private DocumentServiceRow eventRow;
  5359. private global::System.Data.DataRowAction eventAction;
  5360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5361. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5362. public DocumentServiceRowChangeEvent(DocumentServiceRow row, global::System.Data.DataRowAction action) {
  5363. this.eventRow = row;
  5364. this.eventAction = action;
  5365. }
  5366. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5367. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5368. public DocumentServiceRow Row {
  5369. get {
  5370. return this.eventRow;
  5371. }
  5372. }
  5373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5374. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5375. public global::System.Data.DataRowAction Action {
  5376. get {
  5377. return this.eventAction;
  5378. }
  5379. }
  5380. }
  5381. /// <summary>
  5382. ///Row event argument class
  5383. ///</summary>
  5384. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5385. public class GenderRowChangeEvent : global::System.EventArgs {
  5386. private GenderRow eventRow;
  5387. private global::System.Data.DataRowAction eventAction;
  5388. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5389. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5390. public GenderRowChangeEvent(GenderRow row, global::System.Data.DataRowAction action) {
  5391. this.eventRow = row;
  5392. this.eventAction = action;
  5393. }
  5394. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5395. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5396. public GenderRow Row {
  5397. get {
  5398. return this.eventRow;
  5399. }
  5400. }
  5401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5402. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5403. public global::System.Data.DataRowAction Action {
  5404. get {
  5405. return this.eventAction;
  5406. }
  5407. }
  5408. }
  5409. /// <summary>
  5410. ///Row event argument class
  5411. ///</summary>
  5412. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5413. public class ManufactureRowChangeEvent : global::System.EventArgs {
  5414. private ManufactureRow eventRow;
  5415. private global::System.Data.DataRowAction eventAction;
  5416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5418. public ManufactureRowChangeEvent(ManufactureRow row, global::System.Data.DataRowAction action) {
  5419. this.eventRow = row;
  5420. this.eventAction = action;
  5421. }
  5422. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5423. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5424. public ManufactureRow Row {
  5425. get {
  5426. return this.eventRow;
  5427. }
  5428. }
  5429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5431. public global::System.Data.DataRowAction Action {
  5432. get {
  5433. return this.eventAction;
  5434. }
  5435. }
  5436. }
  5437. /// <summary>
  5438. ///Row event argument class
  5439. ///</summary>
  5440. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5441. public class Photo_prouctRowChangeEvent : global::System.EventArgs {
  5442. private Photo_prouctRow eventRow;
  5443. private global::System.Data.DataRowAction eventAction;
  5444. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5445. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5446. public Photo_prouctRowChangeEvent(Photo_prouctRow row, global::System.Data.DataRowAction action) {
  5447. this.eventRow = row;
  5448. this.eventAction = action;
  5449. }
  5450. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5451. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5452. public Photo_prouctRow Row {
  5453. get {
  5454. return this.eventRow;
  5455. }
  5456. }
  5457. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5458. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5459. public global::System.Data.DataRowAction Action {
  5460. get {
  5461. return this.eventAction;
  5462. }
  5463. }
  5464. }
  5465. /// <summary>
  5466. ///Row event argument class
  5467. ///</summary>
  5468. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5469. public class ProductRowChangeEvent : global::System.EventArgs {
  5470. private ProductRow eventRow;
  5471. private global::System.Data.DataRowAction eventAction;
  5472. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5474. public ProductRowChangeEvent(ProductRow row, global::System.Data.DataRowAction action) {
  5475. this.eventRow = row;
  5476. this.eventAction = action;
  5477. }
  5478. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5479. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5480. public ProductRow Row {
  5481. get {
  5482. return this.eventRow;
  5483. }
  5484. }
  5485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5486. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5487. public global::System.Data.DataRowAction Action {
  5488. get {
  5489. return this.eventAction;
  5490. }
  5491. }
  5492. }
  5493. /// <summary>
  5494. ///Row event argument class
  5495. ///</summary>
  5496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5497. public class SaleRowChangeEvent : global::System.EventArgs {
  5498. private SaleRow eventRow;
  5499. private global::System.Data.DataRowAction eventAction;
  5500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5502. public SaleRowChangeEvent(SaleRow row, global::System.Data.DataRowAction action) {
  5503. this.eventRow = row;
  5504. this.eventAction = action;
  5505. }
  5506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5508. public SaleRow Row {
  5509. get {
  5510. return this.eventRow;
  5511. }
  5512. }
  5513. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5514. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5515. public global::System.Data.DataRowAction Action {
  5516. get {
  5517. return this.eventAction;
  5518. }
  5519. }
  5520. }
  5521. /// <summary>
  5522. ///Row event argument class
  5523. ///</summary>
  5524. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5525. public class serviceRowChangeEvent : global::System.EventArgs {
  5526. private serviceRow eventRow;
  5527. private global::System.Data.DataRowAction eventAction;
  5528. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5529. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5530. public serviceRowChangeEvent(serviceRow row, global::System.Data.DataRowAction action) {
  5531. this.eventRow = row;
  5532. this.eventAction = action;
  5533. }
  5534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5535. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5536. public serviceRow Row {
  5537. get {
  5538. return this.eventRow;
  5539. }
  5540. }
  5541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5543. public global::System.Data.DataRowAction Action {
  5544. get {
  5545. return this.eventAction;
  5546. }
  5547. }
  5548. }
  5549. /// <summary>
  5550. ///Row event argument class
  5551. ///</summary>
  5552. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5553. public class Service_photoRowChangeEvent : global::System.EventArgs {
  5554. private Service_photoRow eventRow;
  5555. private global::System.Data.DataRowAction eventAction;
  5556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5557. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5558. public Service_photoRowChangeEvent(Service_photoRow row, global::System.Data.DataRowAction action) {
  5559. this.eventRow = row;
  5560. this.eventAction = action;
  5561. }
  5562. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5563. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5564. public Service_photoRow Row {
  5565. get {
  5566. return this.eventRow;
  5567. }
  5568. }
  5569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5570. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5571. public global::System.Data.DataRowAction Action {
  5572. get {
  5573. return this.eventAction;
  5574. }
  5575. }
  5576. }
  5577. /// <summary>
  5578. ///Row event argument class
  5579. ///</summary>
  5580. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5581. public class TagRowChangeEvent : global::System.EventArgs {
  5582. private TagRow eventRow;
  5583. private global::System.Data.DataRowAction eventAction;
  5584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5586. public TagRowChangeEvent(TagRow row, global::System.Data.DataRowAction action) {
  5587. this.eventRow = row;
  5588. this.eventAction = action;
  5589. }
  5590. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5591. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5592. public TagRow Row {
  5593. get {
  5594. return this.eventRow;
  5595. }
  5596. }
  5597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5598. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5599. public global::System.Data.DataRowAction Action {
  5600. get {
  5601. return this.eventAction;
  5602. }
  5603. }
  5604. }
  5605. /// <summary>
  5606. ///Row event argument class
  5607. ///</summary>
  5608. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5609. public class Tag_clientRowChangeEvent : global::System.EventArgs {
  5610. private Tag_clientRow eventRow;
  5611. private global::System.Data.DataRowAction eventAction;
  5612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5614. public Tag_clientRowChangeEvent(Tag_clientRow row, global::System.Data.DataRowAction action) {
  5615. this.eventRow = row;
  5616. this.eventAction = action;
  5617. }
  5618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5619. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5620. public Tag_clientRow Row {
  5621. get {
  5622. return this.eventRow;
  5623. }
  5624. }
  5625. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5626. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5627. public global::System.Data.DataRowAction Action {
  5628. get {
  5629. return this.eventAction;
  5630. }
  5631. }
  5632. }
  5633. }
  5634. }
  5635. namespace Бархатные_бровки_Gebel.BB_GebelDataSetTableAdapters {
  5636. /// <summary>
  5637. ///Represents the connection and commands used to retrieve and save data.
  5638. ///</summary>
  5639. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5640. [global::System.ComponentModel.ToolboxItem(true)]
  5641. [global::System.ComponentModel.DataObjectAttribute(true)]
  5642. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5643. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5644. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5645. public partial class AttachedProductTableAdapter : global::System.ComponentModel.Component {
  5646. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5647. private global::System.Data.SqlClient.SqlConnection _connection;
  5648. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5649. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5650. private bool _clearBeforeFill;
  5651. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5652. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5653. public AttachedProductTableAdapter() {
  5654. this.ClearBeforeFill = true;
  5655. }
  5656. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5657. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5658. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5659. get {
  5660. if ((this._adapter == null)) {
  5661. this.InitAdapter();
  5662. }
  5663. return this._adapter;
  5664. }
  5665. }
  5666. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5667. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5668. internal global::System.Data.SqlClient.SqlConnection Connection {
  5669. get {
  5670. if ((this._connection == null)) {
  5671. this.InitConnection();
  5672. }
  5673. return this._connection;
  5674. }
  5675. set {
  5676. this._connection = value;
  5677. if ((this.Adapter.InsertCommand != null)) {
  5678. this.Adapter.InsertCommand.Connection = value;
  5679. }
  5680. if ((this.Adapter.DeleteCommand != null)) {
  5681. this.Adapter.DeleteCommand.Connection = value;
  5682. }
  5683. if ((this.Adapter.UpdateCommand != null)) {
  5684. this.Adapter.UpdateCommand.Connection = value;
  5685. }
  5686. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5687. if ((this.CommandCollection[i] != null)) {
  5688. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5689. }
  5690. }
  5691. }
  5692. }
  5693. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5694. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5695. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5696. get {
  5697. return this._transaction;
  5698. }
  5699. set {
  5700. this._transaction = value;
  5701. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5702. this.CommandCollection[i].Transaction = this._transaction;
  5703. }
  5704. if (((this.Adapter != null)
  5705. && (this.Adapter.DeleteCommand != null))) {
  5706. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5707. }
  5708. if (((this.Adapter != null)
  5709. && (this.Adapter.InsertCommand != null))) {
  5710. this.Adapter.InsertCommand.Transaction = this._transaction;
  5711. }
  5712. if (((this.Adapter != null)
  5713. && (this.Adapter.UpdateCommand != null))) {
  5714. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5715. }
  5716. }
  5717. }
  5718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5719. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5720. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5721. get {
  5722. if ((this._commandCollection == null)) {
  5723. this.InitCommandCollection();
  5724. }
  5725. return this._commandCollection;
  5726. }
  5727. }
  5728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5729. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5730. public bool ClearBeforeFill {
  5731. get {
  5732. return this._clearBeforeFill;
  5733. }
  5734. set {
  5735. this._clearBeforeFill = value;
  5736. }
  5737. }
  5738. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5739. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5740. private void InitAdapter() {
  5741. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5742. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5743. tableMapping.SourceTable = "Table";
  5744. tableMapping.DataSetTable = "AttachedProduct";
  5745. tableMapping.ColumnMappings.Add("Main_Product_ID", "Main_Product_ID");
  5746. tableMapping.ColumnMappings.Add("Attached_Product_ID", "Attached_Product_ID");
  5747. this._adapter.TableMappings.Add(tableMapping);
  5748. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5749. this._adapter.DeleteCommand.Connection = this.Connection;
  5750. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[AttachedProduct] WHERE (([Main_Product_ID] = @Original_Main_Pr" +
  5751. "oduct_ID) AND ([Attached_Product_ID] = @Original_Attached_Product_ID))";
  5752. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5753. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Main_Product_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Main_Product_ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5754. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Attached_Product_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Attached_Product_ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5755. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5756. this._adapter.InsertCommand.Connection = this.Connection;
  5757. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[AttachedProduct] ([Main_Product_ID]) VALUES (@Main_Product_ID)" +
  5758. ";\r\nSELECT Main_Product_ID, Attached_Product_ID FROM AttachedProduct WHERE (Main_" +
  5759. "Product_ID = @Main_Product_ID)";
  5760. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5761. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Main_Product_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Main_Product_ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5762. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5763. this._adapter.UpdateCommand.Connection = this.Connection;
  5764. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[AttachedProduct] SET [Main_Product_ID] = @Main_Product_ID WHERE (([Main_Product_ID] = @Original_Main_Product_ID) AND ([Attached_Product_ID] = @Original_Attached_Product_ID));
  5765. SELECT Main_Product_ID, Attached_Product_ID FROM AttachedProduct WHERE (Main_Product_ID = @Main_Product_ID)";
  5766. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5767. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Main_Product_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Main_Product_ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5768. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Main_Product_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Main_Product_ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5769. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Attached_Product_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Attached_Product_ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5770. }
  5771. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5772. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5773. private void InitConnection() {
  5774. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5775. this._connection.ConnectionString = global::Бархатные_бровки_Gebel.Properties.Settings.Default.BB_GebelConnectionString;
  5776. }
  5777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5779. private void InitCommandCollection() {
  5780. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5781. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5782. this._commandCollection[0].Connection = this.Connection;
  5783. this._commandCollection[0].CommandText = "SELECT Main_Product_ID, Attached_Product_ID FROM dbo.AttachedProduct";
  5784. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5785. }
  5786. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5787. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5788. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5789. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5790. public virtual int Fill(BB_GebelDataSet.AttachedProductDataTable dataTable) {
  5791. this.Adapter.SelectCommand = this.CommandCollection[0];
  5792. if ((this.ClearBeforeFill == true)) {
  5793. dataTable.Clear();
  5794. }
  5795. int returnValue = this.Adapter.Fill(dataTable);
  5796. return returnValue;
  5797. }
  5798. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5799. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5800. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5801. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5802. public virtual BB_GebelDataSet.AttachedProductDataTable GetData() {
  5803. this.Adapter.SelectCommand = this.CommandCollection[0];
  5804. BB_GebelDataSet.AttachedProductDataTable dataTable = new BB_GebelDataSet.AttachedProductDataTable();
  5805. this.Adapter.Fill(dataTable);
  5806. return dataTable;
  5807. }
  5808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5810. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5811. public virtual int Update(BB_GebelDataSet.AttachedProductDataTable dataTable) {
  5812. return this.Adapter.Update(dataTable);
  5813. }
  5814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5816. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5817. public virtual int Update(BB_GebelDataSet dataSet) {
  5818. return this.Adapter.Update(dataSet, "AttachedProduct");
  5819. }
  5820. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5821. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5822. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5823. public virtual int Update(global::System.Data.DataRow dataRow) {
  5824. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5825. dataRow});
  5826. }
  5827. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5828. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5829. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5830. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5831. return this.Adapter.Update(dataRows);
  5832. }
  5833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5835. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5836. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5837. public virtual int Delete(int Original_Main_Product_ID, int Original_Attached_Product_ID) {
  5838. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_Main_Product_ID));
  5839. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_Attached_Product_ID));
  5840. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5841. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5842. != global::System.Data.ConnectionState.Open)) {
  5843. this.Adapter.DeleteCommand.Connection.Open();
  5844. }
  5845. try {
  5846. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5847. return returnValue;
  5848. }
  5849. finally {
  5850. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5851. this.Adapter.DeleteCommand.Connection.Close();
  5852. }
  5853. }
  5854. }
  5855. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5856. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5857. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5858. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5859. public virtual int Insert(int Main_Product_ID) {
  5860. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(Main_Product_ID));
  5861. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5862. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5863. != global::System.Data.ConnectionState.Open)) {
  5864. this.Adapter.InsertCommand.Connection.Open();
  5865. }
  5866. try {
  5867. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5868. return returnValue;
  5869. }
  5870. finally {
  5871. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5872. this.Adapter.InsertCommand.Connection.Close();
  5873. }
  5874. }
  5875. }
  5876. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5877. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5878. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5879. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5880. public virtual int Update(int Main_Product_ID, int Original_Main_Product_ID, int Original_Attached_Product_ID) {
  5881. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(Main_Product_ID));
  5882. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_Main_Product_ID));
  5883. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_Attached_Product_ID));
  5884. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5885. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5886. != global::System.Data.ConnectionState.Open)) {
  5887. this.Adapter.UpdateCommand.Connection.Open();
  5888. }
  5889. try {
  5890. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5891. return returnValue;
  5892. }
  5893. finally {
  5894. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5895. this.Adapter.UpdateCommand.Connection.Close();
  5896. }
  5897. }
  5898. }
  5899. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5900. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5901. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5902. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5903. public virtual int Update(int Original_Main_Product_ID, int Original_Attached_Product_ID) {
  5904. return this.Update(Original_Main_Product_ID, Original_Main_Product_ID, Original_Attached_Product_ID);
  5905. }
  5906. }
  5907. /// <summary>
  5908. ///Represents the connection and commands used to retrieve and save data.
  5909. ///</summary>
  5910. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5911. [global::System.ComponentModel.ToolboxItem(true)]
  5912. [global::System.ComponentModel.DataObjectAttribute(true)]
  5913. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5914. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5915. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5916. public partial class AvtorizaciaTableAdapter : global::System.ComponentModel.Component {
  5917. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5918. private global::System.Data.SqlClient.SqlConnection _connection;
  5919. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5920. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5921. private bool _clearBeforeFill;
  5922. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5923. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5924. public AvtorizaciaTableAdapter() {
  5925. this.ClearBeforeFill = true;
  5926. }
  5927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5928. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5929. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5930. get {
  5931. if ((this._adapter == null)) {
  5932. this.InitAdapter();
  5933. }
  5934. return this._adapter;
  5935. }
  5936. }
  5937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5938. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5939. internal global::System.Data.SqlClient.SqlConnection Connection {
  5940. get {
  5941. if ((this._connection == null)) {
  5942. this.InitConnection();
  5943. }
  5944. return this._connection;
  5945. }
  5946. set {
  5947. this._connection = value;
  5948. if ((this.Adapter.InsertCommand != null)) {
  5949. this.Adapter.InsertCommand.Connection = value;
  5950. }
  5951. if ((this.Adapter.DeleteCommand != null)) {
  5952. this.Adapter.DeleteCommand.Connection = value;
  5953. }
  5954. if ((this.Adapter.UpdateCommand != null)) {
  5955. this.Adapter.UpdateCommand.Connection = value;
  5956. }
  5957. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5958. if ((this.CommandCollection[i] != null)) {
  5959. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5960. }
  5961. }
  5962. }
  5963. }
  5964. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5965. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5966. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5967. get {
  5968. return this._transaction;
  5969. }
  5970. set {
  5971. this._transaction = value;
  5972. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5973. this.CommandCollection[i].Transaction = this._transaction;
  5974. }
  5975. if (((this.Adapter != null)
  5976. && (this.Adapter.DeleteCommand != null))) {
  5977. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5978. }
  5979. if (((this.Adapter != null)
  5980. && (this.Adapter.InsertCommand != null))) {
  5981. this.Adapter.InsertCommand.Transaction = this._transaction;
  5982. }
  5983. if (((this.Adapter != null)
  5984. && (this.Adapter.UpdateCommand != null))) {
  5985. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5986. }
  5987. }
  5988. }
  5989. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5990. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5991. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5992. get {
  5993. if ((this._commandCollection == null)) {
  5994. this.InitCommandCollection();
  5995. }
  5996. return this._commandCollection;
  5997. }
  5998. }
  5999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6001. public bool ClearBeforeFill {
  6002. get {
  6003. return this._clearBeforeFill;
  6004. }
  6005. set {
  6006. this._clearBeforeFill = value;
  6007. }
  6008. }
  6009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6011. private void InitAdapter() {
  6012. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6013. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6014. tableMapping.SourceTable = "Table";
  6015. tableMapping.DataSetTable = "Avtorizacia";
  6016. tableMapping.ColumnMappings.Add("Login", "Login");
  6017. tableMapping.ColumnMappings.Add("Password", "Password");
  6018. this._adapter.TableMappings.Add(tableMapping);
  6019. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6020. this._adapter.InsertCommand.Connection = this.Connection;
  6021. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Avtorizacia] ([Login], [Password]) VALUES (@Login, @Password)";
  6022. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6023. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Login", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6024. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Password", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6025. }
  6026. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6027. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6028. private void InitConnection() {
  6029. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6030. this._connection.ConnectionString = global::Бархатные_бровки_Gebel.Properties.Settings.Default.BB_GebelConnectionString;
  6031. }
  6032. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6033. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6034. private void InitCommandCollection() {
  6035. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6036. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6037. this._commandCollection[0].Connection = this.Connection;
  6038. this._commandCollection[0].CommandText = "SELECT Login, Password FROM dbo.Avtorizacia";
  6039. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6040. }
  6041. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6042. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6043. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6044. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6045. public virtual int Fill(BB_GebelDataSet.AvtorizaciaDataTable dataTable) {
  6046. this.Adapter.SelectCommand = this.CommandCollection[0];
  6047. if ((this.ClearBeforeFill == true)) {
  6048. dataTable.Clear();
  6049. }
  6050. int returnValue = this.Adapter.Fill(dataTable);
  6051. return returnValue;
  6052. }
  6053. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6054. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6055. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6056. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6057. public virtual BB_GebelDataSet.AvtorizaciaDataTable GetData() {
  6058. this.Adapter.SelectCommand = this.CommandCollection[0];
  6059. BB_GebelDataSet.AvtorizaciaDataTable dataTable = new BB_GebelDataSet.AvtorizaciaDataTable();
  6060. this.Adapter.Fill(dataTable);
  6061. return dataTable;
  6062. }
  6063. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6064. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6065. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6066. public virtual int Update(BB_GebelDataSet.AvtorizaciaDataTable dataTable) {
  6067. return this.Adapter.Update(dataTable);
  6068. }
  6069. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6070. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6071. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6072. public virtual int Update(BB_GebelDataSet dataSet) {
  6073. return this.Adapter.Update(dataSet, "Avtorizacia");
  6074. }
  6075. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6076. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6077. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6078. public virtual int Update(global::System.Data.DataRow dataRow) {
  6079. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6080. dataRow});
  6081. }
  6082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6084. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6085. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6086. return this.Adapter.Update(dataRows);
  6087. }
  6088. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6089. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6090. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6091. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6092. public virtual int Insert(string Login, string Password) {
  6093. if ((Login == null)) {
  6094. throw new global::System.ArgumentNullException("Login");
  6095. }
  6096. else {
  6097. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Login));
  6098. }
  6099. if ((Password == null)) {
  6100. throw new global::System.ArgumentNullException("Password");
  6101. }
  6102. else {
  6103. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Password));
  6104. }
  6105. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6106. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6107. != global::System.Data.ConnectionState.Open)) {
  6108. this.Adapter.InsertCommand.Connection.Open();
  6109. }
  6110. try {
  6111. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6112. return returnValue;
  6113. }
  6114. finally {
  6115. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6116. this.Adapter.InsertCommand.Connection.Close();
  6117. }
  6118. }
  6119. }
  6120. }
  6121. /// <summary>
  6122. ///Represents the connection and commands used to retrieve and save data.
  6123. ///</summary>
  6124. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6125. [global::System.ComponentModel.ToolboxItem(true)]
  6126. [global::System.ComponentModel.DataObjectAttribute(true)]
  6127. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6128. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6129. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6130. public partial class clientTableAdapter : global::System.ComponentModel.Component {
  6131. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6132. private global::System.Data.SqlClient.SqlConnection _connection;
  6133. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6134. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6135. private bool _clearBeforeFill;
  6136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6137. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6138. public clientTableAdapter() {
  6139. this.ClearBeforeFill = true;
  6140. }
  6141. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6142. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6143. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6144. get {
  6145. if ((this._adapter == null)) {
  6146. this.InitAdapter();
  6147. }
  6148. return this._adapter;
  6149. }
  6150. }
  6151. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6152. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6153. internal global::System.Data.SqlClient.SqlConnection Connection {
  6154. get {
  6155. if ((this._connection == null)) {
  6156. this.InitConnection();
  6157. }
  6158. return this._connection;
  6159. }
  6160. set {
  6161. this._connection = value;
  6162. if ((this.Adapter.InsertCommand != null)) {
  6163. this.Adapter.InsertCommand.Connection = value;
  6164. }
  6165. if ((this.Adapter.DeleteCommand != null)) {
  6166. this.Adapter.DeleteCommand.Connection = value;
  6167. }
  6168. if ((this.Adapter.UpdateCommand != null)) {
  6169. this.Adapter.UpdateCommand.Connection = value;
  6170. }
  6171. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6172. if ((this.CommandCollection[i] != null)) {
  6173. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6174. }
  6175. }
  6176. }
  6177. }
  6178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6180. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6181. get {
  6182. return this._transaction;
  6183. }
  6184. set {
  6185. this._transaction = value;
  6186. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6187. this.CommandCollection[i].Transaction = this._transaction;
  6188. }
  6189. if (((this.Adapter != null)
  6190. && (this.Adapter.DeleteCommand != null))) {
  6191. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6192. }
  6193. if (((this.Adapter != null)
  6194. && (this.Adapter.InsertCommand != null))) {
  6195. this.Adapter.InsertCommand.Transaction = this._transaction;
  6196. }
  6197. if (((this.Adapter != null)
  6198. && (this.Adapter.UpdateCommand != null))) {
  6199. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6200. }
  6201. }
  6202. }
  6203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6204. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6205. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6206. get {
  6207. if ((this._commandCollection == null)) {
  6208. this.InitCommandCollection();
  6209. }
  6210. return this._commandCollection;
  6211. }
  6212. }
  6213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6214. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6215. public bool ClearBeforeFill {
  6216. get {
  6217. return this._clearBeforeFill;
  6218. }
  6219. set {
  6220. this._clearBeforeFill = value;
  6221. }
  6222. }
  6223. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6224. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6225. private void InitAdapter() {
  6226. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6227. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6228. tableMapping.SourceTable = "Table";
  6229. tableMapping.DataSetTable = "client";
  6230. tableMapping.ColumnMappings.Add("ID", "ID");
  6231. tableMapping.ColumnMappings.Add("Фамилия", "Фамилия");
  6232. tableMapping.ColumnMappings.Add("Имя", "Имя");
  6233. tableMapping.ColumnMappings.Add("Отчество", "Отчество");
  6234. tableMapping.ColumnMappings.Add("Пол", "Пол");
  6235. tableMapping.ColumnMappings.Add("Телефон", "Телефон");
  6236. tableMapping.ColumnMappings.Add("Дата_рождения", "Дата_рождения");
  6237. tableMapping.ColumnMappings.Add("Email", "Email");
  6238. tableMapping.ColumnMappings.Add("Дата_регистрации", "Дата_регистрации");
  6239. this._adapter.TableMappings.Add(tableMapping);
  6240. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6241. this._adapter.DeleteCommand.Connection = this.Connection;
  6242. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[client] WHERE (([ID] = @Original_ID) AND ([Фамилия] = @Original_Фамилия) AND ([Имя] = @Original_Имя) AND ([Отчество] = @Original_Отчество) AND ([Пол] = @Original_Пол) AND ([Телефон] = @Original_Телефон) AND ([Дата_рождения] = @Original_Дата_рождения) AND ([Email] = @Original_Email) AND ([Дата_регистрации] = @Original_Дата_регистрации))";
  6243. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6244. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6245. 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, "", "", ""));
  6246. 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, "", "", ""));
  6247. 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, "", "", ""));
  6248. 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, "", "", ""));
  6249. 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, "", "", ""));
  6250. 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, "", "", ""));
  6251. 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, "", "", ""));
  6252. 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, "", "", ""));
  6253. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6254. this._adapter.InsertCommand.Connection = this.Connection;
  6255. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[client] ([ID], [Фамилия], [Имя], [Отчество], [Пол], [Телефон], [Дата_рождения], [Email], [Дата_регистрации]) VALUES (@ID, @Фамилия, @Имя, @Отчество, @Пол, @Телефон, @Дата_рождения, @Email, @Дата_регистрации);
  6256. SELECT ID, Фамилия, Имя, Отчество, Пол, Телефон, Дата_рождения, Email, Дата_регистрации FROM client WHERE (ID = @ID)";
  6257. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6258. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6259. 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, "", "", ""));
  6260. 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, "", "", ""));
  6261. 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, "", "", ""));
  6262. 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, "", "", ""));
  6263. 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, "", "", ""));
  6264. 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, "", "", ""));
  6265. 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, "", "", ""));
  6266. 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, "", "", ""));
  6267. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6268. this._adapter.UpdateCommand.Connection = this.Connection;
  6269. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[client] SET [ID] = @ID, [Фамилия] = @Фамилия, [Имя] = @Имя, [Отчество] = @Отчество, [Пол] = @Пол, [Телефон] = @Телефон, [Дата_рождения] = @Дата_рождения, [Email] = @Email, [Дата_регистрации] = @Дата_регистрации WHERE (([ID] = @Original_ID) AND ([Фамилия] = @Original_Фамилия) AND ([Имя] = @Original_Имя) AND ([Отчество] = @Original_Отчество) AND ([Пол] = @Original_Пол) AND ([Телефон] = @Original_Телефон) AND ([Дата_рождения] = @Original_Дата_рождения) AND ([Email] = @Original_Email) AND ([Дата_регистрации] = @Original_Дата_регистрации));
  6270. SELECT ID, Фамилия, Имя, Отчество, Пол, Телефон, Дата_рождения, Email, Дата_регистрации FROM client WHERE (ID = @ID)";
  6271. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6272. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6273. 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, "", "", ""));
  6274. 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, "", "", ""));
  6275. 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, "", "", ""));
  6276. 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, "", "", ""));
  6277. 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, "", "", ""));
  6278. 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, "", "", ""));
  6279. 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, "", "", ""));
  6280. 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, "", "", ""));
  6281. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6282. 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, "", "", ""));
  6283. 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, "", "", ""));
  6284. 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, "", "", ""));
  6285. 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, "", "", ""));
  6286. 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, "", "", ""));
  6287. 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, "", "", ""));
  6288. 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, "", "", ""));
  6289. 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, "", "", ""));
  6290. }
  6291. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6292. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6293. private void InitConnection() {
  6294. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6295. this._connection.ConnectionString = global::Бархатные_бровки_Gebel.Properties.Settings.Default.BB_GebelConnectionString;
  6296. }
  6297. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6298. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6299. private void InitCommandCollection() {
  6300. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6301. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6302. this._commandCollection[0].Connection = this.Connection;
  6303. this._commandCollection[0].CommandText = "SELECT ID, Фамилия, Имя, Отчество, Пол, Телефон, Дата_рождения, Email, Дата_регис" +
  6304. "трации FROM dbo.client";
  6305. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6306. }
  6307. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6308. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6309. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6310. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6311. public virtual int Fill(BB_GebelDataSet.clientDataTable dataTable) {
  6312. this.Adapter.SelectCommand = this.CommandCollection[0];
  6313. if ((this.ClearBeforeFill == true)) {
  6314. dataTable.Clear();
  6315. }
  6316. int returnValue = this.Adapter.Fill(dataTable);
  6317. return returnValue;
  6318. }
  6319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6320. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6321. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6322. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6323. public virtual BB_GebelDataSet.clientDataTable GetData() {
  6324. this.Adapter.SelectCommand = this.CommandCollection[0];
  6325. BB_GebelDataSet.clientDataTable dataTable = new BB_GebelDataSet.clientDataTable();
  6326. this.Adapter.Fill(dataTable);
  6327. return dataTable;
  6328. }
  6329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6331. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6332. public virtual int Update(BB_GebelDataSet.clientDataTable dataTable) {
  6333. return this.Adapter.Update(dataTable);
  6334. }
  6335. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6336. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6337. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6338. public virtual int Update(BB_GebelDataSet dataSet) {
  6339. return this.Adapter.Update(dataSet, "client");
  6340. }
  6341. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6342. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6343. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6344. public virtual int Update(global::System.Data.DataRow dataRow) {
  6345. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6346. dataRow});
  6347. }
  6348. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6349. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6350. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6351. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6352. return this.Adapter.Update(dataRows);
  6353. }
  6354. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6355. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6356. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6357. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6358. public virtual int Delete(string Original_ID, string Original_Фамилия, string Original_Имя, string Original_Отчество, string Original_Пол, string Original_Телефон, System.DateTime Original_Дата_рождения, string Original_Email, System.DateTime Original_Дата_регистрации) {
  6359. if ((Original_ID == null)) {
  6360. throw new global::System.ArgumentNullException("Original_ID");
  6361. }
  6362. else {
  6363. this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_ID));
  6364. }
  6365. if ((Original_Фамилия == null)) {
  6366. throw new global::System.ArgumentNullException("Original_Фамилия");
  6367. }
  6368. else {
  6369. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Фамилия));
  6370. }
  6371. if ((Original_Имя == null)) {
  6372. throw new global::System.ArgumentNullException("Original_Имя");
  6373. }
  6374. else {
  6375. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Имя));
  6376. }
  6377. if ((Original_Отчество == null)) {
  6378. throw new global::System.ArgumentNullException("Original_Отчество");
  6379. }
  6380. else {
  6381. this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_Отчество));
  6382. }
  6383. if ((Original_Пол == null)) {
  6384. throw new global::System.ArgumentNullException("Original_Пол");
  6385. }
  6386. else {
  6387. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Пол));
  6388. }
  6389. if ((Original_Телефон == null)) {
  6390. throw new global::System.ArgumentNullException("Original_Телефон");
  6391. }
  6392. else {
  6393. this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_Телефон));
  6394. }
  6395. this.Adapter.DeleteCommand.Parameters[6].Value = ((System.DateTime)(Original_Дата_рождения));
  6396. if ((Original_Email == null)) {
  6397. throw new global::System.ArgumentNullException("Original_Email");
  6398. }
  6399. else {
  6400. this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_Email));
  6401. }
  6402. this.Adapter.DeleteCommand.Parameters[8].Value = ((System.DateTime)(Original_Дата_регистрации));
  6403. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6404. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6405. != global::System.Data.ConnectionState.Open)) {
  6406. this.Adapter.DeleteCommand.Connection.Open();
  6407. }
  6408. try {
  6409. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6410. return returnValue;
  6411. }
  6412. finally {
  6413. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6414. this.Adapter.DeleteCommand.Connection.Close();
  6415. }
  6416. }
  6417. }
  6418. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6419. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6420. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6421. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6422. public virtual int Insert(string ID, string Фамилия, string Имя, string Отчество, string Пол, string Телефон, System.DateTime Дата_рождения, string Email, System.DateTime Дата_регистрации) {
  6423. if ((ID == null)) {
  6424. throw new global::System.ArgumentNullException("ID");
  6425. }
  6426. else {
  6427. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(ID));
  6428. }
  6429. if ((Фамилия == null)) {
  6430. throw new global::System.ArgumentNullException("Фамилия");
  6431. }
  6432. else {
  6433. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Фамилия));
  6434. }
  6435. if ((Имя == null)) {
  6436. throw new global::System.ArgumentNullException("Имя");
  6437. }
  6438. else {
  6439. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Имя));
  6440. }
  6441. if ((Отчество == null)) {
  6442. throw new global::System.ArgumentNullException("Отчество");
  6443. }
  6444. else {
  6445. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Отчество));
  6446. }
  6447. if ((Пол == null)) {
  6448. throw new global::System.ArgumentNullException("Пол");
  6449. }
  6450. else {
  6451. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Пол));
  6452. }
  6453. if ((Телефон == null)) {
  6454. throw new global::System.ArgumentNullException("Телефон");
  6455. }
  6456. else {
  6457. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Телефон));
  6458. }
  6459. this.Adapter.InsertCommand.Parameters[6].Value = ((System.DateTime)(Дата_рождения));
  6460. if ((Email == null)) {
  6461. throw new global::System.ArgumentNullException("Email");
  6462. }
  6463. else {
  6464. this.Adapter.InsertCommand.Parameters[7].Value = ((string)(Email));
  6465. }
  6466. this.Adapter.InsertCommand.Parameters[8].Value = ((System.DateTime)(Дата_регистрации));
  6467. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6468. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6469. != global::System.Data.ConnectionState.Open)) {
  6470. this.Adapter.InsertCommand.Connection.Open();
  6471. }
  6472. try {
  6473. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6474. return returnValue;
  6475. }
  6476. finally {
  6477. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6478. this.Adapter.InsertCommand.Connection.Close();
  6479. }
  6480. }
  6481. }
  6482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6484. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6485. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6486. public virtual int Update(
  6487. string ID,
  6488. string Фамилия,
  6489. string Имя,
  6490. string Отчество,
  6491. string Пол,
  6492. string Телефон,
  6493. System.DateTime Дата_рождения,
  6494. string Email,
  6495. System.DateTime Дата_регистрации,
  6496. string Original_ID,
  6497. string Original_Фамилия,
  6498. string Original_Имя,
  6499. string Original_Отчество,
  6500. string Original_Пол,
  6501. string Original_Телефон,
  6502. System.DateTime Original_Дата_рождения,
  6503. string Original_Email,
  6504. System.DateTime Original_Дата_регистрации) {
  6505. if ((ID == null)) {
  6506. throw new global::System.ArgumentNullException("ID");
  6507. }
  6508. else {
  6509. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(ID));
  6510. }
  6511. if ((Фамилия == null)) {
  6512. throw new global::System.ArgumentNullException("Фамилия");
  6513. }
  6514. else {
  6515. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Фамилия));
  6516. }
  6517. if ((Имя == null)) {
  6518. throw new global::System.ArgumentNullException("Имя");
  6519. }
  6520. else {
  6521. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Имя));
  6522. }
  6523. if ((Отчество == null)) {
  6524. throw new global::System.ArgumentNullException("Отчество");
  6525. }
  6526. else {
  6527. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Отчество));
  6528. }
  6529. if ((Пол == null)) {
  6530. throw new global::System.ArgumentNullException("Пол");
  6531. }
  6532. else {
  6533. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Пол));
  6534. }
  6535. if ((Телефон == null)) {
  6536. throw new global::System.ArgumentNullException("Телефон");
  6537. }
  6538. else {
  6539. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Телефон));
  6540. }
  6541. this.Adapter.UpdateCommand.Parameters[6].Value = ((System.DateTime)(Дата_рождения));
  6542. if ((Email == null)) {
  6543. throw new global::System.ArgumentNullException("Email");
  6544. }
  6545. else {
  6546. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Email));
  6547. }
  6548. this.Adapter.UpdateCommand.Parameters[8].Value = ((System.DateTime)(Дата_регистрации));
  6549. if ((Original_ID == null)) {
  6550. throw new global::System.ArgumentNullException("Original_ID");
  6551. }
  6552. else {
  6553. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_ID));
  6554. }
  6555. if ((Original_Фамилия == null)) {
  6556. throw new global::System.ArgumentNullException("Original_Фамилия");
  6557. }
  6558. else {
  6559. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_Фамилия));
  6560. }
  6561. if ((Original_Имя == null)) {
  6562. throw new global::System.ArgumentNullException("Original_Имя");
  6563. }
  6564. else {
  6565. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_Имя));
  6566. }
  6567. if ((Original_Отчество == null)) {
  6568. throw new global::System.ArgumentNullException("Original_Отчество");
  6569. }
  6570. else {
  6571. this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_Отчество));
  6572. }
  6573. if ((Original_Пол == null)) {
  6574. throw new global::System.ArgumentNullException("Original_Пол");
  6575. }
  6576. else {
  6577. this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_Пол));
  6578. }
  6579. if ((Original_Телефон == null)) {
  6580. throw new global::System.ArgumentNullException("Original_Телефон");
  6581. }
  6582. else {
  6583. this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_Телефон));
  6584. }
  6585. this.Adapter.UpdateCommand.Parameters[15].Value = ((System.DateTime)(Original_Дата_рождения));
  6586. if ((Original_Email == null)) {
  6587. throw new global::System.ArgumentNullException("Original_Email");
  6588. }
  6589. else {
  6590. this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_Email));
  6591. }
  6592. this.Adapter.UpdateCommand.Parameters[17].Value = ((System.DateTime)(Original_Дата_регистрации));
  6593. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6594. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6595. != global::System.Data.ConnectionState.Open)) {
  6596. this.Adapter.UpdateCommand.Connection.Open();
  6597. }
  6598. try {
  6599. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6600. return returnValue;
  6601. }
  6602. finally {
  6603. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6604. this.Adapter.UpdateCommand.Connection.Close();
  6605. }
  6606. }
  6607. }
  6608. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6609. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6610. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6611. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6612. public virtual int Update(
  6613. string Фамилия,
  6614. string Имя,
  6615. string Отчество,
  6616. string Пол,
  6617. string Телефон,
  6618. System.DateTime Дата_рождения,
  6619. string Email,
  6620. System.DateTime Дата_регистрации,
  6621. string Original_ID,
  6622. string Original_Фамилия,
  6623. string Original_Имя,
  6624. string Original_Отчество,
  6625. string Original_Пол,
  6626. string Original_Телефон,
  6627. System.DateTime Original_Дата_рождения,
  6628. string Original_Email,
  6629. System.DateTime Original_Дата_регистрации) {
  6630. return this.Update(Original_ID, Фамилия, Имя, Отчество, Пол, Телефон, Дата_рождения, Email, Дата_регистрации, Original_ID, Original_Фамилия, Original_Имя, Original_Отчество, Original_Пол, Original_Телефон, Original_Дата_рождения, Original_Email, Original_Дата_регистрации);
  6631. }
  6632. }
  6633. /// <summary>
  6634. ///Represents the connection and commands used to retrieve and save data.
  6635. ///</summary>
  6636. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6637. [global::System.ComponentModel.ToolboxItem(true)]
  6638. [global::System.ComponentModel.DataObjectAttribute(true)]
  6639. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6640. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6641. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6642. public partial class client_Service_TableAdapter : global::System.ComponentModel.Component {
  6643. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6644. private global::System.Data.SqlClient.SqlConnection _connection;
  6645. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6646. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6647. private bool _clearBeforeFill;
  6648. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6649. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6650. public client_Service_TableAdapter() {
  6651. this.ClearBeforeFill = true;
  6652. }
  6653. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6654. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6655. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6656. get {
  6657. if ((this._adapter == null)) {
  6658. this.InitAdapter();
  6659. }
  6660. return this._adapter;
  6661. }
  6662. }
  6663. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6664. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6665. internal global::System.Data.SqlClient.SqlConnection Connection {
  6666. get {
  6667. if ((this._connection == null)) {
  6668. this.InitConnection();
  6669. }
  6670. return this._connection;
  6671. }
  6672. set {
  6673. this._connection = value;
  6674. if ((this.Adapter.InsertCommand != null)) {
  6675. this.Adapter.InsertCommand.Connection = value;
  6676. }
  6677. if ((this.Adapter.DeleteCommand != null)) {
  6678. this.Adapter.DeleteCommand.Connection = value;
  6679. }
  6680. if ((this.Adapter.UpdateCommand != null)) {
  6681. this.Adapter.UpdateCommand.Connection = value;
  6682. }
  6683. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6684. if ((this.CommandCollection[i] != null)) {
  6685. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6686. }
  6687. }
  6688. }
  6689. }
  6690. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6691. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6692. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6693. get {
  6694. return this._transaction;
  6695. }
  6696. set {
  6697. this._transaction = value;
  6698. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6699. this.CommandCollection[i].Transaction = this._transaction;
  6700. }
  6701. if (((this.Adapter != null)
  6702. && (this.Adapter.DeleteCommand != null))) {
  6703. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6704. }
  6705. if (((this.Adapter != null)
  6706. && (this.Adapter.InsertCommand != null))) {
  6707. this.Adapter.InsertCommand.Transaction = this._transaction;
  6708. }
  6709. if (((this.Adapter != null)
  6710. && (this.Adapter.UpdateCommand != null))) {
  6711. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6712. }
  6713. }
  6714. }
  6715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6717. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6718. get {
  6719. if ((this._commandCollection == null)) {
  6720. this.InitCommandCollection();
  6721. }
  6722. return this._commandCollection;
  6723. }
  6724. }
  6725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6726. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6727. public bool ClearBeforeFill {
  6728. get {
  6729. return this._clearBeforeFill;
  6730. }
  6731. set {
  6732. this._clearBeforeFill = value;
  6733. }
  6734. }
  6735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6736. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6737. private void InitAdapter() {
  6738. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6739. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6740. tableMapping.SourceTable = "Table";
  6741. tableMapping.DataSetTable = "client Service ";
  6742. tableMapping.ColumnMappings.Add("ID", "ID");
  6743. tableMapping.ColumnMappings.Add("ID_client", "ID_client");
  6744. tableMapping.ColumnMappings.Add("ID_service", "ID_service");
  6745. tableMapping.ColumnMappings.Add("StartTime", "StartTime");
  6746. tableMapping.ColumnMappings.Add("Comments", "Comments");
  6747. this._adapter.TableMappings.Add(tableMapping);
  6748. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6749. this._adapter.DeleteCommand.Connection = this.Connection;
  6750. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[client Service ] WHERE (([ID] = @Original_ID) AND ([ID_client]" +
  6751. " = @Original_ID_client) AND ([ID_service] = @Original_ID_service) AND ([StartTim" +
  6752. "e] = @Original_StartTime))";
  6753. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6754. 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, "", "", ""));
  6755. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_client", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_client", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6756. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_service", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_service", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6757. 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, "", "", ""));
  6758. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6759. this._adapter.InsertCommand.Connection = this.Connection;
  6760. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[client Service ] ([ID], [ID_client], [ID_service], [StartTime]" +
  6761. ", [Comments]) VALUES (@ID, @ID_client, @ID_service, @StartTime, @Comments);\r\nSEL" +
  6762. "ECT ID, ID_client, ID_service, StartTime, Comments FROM [client Service ] WHERE " +
  6763. "(ID = @ID)";
  6764. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6765. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6766. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_client", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_client", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6767. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_service", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_service", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6768. 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, "", "", ""));
  6769. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Comments", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Comments", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6770. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6771. this._adapter.UpdateCommand.Connection = this.Connection;
  6772. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[client Service ] SET [ID] = @ID, [ID_client] = @ID_client, [ID_service] = @ID_service, [StartTime] = @StartTime, [Comments] = @Comments WHERE (([ID] = @Original_ID) AND ([ID_client] = @Original_ID_client) AND ([ID_service] = @Original_ID_service) AND ([StartTime] = @Original_StartTime));
  6773. SELECT ID, ID_client, ID_service, StartTime, Comments FROM [client Service ] WHERE (ID = @ID)";
  6774. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6775. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6776. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_client", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_client", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6777. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_service", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_service", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6778. 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, "", "", ""));
  6779. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Comments", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Comments", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6780. 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, "", "", ""));
  6781. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_client", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_client", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6782. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_service", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_service", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6783. 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, "", "", ""));
  6784. }
  6785. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6786. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6787. private void InitConnection() {
  6788. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6789. this._connection.ConnectionString = global::Бархатные_бровки_Gebel.Properties.Settings.Default.BB_GebelConnectionString;
  6790. }
  6791. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6792. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6793. private void InitCommandCollection() {
  6794. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6795. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6796. this._commandCollection[0].Connection = this.Connection;
  6797. this._commandCollection[0].CommandText = "SELECT ID, ID_client, ID_service, StartTime, Comments FROM dbo.[client Service ]";
  6798. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6799. }
  6800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6802. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6803. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6804. public virtual int Fill(BB_GebelDataSet.client_Service_DataTable dataTable) {
  6805. this.Adapter.SelectCommand = this.CommandCollection[0];
  6806. if ((this.ClearBeforeFill == true)) {
  6807. dataTable.Clear();
  6808. }
  6809. int returnValue = this.Adapter.Fill(dataTable);
  6810. return returnValue;
  6811. }
  6812. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6813. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6814. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6815. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6816. public virtual BB_GebelDataSet.client_Service_DataTable GetData() {
  6817. this.Adapter.SelectCommand = this.CommandCollection[0];
  6818. BB_GebelDataSet.client_Service_DataTable dataTable = new BB_GebelDataSet.client_Service_DataTable();
  6819. this.Adapter.Fill(dataTable);
  6820. return dataTable;
  6821. }
  6822. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6823. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6824. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6825. public virtual int Update(BB_GebelDataSet.client_Service_DataTable dataTable) {
  6826. return this.Adapter.Update(dataTable);
  6827. }
  6828. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6829. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6830. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6831. public virtual int Update(BB_GebelDataSet dataSet) {
  6832. return this.Adapter.Update(dataSet, "client Service ");
  6833. }
  6834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6835. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6836. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6837. public virtual int Update(global::System.Data.DataRow dataRow) {
  6838. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6839. dataRow});
  6840. }
  6841. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6842. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6843. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6844. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6845. return this.Adapter.Update(dataRows);
  6846. }
  6847. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6848. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6849. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6850. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6851. public virtual int Delete(int Original_ID, int Original_ID_client, int Original_ID_service, System.DateTime Original_StartTime) {
  6852. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  6853. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ID_client));
  6854. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_ID_service));
  6855. this.Adapter.DeleteCommand.Parameters[3].Value = ((System.DateTime)(Original_StartTime));
  6856. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6857. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6858. != global::System.Data.ConnectionState.Open)) {
  6859. this.Adapter.DeleteCommand.Connection.Open();
  6860. }
  6861. try {
  6862. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6863. return returnValue;
  6864. }
  6865. finally {
  6866. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6867. this.Adapter.DeleteCommand.Connection.Close();
  6868. }
  6869. }
  6870. }
  6871. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6872. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6873. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6874. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6875. public virtual int Insert(int ID, int ID_client, int ID_service, System.DateTime StartTime, string Comments) {
  6876. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ID));
  6877. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(ID_client));
  6878. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(ID_service));
  6879. this.Adapter.InsertCommand.Parameters[3].Value = ((System.DateTime)(StartTime));
  6880. if ((Comments == null)) {
  6881. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  6882. }
  6883. else {
  6884. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Comments));
  6885. }
  6886. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6887. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6888. != global::System.Data.ConnectionState.Open)) {
  6889. this.Adapter.InsertCommand.Connection.Open();
  6890. }
  6891. try {
  6892. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6893. return returnValue;
  6894. }
  6895. finally {
  6896. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6897. this.Adapter.InsertCommand.Connection.Close();
  6898. }
  6899. }
  6900. }
  6901. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6902. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6903. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6904. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6905. public virtual int Update(int ID, int ID_client, int ID_service, System.DateTime StartTime, string Comments, int Original_ID, int Original_ID_client, int Original_ID_service, System.DateTime Original_StartTime) {
  6906. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ID));
  6907. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(ID_client));
  6908. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(ID_service));
  6909. this.Adapter.UpdateCommand.Parameters[3].Value = ((System.DateTime)(StartTime));
  6910. if ((Comments == null)) {
  6911. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  6912. }
  6913. else {
  6914. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Comments));
  6915. }
  6916. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_ID));
  6917. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ID_client));
  6918. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_ID_service));
  6919. this.Adapter.UpdateCommand.Parameters[8].Value = ((System.DateTime)(Original_StartTime));
  6920. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6921. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6922. != global::System.Data.ConnectionState.Open)) {
  6923. this.Adapter.UpdateCommand.Connection.Open();
  6924. }
  6925. try {
  6926. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6927. return returnValue;
  6928. }
  6929. finally {
  6930. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6931. this.Adapter.UpdateCommand.Connection.Close();
  6932. }
  6933. }
  6934. }
  6935. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6936. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6937. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6938. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6939. public virtual int Update(int ID_client, int ID_service, System.DateTime StartTime, string Comments, int Original_ID, int Original_ID_client, int Original_ID_service, System.DateTime Original_StartTime) {
  6940. return this.Update(Original_ID, ID_client, ID_service, StartTime, Comments, Original_ID, Original_ID_client, Original_ID_service, Original_StartTime);
  6941. }
  6942. }
  6943. /// <summary>
  6944. ///Represents the connection and commands used to retrieve and save data.
  6945. ///</summary>
  6946. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6947. [global::System.ComponentModel.ToolboxItem(true)]
  6948. [global::System.ComponentModel.DataObjectAttribute(true)]
  6949. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6950. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6951. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6952. public partial class DocumentServiceTableAdapter : global::System.ComponentModel.Component {
  6953. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6954. private global::System.Data.SqlClient.SqlConnection _connection;
  6955. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6956. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6957. private bool _clearBeforeFill;
  6958. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6959. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6960. public DocumentServiceTableAdapter() {
  6961. this.ClearBeforeFill = true;
  6962. }
  6963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6965. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6966. get {
  6967. if ((this._adapter == null)) {
  6968. this.InitAdapter();
  6969. }
  6970. return this._adapter;
  6971. }
  6972. }
  6973. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6974. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6975. internal global::System.Data.SqlClient.SqlConnection Connection {
  6976. get {
  6977. if ((this._connection == null)) {
  6978. this.InitConnection();
  6979. }
  6980. return this._connection;
  6981. }
  6982. set {
  6983. this._connection = value;
  6984. if ((this.Adapter.InsertCommand != null)) {
  6985. this.Adapter.InsertCommand.Connection = value;
  6986. }
  6987. if ((this.Adapter.DeleteCommand != null)) {
  6988. this.Adapter.DeleteCommand.Connection = value;
  6989. }
  6990. if ((this.Adapter.UpdateCommand != null)) {
  6991. this.Adapter.UpdateCommand.Connection = value;
  6992. }
  6993. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6994. if ((this.CommandCollection[i] != null)) {
  6995. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6996. }
  6997. }
  6998. }
  6999. }
  7000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7001. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7002. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7003. get {
  7004. return this._transaction;
  7005. }
  7006. set {
  7007. this._transaction = value;
  7008. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7009. this.CommandCollection[i].Transaction = this._transaction;
  7010. }
  7011. if (((this.Adapter != null)
  7012. && (this.Adapter.DeleteCommand != null))) {
  7013. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7014. }
  7015. if (((this.Adapter != null)
  7016. && (this.Adapter.InsertCommand != null))) {
  7017. this.Adapter.InsertCommand.Transaction = this._transaction;
  7018. }
  7019. if (((this.Adapter != null)
  7020. && (this.Adapter.UpdateCommand != null))) {
  7021. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7022. }
  7023. }
  7024. }
  7025. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7026. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7027. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7028. get {
  7029. if ((this._commandCollection == null)) {
  7030. this.InitCommandCollection();
  7031. }
  7032. return this._commandCollection;
  7033. }
  7034. }
  7035. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7036. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7037. public bool ClearBeforeFill {
  7038. get {
  7039. return this._clearBeforeFill;
  7040. }
  7041. set {
  7042. this._clearBeforeFill = value;
  7043. }
  7044. }
  7045. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7046. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7047. private void InitAdapter() {
  7048. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7049. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7050. tableMapping.SourceTable = "Table";
  7051. tableMapping.DataSetTable = "DocumentService";
  7052. tableMapping.ColumnMappings.Add("ID", "ID");
  7053. tableMapping.ColumnMappings.Add("ID_client_service", "ID_client_service");
  7054. tableMapping.ColumnMappings.Add("DocumentPath", "DocumentPath");
  7055. this._adapter.TableMappings.Add(tableMapping);
  7056. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7057. this._adapter.DeleteCommand.Connection = this.Connection;
  7058. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[DocumentService] WHERE (([ID] = @Original_ID) AND ([ID_client_" +
  7059. "service] = @Original_ID_client_service))";
  7060. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7061. 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, "", "", ""));
  7062. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_client_service", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_client_service", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7063. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7064. this._adapter.InsertCommand.Connection = this.Connection;
  7065. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[DocumentService] ([ID], [ID_client_service], [DocumentPath]) V" +
  7066. "ALUES (@ID, @ID_client_service, @DocumentPath);\r\nSELECT ID, ID_client_service, D" +
  7067. "ocumentPath FROM DocumentService WHERE (ID = @ID)";
  7068. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7069. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7070. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_client_service", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_client_service", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7071. 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, "", "", ""));
  7072. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7073. this._adapter.UpdateCommand.Connection = this.Connection;
  7074. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[DocumentService] SET [ID] = @ID, [ID_client_service] = @ID_client_service, [DocumentPath] = @DocumentPath WHERE (([ID] = @Original_ID) AND ([ID_client_service] = @Original_ID_client_service));
  7075. SELECT ID, ID_client_service, DocumentPath FROM DocumentService WHERE (ID = @ID)";
  7076. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7077. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7078. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_client_service", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_client_service", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7079. 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, "", "", ""));
  7080. 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, "", "", ""));
  7081. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_client_service", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_client_service", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7082. }
  7083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7085. private void InitConnection() {
  7086. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7087. this._connection.ConnectionString = global::Бархатные_бровки_Gebel.Properties.Settings.Default.BB_GebelConnectionString;
  7088. }
  7089. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7090. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7091. private void InitCommandCollection() {
  7092. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7093. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7094. this._commandCollection[0].Connection = this.Connection;
  7095. this._commandCollection[0].CommandText = "SELECT ID, ID_client_service, DocumentPath FROM dbo.DocumentService";
  7096. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7097. }
  7098. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7099. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7100. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7101. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7102. public virtual int Fill(BB_GebelDataSet.DocumentServiceDataTable dataTable) {
  7103. this.Adapter.SelectCommand = this.CommandCollection[0];
  7104. if ((this.ClearBeforeFill == true)) {
  7105. dataTable.Clear();
  7106. }
  7107. int returnValue = this.Adapter.Fill(dataTable);
  7108. return returnValue;
  7109. }
  7110. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7111. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7112. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7113. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7114. public virtual BB_GebelDataSet.DocumentServiceDataTable GetData() {
  7115. this.Adapter.SelectCommand = this.CommandCollection[0];
  7116. BB_GebelDataSet.DocumentServiceDataTable dataTable = new BB_GebelDataSet.DocumentServiceDataTable();
  7117. this.Adapter.Fill(dataTable);
  7118. return dataTable;
  7119. }
  7120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7121. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7122. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7123. public virtual int Update(BB_GebelDataSet.DocumentServiceDataTable dataTable) {
  7124. return this.Adapter.Update(dataTable);
  7125. }
  7126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7128. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7129. public virtual int Update(BB_GebelDataSet dataSet) {
  7130. return this.Adapter.Update(dataSet, "DocumentService");
  7131. }
  7132. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7133. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7134. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7135. public virtual int Update(global::System.Data.DataRow dataRow) {
  7136. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7137. dataRow});
  7138. }
  7139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7141. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7142. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7143. return this.Adapter.Update(dataRows);
  7144. }
  7145. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7146. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7147. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7148. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7149. public virtual int Delete(int Original_ID, int Original_ID_client_service) {
  7150. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  7151. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ID_client_service));
  7152. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7153. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7154. != global::System.Data.ConnectionState.Open)) {
  7155. this.Adapter.DeleteCommand.Connection.Open();
  7156. }
  7157. try {
  7158. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7159. return returnValue;
  7160. }
  7161. finally {
  7162. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7163. this.Adapter.DeleteCommand.Connection.Close();
  7164. }
  7165. }
  7166. }
  7167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7169. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7170. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7171. public virtual int Insert(int ID, int ID_client_service, string DocumentPath) {
  7172. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ID));
  7173. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(ID_client_service));
  7174. if ((DocumentPath == null)) {
  7175. throw new global::System.ArgumentNullException("DocumentPath");
  7176. }
  7177. else {
  7178. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(DocumentPath));
  7179. }
  7180. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7181. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7182. != global::System.Data.ConnectionState.Open)) {
  7183. this.Adapter.InsertCommand.Connection.Open();
  7184. }
  7185. try {
  7186. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7187. return returnValue;
  7188. }
  7189. finally {
  7190. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7191. this.Adapter.InsertCommand.Connection.Close();
  7192. }
  7193. }
  7194. }
  7195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7197. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7198. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7199. public virtual int Update(int ID, int ID_client_service, string DocumentPath, int Original_ID, int Original_ID_client_service) {
  7200. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ID));
  7201. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(ID_client_service));
  7202. if ((DocumentPath == null)) {
  7203. throw new global::System.ArgumentNullException("DocumentPath");
  7204. }
  7205. else {
  7206. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(DocumentPath));
  7207. }
  7208. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ID));
  7209. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_ID_client_service));
  7210. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7211. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7212. != global::System.Data.ConnectionState.Open)) {
  7213. this.Adapter.UpdateCommand.Connection.Open();
  7214. }
  7215. try {
  7216. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7217. return returnValue;
  7218. }
  7219. finally {
  7220. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7221. this.Adapter.UpdateCommand.Connection.Close();
  7222. }
  7223. }
  7224. }
  7225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7227. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7228. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7229. public virtual int Update(int ID_client_service, string DocumentPath, int Original_ID, int Original_ID_client_service) {
  7230. return this.Update(Original_ID, ID_client_service, DocumentPath, Original_ID, Original_ID_client_service);
  7231. }
  7232. }
  7233. /// <summary>
  7234. ///Represents the connection and commands used to retrieve and save data.
  7235. ///</summary>
  7236. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7237. [global::System.ComponentModel.ToolboxItem(true)]
  7238. [global::System.ComponentModel.DataObjectAttribute(true)]
  7239. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7240. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7241. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7242. public partial class GenderTableAdapter : global::System.ComponentModel.Component {
  7243. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7244. private global::System.Data.SqlClient.SqlConnection _connection;
  7245. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7246. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7247. private bool _clearBeforeFill;
  7248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7249. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7250. public GenderTableAdapter() {
  7251. this.ClearBeforeFill = true;
  7252. }
  7253. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7254. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7255. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7256. get {
  7257. if ((this._adapter == null)) {
  7258. this.InitAdapter();
  7259. }
  7260. return this._adapter;
  7261. }
  7262. }
  7263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7264. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7265. internal global::System.Data.SqlClient.SqlConnection Connection {
  7266. get {
  7267. if ((this._connection == null)) {
  7268. this.InitConnection();
  7269. }
  7270. return this._connection;
  7271. }
  7272. set {
  7273. this._connection = value;
  7274. if ((this.Adapter.InsertCommand != null)) {
  7275. this.Adapter.InsertCommand.Connection = value;
  7276. }
  7277. if ((this.Adapter.DeleteCommand != null)) {
  7278. this.Adapter.DeleteCommand.Connection = value;
  7279. }
  7280. if ((this.Adapter.UpdateCommand != null)) {
  7281. this.Adapter.UpdateCommand.Connection = value;
  7282. }
  7283. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7284. if ((this.CommandCollection[i] != null)) {
  7285. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7286. }
  7287. }
  7288. }
  7289. }
  7290. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7291. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7292. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7293. get {
  7294. return this._transaction;
  7295. }
  7296. set {
  7297. this._transaction = value;
  7298. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7299. this.CommandCollection[i].Transaction = this._transaction;
  7300. }
  7301. if (((this.Adapter != null)
  7302. && (this.Adapter.DeleteCommand != null))) {
  7303. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7304. }
  7305. if (((this.Adapter != null)
  7306. && (this.Adapter.InsertCommand != null))) {
  7307. this.Adapter.InsertCommand.Transaction = this._transaction;
  7308. }
  7309. if (((this.Adapter != null)
  7310. && (this.Adapter.UpdateCommand != null))) {
  7311. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7312. }
  7313. }
  7314. }
  7315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7316. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7317. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7318. get {
  7319. if ((this._commandCollection == null)) {
  7320. this.InitCommandCollection();
  7321. }
  7322. return this._commandCollection;
  7323. }
  7324. }
  7325. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7326. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7327. public bool ClearBeforeFill {
  7328. get {
  7329. return this._clearBeforeFill;
  7330. }
  7331. set {
  7332. this._clearBeforeFill = value;
  7333. }
  7334. }
  7335. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7336. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7337. private void InitAdapter() {
  7338. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7339. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7340. tableMapping.SourceTable = "Table";
  7341. tableMapping.DataSetTable = "Gender";
  7342. tableMapping.ColumnMappings.Add("Code", "Code");
  7343. tableMapping.ColumnMappings.Add("Name", "Name");
  7344. this._adapter.TableMappings.Add(tableMapping);
  7345. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7346. this._adapter.DeleteCommand.Connection = this.Connection;
  7347. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Gender] WHERE (([Code] = @Original_Code) AND ((@IsNull_Name = " +
  7348. "1 AND [Name] IS NULL) OR ([Name] = @Original_Name)))";
  7349. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7350. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Code", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7351. 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, "", "", ""));
  7352. 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, "", "", ""));
  7353. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7354. this._adapter.InsertCommand.Connection = this.Connection;
  7355. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Gender] ([Code], [Name]) VALUES (@Code, @Name);\r\nSELECT Code, " +
  7356. "Name FROM Gender WHERE (Code = @Code)";
  7357. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7358. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Code", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7359. 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, "", "", ""));
  7360. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7361. this._adapter.UpdateCommand.Connection = this.Connection;
  7362. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Gender] SET [Code] = @Code, [Name] = @Name WHERE (([Code] = @Origin" +
  7363. "al_Code) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)" +
  7364. "));\r\nSELECT Code, Name FROM Gender WHERE (Code = @Code)";
  7365. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7366. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Code", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7367. 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, "", "", ""));
  7368. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Code", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7369. 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, "", "", ""));
  7370. 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, "", "", ""));
  7371. }
  7372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7374. private void InitConnection() {
  7375. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7376. this._connection.ConnectionString = global::Бархатные_бровки_Gebel.Properties.Settings.Default.BB_GebelConnectionString;
  7377. }
  7378. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7379. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7380. private void InitCommandCollection() {
  7381. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7382. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7383. this._commandCollection[0].Connection = this.Connection;
  7384. this._commandCollection[0].CommandText = "SELECT Code, Name FROM dbo.Gender";
  7385. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7386. }
  7387. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7388. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7389. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7390. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7391. public virtual int Fill(BB_GebelDataSet.GenderDataTable dataTable) {
  7392. this.Adapter.SelectCommand = this.CommandCollection[0];
  7393. if ((this.ClearBeforeFill == true)) {
  7394. dataTable.Clear();
  7395. }
  7396. int returnValue = this.Adapter.Fill(dataTable);
  7397. return returnValue;
  7398. }
  7399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7401. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7402. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7403. public virtual BB_GebelDataSet.GenderDataTable GetData() {
  7404. this.Adapter.SelectCommand = this.CommandCollection[0];
  7405. BB_GebelDataSet.GenderDataTable dataTable = new BB_GebelDataSet.GenderDataTable();
  7406. this.Adapter.Fill(dataTable);
  7407. return dataTable;
  7408. }
  7409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7411. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7412. public virtual int Update(BB_GebelDataSet.GenderDataTable dataTable) {
  7413. return this.Adapter.Update(dataTable);
  7414. }
  7415. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7416. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7417. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7418. public virtual int Update(BB_GebelDataSet dataSet) {
  7419. return this.Adapter.Update(dataSet, "Gender");
  7420. }
  7421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7422. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7423. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7424. public virtual int Update(global::System.Data.DataRow dataRow) {
  7425. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7426. dataRow});
  7427. }
  7428. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7429. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7430. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7431. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7432. return this.Adapter.Update(dataRows);
  7433. }
  7434. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7435. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7436. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7437. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7438. public virtual int Delete(int Original_Code, string Original_Name) {
  7439. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_Code));
  7440. if ((Original_Name == null)) {
  7441. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  7442. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  7443. }
  7444. else {
  7445. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  7446. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Name));
  7447. }
  7448. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7449. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7450. != global::System.Data.ConnectionState.Open)) {
  7451. this.Adapter.DeleteCommand.Connection.Open();
  7452. }
  7453. try {
  7454. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7455. return returnValue;
  7456. }
  7457. finally {
  7458. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7459. this.Adapter.DeleteCommand.Connection.Close();
  7460. }
  7461. }
  7462. }
  7463. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7464. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7465. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7466. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7467. public virtual int Insert(int Code, string Name) {
  7468. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(Code));
  7469. if ((Name == null)) {
  7470. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  7471. }
  7472. else {
  7473. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Name));
  7474. }
  7475. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7476. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7477. != global::System.Data.ConnectionState.Open)) {
  7478. this.Adapter.InsertCommand.Connection.Open();
  7479. }
  7480. try {
  7481. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7482. return returnValue;
  7483. }
  7484. finally {
  7485. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7486. this.Adapter.InsertCommand.Connection.Close();
  7487. }
  7488. }
  7489. }
  7490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7492. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7493. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7494. public virtual int Update(int Code, string Name, int Original_Code, string Original_Name) {
  7495. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(Code));
  7496. if ((Name == null)) {
  7497. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  7498. }
  7499. else {
  7500. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Name));
  7501. }
  7502. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_Code));
  7503. if ((Original_Name == null)) {
  7504. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  7505. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  7506. }
  7507. else {
  7508. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  7509. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Name));
  7510. }
  7511. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7512. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7513. != global::System.Data.ConnectionState.Open)) {
  7514. this.Adapter.UpdateCommand.Connection.Open();
  7515. }
  7516. try {
  7517. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7518. return returnValue;
  7519. }
  7520. finally {
  7521. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7522. this.Adapter.UpdateCommand.Connection.Close();
  7523. }
  7524. }
  7525. }
  7526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7528. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7529. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7530. public virtual int Update(string Name, int Original_Code, string Original_Name) {
  7531. return this.Update(Original_Code, Name, Original_Code, Original_Name);
  7532. }
  7533. }
  7534. /// <summary>
  7535. ///Represents the connection and commands used to retrieve and save data.
  7536. ///</summary>
  7537. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7538. [global::System.ComponentModel.ToolboxItem(true)]
  7539. [global::System.ComponentModel.DataObjectAttribute(true)]
  7540. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7541. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7542. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7543. public partial class ManufactureTableAdapter : global::System.ComponentModel.Component {
  7544. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7545. private global::System.Data.SqlClient.SqlConnection _connection;
  7546. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7547. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7548. private bool _clearBeforeFill;
  7549. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7550. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7551. public ManufactureTableAdapter() {
  7552. this.ClearBeforeFill = true;
  7553. }
  7554. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7555. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7556. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7557. get {
  7558. if ((this._adapter == null)) {
  7559. this.InitAdapter();
  7560. }
  7561. return this._adapter;
  7562. }
  7563. }
  7564. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7565. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7566. internal global::System.Data.SqlClient.SqlConnection Connection {
  7567. get {
  7568. if ((this._connection == null)) {
  7569. this.InitConnection();
  7570. }
  7571. return this._connection;
  7572. }
  7573. set {
  7574. this._connection = value;
  7575. if ((this.Adapter.InsertCommand != null)) {
  7576. this.Adapter.InsertCommand.Connection = value;
  7577. }
  7578. if ((this.Adapter.DeleteCommand != null)) {
  7579. this.Adapter.DeleteCommand.Connection = value;
  7580. }
  7581. if ((this.Adapter.UpdateCommand != null)) {
  7582. this.Adapter.UpdateCommand.Connection = value;
  7583. }
  7584. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7585. if ((this.CommandCollection[i] != null)) {
  7586. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7587. }
  7588. }
  7589. }
  7590. }
  7591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7592. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7593. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7594. get {
  7595. return this._transaction;
  7596. }
  7597. set {
  7598. this._transaction = value;
  7599. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7600. this.CommandCollection[i].Transaction = this._transaction;
  7601. }
  7602. if (((this.Adapter != null)
  7603. && (this.Adapter.DeleteCommand != null))) {
  7604. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7605. }
  7606. if (((this.Adapter != null)
  7607. && (this.Adapter.InsertCommand != null))) {
  7608. this.Adapter.InsertCommand.Transaction = this._transaction;
  7609. }
  7610. if (((this.Adapter != null)
  7611. && (this.Adapter.UpdateCommand != null))) {
  7612. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7613. }
  7614. }
  7615. }
  7616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7617. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7618. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7619. get {
  7620. if ((this._commandCollection == null)) {
  7621. this.InitCommandCollection();
  7622. }
  7623. return this._commandCollection;
  7624. }
  7625. }
  7626. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7627. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7628. public bool ClearBeforeFill {
  7629. get {
  7630. return this._clearBeforeFill;
  7631. }
  7632. set {
  7633. this._clearBeforeFill = value;
  7634. }
  7635. }
  7636. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7637. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7638. private void InitAdapter() {
  7639. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7640. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7641. tableMapping.SourceTable = "Table";
  7642. tableMapping.DataSetTable = "Manufacture";
  7643. tableMapping.ColumnMappings.Add("ID", "ID");
  7644. tableMapping.ColumnMappings.Add("Name", "Name");
  7645. tableMapping.ColumnMappings.Add("Date_Start", "Date_Start");
  7646. this._adapter.TableMappings.Add(tableMapping);
  7647. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7648. this._adapter.DeleteCommand.Connection = this.Connection;
  7649. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Manufacture] WHERE (([ID] = @Original_ID) AND ([Name] = @Origi" +
  7650. "nal_Name) AND ((@IsNull_Date_Start = 1 AND [Date_Start] IS NULL) OR ([Date_Start" +
  7651. "] = @Original_Date_Start)))";
  7652. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7653. 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, "", "", ""));
  7654. 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, "", "", ""));
  7655. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Date_Start", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Date_Start", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7656. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Date_Start", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Date_Start", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7657. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7658. this._adapter.InsertCommand.Connection = this.Connection;
  7659. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Manufacture] ([ID], [Name], [Date_Start]) VALUES (@ID, @Name, " +
  7660. "@Date_Start);\r\nSELECT ID, Name, Date_Start FROM Manufacture WHERE (ID = @ID)";
  7661. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7662. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7663. 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, "", "", ""));
  7664. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Date_Start", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Date_Start", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7665. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7666. this._adapter.UpdateCommand.Connection = this.Connection;
  7667. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Manufacture] SET [ID] = @ID, [Name] = @Name, [Date_Start] = @Date_Start WHERE (([ID] = @Original_ID) AND ([Name] = @Original_Name) AND ((@IsNull_Date_Start = 1 AND [Date_Start] IS NULL) OR ([Date_Start] = @Original_Date_Start)));
  7668. SELECT ID, Name, Date_Start FROM Manufacture WHERE (ID = @ID)";
  7669. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7670. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7671. 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, "", "", ""));
  7672. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Date_Start", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Date_Start", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7673. 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, "", "", ""));
  7674. 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, "", "", ""));
  7675. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Date_Start", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Date_Start", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7676. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Date_Start", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Date_Start", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7677. }
  7678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7680. private void InitConnection() {
  7681. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7682. this._connection.ConnectionString = global::Бархатные_бровки_Gebel.Properties.Settings.Default.BB_GebelConnectionString;
  7683. }
  7684. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7685. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7686. private void InitCommandCollection() {
  7687. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7688. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7689. this._commandCollection[0].Connection = this.Connection;
  7690. this._commandCollection[0].CommandText = "SELECT ID, Name, Date_Start FROM dbo.Manufacture";
  7691. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7692. }
  7693. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7694. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7695. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7696. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7697. public virtual int Fill(BB_GebelDataSet.ManufactureDataTable dataTable) {
  7698. this.Adapter.SelectCommand = this.CommandCollection[0];
  7699. if ((this.ClearBeforeFill == true)) {
  7700. dataTable.Clear();
  7701. }
  7702. int returnValue = this.Adapter.Fill(dataTable);
  7703. return returnValue;
  7704. }
  7705. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7706. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7707. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7708. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7709. public virtual BB_GebelDataSet.ManufactureDataTable GetData() {
  7710. this.Adapter.SelectCommand = this.CommandCollection[0];
  7711. BB_GebelDataSet.ManufactureDataTable dataTable = new BB_GebelDataSet.ManufactureDataTable();
  7712. this.Adapter.Fill(dataTable);
  7713. return dataTable;
  7714. }
  7715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7717. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7718. public virtual int Update(BB_GebelDataSet.ManufactureDataTable dataTable) {
  7719. return this.Adapter.Update(dataTable);
  7720. }
  7721. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7722. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7723. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7724. public virtual int Update(BB_GebelDataSet dataSet) {
  7725. return this.Adapter.Update(dataSet, "Manufacture");
  7726. }
  7727. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7728. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7729. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7730. public virtual int Update(global::System.Data.DataRow dataRow) {
  7731. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7732. dataRow});
  7733. }
  7734. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7736. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7737. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7738. return this.Adapter.Update(dataRows);
  7739. }
  7740. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7741. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7742. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7743. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7744. public virtual int Delete(int Original_ID, string Original_Name, global::System.Nullable<global::System.DateTime> Original_Date_Start) {
  7745. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  7746. if ((Original_Name == null)) {
  7747. throw new global::System.ArgumentNullException("Original_Name");
  7748. }
  7749. else {
  7750. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Name));
  7751. }
  7752. if ((Original_Date_Start.HasValue == true)) {
  7753. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
  7754. this.Adapter.DeleteCommand.Parameters[3].Value = ((System.DateTime)(Original_Date_Start.Value));
  7755. }
  7756. else {
  7757. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
  7758. this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
  7759. }
  7760. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7761. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7762. != global::System.Data.ConnectionState.Open)) {
  7763. this.Adapter.DeleteCommand.Connection.Open();
  7764. }
  7765. try {
  7766. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7767. return returnValue;
  7768. }
  7769. finally {
  7770. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7771. this.Adapter.DeleteCommand.Connection.Close();
  7772. }
  7773. }
  7774. }
  7775. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7776. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7777. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7778. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7779. public virtual int Insert(int ID, string Name, global::System.Nullable<global::System.DateTime> Date_Start) {
  7780. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ID));
  7781. if ((Name == null)) {
  7782. throw new global::System.ArgumentNullException("Name");
  7783. }
  7784. else {
  7785. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Name));
  7786. }
  7787. if ((Date_Start.HasValue == true)) {
  7788. this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(Date_Start.Value));
  7789. }
  7790. else {
  7791. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  7792. }
  7793. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7794. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7795. != global::System.Data.ConnectionState.Open)) {
  7796. this.Adapter.InsertCommand.Connection.Open();
  7797. }
  7798. try {
  7799. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7800. return returnValue;
  7801. }
  7802. finally {
  7803. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7804. this.Adapter.InsertCommand.Connection.Close();
  7805. }
  7806. }
  7807. }
  7808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7810. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7811. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7812. public virtual int Update(int ID, string Name, global::System.Nullable<global::System.DateTime> Date_Start, int Original_ID, string Original_Name, global::System.Nullable<global::System.DateTime> Original_Date_Start) {
  7813. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ID));
  7814. if ((Name == null)) {
  7815. throw new global::System.ArgumentNullException("Name");
  7816. }
  7817. else {
  7818. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Name));
  7819. }
  7820. if ((Date_Start.HasValue == true)) {
  7821. this.Adapter.UpdateCommand.Parameters[2].Value = ((System.DateTime)(Date_Start.Value));
  7822. }
  7823. else {
  7824. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  7825. }
  7826. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ID));
  7827. if ((Original_Name == null)) {
  7828. throw new global::System.ArgumentNullException("Original_Name");
  7829. }
  7830. else {
  7831. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Name));
  7832. }
  7833. if ((Original_Date_Start.HasValue == true)) {
  7834. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  7835. this.Adapter.UpdateCommand.Parameters[6].Value = ((System.DateTime)(Original_Date_Start.Value));
  7836. }
  7837. else {
  7838. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  7839. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  7840. }
  7841. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7842. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7843. != global::System.Data.ConnectionState.Open)) {
  7844. this.Adapter.UpdateCommand.Connection.Open();
  7845. }
  7846. try {
  7847. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7848. return returnValue;
  7849. }
  7850. finally {
  7851. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7852. this.Adapter.UpdateCommand.Connection.Close();
  7853. }
  7854. }
  7855. }
  7856. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7857. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7858. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7859. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7860. public virtual int Update(string Name, global::System.Nullable<global::System.DateTime> Date_Start, int Original_ID, string Original_Name, global::System.Nullable<global::System.DateTime> Original_Date_Start) {
  7861. return this.Update(Original_ID, Name, Date_Start, Original_ID, Original_Name, Original_Date_Start);
  7862. }
  7863. }
  7864. /// <summary>
  7865. ///Represents the connection and commands used to retrieve and save data.
  7866. ///</summary>
  7867. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7868. [global::System.ComponentModel.ToolboxItem(true)]
  7869. [global::System.ComponentModel.DataObjectAttribute(true)]
  7870. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7871. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7872. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7873. public partial class Photo_prouctTableAdapter : global::System.ComponentModel.Component {
  7874. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7875. private global::System.Data.SqlClient.SqlConnection _connection;
  7876. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7877. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7878. private bool _clearBeforeFill;
  7879. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7880. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7881. public Photo_prouctTableAdapter() {
  7882. this.ClearBeforeFill = true;
  7883. }
  7884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7886. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7887. get {
  7888. if ((this._adapter == null)) {
  7889. this.InitAdapter();
  7890. }
  7891. return this._adapter;
  7892. }
  7893. }
  7894. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7895. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7896. internal global::System.Data.SqlClient.SqlConnection Connection {
  7897. get {
  7898. if ((this._connection == null)) {
  7899. this.InitConnection();
  7900. }
  7901. return this._connection;
  7902. }
  7903. set {
  7904. this._connection = value;
  7905. if ((this.Adapter.InsertCommand != null)) {
  7906. this.Adapter.InsertCommand.Connection = value;
  7907. }
  7908. if ((this.Adapter.DeleteCommand != null)) {
  7909. this.Adapter.DeleteCommand.Connection = value;
  7910. }
  7911. if ((this.Adapter.UpdateCommand != null)) {
  7912. this.Adapter.UpdateCommand.Connection = value;
  7913. }
  7914. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7915. if ((this.CommandCollection[i] != null)) {
  7916. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7917. }
  7918. }
  7919. }
  7920. }
  7921. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7922. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7923. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7924. get {
  7925. return this._transaction;
  7926. }
  7927. set {
  7928. this._transaction = value;
  7929. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7930. this.CommandCollection[i].Transaction = this._transaction;
  7931. }
  7932. if (((this.Adapter != null)
  7933. && (this.Adapter.DeleteCommand != null))) {
  7934. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7935. }
  7936. if (((this.Adapter != null)
  7937. && (this.Adapter.InsertCommand != null))) {
  7938. this.Adapter.InsertCommand.Transaction = this._transaction;
  7939. }
  7940. if (((this.Adapter != null)
  7941. && (this.Adapter.UpdateCommand != null))) {
  7942. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7943. }
  7944. }
  7945. }
  7946. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7947. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7948. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7949. get {
  7950. if ((this._commandCollection == null)) {
  7951. this.InitCommandCollection();
  7952. }
  7953. return this._commandCollection;
  7954. }
  7955. }
  7956. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7957. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7958. public bool ClearBeforeFill {
  7959. get {
  7960. return this._clearBeforeFill;
  7961. }
  7962. set {
  7963. this._clearBeforeFill = value;
  7964. }
  7965. }
  7966. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7967. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7968. private void InitAdapter() {
  7969. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7970. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7971. tableMapping.SourceTable = "Table";
  7972. tableMapping.DataSetTable = "Photo prouct";
  7973. tableMapping.ColumnMappings.Add("ID", "ID");
  7974. tableMapping.ColumnMappings.Add("ID_product", "ID_product");
  7975. tableMapping.ColumnMappings.Add("Path_photo", "Path_photo");
  7976. this._adapter.TableMappings.Add(tableMapping);
  7977. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7978. this._adapter.DeleteCommand.Connection = this.Connection;
  7979. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Photo prouct] WHERE (([ID] = @Original_ID) AND ([ID_product] =" +
  7980. " @Original_ID_product) AND ([Path_photo] = @Original_Path_photo))";
  7981. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7982. 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, "", "", ""));
  7983. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_product", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_product", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7984. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Path_photo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Path_photo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7985. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7986. this._adapter.InsertCommand.Connection = this.Connection;
  7987. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Photo prouct] ([ID], [ID_product], [Path_photo]) VALUES (@ID, " +
  7988. "@ID_product, @Path_photo);\r\nSELECT ID, ID_product, Path_photo FROM [Photo prouct" +
  7989. "] WHERE (ID = @ID)";
  7990. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7991. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7992. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_product", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_product", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7993. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Path_photo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Path_photo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7994. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7995. this._adapter.UpdateCommand.Connection = this.Connection;
  7996. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Photo prouct] SET [ID] = @ID, [ID_product] = @ID_product, [Path_photo] = @Path_photo WHERE (([ID] = @Original_ID) AND ([ID_product] = @Original_ID_product) AND ([Path_photo] = @Original_Path_photo));
  7997. SELECT ID, ID_product, Path_photo FROM [Photo prouct] WHERE (ID = @ID)";
  7998. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7999. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8000. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_product", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_product", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8001. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Path_photo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Path_photo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8002. 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, "", "", ""));
  8003. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_product", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_product", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8004. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Path_photo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Path_photo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8005. }
  8006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8008. private void InitConnection() {
  8009. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8010. this._connection.ConnectionString = global::Бархатные_бровки_Gebel.Properties.Settings.Default.BB_GebelConnectionString;
  8011. }
  8012. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8013. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8014. private void InitCommandCollection() {
  8015. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8016. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8017. this._commandCollection[0].Connection = this.Connection;
  8018. this._commandCollection[0].CommandText = "SELECT ID, ID_product, Path_photo FROM dbo.[Photo prouct]";
  8019. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8020. }
  8021. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8022. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8023. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8024. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8025. public virtual int Fill(BB_GebelDataSet.Photo_prouctDataTable dataTable) {
  8026. this.Adapter.SelectCommand = this.CommandCollection[0];
  8027. if ((this.ClearBeforeFill == true)) {
  8028. dataTable.Clear();
  8029. }
  8030. int returnValue = this.Adapter.Fill(dataTable);
  8031. return returnValue;
  8032. }
  8033. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8034. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8035. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8036. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8037. public virtual BB_GebelDataSet.Photo_prouctDataTable GetData() {
  8038. this.Adapter.SelectCommand = this.CommandCollection[0];
  8039. BB_GebelDataSet.Photo_prouctDataTable dataTable = new BB_GebelDataSet.Photo_prouctDataTable();
  8040. this.Adapter.Fill(dataTable);
  8041. return dataTable;
  8042. }
  8043. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8044. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8045. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8046. public virtual int Update(BB_GebelDataSet.Photo_prouctDataTable dataTable) {
  8047. return this.Adapter.Update(dataTable);
  8048. }
  8049. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8050. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8051. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8052. public virtual int Update(BB_GebelDataSet dataSet) {
  8053. return this.Adapter.Update(dataSet, "Photo prouct");
  8054. }
  8055. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8056. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8057. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8058. public virtual int Update(global::System.Data.DataRow dataRow) {
  8059. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8060. dataRow});
  8061. }
  8062. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8063. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8064. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8065. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8066. return this.Adapter.Update(dataRows);
  8067. }
  8068. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8069. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8070. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8071. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8072. public virtual int Delete(int Original_ID, int Original_ID_product, string Original_Path_photo) {
  8073. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  8074. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ID_product));
  8075. if ((Original_Path_photo == null)) {
  8076. throw new global::System.ArgumentNullException("Original_Path_photo");
  8077. }
  8078. else {
  8079. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Path_photo));
  8080. }
  8081. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8082. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8083. != global::System.Data.ConnectionState.Open)) {
  8084. this.Adapter.DeleteCommand.Connection.Open();
  8085. }
  8086. try {
  8087. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8088. return returnValue;
  8089. }
  8090. finally {
  8091. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8092. this.Adapter.DeleteCommand.Connection.Close();
  8093. }
  8094. }
  8095. }
  8096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8097. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8098. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8099. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8100. public virtual int Insert(int ID, int ID_product, string Path_photo) {
  8101. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ID));
  8102. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(ID_product));
  8103. if ((Path_photo == null)) {
  8104. throw new global::System.ArgumentNullException("Path_photo");
  8105. }
  8106. else {
  8107. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Path_photo));
  8108. }
  8109. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8110. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8111. != global::System.Data.ConnectionState.Open)) {
  8112. this.Adapter.InsertCommand.Connection.Open();
  8113. }
  8114. try {
  8115. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8116. return returnValue;
  8117. }
  8118. finally {
  8119. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8120. this.Adapter.InsertCommand.Connection.Close();
  8121. }
  8122. }
  8123. }
  8124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8125. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8126. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8127. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8128. public virtual int Update(int ID, int ID_product, string Path_photo, int Original_ID, int Original_ID_product, string Original_Path_photo) {
  8129. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ID));
  8130. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(ID_product));
  8131. if ((Path_photo == null)) {
  8132. throw new global::System.ArgumentNullException("Path_photo");
  8133. }
  8134. else {
  8135. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Path_photo));
  8136. }
  8137. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ID));
  8138. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_ID_product));
  8139. if ((Original_Path_photo == null)) {
  8140. throw new global::System.ArgumentNullException("Original_Path_photo");
  8141. }
  8142. else {
  8143. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Path_photo));
  8144. }
  8145. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8146. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8147. != global::System.Data.ConnectionState.Open)) {
  8148. this.Adapter.UpdateCommand.Connection.Open();
  8149. }
  8150. try {
  8151. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8152. return returnValue;
  8153. }
  8154. finally {
  8155. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8156. this.Adapter.UpdateCommand.Connection.Close();
  8157. }
  8158. }
  8159. }
  8160. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8161. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8162. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8163. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8164. public virtual int Update(int ID_product, string Path_photo, int Original_ID, int Original_ID_product, string Original_Path_photo) {
  8165. return this.Update(Original_ID, ID_product, Path_photo, Original_ID, Original_ID_product, Original_Path_photo);
  8166. }
  8167. }
  8168. /// <summary>
  8169. ///Represents the connection and commands used to retrieve and save data.
  8170. ///</summary>
  8171. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8172. [global::System.ComponentModel.ToolboxItem(true)]
  8173. [global::System.ComponentModel.DataObjectAttribute(true)]
  8174. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8175. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8176. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8177. public partial class ProductTableAdapter : global::System.ComponentModel.Component {
  8178. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8179. private global::System.Data.SqlClient.SqlConnection _connection;
  8180. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8181. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8182. private bool _clearBeforeFill;
  8183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8185. public ProductTableAdapter() {
  8186. this.ClearBeforeFill = true;
  8187. }
  8188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8190. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8191. get {
  8192. if ((this._adapter == null)) {
  8193. this.InitAdapter();
  8194. }
  8195. return this._adapter;
  8196. }
  8197. }
  8198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8199. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8200. internal global::System.Data.SqlClient.SqlConnection Connection {
  8201. get {
  8202. if ((this._connection == null)) {
  8203. this.InitConnection();
  8204. }
  8205. return this._connection;
  8206. }
  8207. set {
  8208. this._connection = value;
  8209. if ((this.Adapter.InsertCommand != null)) {
  8210. this.Adapter.InsertCommand.Connection = value;
  8211. }
  8212. if ((this.Adapter.DeleteCommand != null)) {
  8213. this.Adapter.DeleteCommand.Connection = value;
  8214. }
  8215. if ((this.Adapter.UpdateCommand != null)) {
  8216. this.Adapter.UpdateCommand.Connection = value;
  8217. }
  8218. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8219. if ((this.CommandCollection[i] != null)) {
  8220. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8221. }
  8222. }
  8223. }
  8224. }
  8225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8227. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8228. get {
  8229. return this._transaction;
  8230. }
  8231. set {
  8232. this._transaction = value;
  8233. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8234. this.CommandCollection[i].Transaction = this._transaction;
  8235. }
  8236. if (((this.Adapter != null)
  8237. && (this.Adapter.DeleteCommand != null))) {
  8238. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8239. }
  8240. if (((this.Adapter != null)
  8241. && (this.Adapter.InsertCommand != null))) {
  8242. this.Adapter.InsertCommand.Transaction = this._transaction;
  8243. }
  8244. if (((this.Adapter != null)
  8245. && (this.Adapter.UpdateCommand != null))) {
  8246. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8247. }
  8248. }
  8249. }
  8250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8252. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8253. get {
  8254. if ((this._commandCollection == null)) {
  8255. this.InitCommandCollection();
  8256. }
  8257. return this._commandCollection;
  8258. }
  8259. }
  8260. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8261. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8262. public bool ClearBeforeFill {
  8263. get {
  8264. return this._clearBeforeFill;
  8265. }
  8266. set {
  8267. this._clearBeforeFill = value;
  8268. }
  8269. }
  8270. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8271. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8272. private void InitAdapter() {
  8273. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8274. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8275. tableMapping.SourceTable = "Table";
  8276. tableMapping.DataSetTable = "Product";
  8277. tableMapping.ColumnMappings.Add("ID", "ID");
  8278. tableMapping.ColumnMappings.Add("Title", "Title");
  8279. tableMapping.ColumnMappings.Add("Cost", "Cost");
  8280. tableMapping.ColumnMappings.Add("Description", "Description");
  8281. tableMapping.ColumnMappings.Add("Path_MainImage", "Path_MainImage");
  8282. tableMapping.ColumnMappings.Add("Active", "Active");
  8283. tableMapping.ColumnMappings.Add("ID_manufacturer", "ID_manufacturer");
  8284. this._adapter.TableMappings.Add(tableMapping);
  8285. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8286. this._adapter.DeleteCommand.Connection = this.Connection;
  8287. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Product] WHERE (([ID] = @Original_ID) AND ([Cost] = @Original_" +
  8288. "Cost) AND ([Active] = @Original_Active) AND ((@IsNull_ID_manufacturer = 1 AND [I" +
  8289. "D_manufacturer] IS NULL) OR ([ID_manufacturer] = @Original_ID_manufacturer)))";
  8290. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8291. 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, "", "", ""));
  8292. 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, "", "", ""));
  8293. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Active", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Active", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8294. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ID_manufacturer", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_manufacturer", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8295. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_manufacturer", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_manufacturer", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8296. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8297. this._adapter.InsertCommand.Connection = this.Connection;
  8298. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Product] ([ID], [Title], [Cost], [Description], [Path_MainImage], [Active], [ID_manufacturer]) VALUES (@ID, @Title, @Cost, @Description, @Path_MainImage, @Active, @ID_manufacturer);
  8299. SELECT ID, Title, Cost, Description, Path_MainImage, Active, ID_manufacturer FROM Product WHERE (ID = @ID)";
  8300. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8301. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8302. 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, "", "", ""));
  8303. 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, "", "", ""));
  8304. 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, "", "", ""));
  8305. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Path_MainImage", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Path_MainImage", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8306. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Active", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Active", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8307. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_manufacturer", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_manufacturer", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8308. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8309. this._adapter.UpdateCommand.Connection = this.Connection;
  8310. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Product] SET [ID] = @ID, [Title] = @Title, [Cost] = @Cost, [Description] = @Description, [Path_MainImage] = @Path_MainImage, [Active] = @Active, [ID_manufacturer] = @ID_manufacturer WHERE (([ID] = @Original_ID) AND ([Cost] = @Original_Cost) AND ([Active] = @Original_Active) AND ((@IsNull_ID_manufacturer = 1 AND [ID_manufacturer] IS NULL) OR ([ID_manufacturer] = @Original_ID_manufacturer)));
  8311. SELECT ID, Title, Cost, Description, Path_MainImage, Active, ID_manufacturer FROM Product WHERE (ID = @ID)";
  8312. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8313. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8314. 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, "", "", ""));
  8315. 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, "", "", ""));
  8316. 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, "", "", ""));
  8317. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Path_MainImage", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Path_MainImage", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8318. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Active", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Active", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8319. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_manufacturer", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_manufacturer", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8320. 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, "", "", ""));
  8321. 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, "", "", ""));
  8322. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Active", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Active", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8323. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ID_manufacturer", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_manufacturer", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8324. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_manufacturer", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_manufacturer", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8325. }
  8326. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8327. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8328. private void InitConnection() {
  8329. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8330. this._connection.ConnectionString = global::Бархатные_бровки_Gebel.Properties.Settings.Default.BB_GebelConnectionString;
  8331. }
  8332. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8333. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8334. private void InitCommandCollection() {
  8335. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8336. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8337. this._commandCollection[0].Connection = this.Connection;
  8338. this._commandCollection[0].CommandText = "SELECT ID, Title, Cost, Description, Path_MainImage, Active, ID_manufacturer FROM" +
  8339. " dbo.Product";
  8340. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8341. }
  8342. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8343. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8344. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8345. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8346. public virtual int Fill(BB_GebelDataSet.ProductDataTable dataTable) {
  8347. this.Adapter.SelectCommand = this.CommandCollection[0];
  8348. if ((this.ClearBeforeFill == true)) {
  8349. dataTable.Clear();
  8350. }
  8351. int returnValue = this.Adapter.Fill(dataTable);
  8352. return returnValue;
  8353. }
  8354. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8355. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8356. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8357. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8358. public virtual BB_GebelDataSet.ProductDataTable GetData() {
  8359. this.Adapter.SelectCommand = this.CommandCollection[0];
  8360. BB_GebelDataSet.ProductDataTable dataTable = new BB_GebelDataSet.ProductDataTable();
  8361. this.Adapter.Fill(dataTable);
  8362. return dataTable;
  8363. }
  8364. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8365. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8366. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8367. public virtual int Update(BB_GebelDataSet.ProductDataTable dataTable) {
  8368. return this.Adapter.Update(dataTable);
  8369. }
  8370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8371. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8372. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8373. public virtual int Update(BB_GebelDataSet dataSet) {
  8374. return this.Adapter.Update(dataSet, "Product");
  8375. }
  8376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8378. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8379. public virtual int Update(global::System.Data.DataRow dataRow) {
  8380. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8381. dataRow});
  8382. }
  8383. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8384. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8385. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8386. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8387. return this.Adapter.Update(dataRows);
  8388. }
  8389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8390. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8391. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8392. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8393. public virtual int Delete(int Original_ID, decimal Original_Cost, bool Original_Active, global::System.Nullable<int> Original_ID_manufacturer) {
  8394. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  8395. this.Adapter.DeleteCommand.Parameters[1].Value = ((decimal)(Original_Cost));
  8396. this.Adapter.DeleteCommand.Parameters[2].Value = ((bool)(Original_Active));
  8397. if ((Original_ID_manufacturer.HasValue == true)) {
  8398. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  8399. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_ID_manufacturer.Value));
  8400. }
  8401. else {
  8402. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  8403. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  8404. }
  8405. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8406. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8407. != global::System.Data.ConnectionState.Open)) {
  8408. this.Adapter.DeleteCommand.Connection.Open();
  8409. }
  8410. try {
  8411. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8412. return returnValue;
  8413. }
  8414. finally {
  8415. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8416. this.Adapter.DeleteCommand.Connection.Close();
  8417. }
  8418. }
  8419. }
  8420. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8421. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8422. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8423. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8424. public virtual int Insert(int ID, string Title, decimal Cost, string Description, string Path_MainImage, bool Active, global::System.Nullable<int> ID_manufacturer) {
  8425. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ID));
  8426. if ((Title == null)) {
  8427. throw new global::System.ArgumentNullException("Title");
  8428. }
  8429. else {
  8430. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Title));
  8431. }
  8432. this.Adapter.InsertCommand.Parameters[2].Value = ((decimal)(Cost));
  8433. if ((Description == null)) {
  8434. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  8435. }
  8436. else {
  8437. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Description));
  8438. }
  8439. if ((Path_MainImage == null)) {
  8440. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  8441. }
  8442. else {
  8443. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Path_MainImage));
  8444. }
  8445. this.Adapter.InsertCommand.Parameters[5].Value = ((bool)(Active));
  8446. if ((ID_manufacturer.HasValue == true)) {
  8447. this.Adapter.InsertCommand.Parameters[6].Value = ((int)(ID_manufacturer.Value));
  8448. }
  8449. else {
  8450. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  8451. }
  8452. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8453. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8454. != global::System.Data.ConnectionState.Open)) {
  8455. this.Adapter.InsertCommand.Connection.Open();
  8456. }
  8457. try {
  8458. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8459. return returnValue;
  8460. }
  8461. finally {
  8462. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8463. this.Adapter.InsertCommand.Connection.Close();
  8464. }
  8465. }
  8466. }
  8467. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8468. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8469. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8470. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8471. public virtual int Update(int ID, string Title, decimal Cost, string Description, string Path_MainImage, bool Active, global::System.Nullable<int> ID_manufacturer, int Original_ID, decimal Original_Cost, bool Original_Active, global::System.Nullable<int> Original_ID_manufacturer) {
  8472. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ID));
  8473. if ((Title == null)) {
  8474. throw new global::System.ArgumentNullException("Title");
  8475. }
  8476. else {
  8477. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Title));
  8478. }
  8479. this.Adapter.UpdateCommand.Parameters[2].Value = ((decimal)(Cost));
  8480. if ((Description == null)) {
  8481. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  8482. }
  8483. else {
  8484. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Description));
  8485. }
  8486. if ((Path_MainImage == null)) {
  8487. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  8488. }
  8489. else {
  8490. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Path_MainImage));
  8491. }
  8492. this.Adapter.UpdateCommand.Parameters[5].Value = ((bool)(Active));
  8493. if ((ID_manufacturer.HasValue == true)) {
  8494. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(ID_manufacturer.Value));
  8495. }
  8496. else {
  8497. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  8498. }
  8499. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_ID));
  8500. this.Adapter.UpdateCommand.Parameters[8].Value = ((decimal)(Original_Cost));
  8501. this.Adapter.UpdateCommand.Parameters[9].Value = ((bool)(Original_Active));
  8502. if ((Original_ID_manufacturer.HasValue == true)) {
  8503. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  8504. this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(Original_ID_manufacturer.Value));
  8505. }
  8506. else {
  8507. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  8508. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  8509. }
  8510. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8511. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8512. != global::System.Data.ConnectionState.Open)) {
  8513. this.Adapter.UpdateCommand.Connection.Open();
  8514. }
  8515. try {
  8516. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8517. return returnValue;
  8518. }
  8519. finally {
  8520. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8521. this.Adapter.UpdateCommand.Connection.Close();
  8522. }
  8523. }
  8524. }
  8525. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8526. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8527. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8528. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8529. public virtual int Update(string Title, decimal Cost, string Description, string Path_MainImage, bool Active, global::System.Nullable<int> ID_manufacturer, int Original_ID, decimal Original_Cost, bool Original_Active, global::System.Nullable<int> Original_ID_manufacturer) {
  8530. return this.Update(Original_ID, Title, Cost, Description, Path_MainImage, Active, ID_manufacturer, Original_ID, Original_Cost, Original_Active, Original_ID_manufacturer);
  8531. }
  8532. }
  8533. /// <summary>
  8534. ///Represents the connection and commands used to retrieve and save data.
  8535. ///</summary>
  8536. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8537. [global::System.ComponentModel.ToolboxItem(true)]
  8538. [global::System.ComponentModel.DataObjectAttribute(true)]
  8539. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8540. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8541. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8542. public partial class SaleTableAdapter : global::System.ComponentModel.Component {
  8543. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8544. private global::System.Data.SqlClient.SqlConnection _connection;
  8545. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8546. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8547. private bool _clearBeforeFill;
  8548. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8549. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8550. public SaleTableAdapter() {
  8551. this.ClearBeforeFill = true;
  8552. }
  8553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8555. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8556. get {
  8557. if ((this._adapter == null)) {
  8558. this.InitAdapter();
  8559. }
  8560. return this._adapter;
  8561. }
  8562. }
  8563. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8564. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8565. internal global::System.Data.SqlClient.SqlConnection Connection {
  8566. get {
  8567. if ((this._connection == null)) {
  8568. this.InitConnection();
  8569. }
  8570. return this._connection;
  8571. }
  8572. set {
  8573. this._connection = value;
  8574. if ((this.Adapter.InsertCommand != null)) {
  8575. this.Adapter.InsertCommand.Connection = value;
  8576. }
  8577. if ((this.Adapter.DeleteCommand != null)) {
  8578. this.Adapter.DeleteCommand.Connection = value;
  8579. }
  8580. if ((this.Adapter.UpdateCommand != null)) {
  8581. this.Adapter.UpdateCommand.Connection = value;
  8582. }
  8583. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8584. if ((this.CommandCollection[i] != null)) {
  8585. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8586. }
  8587. }
  8588. }
  8589. }
  8590. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8591. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8592. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8593. get {
  8594. return this._transaction;
  8595. }
  8596. set {
  8597. this._transaction = value;
  8598. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8599. this.CommandCollection[i].Transaction = this._transaction;
  8600. }
  8601. if (((this.Adapter != null)
  8602. && (this.Adapter.DeleteCommand != null))) {
  8603. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8604. }
  8605. if (((this.Adapter != null)
  8606. && (this.Adapter.InsertCommand != null))) {
  8607. this.Adapter.InsertCommand.Transaction = this._transaction;
  8608. }
  8609. if (((this.Adapter != null)
  8610. && (this.Adapter.UpdateCommand != null))) {
  8611. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8612. }
  8613. }
  8614. }
  8615. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8616. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8617. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8618. get {
  8619. if ((this._commandCollection == null)) {
  8620. this.InitCommandCollection();
  8621. }
  8622. return this._commandCollection;
  8623. }
  8624. }
  8625. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8626. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8627. public bool ClearBeforeFill {
  8628. get {
  8629. return this._clearBeforeFill;
  8630. }
  8631. set {
  8632. this._clearBeforeFill = value;
  8633. }
  8634. }
  8635. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8636. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8637. private void InitAdapter() {
  8638. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8639. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8640. tableMapping.SourceTable = "Table";
  8641. tableMapping.DataSetTable = "Sale";
  8642. tableMapping.ColumnMappings.Add("ID", "ID");
  8643. tableMapping.ColumnMappings.Add("Date_Sale", "Date_Sale");
  8644. tableMapping.ColumnMappings.Add("ID_Product", "ID_Product");
  8645. tableMapping.ColumnMappings.Add("Quantity", "Quantity");
  8646. tableMapping.ColumnMappings.Add("ID_client_service", "ID_client_service");
  8647. this._adapter.TableMappings.Add(tableMapping);
  8648. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8649. this._adapter.DeleteCommand.Connection = this.Connection;
  8650. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Sale] WHERE (([ID] = @Original_ID) AND ([Date_Sale] = @Original_Date_Sale) AND ([ID_Product] = @Original_ID_Product) AND ([Quantity] = @Original_Quantity) AND ((@IsNull_ID_client_service = 1 AND [ID_client_service] IS NULL) OR ([ID_client_service] = @Original_ID_client_service)))";
  8651. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8652. 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, "", "", ""));
  8653. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Date_Sale", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Date_Sale", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8654. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Product", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Product", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8655. 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, "", "", ""));
  8656. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ID_client_service", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_client_service", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8657. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_client_service", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_client_service", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8658. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8659. this._adapter.InsertCommand.Connection = this.Connection;
  8660. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Sale] ([ID], [Date_Sale], [ID_Product], [Quantity], [ID_client" +
  8661. "_service]) VALUES (@ID, @Date_Sale, @ID_Product, @Quantity, @ID_client_service);" +
  8662. "\r\nSELECT ID, Date_Sale, ID_Product, Quantity, ID_client_service FROM Sale WHERE " +
  8663. "(ID = @ID)";
  8664. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8665. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8666. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Date_Sale", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Date_Sale", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8667. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Product", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Product", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8668. 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, "", "", ""));
  8669. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_client_service", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_client_service", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8670. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8671. this._adapter.UpdateCommand.Connection = this.Connection;
  8672. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Sale] SET [ID] = @ID, [Date_Sale] = @Date_Sale, [ID_Product] = @ID_Product, [Quantity] = @Quantity, [ID_client_service] = @ID_client_service WHERE (([ID] = @Original_ID) AND ([Date_Sale] = @Original_Date_Sale) AND ([ID_Product] = @Original_ID_Product) AND ([Quantity] = @Original_Quantity) AND ((@IsNull_ID_client_service = 1 AND [ID_client_service] IS NULL) OR ([ID_client_service] = @Original_ID_client_service)));
  8673. SELECT ID, Date_Sale, ID_Product, Quantity, ID_client_service FROM Sale WHERE (ID = @ID)";
  8674. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8675. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8676. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Date_Sale", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Date_Sale", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8677. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Product", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Product", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8678. 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, "", "", ""));
  8679. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_client_service", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_client_service", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8680. 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, "", "", ""));
  8681. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Date_Sale", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Date_Sale", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8682. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Product", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Product", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8683. 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, "", "", ""));
  8684. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ID_client_service", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_client_service", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8685. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_client_service", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_client_service", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8686. }
  8687. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8688. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8689. private void InitConnection() {
  8690. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8691. this._connection.ConnectionString = global::Бархатные_бровки_Gebel.Properties.Settings.Default.BB_GebelConnectionString;
  8692. }
  8693. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8694. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8695. private void InitCommandCollection() {
  8696. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8697. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8698. this._commandCollection[0].Connection = this.Connection;
  8699. this._commandCollection[0].CommandText = "SELECT ID, Date_Sale, ID_Product, Quantity, ID_client_service FROM dbo.Sale";
  8700. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8701. }
  8702. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8703. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8704. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8705. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8706. public virtual int Fill(BB_GebelDataSet.SaleDataTable dataTable) {
  8707. this.Adapter.SelectCommand = this.CommandCollection[0];
  8708. if ((this.ClearBeforeFill == true)) {
  8709. dataTable.Clear();
  8710. }
  8711. int returnValue = this.Adapter.Fill(dataTable);
  8712. return returnValue;
  8713. }
  8714. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8715. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8716. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8717. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8718. public virtual BB_GebelDataSet.SaleDataTable GetData() {
  8719. this.Adapter.SelectCommand = this.CommandCollection[0];
  8720. BB_GebelDataSet.SaleDataTable dataTable = new BB_GebelDataSet.SaleDataTable();
  8721. this.Adapter.Fill(dataTable);
  8722. return dataTable;
  8723. }
  8724. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8725. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8726. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8727. public virtual int Update(BB_GebelDataSet.SaleDataTable dataTable) {
  8728. return this.Adapter.Update(dataTable);
  8729. }
  8730. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8731. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8732. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8733. public virtual int Update(BB_GebelDataSet dataSet) {
  8734. return this.Adapter.Update(dataSet, "Sale");
  8735. }
  8736. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8737. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8738. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8739. public virtual int Update(global::System.Data.DataRow dataRow) {
  8740. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8741. dataRow});
  8742. }
  8743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8745. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8746. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8747. return this.Adapter.Update(dataRows);
  8748. }
  8749. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8750. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8751. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8752. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8753. public virtual int Delete(int Original_ID, System.DateTime Original_Date_Sale, int Original_ID_Product, int Original_Quantity, global::System.Nullable<int> Original_ID_client_service) {
  8754. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  8755. this.Adapter.DeleteCommand.Parameters[1].Value = ((System.DateTime)(Original_Date_Sale));
  8756. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_ID_Product));
  8757. this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_Quantity));
  8758. if ((Original_ID_client_service.HasValue == true)) {
  8759. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
  8760. this.Adapter.DeleteCommand.Parameters[5].Value = ((int)(Original_ID_client_service.Value));
  8761. }
  8762. else {
  8763. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
  8764. this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
  8765. }
  8766. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8767. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8768. != global::System.Data.ConnectionState.Open)) {
  8769. this.Adapter.DeleteCommand.Connection.Open();
  8770. }
  8771. try {
  8772. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8773. return returnValue;
  8774. }
  8775. finally {
  8776. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8777. this.Adapter.DeleteCommand.Connection.Close();
  8778. }
  8779. }
  8780. }
  8781. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8782. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8783. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8784. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8785. public virtual int Insert(int ID, System.DateTime Date_Sale, int ID_Product, int Quantity, global::System.Nullable<int> ID_client_service) {
  8786. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ID));
  8787. this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(Date_Sale));
  8788. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(ID_Product));
  8789. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(Quantity));
  8790. if ((ID_client_service.HasValue == true)) {
  8791. this.Adapter.InsertCommand.Parameters[4].Value = ((int)(ID_client_service.Value));
  8792. }
  8793. else {
  8794. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  8795. }
  8796. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8797. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8798. != global::System.Data.ConnectionState.Open)) {
  8799. this.Adapter.InsertCommand.Connection.Open();
  8800. }
  8801. try {
  8802. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8803. return returnValue;
  8804. }
  8805. finally {
  8806. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8807. this.Adapter.InsertCommand.Connection.Close();
  8808. }
  8809. }
  8810. }
  8811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8812. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8813. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8814. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8815. public virtual int Update(int ID, System.DateTime Date_Sale, int ID_Product, int Quantity, global::System.Nullable<int> ID_client_service, int Original_ID, System.DateTime Original_Date_Sale, int Original_ID_Product, int Original_Quantity, global::System.Nullable<int> Original_ID_client_service) {
  8816. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ID));
  8817. this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(Date_Sale));
  8818. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(ID_Product));
  8819. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Quantity));
  8820. if ((ID_client_service.HasValue == true)) {
  8821. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(ID_client_service.Value));
  8822. }
  8823. else {
  8824. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  8825. }
  8826. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_ID));
  8827. this.Adapter.UpdateCommand.Parameters[6].Value = ((System.DateTime)(Original_Date_Sale));
  8828. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_ID_Product));
  8829. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_Quantity));
  8830. if ((Original_ID_client_service.HasValue == true)) {
  8831. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  8832. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_ID_client_service.Value));
  8833. }
  8834. else {
  8835. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  8836. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  8837. }
  8838. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8839. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8840. != global::System.Data.ConnectionState.Open)) {
  8841. this.Adapter.UpdateCommand.Connection.Open();
  8842. }
  8843. try {
  8844. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8845. return returnValue;
  8846. }
  8847. finally {
  8848. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8849. this.Adapter.UpdateCommand.Connection.Close();
  8850. }
  8851. }
  8852. }
  8853. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8854. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8855. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8856. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8857. public virtual int Update(System.DateTime Date_Sale, int ID_Product, int Quantity, global::System.Nullable<int> ID_client_service, int Original_ID, System.DateTime Original_Date_Sale, int Original_ID_Product, int Original_Quantity, global::System.Nullable<int> Original_ID_client_service) {
  8858. return this.Update(Original_ID, Date_Sale, ID_Product, Quantity, ID_client_service, Original_ID, Original_Date_Sale, Original_ID_Product, Original_Quantity, Original_ID_client_service);
  8859. }
  8860. }
  8861. /// <summary>
  8862. ///Represents the connection and commands used to retrieve and save data.
  8863. ///</summary>
  8864. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8865. [global::System.ComponentModel.ToolboxItem(true)]
  8866. [global::System.ComponentModel.DataObjectAttribute(true)]
  8867. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8868. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8869. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8870. public partial class serviceTableAdapter : global::System.ComponentModel.Component {
  8871. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8872. private global::System.Data.SqlClient.SqlConnection _connection;
  8873. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8874. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8875. private bool _clearBeforeFill;
  8876. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8877. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8878. public serviceTableAdapter() {
  8879. this.ClearBeforeFill = true;
  8880. }
  8881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8883. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8884. get {
  8885. if ((this._adapter == null)) {
  8886. this.InitAdapter();
  8887. }
  8888. return this._adapter;
  8889. }
  8890. }
  8891. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8892. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8893. internal global::System.Data.SqlClient.SqlConnection Connection {
  8894. get {
  8895. if ((this._connection == null)) {
  8896. this.InitConnection();
  8897. }
  8898. return this._connection;
  8899. }
  8900. set {
  8901. this._connection = value;
  8902. if ((this.Adapter.InsertCommand != null)) {
  8903. this.Adapter.InsertCommand.Connection = value;
  8904. }
  8905. if ((this.Adapter.DeleteCommand != null)) {
  8906. this.Adapter.DeleteCommand.Connection = value;
  8907. }
  8908. if ((this.Adapter.UpdateCommand != null)) {
  8909. this.Adapter.UpdateCommand.Connection = value;
  8910. }
  8911. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8912. if ((this.CommandCollection[i] != null)) {
  8913. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8914. }
  8915. }
  8916. }
  8917. }
  8918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8919. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8920. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8921. get {
  8922. return this._transaction;
  8923. }
  8924. set {
  8925. this._transaction = value;
  8926. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8927. this.CommandCollection[i].Transaction = this._transaction;
  8928. }
  8929. if (((this.Adapter != null)
  8930. && (this.Adapter.DeleteCommand != null))) {
  8931. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8932. }
  8933. if (((this.Adapter != null)
  8934. && (this.Adapter.InsertCommand != null))) {
  8935. this.Adapter.InsertCommand.Transaction = this._transaction;
  8936. }
  8937. if (((this.Adapter != null)
  8938. && (this.Adapter.UpdateCommand != null))) {
  8939. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8940. }
  8941. }
  8942. }
  8943. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8944. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8945. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8946. get {
  8947. if ((this._commandCollection == null)) {
  8948. this.InitCommandCollection();
  8949. }
  8950. return this._commandCollection;
  8951. }
  8952. }
  8953. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8954. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8955. public bool ClearBeforeFill {
  8956. get {
  8957. return this._clearBeforeFill;
  8958. }
  8959. set {
  8960. this._clearBeforeFill = value;
  8961. }
  8962. }
  8963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8965. private void InitAdapter() {
  8966. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8967. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8968. tableMapping.SourceTable = "Table";
  8969. tableMapping.DataSetTable = "service";
  8970. tableMapping.ColumnMappings.Add("ID", "ID");
  8971. tableMapping.ColumnMappings.Add("Наименование_услуги", "Наименование_услуги");
  8972. tableMapping.ColumnMappings.Add("Главное_изображение", "Главное_изображение");
  8973. tableMapping.ColumnMappings.Add("Длительность", "Длительность");
  8974. tableMapping.ColumnMappings.Add("Стоимость", "Стоимость");
  8975. tableMapping.ColumnMappings.Add("Действующая_скидка", "Действующая_скидка");
  8976. this._adapter.TableMappings.Add(tableMapping);
  8977. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8978. this._adapter.DeleteCommand.Connection = this.Connection;
  8979. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[service] WHERE (([ID] = @Original_ID) AND ([Наименование_услуги] = @Original_Наименование_услуги) AND ([Главное_изображение] = @Original_Главное_изображение) AND ([Длительность] = @Original_Длительность) AND ([Стоимость] = @Original_Стоимость) AND ([Действующая_скидка] = @Original_Действующая_скидка))";
  8980. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8981. 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, "", "", ""));
  8982. 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, "", "", ""));
  8983. 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, "", "", ""));
  8984. 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, "", "", ""));
  8985. 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, "", "", ""));
  8986. 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, "", "", ""));
  8987. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8988. this._adapter.InsertCommand.Connection = this.Connection;
  8989. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[service] ([ID], [Наименование_услуги], [Главное_изображение], [Длительность], [Стоимость], [Действующая_скидка]) VALUES (@ID, @Наименование_услуги, @Главное_изображение, @Длительность, @Стоимость, @Действующая_скидка);
  8990. SELECT ID, Наименование_услуги, Главное_изображение, Длительность, Стоимость, Действующая_скидка FROM service WHERE (ID = @ID)";
  8991. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8992. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8993. 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, "", "", ""));
  8994. 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, "", "", ""));
  8995. 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, "", "", ""));
  8996. 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, "", "", ""));
  8997. 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, "", "", ""));
  8998. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8999. this._adapter.UpdateCommand.Connection = this.Connection;
  9000. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[service] SET [ID] = @ID, [Наименование_услуги] = @Наименование_услуги, [Главное_изображение] = @Главное_изображение, [Длительность] = @Длительность, [Стоимость] = @Стоимость, [Действующая_скидка] = @Действующая_скидка WHERE (([ID] = @Original_ID) AND ([Наименование_услуги] = @Original_Наименование_услуги) AND ([Главное_изображение] = @Original_Главное_изображение) AND ([Длительность] = @Original_Длительность) AND ([Стоимость] = @Original_Стоимость) AND ([Действующая_скидка] = @Original_Действующая_скидка));
  9001. SELECT ID, Наименование_услуги, Главное_изображение, Длительность, Стоимость, Действующая_скидка FROM service WHERE (ID = @ID)";
  9002. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9003. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9004. 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, "", "", ""));
  9005. 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, "", "", ""));
  9006. 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, "", "", ""));
  9007. 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, "", "", ""));
  9008. 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, "", "", ""));
  9009. 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, "", "", ""));
  9010. 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, "", "", ""));
  9011. 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, "", "", ""));
  9012. 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, "", "", ""));
  9013. 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, "", "", ""));
  9014. 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, "", "", ""));
  9015. }
  9016. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9017. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9018. private void InitConnection() {
  9019. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9020. this._connection.ConnectionString = global::Бархатные_бровки_Gebel.Properties.Settings.Default.BB_GebelConnectionString;
  9021. }
  9022. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9023. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9024. private void InitCommandCollection() {
  9025. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9026. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9027. this._commandCollection[0].Connection = this.Connection;
  9028. this._commandCollection[0].CommandText = "SELECT ID, Наименование_услуги, Главное_изображение, Длительность, Стоимость, Дей" +
  9029. "ствующая_скидка FROM dbo.service";
  9030. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9031. }
  9032. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9033. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9034. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9035. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9036. public virtual int Fill(BB_GebelDataSet.serviceDataTable dataTable) {
  9037. this.Adapter.SelectCommand = this.CommandCollection[0];
  9038. if ((this.ClearBeforeFill == true)) {
  9039. dataTable.Clear();
  9040. }
  9041. int returnValue = this.Adapter.Fill(dataTable);
  9042. return returnValue;
  9043. }
  9044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9046. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9047. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9048. public virtual BB_GebelDataSet.serviceDataTable GetData() {
  9049. this.Adapter.SelectCommand = this.CommandCollection[0];
  9050. BB_GebelDataSet.serviceDataTable dataTable = new BB_GebelDataSet.serviceDataTable();
  9051. this.Adapter.Fill(dataTable);
  9052. return dataTable;
  9053. }
  9054. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9055. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9056. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9057. public virtual int Update(BB_GebelDataSet.serviceDataTable dataTable) {
  9058. return this.Adapter.Update(dataTable);
  9059. }
  9060. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9061. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9062. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9063. public virtual int Update(BB_GebelDataSet dataSet) {
  9064. return this.Adapter.Update(dataSet, "service");
  9065. }
  9066. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9067. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9068. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9069. public virtual int Update(global::System.Data.DataRow dataRow) {
  9070. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9071. dataRow});
  9072. }
  9073. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9074. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9075. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9076. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9077. return this.Adapter.Update(dataRows);
  9078. }
  9079. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9080. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9081. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9082. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9083. public virtual int Delete(int Original_ID, string Original_Наименование_услуги, string Original_Главное_изображение, string Original_Длительность, string Original_Стоимость, string Original_Действующая_скидка) {
  9084. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  9085. if ((Original_Наименование_услуги == null)) {
  9086. throw new global::System.ArgumentNullException("Original_Наименование_услуги");
  9087. }
  9088. else {
  9089. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Наименование_услуги));
  9090. }
  9091. if ((Original_Главное_изображение == null)) {
  9092. throw new global::System.ArgumentNullException("Original_Главное_изображение");
  9093. }
  9094. else {
  9095. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Главное_изображение));
  9096. }
  9097. if ((Original_Длительность == null)) {
  9098. throw new global::System.ArgumentNullException("Original_Длительность");
  9099. }
  9100. else {
  9101. this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_Длительность));
  9102. }
  9103. if ((Original_Стоимость == null)) {
  9104. throw new global::System.ArgumentNullException("Original_Стоимость");
  9105. }
  9106. else {
  9107. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Стоимость));
  9108. }
  9109. if ((Original_Действующая_скидка == null)) {
  9110. throw new global::System.ArgumentNullException("Original_Действующая_скидка");
  9111. }
  9112. else {
  9113. this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_Действующая_скидка));
  9114. }
  9115. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9116. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9117. != global::System.Data.ConnectionState.Open)) {
  9118. this.Adapter.DeleteCommand.Connection.Open();
  9119. }
  9120. try {
  9121. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9122. return returnValue;
  9123. }
  9124. finally {
  9125. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9126. this.Adapter.DeleteCommand.Connection.Close();
  9127. }
  9128. }
  9129. }
  9130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9131. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9132. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9133. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9134. public virtual int Insert(int ID, string Наименование_услуги, string Главное_изображение, string Длительность, string Стоимость, string Действующая_скидка) {
  9135. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ID));
  9136. if ((Наименование_услуги == null)) {
  9137. throw new global::System.ArgumentNullException("Наименование_услуги");
  9138. }
  9139. else {
  9140. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Наименование_услуги));
  9141. }
  9142. if ((Главное_изображение == null)) {
  9143. throw new global::System.ArgumentNullException("Главное_изображение");
  9144. }
  9145. else {
  9146. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Главное_изображение));
  9147. }
  9148. if ((Длительность == null)) {
  9149. throw new global::System.ArgumentNullException("Длительность");
  9150. }
  9151. else {
  9152. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Длительность));
  9153. }
  9154. if ((Стоимость == null)) {
  9155. throw new global::System.ArgumentNullException("Стоимость");
  9156. }
  9157. else {
  9158. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Стоимость));
  9159. }
  9160. if ((Действующая_скидка == null)) {
  9161. throw new global::System.ArgumentNullException("Действующая_скидка");
  9162. }
  9163. else {
  9164. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Действующая_скидка));
  9165. }
  9166. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9167. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9168. != global::System.Data.ConnectionState.Open)) {
  9169. this.Adapter.InsertCommand.Connection.Open();
  9170. }
  9171. try {
  9172. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9173. return returnValue;
  9174. }
  9175. finally {
  9176. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9177. this.Adapter.InsertCommand.Connection.Close();
  9178. }
  9179. }
  9180. }
  9181. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9182. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9183. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9184. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9185. public virtual int Update(int ID, string Наименование_услуги, string Главное_изображение, string Длительность, string Стоимость, string Действующая_скидка, int Original_ID, string Original_Наименование_услуги, string Original_Главное_изображение, string Original_Длительность, string Original_Стоимость, string Original_Действующая_скидка) {
  9186. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ID));
  9187. if ((Наименование_услуги == null)) {
  9188. throw new global::System.ArgumentNullException("Наименование_услуги");
  9189. }
  9190. else {
  9191. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Наименование_услуги));
  9192. }
  9193. if ((Главное_изображение == null)) {
  9194. throw new global::System.ArgumentNullException("Главное_изображение");
  9195. }
  9196. else {
  9197. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Главное_изображение));
  9198. }
  9199. if ((Длительность == null)) {
  9200. throw new global::System.ArgumentNullException("Длительность");
  9201. }
  9202. else {
  9203. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Длительность));
  9204. }
  9205. if ((Стоимость == null)) {
  9206. throw new global::System.ArgumentNullException("Стоимость");
  9207. }
  9208. else {
  9209. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Стоимость));
  9210. }
  9211. if ((Действующая_скидка == null)) {
  9212. throw new global::System.ArgumentNullException("Действующая_скидка");
  9213. }
  9214. else {
  9215. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Действующая_скидка));
  9216. }
  9217. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ID));
  9218. if ((Original_Наименование_услуги == null)) {
  9219. throw new global::System.ArgumentNullException("Original_Наименование_услуги");
  9220. }
  9221. else {
  9222. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Наименование_услуги));
  9223. }
  9224. if ((Original_Главное_изображение == null)) {
  9225. throw new global::System.ArgumentNullException("Original_Главное_изображение");
  9226. }
  9227. else {
  9228. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_Главное_изображение));
  9229. }
  9230. if ((Original_Длительность == null)) {
  9231. throw new global::System.ArgumentNullException("Original_Длительность");
  9232. }
  9233. else {
  9234. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_Длительность));
  9235. }
  9236. if ((Original_Стоимость == null)) {
  9237. throw new global::System.ArgumentNullException("Original_Стоимость");
  9238. }
  9239. else {
  9240. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_Стоимость));
  9241. }
  9242. if ((Original_Действующая_скидка == null)) {
  9243. throw new global::System.ArgumentNullException("Original_Действующая_скидка");
  9244. }
  9245. else {
  9246. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_Действующая_скидка));
  9247. }
  9248. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9249. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9250. != global::System.Data.ConnectionState.Open)) {
  9251. this.Adapter.UpdateCommand.Connection.Open();
  9252. }
  9253. try {
  9254. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9255. return returnValue;
  9256. }
  9257. finally {
  9258. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9259. this.Adapter.UpdateCommand.Connection.Close();
  9260. }
  9261. }
  9262. }
  9263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9264. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9265. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9266. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9267. public virtual int Update(string Наименование_услуги, string Главное_изображение, string Длительность, string Стоимость, string Действующая_скидка, int Original_ID, string Original_Наименование_услуги, string Original_Главное_изображение, string Original_Длительность, string Original_Стоимость, string Original_Действующая_скидка) {
  9268. return this.Update(Original_ID, Наименование_услуги, Главное_изображение, Длительность, Стоимость, Действующая_скидка, Original_ID, Original_Наименование_услуги, Original_Главное_изображение, Original_Длительность, Original_Стоимость, Original_Действующая_скидка);
  9269. }
  9270. }
  9271. /// <summary>
  9272. ///Represents the connection and commands used to retrieve and save data.
  9273. ///</summary>
  9274. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9275. [global::System.ComponentModel.ToolboxItem(true)]
  9276. [global::System.ComponentModel.DataObjectAttribute(true)]
  9277. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9278. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9279. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9280. public partial class Service_photoTableAdapter : global::System.ComponentModel.Component {
  9281. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9282. private global::System.Data.SqlClient.SqlConnection _connection;
  9283. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9284. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9285. private bool _clearBeforeFill;
  9286. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9287. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9288. public Service_photoTableAdapter() {
  9289. this.ClearBeforeFill = true;
  9290. }
  9291. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9292. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9293. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9294. get {
  9295. if ((this._adapter == null)) {
  9296. this.InitAdapter();
  9297. }
  9298. return this._adapter;
  9299. }
  9300. }
  9301. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9302. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9303. internal global::System.Data.SqlClient.SqlConnection Connection {
  9304. get {
  9305. if ((this._connection == null)) {
  9306. this.InitConnection();
  9307. }
  9308. return this._connection;
  9309. }
  9310. set {
  9311. this._connection = value;
  9312. if ((this.Adapter.InsertCommand != null)) {
  9313. this.Adapter.InsertCommand.Connection = value;
  9314. }
  9315. if ((this.Adapter.DeleteCommand != null)) {
  9316. this.Adapter.DeleteCommand.Connection = value;
  9317. }
  9318. if ((this.Adapter.UpdateCommand != null)) {
  9319. this.Adapter.UpdateCommand.Connection = value;
  9320. }
  9321. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9322. if ((this.CommandCollection[i] != null)) {
  9323. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9324. }
  9325. }
  9326. }
  9327. }
  9328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9329. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9330. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9331. get {
  9332. return this._transaction;
  9333. }
  9334. set {
  9335. this._transaction = value;
  9336. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9337. this.CommandCollection[i].Transaction = this._transaction;
  9338. }
  9339. if (((this.Adapter != null)
  9340. && (this.Adapter.DeleteCommand != null))) {
  9341. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9342. }
  9343. if (((this.Adapter != null)
  9344. && (this.Adapter.InsertCommand != null))) {
  9345. this.Adapter.InsertCommand.Transaction = this._transaction;
  9346. }
  9347. if (((this.Adapter != null)
  9348. && (this.Adapter.UpdateCommand != null))) {
  9349. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9350. }
  9351. }
  9352. }
  9353. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9354. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9355. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9356. get {
  9357. if ((this._commandCollection == null)) {
  9358. this.InitCommandCollection();
  9359. }
  9360. return this._commandCollection;
  9361. }
  9362. }
  9363. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9364. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9365. public bool ClearBeforeFill {
  9366. get {
  9367. return this._clearBeforeFill;
  9368. }
  9369. set {
  9370. this._clearBeforeFill = value;
  9371. }
  9372. }
  9373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9374. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9375. private void InitAdapter() {
  9376. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9377. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9378. tableMapping.SourceTable = "Table";
  9379. tableMapping.DataSetTable = "Service photo";
  9380. tableMapping.ColumnMappings.Add("ID", "ID");
  9381. tableMapping.ColumnMappings.Add("ID_Service", "ID_Service");
  9382. tableMapping.ColumnMappings.Add("Path_photo", "Path_photo");
  9383. this._adapter.TableMappings.Add(tableMapping);
  9384. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9385. this._adapter.DeleteCommand.Connection = this.Connection;
  9386. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Service photo] WHERE (([ID] = @Original_ID) AND ([ID_Service] " +
  9387. "= @Original_ID_Service))";
  9388. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9389. 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, "", "", ""));
  9390. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Service", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Service", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9391. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9392. this._adapter.InsertCommand.Connection = this.Connection;
  9393. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Service photo] ([ID], [ID_Service], [Path_photo]) VALUES (@ID," +
  9394. " @ID_Service, @Path_photo);\r\nSELECT ID, ID_Service, Path_photo FROM [Service pho" +
  9395. "to] WHERE (ID = @ID)";
  9396. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9397. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9398. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Service", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Service", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9399. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Path_photo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Path_photo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9400. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9401. this._adapter.UpdateCommand.Connection = this.Connection;
  9402. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Service photo] SET [ID] = @ID, [ID_Service] = @ID_Service, [Path_ph" +
  9403. "oto] = @Path_photo WHERE (([ID] = @Original_ID) AND ([ID_Service] = @Original_ID" +
  9404. "_Service));\r\nSELECT ID, ID_Service, Path_photo FROM [Service photo] WHERE (ID = " +
  9405. "@ID)";
  9406. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9407. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9408. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Service", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Service", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9409. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Path_photo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Path_photo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9410. 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, "", "", ""));
  9411. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Service", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Service", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9412. }
  9413. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9414. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9415. private void InitConnection() {
  9416. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9417. this._connection.ConnectionString = global::Бархатные_бровки_Gebel.Properties.Settings.Default.BB_GebelConnectionString;
  9418. }
  9419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9421. private void InitCommandCollection() {
  9422. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9423. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9424. this._commandCollection[0].Connection = this.Connection;
  9425. this._commandCollection[0].CommandText = "SELECT ID, ID_Service, Path_photo FROM dbo.[Service photo]";
  9426. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9427. }
  9428. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9429. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9430. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9431. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9432. public virtual int Fill(BB_GebelDataSet.Service_photoDataTable dataTable) {
  9433. this.Adapter.SelectCommand = this.CommandCollection[0];
  9434. if ((this.ClearBeforeFill == true)) {
  9435. dataTable.Clear();
  9436. }
  9437. int returnValue = this.Adapter.Fill(dataTable);
  9438. return returnValue;
  9439. }
  9440. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9441. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9442. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9443. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9444. public virtual BB_GebelDataSet.Service_photoDataTable GetData() {
  9445. this.Adapter.SelectCommand = this.CommandCollection[0];
  9446. BB_GebelDataSet.Service_photoDataTable dataTable = new BB_GebelDataSet.Service_photoDataTable();
  9447. this.Adapter.Fill(dataTable);
  9448. return dataTable;
  9449. }
  9450. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9451. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9452. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9453. public virtual int Update(BB_GebelDataSet.Service_photoDataTable dataTable) {
  9454. return this.Adapter.Update(dataTable);
  9455. }
  9456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9457. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9458. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9459. public virtual int Update(BB_GebelDataSet dataSet) {
  9460. return this.Adapter.Update(dataSet, "Service photo");
  9461. }
  9462. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9463. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9464. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9465. public virtual int Update(global::System.Data.DataRow dataRow) {
  9466. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9467. dataRow});
  9468. }
  9469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9470. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9471. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9472. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9473. return this.Adapter.Update(dataRows);
  9474. }
  9475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9477. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9478. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9479. public virtual int Delete(int Original_ID, int Original_ID_Service) {
  9480. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  9481. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ID_Service));
  9482. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9483. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9484. != global::System.Data.ConnectionState.Open)) {
  9485. this.Adapter.DeleteCommand.Connection.Open();
  9486. }
  9487. try {
  9488. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9489. return returnValue;
  9490. }
  9491. finally {
  9492. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9493. this.Adapter.DeleteCommand.Connection.Close();
  9494. }
  9495. }
  9496. }
  9497. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9498. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9499. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9500. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9501. public virtual int Insert(int ID, int ID_Service, string Path_photo) {
  9502. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ID));
  9503. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(ID_Service));
  9504. if ((Path_photo == null)) {
  9505. throw new global::System.ArgumentNullException("Path_photo");
  9506. }
  9507. else {
  9508. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Path_photo));
  9509. }
  9510. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9511. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9512. != global::System.Data.ConnectionState.Open)) {
  9513. this.Adapter.InsertCommand.Connection.Open();
  9514. }
  9515. try {
  9516. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9517. return returnValue;
  9518. }
  9519. finally {
  9520. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9521. this.Adapter.InsertCommand.Connection.Close();
  9522. }
  9523. }
  9524. }
  9525. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9526. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9527. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9528. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9529. public virtual int Update(int ID, int ID_Service, string Path_photo, int Original_ID, int Original_ID_Service) {
  9530. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ID));
  9531. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(ID_Service));
  9532. if ((Path_photo == null)) {
  9533. throw new global::System.ArgumentNullException("Path_photo");
  9534. }
  9535. else {
  9536. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Path_photo));
  9537. }
  9538. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ID));
  9539. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_ID_Service));
  9540. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9541. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9542. != global::System.Data.ConnectionState.Open)) {
  9543. this.Adapter.UpdateCommand.Connection.Open();
  9544. }
  9545. try {
  9546. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9547. return returnValue;
  9548. }
  9549. finally {
  9550. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9551. this.Adapter.UpdateCommand.Connection.Close();
  9552. }
  9553. }
  9554. }
  9555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9556. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9557. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9558. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9559. public virtual int Update(int ID_Service, string Path_photo, int Original_ID, int Original_ID_Service) {
  9560. return this.Update(Original_ID, ID_Service, Path_photo, Original_ID, Original_ID_Service);
  9561. }
  9562. }
  9563. /// <summary>
  9564. ///Represents the connection and commands used to retrieve and save data.
  9565. ///</summary>
  9566. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9567. [global::System.ComponentModel.ToolboxItem(true)]
  9568. [global::System.ComponentModel.DataObjectAttribute(true)]
  9569. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9570. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9571. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9572. public partial class TagTableAdapter : global::System.ComponentModel.Component {
  9573. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9574. private global::System.Data.SqlClient.SqlConnection _connection;
  9575. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9576. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9577. private bool _clearBeforeFill;
  9578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9580. public TagTableAdapter() {
  9581. this.ClearBeforeFill = true;
  9582. }
  9583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9585. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9586. get {
  9587. if ((this._adapter == null)) {
  9588. this.InitAdapter();
  9589. }
  9590. return this._adapter;
  9591. }
  9592. }
  9593. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9594. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9595. internal global::System.Data.SqlClient.SqlConnection Connection {
  9596. get {
  9597. if ((this._connection == null)) {
  9598. this.InitConnection();
  9599. }
  9600. return this._connection;
  9601. }
  9602. set {
  9603. this._connection = value;
  9604. if ((this.Adapter.InsertCommand != null)) {
  9605. this.Adapter.InsertCommand.Connection = value;
  9606. }
  9607. if ((this.Adapter.DeleteCommand != null)) {
  9608. this.Adapter.DeleteCommand.Connection = value;
  9609. }
  9610. if ((this.Adapter.UpdateCommand != null)) {
  9611. this.Adapter.UpdateCommand.Connection = value;
  9612. }
  9613. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9614. if ((this.CommandCollection[i] != null)) {
  9615. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9616. }
  9617. }
  9618. }
  9619. }
  9620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9621. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9622. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9623. get {
  9624. return this._transaction;
  9625. }
  9626. set {
  9627. this._transaction = value;
  9628. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9629. this.CommandCollection[i].Transaction = this._transaction;
  9630. }
  9631. if (((this.Adapter != null)
  9632. && (this.Adapter.DeleteCommand != null))) {
  9633. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9634. }
  9635. if (((this.Adapter != null)
  9636. && (this.Adapter.InsertCommand != null))) {
  9637. this.Adapter.InsertCommand.Transaction = this._transaction;
  9638. }
  9639. if (((this.Adapter != null)
  9640. && (this.Adapter.UpdateCommand != null))) {
  9641. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9642. }
  9643. }
  9644. }
  9645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9646. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9647. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9648. get {
  9649. if ((this._commandCollection == null)) {
  9650. this.InitCommandCollection();
  9651. }
  9652. return this._commandCollection;
  9653. }
  9654. }
  9655. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9656. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9657. public bool ClearBeforeFill {
  9658. get {
  9659. return this._clearBeforeFill;
  9660. }
  9661. set {
  9662. this._clearBeforeFill = value;
  9663. }
  9664. }
  9665. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9666. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9667. private void InitAdapter() {
  9668. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9669. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9670. tableMapping.SourceTable = "Table";
  9671. tableMapping.DataSetTable = "Tag";
  9672. tableMapping.ColumnMappings.Add("ID", "ID");
  9673. tableMapping.ColumnMappings.Add("Title", "Title");
  9674. tableMapping.ColumnMappings.Add("Color", "Color");
  9675. this._adapter.TableMappings.Add(tableMapping);
  9676. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9677. this._adapter.DeleteCommand.Connection = this.Connection;
  9678. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Tag] WHERE (([ID] = @Original_ID))";
  9679. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9680. 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, "", "", ""));
  9681. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9682. this._adapter.InsertCommand.Connection = this.Connection;
  9683. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Tag] ([ID], [Title], [Color]) VALUES (@ID, @Title, @Color);\r\nS" +
  9684. "ELECT ID, Title, Color FROM Tag WHERE (ID = @ID)";
  9685. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9686. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9687. 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, "", "", ""));
  9688. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Color", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Color", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9689. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9690. this._adapter.UpdateCommand.Connection = this.Connection;
  9691. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Tag] SET [ID] = @ID, [Title] = @Title, [Color] = @Color WHERE (([ID" +
  9692. "] = @Original_ID));\r\nSELECT ID, Title, Color FROM Tag WHERE (ID = @ID)";
  9693. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9694. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9695. 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, "", "", ""));
  9696. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Color", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Color", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9697. 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, "", "", ""));
  9698. }
  9699. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9700. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9701. private void InitConnection() {
  9702. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9703. this._connection.ConnectionString = global::Бархатные_бровки_Gebel.Properties.Settings.Default.BB_GebelConnectionString;
  9704. }
  9705. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9706. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9707. private void InitCommandCollection() {
  9708. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9709. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9710. this._commandCollection[0].Connection = this.Connection;
  9711. this._commandCollection[0].CommandText = "SELECT ID, Title, Color FROM dbo.Tag";
  9712. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9713. }
  9714. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9715. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9716. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9717. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9718. public virtual int Fill(BB_GebelDataSet.TagDataTable dataTable) {
  9719. this.Adapter.SelectCommand = this.CommandCollection[0];
  9720. if ((this.ClearBeforeFill == true)) {
  9721. dataTable.Clear();
  9722. }
  9723. int returnValue = this.Adapter.Fill(dataTable);
  9724. return returnValue;
  9725. }
  9726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9728. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9729. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9730. public virtual BB_GebelDataSet.TagDataTable GetData() {
  9731. this.Adapter.SelectCommand = this.CommandCollection[0];
  9732. BB_GebelDataSet.TagDataTable dataTable = new BB_GebelDataSet.TagDataTable();
  9733. this.Adapter.Fill(dataTable);
  9734. return dataTable;
  9735. }
  9736. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9737. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9738. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9739. public virtual int Update(BB_GebelDataSet.TagDataTable dataTable) {
  9740. return this.Adapter.Update(dataTable);
  9741. }
  9742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9743. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9744. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9745. public virtual int Update(BB_GebelDataSet dataSet) {
  9746. return this.Adapter.Update(dataSet, "Tag");
  9747. }
  9748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9750. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9751. public virtual int Update(global::System.Data.DataRow dataRow) {
  9752. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9753. dataRow});
  9754. }
  9755. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9756. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9757. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9758. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9759. return this.Adapter.Update(dataRows);
  9760. }
  9761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9763. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9764. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9765. public virtual int Delete(int Original_ID) {
  9766. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  9767. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9768. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9769. != global::System.Data.ConnectionState.Open)) {
  9770. this.Adapter.DeleteCommand.Connection.Open();
  9771. }
  9772. try {
  9773. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9774. return returnValue;
  9775. }
  9776. finally {
  9777. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9778. this.Adapter.DeleteCommand.Connection.Close();
  9779. }
  9780. }
  9781. }
  9782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9783. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9784. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9785. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9786. public virtual int Insert(int ID, string Title, string Color) {
  9787. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ID));
  9788. if ((Title == null)) {
  9789. throw new global::System.ArgumentNullException("Title");
  9790. }
  9791. else {
  9792. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Title));
  9793. }
  9794. if ((Color == null)) {
  9795. throw new global::System.ArgumentNullException("Color");
  9796. }
  9797. else {
  9798. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Color));
  9799. }
  9800. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9801. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9802. != global::System.Data.ConnectionState.Open)) {
  9803. this.Adapter.InsertCommand.Connection.Open();
  9804. }
  9805. try {
  9806. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9807. return returnValue;
  9808. }
  9809. finally {
  9810. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9811. this.Adapter.InsertCommand.Connection.Close();
  9812. }
  9813. }
  9814. }
  9815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9816. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9817. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9818. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9819. public virtual int Update(int ID, string Title, string Color, int Original_ID) {
  9820. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ID));
  9821. if ((Title == null)) {
  9822. throw new global::System.ArgumentNullException("Title");
  9823. }
  9824. else {
  9825. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Title));
  9826. }
  9827. if ((Color == null)) {
  9828. throw new global::System.ArgumentNullException("Color");
  9829. }
  9830. else {
  9831. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Color));
  9832. }
  9833. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ID));
  9834. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9835. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9836. != global::System.Data.ConnectionState.Open)) {
  9837. this.Adapter.UpdateCommand.Connection.Open();
  9838. }
  9839. try {
  9840. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9841. return returnValue;
  9842. }
  9843. finally {
  9844. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9845. this.Adapter.UpdateCommand.Connection.Close();
  9846. }
  9847. }
  9848. }
  9849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9850. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9851. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9852. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9853. public virtual int Update(string Title, string Color, int Original_ID) {
  9854. return this.Update(Original_ID, Title, Color, Original_ID);
  9855. }
  9856. }
  9857. /// <summary>
  9858. ///Represents the connection and commands used to retrieve and save data.
  9859. ///</summary>
  9860. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9861. [global::System.ComponentModel.ToolboxItem(true)]
  9862. [global::System.ComponentModel.DataObjectAttribute(true)]
  9863. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9864. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9865. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9866. public partial class Tag_clientTableAdapter : global::System.ComponentModel.Component {
  9867. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9868. private global::System.Data.SqlClient.SqlConnection _connection;
  9869. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9870. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9871. private bool _clearBeforeFill;
  9872. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9873. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9874. public Tag_clientTableAdapter() {
  9875. this.ClearBeforeFill = true;
  9876. }
  9877. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9878. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9879. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9880. get {
  9881. if ((this._adapter == null)) {
  9882. this.InitAdapter();
  9883. }
  9884. return this._adapter;
  9885. }
  9886. }
  9887. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9888. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9889. internal global::System.Data.SqlClient.SqlConnection Connection {
  9890. get {
  9891. if ((this._connection == null)) {
  9892. this.InitConnection();
  9893. }
  9894. return this._connection;
  9895. }
  9896. set {
  9897. this._connection = value;
  9898. if ((this.Adapter.InsertCommand != null)) {
  9899. this.Adapter.InsertCommand.Connection = value;
  9900. }
  9901. if ((this.Adapter.DeleteCommand != null)) {
  9902. this.Adapter.DeleteCommand.Connection = value;
  9903. }
  9904. if ((this.Adapter.UpdateCommand != null)) {
  9905. this.Adapter.UpdateCommand.Connection = value;
  9906. }
  9907. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9908. if ((this.CommandCollection[i] != null)) {
  9909. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9910. }
  9911. }
  9912. }
  9913. }
  9914. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9915. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9916. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9917. get {
  9918. return this._transaction;
  9919. }
  9920. set {
  9921. this._transaction = value;
  9922. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9923. this.CommandCollection[i].Transaction = this._transaction;
  9924. }
  9925. if (((this.Adapter != null)
  9926. && (this.Adapter.DeleteCommand != null))) {
  9927. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9928. }
  9929. if (((this.Adapter != null)
  9930. && (this.Adapter.InsertCommand != null))) {
  9931. this.Adapter.InsertCommand.Transaction = this._transaction;
  9932. }
  9933. if (((this.Adapter != null)
  9934. && (this.Adapter.UpdateCommand != null))) {
  9935. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9936. }
  9937. }
  9938. }
  9939. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9940. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9941. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9942. get {
  9943. if ((this._commandCollection == null)) {
  9944. this.InitCommandCollection();
  9945. }
  9946. return this._commandCollection;
  9947. }
  9948. }
  9949. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9950. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9951. public bool ClearBeforeFill {
  9952. get {
  9953. return this._clearBeforeFill;
  9954. }
  9955. set {
  9956. this._clearBeforeFill = value;
  9957. }
  9958. }
  9959. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9960. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9961. private void InitAdapter() {
  9962. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9963. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9964. tableMapping.SourceTable = "Table";
  9965. tableMapping.DataSetTable = "Tag client";
  9966. tableMapping.ColumnMappings.Add("ID_client", "ID_client");
  9967. tableMapping.ColumnMappings.Add("ID_Tag", "ID_Tag");
  9968. this._adapter.TableMappings.Add(tableMapping);
  9969. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9970. this._adapter.DeleteCommand.Connection = this.Connection;
  9971. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Tag client] WHERE (([ID_client] = @Original_ID_client) AND ([I" +
  9972. "D_Tag] = @Original_ID_Tag))";
  9973. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9974. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_client", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_client", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9975. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Tag", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Tag", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9976. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9977. this._adapter.InsertCommand.Connection = this.Connection;
  9978. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Tag client] ([ID_client], [ID_Tag]) VALUES (@ID_client, @ID_Ta" +
  9979. "g);\r\nSELECT ID_client, ID_Tag FROM [Tag client] WHERE (ID_client = @ID_client)";
  9980. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9981. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_client", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_client", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9982. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Tag", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Tag", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9983. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9984. this._adapter.UpdateCommand.Connection = this.Connection;
  9985. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Tag client] SET [ID_client] = @ID_client, [ID_Tag] = @ID_Tag WHERE " +
  9986. "(([ID_client] = @Original_ID_client) AND ([ID_Tag] = @Original_ID_Tag));\r\nSELECT" +
  9987. " ID_client, ID_Tag FROM [Tag client] WHERE (ID_client = @ID_client)";
  9988. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9989. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_client", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_client", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9990. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_Tag", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Tag", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9991. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_client", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_client", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9992. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_Tag", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_Tag", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9993. }
  9994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9995. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9996. private void InitConnection() {
  9997. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9998. this._connection.ConnectionString = global::Бархатные_бровки_Gebel.Properties.Settings.Default.BB_GebelConnectionString;
  9999. }
  10000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10001. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10002. private void InitCommandCollection() {
  10003. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  10004. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  10005. this._commandCollection[0].Connection = this.Connection;
  10006. this._commandCollection[0].CommandText = "SELECT ID_client, ID_Tag FROM dbo.[Tag client]";
  10007. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  10008. }
  10009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10011. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10012. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  10013. public virtual int Fill(BB_GebelDataSet.Tag_clientDataTable dataTable) {
  10014. this.Adapter.SelectCommand = this.CommandCollection[0];
  10015. if ((this.ClearBeforeFill == true)) {
  10016. dataTable.Clear();
  10017. }
  10018. int returnValue = this.Adapter.Fill(dataTable);
  10019. return returnValue;
  10020. }
  10021. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10022. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10023. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10024. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  10025. public virtual BB_GebelDataSet.Tag_clientDataTable GetData() {
  10026. this.Adapter.SelectCommand = this.CommandCollection[0];
  10027. BB_GebelDataSet.Tag_clientDataTable dataTable = new BB_GebelDataSet.Tag_clientDataTable();
  10028. this.Adapter.Fill(dataTable);
  10029. return dataTable;
  10030. }
  10031. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10032. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10033. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10034. public virtual int Update(BB_GebelDataSet.Tag_clientDataTable dataTable) {
  10035. return this.Adapter.Update(dataTable);
  10036. }
  10037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10038. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10039. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10040. public virtual int Update(BB_GebelDataSet dataSet) {
  10041. return this.Adapter.Update(dataSet, "Tag client");
  10042. }
  10043. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10044. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10045. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10046. public virtual int Update(global::System.Data.DataRow dataRow) {
  10047. return this.Adapter.Update(new global::System.Data.DataRow[] {
  10048. dataRow});
  10049. }
  10050. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10052. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10053. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  10054. return this.Adapter.Update(dataRows);
  10055. }
  10056. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10057. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10058. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10059. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  10060. public virtual int Delete(int Original_ID_client, int Original_ID_Tag) {
  10061. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID_client));
  10062. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ID_Tag));
  10063. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  10064. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10065. != global::System.Data.ConnectionState.Open)) {
  10066. this.Adapter.DeleteCommand.Connection.Open();
  10067. }
  10068. try {
  10069. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  10070. return returnValue;
  10071. }
  10072. finally {
  10073. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10074. this.Adapter.DeleteCommand.Connection.Close();
  10075. }
  10076. }
  10077. }
  10078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10079. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10080. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10081. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  10082. public virtual int Insert(int ID_client, int ID_Tag) {
  10083. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ID_client));
  10084. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(ID_Tag));
  10085. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  10086. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10087. != global::System.Data.ConnectionState.Open)) {
  10088. this.Adapter.InsertCommand.Connection.Open();
  10089. }
  10090. try {
  10091. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  10092. return returnValue;
  10093. }
  10094. finally {
  10095. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10096. this.Adapter.InsertCommand.Connection.Close();
  10097. }
  10098. }
  10099. }
  10100. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10101. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10102. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10103. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10104. public virtual int Update(int ID_client, int ID_Tag, int Original_ID_client, int Original_ID_Tag) {
  10105. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ID_client));
  10106. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(ID_Tag));
  10107. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID_client));
  10108. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ID_Tag));
  10109. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  10110. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10111. != global::System.Data.ConnectionState.Open)) {
  10112. this.Adapter.UpdateCommand.Connection.Open();
  10113. }
  10114. try {
  10115. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  10116. return returnValue;
  10117. }
  10118. finally {
  10119. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10120. this.Adapter.UpdateCommand.Connection.Close();
  10121. }
  10122. }
  10123. }
  10124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10125. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10126. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10127. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10128. public virtual int Update(int ID_Tag, int Original_ID_client, int Original_ID_Tag) {
  10129. return this.Update(Original_ID_client, ID_Tag, Original_ID_client, Original_ID_Tag);
  10130. }
  10131. }
  10132. /// <summary>
  10133. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  10134. ///</summary>
  10135. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10136. [global::System.ComponentModel.ToolboxItem(true)]
  10137. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  10138. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10139. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  10140. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  10141. private UpdateOrderOption _updateOrder;
  10142. private AttachedProductTableAdapter _attachedProductTableAdapter;
  10143. private AvtorizaciaTableAdapter _avtorizaciaTableAdapter;
  10144. private clientTableAdapter _clientTableAdapter;
  10145. private client_Service_TableAdapter _client_Service_TableAdapter;
  10146. private DocumentServiceTableAdapter _documentServiceTableAdapter;
  10147. private GenderTableAdapter _genderTableAdapter;
  10148. private ManufactureTableAdapter _manufactureTableAdapter;
  10149. private Photo_prouctTableAdapter _photo_prouctTableAdapter;
  10150. private ProductTableAdapter _productTableAdapter;
  10151. private SaleTableAdapter _saleTableAdapter;
  10152. private serviceTableAdapter _serviceTableAdapter;
  10153. private Service_photoTableAdapter _service_photoTableAdapter;
  10154. private TagTableAdapter _tagTableAdapter;
  10155. private Tag_clientTableAdapter _tag_clientTableAdapter;
  10156. private bool _backupDataSetBeforeUpdate;
  10157. private global::System.Data.IDbConnection _connection;
  10158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10159. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10160. public UpdateOrderOption UpdateOrder {
  10161. get {
  10162. return this._updateOrder;
  10163. }
  10164. set {
  10165. this._updateOrder = value;
  10166. }
  10167. }
  10168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10169. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10170. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10171. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10172. "a", "System.Drawing.Design.UITypeEditor")]
  10173. public AttachedProductTableAdapter AttachedProductTableAdapter {
  10174. get {
  10175. return this._attachedProductTableAdapter;
  10176. }
  10177. set {
  10178. this._attachedProductTableAdapter = value;
  10179. }
  10180. }
  10181. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10182. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10183. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10184. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10185. "a", "System.Drawing.Design.UITypeEditor")]
  10186. public AvtorizaciaTableAdapter AvtorizaciaTableAdapter {
  10187. get {
  10188. return this._avtorizaciaTableAdapter;
  10189. }
  10190. set {
  10191. this._avtorizaciaTableAdapter = value;
  10192. }
  10193. }
  10194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10196. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10197. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10198. "a", "System.Drawing.Design.UITypeEditor")]
  10199. public clientTableAdapter clientTableAdapter {
  10200. get {
  10201. return this._clientTableAdapter;
  10202. }
  10203. set {
  10204. this._clientTableAdapter = value;
  10205. }
  10206. }
  10207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10208. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10209. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10210. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10211. "a", "System.Drawing.Design.UITypeEditor")]
  10212. public client_Service_TableAdapter client_Service_TableAdapter {
  10213. get {
  10214. return this._client_Service_TableAdapter;
  10215. }
  10216. set {
  10217. this._client_Service_TableAdapter = value;
  10218. }
  10219. }
  10220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10221. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10222. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10223. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10224. "a", "System.Drawing.Design.UITypeEditor")]
  10225. public DocumentServiceTableAdapter DocumentServiceTableAdapter {
  10226. get {
  10227. return this._documentServiceTableAdapter;
  10228. }
  10229. set {
  10230. this._documentServiceTableAdapter = value;
  10231. }
  10232. }
  10233. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10234. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10235. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10236. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10237. "a", "System.Drawing.Design.UITypeEditor")]
  10238. public GenderTableAdapter GenderTableAdapter {
  10239. get {
  10240. return this._genderTableAdapter;
  10241. }
  10242. set {
  10243. this._genderTableAdapter = value;
  10244. }
  10245. }
  10246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10247. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10248. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10249. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10250. "a", "System.Drawing.Design.UITypeEditor")]
  10251. public ManufactureTableAdapter ManufactureTableAdapter {
  10252. get {
  10253. return this._manufactureTableAdapter;
  10254. }
  10255. set {
  10256. this._manufactureTableAdapter = value;
  10257. }
  10258. }
  10259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10260. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10261. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10262. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10263. "a", "System.Drawing.Design.UITypeEditor")]
  10264. public Photo_prouctTableAdapter Photo_prouctTableAdapter {
  10265. get {
  10266. return this._photo_prouctTableAdapter;
  10267. }
  10268. set {
  10269. this._photo_prouctTableAdapter = value;
  10270. }
  10271. }
  10272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10274. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10275. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10276. "a", "System.Drawing.Design.UITypeEditor")]
  10277. public ProductTableAdapter ProductTableAdapter {
  10278. get {
  10279. return this._productTableAdapter;
  10280. }
  10281. set {
  10282. this._productTableAdapter = value;
  10283. }
  10284. }
  10285. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10286. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10287. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10288. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10289. "a", "System.Drawing.Design.UITypeEditor")]
  10290. public SaleTableAdapter SaleTableAdapter {
  10291. get {
  10292. return this._saleTableAdapter;
  10293. }
  10294. set {
  10295. this._saleTableAdapter = value;
  10296. }
  10297. }
  10298. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10299. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10300. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10301. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10302. "a", "System.Drawing.Design.UITypeEditor")]
  10303. public serviceTableAdapter serviceTableAdapter {
  10304. get {
  10305. return this._serviceTableAdapter;
  10306. }
  10307. set {
  10308. this._serviceTableAdapter = value;
  10309. }
  10310. }
  10311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10312. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10313. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10314. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10315. "a", "System.Drawing.Design.UITypeEditor")]
  10316. public Service_photoTableAdapter Service_photoTableAdapter {
  10317. get {
  10318. return this._service_photoTableAdapter;
  10319. }
  10320. set {
  10321. this._service_photoTableAdapter = value;
  10322. }
  10323. }
  10324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10326. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10327. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10328. "a", "System.Drawing.Design.UITypeEditor")]
  10329. public TagTableAdapter TagTableAdapter {
  10330. get {
  10331. return this._tagTableAdapter;
  10332. }
  10333. set {
  10334. this._tagTableAdapter = value;
  10335. }
  10336. }
  10337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10339. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10340. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10341. "a", "System.Drawing.Design.UITypeEditor")]
  10342. public Tag_clientTableAdapter Tag_clientTableAdapter {
  10343. get {
  10344. return this._tag_clientTableAdapter;
  10345. }
  10346. set {
  10347. this._tag_clientTableAdapter = value;
  10348. }
  10349. }
  10350. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10351. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10352. public bool BackupDataSetBeforeUpdate {
  10353. get {
  10354. return this._backupDataSetBeforeUpdate;
  10355. }
  10356. set {
  10357. this._backupDataSetBeforeUpdate = value;
  10358. }
  10359. }
  10360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10361. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10362. [global::System.ComponentModel.Browsable(false)]
  10363. public global::System.Data.IDbConnection Connection {
  10364. get {
  10365. if ((this._connection != null)) {
  10366. return this._connection;
  10367. }
  10368. if (((this._attachedProductTableAdapter != null)
  10369. && (this._attachedProductTableAdapter.Connection != null))) {
  10370. return this._attachedProductTableAdapter.Connection;
  10371. }
  10372. if (((this._avtorizaciaTableAdapter != null)
  10373. && (this._avtorizaciaTableAdapter.Connection != null))) {
  10374. return this._avtorizaciaTableAdapter.Connection;
  10375. }
  10376. if (((this._clientTableAdapter != null)
  10377. && (this._clientTableAdapter.Connection != null))) {
  10378. return this._clientTableAdapter.Connection;
  10379. }
  10380. if (((this._client_Service_TableAdapter != null)
  10381. && (this._client_Service_TableAdapter.Connection != null))) {
  10382. return this._client_Service_TableAdapter.Connection;
  10383. }
  10384. if (((this._documentServiceTableAdapter != null)
  10385. && (this._documentServiceTableAdapter.Connection != null))) {
  10386. return this._documentServiceTableAdapter.Connection;
  10387. }
  10388. if (((this._genderTableAdapter != null)
  10389. && (this._genderTableAdapter.Connection != null))) {
  10390. return this._genderTableAdapter.Connection;
  10391. }
  10392. if (((this._manufactureTableAdapter != null)
  10393. && (this._manufactureTableAdapter.Connection != null))) {
  10394. return this._manufactureTableAdapter.Connection;
  10395. }
  10396. if (((this._photo_prouctTableAdapter != null)
  10397. && (this._photo_prouctTableAdapter.Connection != null))) {
  10398. return this._photo_prouctTableAdapter.Connection;
  10399. }
  10400. if (((this._productTableAdapter != null)
  10401. && (this._productTableAdapter.Connection != null))) {
  10402. return this._productTableAdapter.Connection;
  10403. }
  10404. if (((this._saleTableAdapter != null)
  10405. && (this._saleTableAdapter.Connection != null))) {
  10406. return this._saleTableAdapter.Connection;
  10407. }
  10408. if (((this._serviceTableAdapter != null)
  10409. && (this._serviceTableAdapter.Connection != null))) {
  10410. return this._serviceTableAdapter.Connection;
  10411. }
  10412. if (((this._service_photoTableAdapter != null)
  10413. && (this._service_photoTableAdapter.Connection != null))) {
  10414. return this._service_photoTableAdapter.Connection;
  10415. }
  10416. if (((this._tagTableAdapter != null)
  10417. && (this._tagTableAdapter.Connection != null))) {
  10418. return this._tagTableAdapter.Connection;
  10419. }
  10420. if (((this._tag_clientTableAdapter != null)
  10421. && (this._tag_clientTableAdapter.Connection != null))) {
  10422. return this._tag_clientTableAdapter.Connection;
  10423. }
  10424. return null;
  10425. }
  10426. set {
  10427. this._connection = value;
  10428. }
  10429. }
  10430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10431. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10432. [global::System.ComponentModel.Browsable(false)]
  10433. public int TableAdapterInstanceCount {
  10434. get {
  10435. int count = 0;
  10436. if ((this._attachedProductTableAdapter != null)) {
  10437. count = (count + 1);
  10438. }
  10439. if ((this._avtorizaciaTableAdapter != null)) {
  10440. count = (count + 1);
  10441. }
  10442. if ((this._clientTableAdapter != null)) {
  10443. count = (count + 1);
  10444. }
  10445. if ((this._client_Service_TableAdapter != null)) {
  10446. count = (count + 1);
  10447. }
  10448. if ((this._documentServiceTableAdapter != null)) {
  10449. count = (count + 1);
  10450. }
  10451. if ((this._genderTableAdapter != null)) {
  10452. count = (count + 1);
  10453. }
  10454. if ((this._manufactureTableAdapter != null)) {
  10455. count = (count + 1);
  10456. }
  10457. if ((this._photo_prouctTableAdapter != null)) {
  10458. count = (count + 1);
  10459. }
  10460. if ((this._productTableAdapter != null)) {
  10461. count = (count + 1);
  10462. }
  10463. if ((this._saleTableAdapter != null)) {
  10464. count = (count + 1);
  10465. }
  10466. if ((this._serviceTableAdapter != null)) {
  10467. count = (count + 1);
  10468. }
  10469. if ((this._service_photoTableAdapter != null)) {
  10470. count = (count + 1);
  10471. }
  10472. if ((this._tagTableAdapter != null)) {
  10473. count = (count + 1);
  10474. }
  10475. if ((this._tag_clientTableAdapter != null)) {
  10476. count = (count + 1);
  10477. }
  10478. return count;
  10479. }
  10480. }
  10481. /// <summary>
  10482. ///Update rows in top-down order.
  10483. ///</summary>
  10484. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10485. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10486. private int UpdateUpdatedRows(BB_GebelDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  10487. int result = 0;
  10488. if ((this._attachedProductTableAdapter != null)) {
  10489. global::System.Data.DataRow[] updatedRows = dataSet.AttachedProduct.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10490. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10491. if (((updatedRows != null)
  10492. && (0 < updatedRows.Length))) {
  10493. result = (result + this._attachedProductTableAdapter.Update(updatedRows));
  10494. allChangedRows.AddRange(updatedRows);
  10495. }
  10496. }
  10497. if ((this._avtorizaciaTableAdapter != null)) {
  10498. global::System.Data.DataRow[] updatedRows = dataSet.Avtorizacia.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10499. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10500. if (((updatedRows != null)
  10501. && (0 < updatedRows.Length))) {
  10502. result = (result + this._avtorizaciaTableAdapter.Update(updatedRows));
  10503. allChangedRows.AddRange(updatedRows);
  10504. }
  10505. }
  10506. if ((this._clientTableAdapter != null)) {
  10507. global::System.Data.DataRow[] updatedRows = dataSet.client.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10508. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10509. if (((updatedRows != null)
  10510. && (0 < updatedRows.Length))) {
  10511. result = (result + this._clientTableAdapter.Update(updatedRows));
  10512. allChangedRows.AddRange(updatedRows);
  10513. }
  10514. }
  10515. if ((this._client_Service_TableAdapter != null)) {
  10516. global::System.Data.DataRow[] updatedRows = dataSet.client_Service_.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10517. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10518. if (((updatedRows != null)
  10519. && (0 < updatedRows.Length))) {
  10520. result = (result + this._client_Service_TableAdapter.Update(updatedRows));
  10521. allChangedRows.AddRange(updatedRows);
  10522. }
  10523. }
  10524. if ((this._documentServiceTableAdapter != null)) {
  10525. global::System.Data.DataRow[] updatedRows = dataSet.DocumentService.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10526. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10527. if (((updatedRows != null)
  10528. && (0 < updatedRows.Length))) {
  10529. result = (result + this._documentServiceTableAdapter.Update(updatedRows));
  10530. allChangedRows.AddRange(updatedRows);
  10531. }
  10532. }
  10533. if ((this._genderTableAdapter != null)) {
  10534. global::System.Data.DataRow[] updatedRows = dataSet.Gender.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10535. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10536. if (((updatedRows != null)
  10537. && (0 < updatedRows.Length))) {
  10538. result = (result + this._genderTableAdapter.Update(updatedRows));
  10539. allChangedRows.AddRange(updatedRows);
  10540. }
  10541. }
  10542. if ((this._manufactureTableAdapter != null)) {
  10543. global::System.Data.DataRow[] updatedRows = dataSet.Manufacture.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10544. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10545. if (((updatedRows != null)
  10546. && (0 < updatedRows.Length))) {
  10547. result = (result + this._manufactureTableAdapter.Update(updatedRows));
  10548. allChangedRows.AddRange(updatedRows);
  10549. }
  10550. }
  10551. if ((this._photo_prouctTableAdapter != null)) {
  10552. global::System.Data.DataRow[] updatedRows = dataSet.Photo_prouct.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10553. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10554. if (((updatedRows != null)
  10555. && (0 < updatedRows.Length))) {
  10556. result = (result + this._photo_prouctTableAdapter.Update(updatedRows));
  10557. allChangedRows.AddRange(updatedRows);
  10558. }
  10559. }
  10560. if ((this._productTableAdapter != null)) {
  10561. global::System.Data.DataRow[] updatedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10562. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10563. if (((updatedRows != null)
  10564. && (0 < updatedRows.Length))) {
  10565. result = (result + this._productTableAdapter.Update(updatedRows));
  10566. allChangedRows.AddRange(updatedRows);
  10567. }
  10568. }
  10569. if ((this._saleTableAdapter != null)) {
  10570. global::System.Data.DataRow[] updatedRows = dataSet.Sale.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10571. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10572. if (((updatedRows != null)
  10573. && (0 < updatedRows.Length))) {
  10574. result = (result + this._saleTableAdapter.Update(updatedRows));
  10575. allChangedRows.AddRange(updatedRows);
  10576. }
  10577. }
  10578. if ((this._serviceTableAdapter != null)) {
  10579. global::System.Data.DataRow[] updatedRows = dataSet.service.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10580. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10581. if (((updatedRows != null)
  10582. && (0 < updatedRows.Length))) {
  10583. result = (result + this._serviceTableAdapter.Update(updatedRows));
  10584. allChangedRows.AddRange(updatedRows);
  10585. }
  10586. }
  10587. if ((this._service_photoTableAdapter != null)) {
  10588. global::System.Data.DataRow[] updatedRows = dataSet.Service_photo.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10589. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10590. if (((updatedRows != null)
  10591. && (0 < updatedRows.Length))) {
  10592. result = (result + this._service_photoTableAdapter.Update(updatedRows));
  10593. allChangedRows.AddRange(updatedRows);
  10594. }
  10595. }
  10596. if ((this._tagTableAdapter != null)) {
  10597. global::System.Data.DataRow[] updatedRows = dataSet.Tag.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10598. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10599. if (((updatedRows != null)
  10600. && (0 < updatedRows.Length))) {
  10601. result = (result + this._tagTableAdapter.Update(updatedRows));
  10602. allChangedRows.AddRange(updatedRows);
  10603. }
  10604. }
  10605. if ((this._tag_clientTableAdapter != null)) {
  10606. global::System.Data.DataRow[] updatedRows = dataSet.Tag_client.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10607. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10608. if (((updatedRows != null)
  10609. && (0 < updatedRows.Length))) {
  10610. result = (result + this._tag_clientTableAdapter.Update(updatedRows));
  10611. allChangedRows.AddRange(updatedRows);
  10612. }
  10613. }
  10614. return result;
  10615. }
  10616. /// <summary>
  10617. ///Insert rows in top-down order.
  10618. ///</summary>
  10619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10621. private int UpdateInsertedRows(BB_GebelDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  10622. int result = 0;
  10623. if ((this._attachedProductTableAdapter != null)) {
  10624. global::System.Data.DataRow[] addedRows = dataSet.AttachedProduct.Select(null, null, global::System.Data.DataViewRowState.Added);
  10625. if (((addedRows != null)
  10626. && (0 < addedRows.Length))) {
  10627. result = (result + this._attachedProductTableAdapter.Update(addedRows));
  10628. allAddedRows.AddRange(addedRows);
  10629. }
  10630. }
  10631. if ((this._avtorizaciaTableAdapter != null)) {
  10632. global::System.Data.DataRow[] addedRows = dataSet.Avtorizacia.Select(null, null, global::System.Data.DataViewRowState.Added);
  10633. if (((addedRows != null)
  10634. && (0 < addedRows.Length))) {
  10635. result = (result + this._avtorizaciaTableAdapter.Update(addedRows));
  10636. allAddedRows.AddRange(addedRows);
  10637. }
  10638. }
  10639. if ((this._clientTableAdapter != null)) {
  10640. global::System.Data.DataRow[] addedRows = dataSet.client.Select(null, null, global::System.Data.DataViewRowState.Added);
  10641. if (((addedRows != null)
  10642. && (0 < addedRows.Length))) {
  10643. result = (result + this._clientTableAdapter.Update(addedRows));
  10644. allAddedRows.AddRange(addedRows);
  10645. }
  10646. }
  10647. if ((this._client_Service_TableAdapter != null)) {
  10648. global::System.Data.DataRow[] addedRows = dataSet.client_Service_.Select(null, null, global::System.Data.DataViewRowState.Added);
  10649. if (((addedRows != null)
  10650. && (0 < addedRows.Length))) {
  10651. result = (result + this._client_Service_TableAdapter.Update(addedRows));
  10652. allAddedRows.AddRange(addedRows);
  10653. }
  10654. }
  10655. if ((this._documentServiceTableAdapter != null)) {
  10656. global::System.Data.DataRow[] addedRows = dataSet.DocumentService.Select(null, null, global::System.Data.DataViewRowState.Added);
  10657. if (((addedRows != null)
  10658. && (0 < addedRows.Length))) {
  10659. result = (result + this._documentServiceTableAdapter.Update(addedRows));
  10660. allAddedRows.AddRange(addedRows);
  10661. }
  10662. }
  10663. if ((this._genderTableAdapter != null)) {
  10664. global::System.Data.DataRow[] addedRows = dataSet.Gender.Select(null, null, global::System.Data.DataViewRowState.Added);
  10665. if (((addedRows != null)
  10666. && (0 < addedRows.Length))) {
  10667. result = (result + this._genderTableAdapter.Update(addedRows));
  10668. allAddedRows.AddRange(addedRows);
  10669. }
  10670. }
  10671. if ((this._manufactureTableAdapter != null)) {
  10672. global::System.Data.DataRow[] addedRows = dataSet.Manufacture.Select(null, null, global::System.Data.DataViewRowState.Added);
  10673. if (((addedRows != null)
  10674. && (0 < addedRows.Length))) {
  10675. result = (result + this._manufactureTableAdapter.Update(addedRows));
  10676. allAddedRows.AddRange(addedRows);
  10677. }
  10678. }
  10679. if ((this._photo_prouctTableAdapter != null)) {
  10680. global::System.Data.DataRow[] addedRows = dataSet.Photo_prouct.Select(null, null, global::System.Data.DataViewRowState.Added);
  10681. if (((addedRows != null)
  10682. && (0 < addedRows.Length))) {
  10683. result = (result + this._photo_prouctTableAdapter.Update(addedRows));
  10684. allAddedRows.AddRange(addedRows);
  10685. }
  10686. }
  10687. if ((this._productTableAdapter != null)) {
  10688. global::System.Data.DataRow[] addedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.Added);
  10689. if (((addedRows != null)
  10690. && (0 < addedRows.Length))) {
  10691. result = (result + this._productTableAdapter.Update(addedRows));
  10692. allAddedRows.AddRange(addedRows);
  10693. }
  10694. }
  10695. if ((this._saleTableAdapter != null)) {
  10696. global::System.Data.DataRow[] addedRows = dataSet.Sale.Select(null, null, global::System.Data.DataViewRowState.Added);
  10697. if (((addedRows != null)
  10698. && (0 < addedRows.Length))) {
  10699. result = (result + this._saleTableAdapter.Update(addedRows));
  10700. allAddedRows.AddRange(addedRows);
  10701. }
  10702. }
  10703. if ((this._serviceTableAdapter != null)) {
  10704. global::System.Data.DataRow[] addedRows = dataSet.service.Select(null, null, global::System.Data.DataViewRowState.Added);
  10705. if (((addedRows != null)
  10706. && (0 < addedRows.Length))) {
  10707. result = (result + this._serviceTableAdapter.Update(addedRows));
  10708. allAddedRows.AddRange(addedRows);
  10709. }
  10710. }
  10711. if ((this._service_photoTableAdapter != null)) {
  10712. global::System.Data.DataRow[] addedRows = dataSet.Service_photo.Select(null, null, global::System.Data.DataViewRowState.Added);
  10713. if (((addedRows != null)
  10714. && (0 < addedRows.Length))) {
  10715. result = (result + this._service_photoTableAdapter.Update(addedRows));
  10716. allAddedRows.AddRange(addedRows);
  10717. }
  10718. }
  10719. if ((this._tagTableAdapter != null)) {
  10720. global::System.Data.DataRow[] addedRows = dataSet.Tag.Select(null, null, global::System.Data.DataViewRowState.Added);
  10721. if (((addedRows != null)
  10722. && (0 < addedRows.Length))) {
  10723. result = (result + this._tagTableAdapter.Update(addedRows));
  10724. allAddedRows.AddRange(addedRows);
  10725. }
  10726. }
  10727. if ((this._tag_clientTableAdapter != null)) {
  10728. global::System.Data.DataRow[] addedRows = dataSet.Tag_client.Select(null, null, global::System.Data.DataViewRowState.Added);
  10729. if (((addedRows != null)
  10730. && (0 < addedRows.Length))) {
  10731. result = (result + this._tag_clientTableAdapter.Update(addedRows));
  10732. allAddedRows.AddRange(addedRows);
  10733. }
  10734. }
  10735. return result;
  10736. }
  10737. /// <summary>
  10738. ///Delete rows in bottom-up order.
  10739. ///</summary>
  10740. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10741. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10742. private int UpdateDeletedRows(BB_GebelDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  10743. int result = 0;
  10744. if ((this._tag_clientTableAdapter != null)) {
  10745. global::System.Data.DataRow[] deletedRows = dataSet.Tag_client.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10746. if (((deletedRows != null)
  10747. && (0 < deletedRows.Length))) {
  10748. result = (result + this._tag_clientTableAdapter.Update(deletedRows));
  10749. allChangedRows.AddRange(deletedRows);
  10750. }
  10751. }
  10752. if ((this._tagTableAdapter != null)) {
  10753. global::System.Data.DataRow[] deletedRows = dataSet.Tag.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10754. if (((deletedRows != null)
  10755. && (0 < deletedRows.Length))) {
  10756. result = (result + this._tagTableAdapter.Update(deletedRows));
  10757. allChangedRows.AddRange(deletedRows);
  10758. }
  10759. }
  10760. if ((this._service_photoTableAdapter != null)) {
  10761. global::System.Data.DataRow[] deletedRows = dataSet.Service_photo.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10762. if (((deletedRows != null)
  10763. && (0 < deletedRows.Length))) {
  10764. result = (result + this._service_photoTableAdapter.Update(deletedRows));
  10765. allChangedRows.AddRange(deletedRows);
  10766. }
  10767. }
  10768. if ((this._serviceTableAdapter != null)) {
  10769. global::System.Data.DataRow[] deletedRows = dataSet.service.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10770. if (((deletedRows != null)
  10771. && (0 < deletedRows.Length))) {
  10772. result = (result + this._serviceTableAdapter.Update(deletedRows));
  10773. allChangedRows.AddRange(deletedRows);
  10774. }
  10775. }
  10776. if ((this._saleTableAdapter != null)) {
  10777. global::System.Data.DataRow[] deletedRows = dataSet.Sale.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10778. if (((deletedRows != null)
  10779. && (0 < deletedRows.Length))) {
  10780. result = (result + this._saleTableAdapter.Update(deletedRows));
  10781. allChangedRows.AddRange(deletedRows);
  10782. }
  10783. }
  10784. if ((this._productTableAdapter != null)) {
  10785. global::System.Data.DataRow[] deletedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10786. if (((deletedRows != null)
  10787. && (0 < deletedRows.Length))) {
  10788. result = (result + this._productTableAdapter.Update(deletedRows));
  10789. allChangedRows.AddRange(deletedRows);
  10790. }
  10791. }
  10792. if ((this._photo_prouctTableAdapter != null)) {
  10793. global::System.Data.DataRow[] deletedRows = dataSet.Photo_prouct.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10794. if (((deletedRows != null)
  10795. && (0 < deletedRows.Length))) {
  10796. result = (result + this._photo_prouctTableAdapter.Update(deletedRows));
  10797. allChangedRows.AddRange(deletedRows);
  10798. }
  10799. }
  10800. if ((this._manufactureTableAdapter != null)) {
  10801. global::System.Data.DataRow[] deletedRows = dataSet.Manufacture.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10802. if (((deletedRows != null)
  10803. && (0 < deletedRows.Length))) {
  10804. result = (result + this._manufactureTableAdapter.Update(deletedRows));
  10805. allChangedRows.AddRange(deletedRows);
  10806. }
  10807. }
  10808. if ((this._genderTableAdapter != null)) {
  10809. global::System.Data.DataRow[] deletedRows = dataSet.Gender.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10810. if (((deletedRows != null)
  10811. && (0 < deletedRows.Length))) {
  10812. result = (result + this._genderTableAdapter.Update(deletedRows));
  10813. allChangedRows.AddRange(deletedRows);
  10814. }
  10815. }
  10816. if ((this._documentServiceTableAdapter != null)) {
  10817. global::System.Data.DataRow[] deletedRows = dataSet.DocumentService.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10818. if (((deletedRows != null)
  10819. && (0 < deletedRows.Length))) {
  10820. result = (result + this._documentServiceTableAdapter.Update(deletedRows));
  10821. allChangedRows.AddRange(deletedRows);
  10822. }
  10823. }
  10824. if ((this._client_Service_TableAdapter != null)) {
  10825. global::System.Data.DataRow[] deletedRows = dataSet.client_Service_.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10826. if (((deletedRows != null)
  10827. && (0 < deletedRows.Length))) {
  10828. result = (result + this._client_Service_TableAdapter.Update(deletedRows));
  10829. allChangedRows.AddRange(deletedRows);
  10830. }
  10831. }
  10832. if ((this._clientTableAdapter != null)) {
  10833. global::System.Data.DataRow[] deletedRows = dataSet.client.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10834. if (((deletedRows != null)
  10835. && (0 < deletedRows.Length))) {
  10836. result = (result + this._clientTableAdapter.Update(deletedRows));
  10837. allChangedRows.AddRange(deletedRows);
  10838. }
  10839. }
  10840. if ((this._avtorizaciaTableAdapter != null)) {
  10841. global::System.Data.DataRow[] deletedRows = dataSet.Avtorizacia.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10842. if (((deletedRows != null)
  10843. && (0 < deletedRows.Length))) {
  10844. result = (result + this._avtorizaciaTableAdapter.Update(deletedRows));
  10845. allChangedRows.AddRange(deletedRows);
  10846. }
  10847. }
  10848. if ((this._attachedProductTableAdapter != null)) {
  10849. global::System.Data.DataRow[] deletedRows = dataSet.AttachedProduct.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10850. if (((deletedRows != null)
  10851. && (0 < deletedRows.Length))) {
  10852. result = (result + this._attachedProductTableAdapter.Update(deletedRows));
  10853. allChangedRows.AddRange(deletedRows);
  10854. }
  10855. }
  10856. return result;
  10857. }
  10858. /// <summary>
  10859. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  10860. ///</summary>
  10861. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10862. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10863. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  10864. if (((updatedRows == null)
  10865. || (updatedRows.Length < 1))) {
  10866. return updatedRows;
  10867. }
  10868. if (((allAddedRows == null)
  10869. || (allAddedRows.Count < 1))) {
  10870. return updatedRows;
  10871. }
  10872. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  10873. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  10874. global::System.Data.DataRow row = updatedRows[i];
  10875. if ((allAddedRows.Contains(row) == false)) {
  10876. realUpdatedRows.Add(row);
  10877. }
  10878. }
  10879. return realUpdatedRows.ToArray();
  10880. }
  10881. /// <summary>
  10882. ///Update all changes to the dataset.
  10883. ///</summary>
  10884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10886. public virtual int UpdateAll(BB_GebelDataSet dataSet) {
  10887. if ((dataSet == null)) {
  10888. throw new global::System.ArgumentNullException("dataSet");
  10889. }
  10890. if ((dataSet.HasChanges() == false)) {
  10891. return 0;
  10892. }
  10893. if (((this._attachedProductTableAdapter != null)
  10894. && (this.MatchTableAdapterConnection(this._attachedProductTableAdapter.Connection) == false))) {
  10895. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  10896. "r, должны использовать одинаковую строку подключения.");
  10897. }
  10898. if (((this._avtorizaciaTableAdapter != null)
  10899. && (this.MatchTableAdapterConnection(this._avtorizaciaTableAdapter.Connection) == false))) {
  10900. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  10901. "r, должны использовать одинаковую строку подключения.");
  10902. }
  10903. if (((this._clientTableAdapter != null)
  10904. && (this.MatchTableAdapterConnection(this._clientTableAdapter.Connection) == false))) {
  10905. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  10906. "r, должны использовать одинаковую строку подключения.");
  10907. }
  10908. if (((this._client_Service_TableAdapter != null)
  10909. && (this.MatchTableAdapterConnection(this._client_Service_TableAdapter.Connection) == false))) {
  10910. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  10911. "r, должны использовать одинаковую строку подключения.");
  10912. }
  10913. if (((this._documentServiceTableAdapter != null)
  10914. && (this.MatchTableAdapterConnection(this._documentServiceTableAdapter.Connection) == false))) {
  10915. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  10916. "r, должны использовать одинаковую строку подключения.");
  10917. }
  10918. if (((this._genderTableAdapter != null)
  10919. && (this.MatchTableAdapterConnection(this._genderTableAdapter.Connection) == false))) {
  10920. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  10921. "r, должны использовать одинаковую строку подключения.");
  10922. }
  10923. if (((this._manufactureTableAdapter != null)
  10924. && (this.MatchTableAdapterConnection(this._manufactureTableAdapter.Connection) == false))) {
  10925. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  10926. "r, должны использовать одинаковую строку подключения.");
  10927. }
  10928. if (((this._photo_prouctTableAdapter != null)
  10929. && (this.MatchTableAdapterConnection(this._photo_prouctTableAdapter.Connection) == false))) {
  10930. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  10931. "r, должны использовать одинаковую строку подключения.");
  10932. }
  10933. if (((this._productTableAdapter != null)
  10934. && (this.MatchTableAdapterConnection(this._productTableAdapter.Connection) == false))) {
  10935. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  10936. "r, должны использовать одинаковую строку подключения.");
  10937. }
  10938. if (((this._saleTableAdapter != null)
  10939. && (this.MatchTableAdapterConnection(this._saleTableAdapter.Connection) == false))) {
  10940. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  10941. "r, должны использовать одинаковую строку подключения.");
  10942. }
  10943. if (((this._serviceTableAdapter != null)
  10944. && (this.MatchTableAdapterConnection(this._serviceTableAdapter.Connection) == false))) {
  10945. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  10946. "r, должны использовать одинаковую строку подключения.");
  10947. }
  10948. if (((this._service_photoTableAdapter != null)
  10949. && (this.MatchTableAdapterConnection(this._service_photoTableAdapter.Connection) == false))) {
  10950. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  10951. "r, должны использовать одинаковую строку подключения.");
  10952. }
  10953. if (((this._tagTableAdapter != null)
  10954. && (this.MatchTableAdapterConnection(this._tagTableAdapter.Connection) == false))) {
  10955. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  10956. "r, должны использовать одинаковую строку подключения.");
  10957. }
  10958. if (((this._tag_clientTableAdapter != null)
  10959. && (this.MatchTableAdapterConnection(this._tag_clientTableAdapter.Connection) == false))) {
  10960. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  10961. "r, должны использовать одинаковую строку подключения.");
  10962. }
  10963. global::System.Data.IDbConnection workConnection = this.Connection;
  10964. if ((workConnection == null)) {
  10965. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  10966. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  10967. }
  10968. bool workConnOpened = false;
  10969. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  10970. == global::System.Data.ConnectionState.Broken)) {
  10971. workConnection.Close();
  10972. }
  10973. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  10974. workConnection.Open();
  10975. workConnOpened = true;
  10976. }
  10977. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  10978. if ((workTransaction == null)) {
  10979. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  10980. "и или текущее состояние не позволяет начать транзакцию.");
  10981. }
  10982. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  10983. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  10984. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  10985. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  10986. int result = 0;
  10987. global::System.Data.DataSet backupDataSet = null;
  10988. if (this.BackupDataSetBeforeUpdate) {
  10989. backupDataSet = new global::System.Data.DataSet();
  10990. backupDataSet.Merge(dataSet);
  10991. }
  10992. try {
  10993. // ---- Prepare for update -----------
  10994. //
  10995. if ((this._attachedProductTableAdapter != null)) {
  10996. revertConnections.Add(this._attachedProductTableAdapter, this._attachedProductTableAdapter.Connection);
  10997. this._attachedProductTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10998. this._attachedProductTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10999. if (this._attachedProductTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11000. this._attachedProductTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11001. adaptersWithAcceptChangesDuringUpdate.Add(this._attachedProductTableAdapter.Adapter);
  11002. }
  11003. }
  11004. if ((this._avtorizaciaTableAdapter != null)) {
  11005. revertConnections.Add(this._avtorizaciaTableAdapter, this._avtorizaciaTableAdapter.Connection);
  11006. this._avtorizaciaTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11007. this._avtorizaciaTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11008. if (this._avtorizaciaTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11009. this._avtorizaciaTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11010. adaptersWithAcceptChangesDuringUpdate.Add(this._avtorizaciaTableAdapter.Adapter);
  11011. }
  11012. }
  11013. if ((this._clientTableAdapter != null)) {
  11014. revertConnections.Add(this._clientTableAdapter, this._clientTableAdapter.Connection);
  11015. this._clientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11016. this._clientTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11017. if (this._clientTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11018. this._clientTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11019. adaptersWithAcceptChangesDuringUpdate.Add(this._clientTableAdapter.Adapter);
  11020. }
  11021. }
  11022. if ((this._client_Service_TableAdapter != null)) {
  11023. revertConnections.Add(this._client_Service_TableAdapter, this._client_Service_TableAdapter.Connection);
  11024. this._client_Service_TableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11025. this._client_Service_TableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11026. if (this._client_Service_TableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11027. this._client_Service_TableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11028. adaptersWithAcceptChangesDuringUpdate.Add(this._client_Service_TableAdapter.Adapter);
  11029. }
  11030. }
  11031. if ((this._documentServiceTableAdapter != null)) {
  11032. revertConnections.Add(this._documentServiceTableAdapter, this._documentServiceTableAdapter.Connection);
  11033. this._documentServiceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11034. this._documentServiceTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11035. if (this._documentServiceTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11036. this._documentServiceTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11037. adaptersWithAcceptChangesDuringUpdate.Add(this._documentServiceTableAdapter.Adapter);
  11038. }
  11039. }
  11040. if ((this._genderTableAdapter != null)) {
  11041. revertConnections.Add(this._genderTableAdapter, this._genderTableAdapter.Connection);
  11042. this._genderTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11043. this._genderTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11044. if (this._genderTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11045. this._genderTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11046. adaptersWithAcceptChangesDuringUpdate.Add(this._genderTableAdapter.Adapter);
  11047. }
  11048. }
  11049. if ((this._manufactureTableAdapter != null)) {
  11050. revertConnections.Add(this._manufactureTableAdapter, this._manufactureTableAdapter.Connection);
  11051. this._manufactureTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11052. this._manufactureTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11053. if (this._manufactureTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11054. this._manufactureTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11055. adaptersWithAcceptChangesDuringUpdate.Add(this._manufactureTableAdapter.Adapter);
  11056. }
  11057. }
  11058. if ((this._photo_prouctTableAdapter != null)) {
  11059. revertConnections.Add(this._photo_prouctTableAdapter, this._photo_prouctTableAdapter.Connection);
  11060. this._photo_prouctTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11061. this._photo_prouctTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11062. if (this._photo_prouctTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11063. this._photo_prouctTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11064. adaptersWithAcceptChangesDuringUpdate.Add(this._photo_prouctTableAdapter.Adapter);
  11065. }
  11066. }
  11067. if ((this._productTableAdapter != null)) {
  11068. revertConnections.Add(this._productTableAdapter, this._productTableAdapter.Connection);
  11069. this._productTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11070. this._productTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11071. if (this._productTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11072. this._productTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11073. adaptersWithAcceptChangesDuringUpdate.Add(this._productTableAdapter.Adapter);
  11074. }
  11075. }
  11076. if ((this._saleTableAdapter != null)) {
  11077. revertConnections.Add(this._saleTableAdapter, this._saleTableAdapter.Connection);
  11078. this._saleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11079. this._saleTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11080. if (this._saleTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11081. this._saleTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11082. adaptersWithAcceptChangesDuringUpdate.Add(this._saleTableAdapter.Adapter);
  11083. }
  11084. }
  11085. if ((this._serviceTableAdapter != null)) {
  11086. revertConnections.Add(this._serviceTableAdapter, this._serviceTableAdapter.Connection);
  11087. this._serviceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11088. this._serviceTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11089. if (this._serviceTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11090. this._serviceTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11091. adaptersWithAcceptChangesDuringUpdate.Add(this._serviceTableAdapter.Adapter);
  11092. }
  11093. }
  11094. if ((this._service_photoTableAdapter != null)) {
  11095. revertConnections.Add(this._service_photoTableAdapter, this._service_photoTableAdapter.Connection);
  11096. this._service_photoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11097. this._service_photoTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11098. if (this._service_photoTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11099. this._service_photoTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11100. adaptersWithAcceptChangesDuringUpdate.Add(this._service_photoTableAdapter.Adapter);
  11101. }
  11102. }
  11103. if ((this._tagTableAdapter != null)) {
  11104. revertConnections.Add(this._tagTableAdapter, this._tagTableAdapter.Connection);
  11105. this._tagTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11106. this._tagTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11107. if (this._tagTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11108. this._tagTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11109. adaptersWithAcceptChangesDuringUpdate.Add(this._tagTableAdapter.Adapter);
  11110. }
  11111. }
  11112. if ((this._tag_clientTableAdapter != null)) {
  11113. revertConnections.Add(this._tag_clientTableAdapter, this._tag_clientTableAdapter.Connection);
  11114. this._tag_clientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11115. this._tag_clientTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11116. if (this._tag_clientTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11117. this._tag_clientTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11118. adaptersWithAcceptChangesDuringUpdate.Add(this._tag_clientTableAdapter.Adapter);
  11119. }
  11120. }
  11121. //
  11122. //---- Perform updates -----------
  11123. //
  11124. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  11125. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  11126. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  11127. }
  11128. else {
  11129. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  11130. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  11131. }
  11132. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  11133. //
  11134. //---- Commit updates -----------
  11135. //
  11136. workTransaction.Commit();
  11137. if ((0 < allAddedRows.Count)) {
  11138. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  11139. allAddedRows.CopyTo(rows);
  11140. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  11141. global::System.Data.DataRow row = rows[i];
  11142. row.AcceptChanges();
  11143. }
  11144. }
  11145. if ((0 < allChangedRows.Count)) {
  11146. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  11147. allChangedRows.CopyTo(rows);
  11148. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  11149. global::System.Data.DataRow row = rows[i];
  11150. row.AcceptChanges();
  11151. }
  11152. }
  11153. }
  11154. catch (global::System.Exception ex) {
  11155. workTransaction.Rollback();
  11156. // ---- Restore the dataset -----------
  11157. if (this.BackupDataSetBeforeUpdate) {
  11158. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  11159. dataSet.Clear();
  11160. dataSet.Merge(backupDataSet);
  11161. }
  11162. else {
  11163. if ((0 < allAddedRows.Count)) {
  11164. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  11165. allAddedRows.CopyTo(rows);
  11166. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  11167. global::System.Data.DataRow row = rows[i];
  11168. row.AcceptChanges();
  11169. row.SetAdded();
  11170. }
  11171. }
  11172. }
  11173. throw ex;
  11174. }
  11175. finally {
  11176. if (workConnOpened) {
  11177. workConnection.Close();
  11178. }
  11179. if ((this._attachedProductTableAdapter != null)) {
  11180. this._attachedProductTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._attachedProductTableAdapter]));
  11181. this._attachedProductTableAdapter.Transaction = null;
  11182. }
  11183. if ((this._avtorizaciaTableAdapter != null)) {
  11184. this._avtorizaciaTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._avtorizaciaTableAdapter]));
  11185. this._avtorizaciaTableAdapter.Transaction = null;
  11186. }
  11187. if ((this._clientTableAdapter != null)) {
  11188. this._clientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._clientTableAdapter]));
  11189. this._clientTableAdapter.Transaction = null;
  11190. }
  11191. if ((this._client_Service_TableAdapter != null)) {
  11192. this._client_Service_TableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._client_Service_TableAdapter]));
  11193. this._client_Service_TableAdapter.Transaction = null;
  11194. }
  11195. if ((this._documentServiceTableAdapter != null)) {
  11196. this._documentServiceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._documentServiceTableAdapter]));
  11197. this._documentServiceTableAdapter.Transaction = null;
  11198. }
  11199. if ((this._genderTableAdapter != null)) {
  11200. this._genderTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._genderTableAdapter]));
  11201. this._genderTableAdapter.Transaction = null;
  11202. }
  11203. if ((this._manufactureTableAdapter != null)) {
  11204. this._manufactureTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._manufactureTableAdapter]));
  11205. this._manufactureTableAdapter.Transaction = null;
  11206. }
  11207. if ((this._photo_prouctTableAdapter != null)) {
  11208. this._photo_prouctTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._photo_prouctTableAdapter]));
  11209. this._photo_prouctTableAdapter.Transaction = null;
  11210. }
  11211. if ((this._productTableAdapter != null)) {
  11212. this._productTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productTableAdapter]));
  11213. this._productTableAdapter.Transaction = null;
  11214. }
  11215. if ((this._saleTableAdapter != null)) {
  11216. this._saleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._saleTableAdapter]));
  11217. this._saleTableAdapter.Transaction = null;
  11218. }
  11219. if ((this._serviceTableAdapter != null)) {
  11220. this._serviceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._serviceTableAdapter]));
  11221. this._serviceTableAdapter.Transaction = null;
  11222. }
  11223. if ((this._service_photoTableAdapter != null)) {
  11224. this._service_photoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._service_photoTableAdapter]));
  11225. this._service_photoTableAdapter.Transaction = null;
  11226. }
  11227. if ((this._tagTableAdapter != null)) {
  11228. this._tagTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tagTableAdapter]));
  11229. this._tagTableAdapter.Transaction = null;
  11230. }
  11231. if ((this._tag_clientTableAdapter != null)) {
  11232. this._tag_clientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tag_clientTableAdapter]));
  11233. this._tag_clientTableAdapter.Transaction = null;
  11234. }
  11235. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  11236. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  11237. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  11238. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  11239. global::System.Data.Common.DataAdapter adapter = adapters[i];
  11240. adapter.AcceptChangesDuringUpdate = true;
  11241. }
  11242. }
  11243. }
  11244. return result;
  11245. }
  11246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11247. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11248. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  11249. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  11250. }
  11251. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11252. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11253. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  11254. if ((this._connection != null)) {
  11255. return true;
  11256. }
  11257. if (((this.Connection == null)
  11258. || (inputConnection == null))) {
  11259. return true;
  11260. }
  11261. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  11262. return true;
  11263. }
  11264. return false;
  11265. }
  11266. /// <summary>
  11267. ///Update Order Option
  11268. ///</summary>
  11269. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11270. public enum UpdateOrderOption {
  11271. InsertUpdateDelete = 0,
  11272. UpdateInsertDelete = 1,
  11273. }
  11274. /// <summary>
  11275. ///Used to sort self-referenced table's rows
  11276. ///</summary>
  11277. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11278. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  11279. private global::System.Data.DataRelation _relation;
  11280. private int _childFirst;
  11281. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11282. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11283. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  11284. this._relation = relation;
  11285. if (childFirst) {
  11286. this._childFirst = -1;
  11287. }
  11288. else {
  11289. this._childFirst = 1;
  11290. }
  11291. }
  11292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11293. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11294. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  11295. global::System.Diagnostics.Debug.Assert((row != null));
  11296. global::System.Data.DataRow root = row;
  11297. distance = 0;
  11298. 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>();
  11299. traversedRows[row] = row;
  11300. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  11301. for (
  11302. ; ((parent != null)
  11303. && (traversedRows.ContainsKey(parent) == false));
  11304. ) {
  11305. distance = (distance + 1);
  11306. root = parent;
  11307. traversedRows[parent] = parent;
  11308. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  11309. }
  11310. if ((distance == 0)) {
  11311. traversedRows.Clear();
  11312. traversedRows[row] = row;
  11313. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  11314. for (
  11315. ; ((parent != null)
  11316. && (traversedRows.ContainsKey(parent) == false));
  11317. ) {
  11318. distance = (distance + 1);
  11319. root = parent;
  11320. traversedRows[parent] = parent;
  11321. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  11322. }
  11323. }
  11324. return root;
  11325. }
  11326. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11327. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11328. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  11329. if (object.ReferenceEquals(row1, row2)) {
  11330. return 0;
  11331. }
  11332. if ((row1 == null)) {
  11333. return -1;
  11334. }
  11335. if ((row2 == null)) {
  11336. return 1;
  11337. }
  11338. int distance1 = 0;
  11339. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  11340. int distance2 = 0;
  11341. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  11342. if (object.ReferenceEquals(root1, root2)) {
  11343. return (this._childFirst * distance1.CompareTo(distance2));
  11344. }
  11345. else {
  11346. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  11347. && (root2.Table != null)));
  11348. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  11349. return -1;
  11350. }
  11351. else {
  11352. return 1;
  11353. }
  11354. }
  11355. }
  11356. }
  11357. }
  11358. }
  11359. #pragma warning restore 1591