RozenbergBrDataSet.Designer.cs 795 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace RozenbergBrovki {
  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("RozenbergBrDataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class RozenbergBrDataSet : global::System.Data.DataSet {
  22. private AttachedProductDataTable tableAttachedProduct;
  23. private ClientservicDataTable tableClientservic;
  24. private DocumentByServiceDataTable tableDocumentByService;
  25. private GenderDataTable tableGender;
  26. private LoginpassDataTable tableLoginpass;
  27. private ManufacturerDataTable tableManufacturer;
  28. private ProductDataTable tableProduct;
  29. private ProductPhotoDataTable tableProductPhoto;
  30. private ProductSaleDataTable tableProductSale;
  31. private ServiceDataTable tableService;
  32. private ServicePhotoDataTable tableServicePhoto;
  33. private TagDataTable tableTag;
  34. private TagOfClientDataTable tableTagOfClient;
  35. private Кли33ентDataTable tableКли33ент;
  36. private global::System.Data.DataRelation relationFK_AttachedProduct_Product;
  37. private global::System.Data.DataRelation relationFK_AttachedProduct_Product1;
  38. private global::System.Data.DataRelation relationFK_Clientservic_Service;
  39. private global::System.Data.DataRelation relationFK_Clientservic_Кли33ент;
  40. private global::System.Data.DataRelation relationFK_Product_Manufacturer;
  41. private global::System.Data.DataRelation relationFK_ProductPhoto_Product;
  42. private global::System.Data.DataRelation relationFK_ProductSale_Product;
  43. private global::System.Data.DataRelation relationFK_ServicePhoto_Service;
  44. private global::System.Data.DataRelation relationFK_TagOfClient_Tag;
  45. private global::System.Data.DataRelation relationFK_TagOfClient_Кли33ент;
  46. private global::System.Data.DataRelation relationFK_Кли33ент_Gender;
  47. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  48. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  49. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  50. public RozenbergBrDataSet() {
  51. this.BeginInit();
  52. this.InitClass();
  53. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  54. base.Tables.CollectionChanged += schemaChangedHandler;
  55. base.Relations.CollectionChanged += schemaChangedHandler;
  56. this.EndInit();
  57. }
  58. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  59. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  60. protected RozenbergBrDataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  61. base(info, context, false) {
  62. if ((this.IsBinarySerialized(info, context) == true)) {
  63. this.InitVars(false);
  64. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  65. this.Tables.CollectionChanged += schemaChangedHandler1;
  66. this.Relations.CollectionChanged += schemaChangedHandler1;
  67. return;
  68. }
  69. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  70. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  71. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  72. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  73. if ((ds.Tables["AttachedProduct"] != null)) {
  74. base.Tables.Add(new AttachedProductDataTable(ds.Tables["AttachedProduct"]));
  75. }
  76. if ((ds.Tables["Clientservic"] != null)) {
  77. base.Tables.Add(new ClientservicDataTable(ds.Tables["Clientservic"]));
  78. }
  79. if ((ds.Tables["DocumentByService"] != null)) {
  80. base.Tables.Add(new DocumentByServiceDataTable(ds.Tables["DocumentByService"]));
  81. }
  82. if ((ds.Tables["Gender"] != null)) {
  83. base.Tables.Add(new GenderDataTable(ds.Tables["Gender"]));
  84. }
  85. if ((ds.Tables["Loginpass"] != null)) {
  86. base.Tables.Add(new LoginpassDataTable(ds.Tables["Loginpass"]));
  87. }
  88. if ((ds.Tables["Manufacturer"] != null)) {
  89. base.Tables.Add(new ManufacturerDataTable(ds.Tables["Manufacturer"]));
  90. }
  91. if ((ds.Tables["Product"] != null)) {
  92. base.Tables.Add(new ProductDataTable(ds.Tables["Product"]));
  93. }
  94. if ((ds.Tables["ProductPhoto"] != null)) {
  95. base.Tables.Add(new ProductPhotoDataTable(ds.Tables["ProductPhoto"]));
  96. }
  97. if ((ds.Tables["ProductSale"] != null)) {
  98. base.Tables.Add(new ProductSaleDataTable(ds.Tables["ProductSale"]));
  99. }
  100. if ((ds.Tables["Service"] != null)) {
  101. base.Tables.Add(new ServiceDataTable(ds.Tables["Service"]));
  102. }
  103. if ((ds.Tables["ServicePhoto"] != null)) {
  104. base.Tables.Add(new ServicePhotoDataTable(ds.Tables["ServicePhoto"]));
  105. }
  106. if ((ds.Tables["Tag"] != null)) {
  107. base.Tables.Add(new TagDataTable(ds.Tables["Tag"]));
  108. }
  109. if ((ds.Tables["TagOfClient"] != null)) {
  110. base.Tables.Add(new TagOfClientDataTable(ds.Tables["TagOfClient"]));
  111. }
  112. if ((ds.Tables["Кли33ент"] != null)) {
  113. base.Tables.Add(new Кли33ентDataTable(ds.Tables["Кли33ент"]));
  114. }
  115. this.DataSetName = ds.DataSetName;
  116. this.Prefix = ds.Prefix;
  117. this.Namespace = ds.Namespace;
  118. this.Locale = ds.Locale;
  119. this.CaseSensitive = ds.CaseSensitive;
  120. this.EnforceConstraints = ds.EnforceConstraints;
  121. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  122. this.InitVars();
  123. }
  124. else {
  125. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  126. }
  127. this.GetSerializationData(info, context);
  128. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  129. base.Tables.CollectionChanged += schemaChangedHandler;
  130. this.Relations.CollectionChanged += schemaChangedHandler;
  131. }
  132. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  133. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  134. [global::System.ComponentModel.Browsable(false)]
  135. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  136. public AttachedProductDataTable AttachedProduct {
  137. get {
  138. return this.tableAttachedProduct;
  139. }
  140. }
  141. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  142. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  143. [global::System.ComponentModel.Browsable(false)]
  144. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  145. public ClientservicDataTable Clientservic {
  146. get {
  147. return this.tableClientservic;
  148. }
  149. }
  150. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  151. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  152. [global::System.ComponentModel.Browsable(false)]
  153. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  154. public DocumentByServiceDataTable DocumentByService {
  155. get {
  156. return this.tableDocumentByService;
  157. }
  158. }
  159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  160. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  161. [global::System.ComponentModel.Browsable(false)]
  162. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  163. public GenderDataTable Gender {
  164. get {
  165. return this.tableGender;
  166. }
  167. }
  168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  169. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  170. [global::System.ComponentModel.Browsable(false)]
  171. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  172. public LoginpassDataTable Loginpass {
  173. get {
  174. return this.tableLoginpass;
  175. }
  176. }
  177. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  178. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  179. [global::System.ComponentModel.Browsable(false)]
  180. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  181. public ManufacturerDataTable Manufacturer {
  182. get {
  183. return this.tableManufacturer;
  184. }
  185. }
  186. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  187. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  188. [global::System.ComponentModel.Browsable(false)]
  189. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  190. public ProductDataTable Product {
  191. get {
  192. return this.tableProduct;
  193. }
  194. }
  195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  197. [global::System.ComponentModel.Browsable(false)]
  198. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  199. public ProductPhotoDataTable ProductPhoto {
  200. get {
  201. return this.tableProductPhoto;
  202. }
  203. }
  204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  205. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  206. [global::System.ComponentModel.Browsable(false)]
  207. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  208. public ProductSaleDataTable ProductSale {
  209. get {
  210. return this.tableProductSale;
  211. }
  212. }
  213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  214. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  215. [global::System.ComponentModel.Browsable(false)]
  216. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  217. public ServiceDataTable Service {
  218. get {
  219. return this.tableService;
  220. }
  221. }
  222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  224. [global::System.ComponentModel.Browsable(false)]
  225. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  226. public ServicePhotoDataTable ServicePhoto {
  227. get {
  228. return this.tableServicePhoto;
  229. }
  230. }
  231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  233. [global::System.ComponentModel.Browsable(false)]
  234. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  235. public TagDataTable Tag {
  236. get {
  237. return this.tableTag;
  238. }
  239. }
  240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  241. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  242. [global::System.ComponentModel.Browsable(false)]
  243. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  244. public TagOfClientDataTable TagOfClient {
  245. get {
  246. return this.tableTagOfClient;
  247. }
  248. }
  249. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  250. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  251. [global::System.ComponentModel.Browsable(false)]
  252. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  253. public Кли33ентDataTable Кли33ент {
  254. get {
  255. return this.tableКли33ент;
  256. }
  257. }
  258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  260. [global::System.ComponentModel.BrowsableAttribute(true)]
  261. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  262. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  263. get {
  264. return this._schemaSerializationMode;
  265. }
  266. set {
  267. this._schemaSerializationMode = value;
  268. }
  269. }
  270. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  271. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  272. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  273. public new global::System.Data.DataTableCollection Tables {
  274. get {
  275. return base.Tables;
  276. }
  277. }
  278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  279. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  280. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  281. public new global::System.Data.DataRelationCollection Relations {
  282. get {
  283. return base.Relations;
  284. }
  285. }
  286. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  287. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  288. protected override void InitializeDerivedDataSet() {
  289. this.BeginInit();
  290. this.InitClass();
  291. this.EndInit();
  292. }
  293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  294. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  295. public override global::System.Data.DataSet Clone() {
  296. RozenbergBrDataSet cln = ((RozenbergBrDataSet)(base.Clone()));
  297. cln.InitVars();
  298. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  299. return cln;
  300. }
  301. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  302. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  303. protected override bool ShouldSerializeTables() {
  304. return false;
  305. }
  306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  307. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  308. protected override bool ShouldSerializeRelations() {
  309. return false;
  310. }
  311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  312. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  313. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  314. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  315. this.Reset();
  316. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  317. ds.ReadXml(reader);
  318. if ((ds.Tables["AttachedProduct"] != null)) {
  319. base.Tables.Add(new AttachedProductDataTable(ds.Tables["AttachedProduct"]));
  320. }
  321. if ((ds.Tables["Clientservic"] != null)) {
  322. base.Tables.Add(new ClientservicDataTable(ds.Tables["Clientservic"]));
  323. }
  324. if ((ds.Tables["DocumentByService"] != null)) {
  325. base.Tables.Add(new DocumentByServiceDataTable(ds.Tables["DocumentByService"]));
  326. }
  327. if ((ds.Tables["Gender"] != null)) {
  328. base.Tables.Add(new GenderDataTable(ds.Tables["Gender"]));
  329. }
  330. if ((ds.Tables["Loginpass"] != null)) {
  331. base.Tables.Add(new LoginpassDataTable(ds.Tables["Loginpass"]));
  332. }
  333. if ((ds.Tables["Manufacturer"] != null)) {
  334. base.Tables.Add(new ManufacturerDataTable(ds.Tables["Manufacturer"]));
  335. }
  336. if ((ds.Tables["Product"] != null)) {
  337. base.Tables.Add(new ProductDataTable(ds.Tables["Product"]));
  338. }
  339. if ((ds.Tables["ProductPhoto"] != null)) {
  340. base.Tables.Add(new ProductPhotoDataTable(ds.Tables["ProductPhoto"]));
  341. }
  342. if ((ds.Tables["ProductSale"] != null)) {
  343. base.Tables.Add(new ProductSaleDataTable(ds.Tables["ProductSale"]));
  344. }
  345. if ((ds.Tables["Service"] != null)) {
  346. base.Tables.Add(new ServiceDataTable(ds.Tables["Service"]));
  347. }
  348. if ((ds.Tables["ServicePhoto"] != null)) {
  349. base.Tables.Add(new ServicePhotoDataTable(ds.Tables["ServicePhoto"]));
  350. }
  351. if ((ds.Tables["Tag"] != null)) {
  352. base.Tables.Add(new TagDataTable(ds.Tables["Tag"]));
  353. }
  354. if ((ds.Tables["TagOfClient"] != null)) {
  355. base.Tables.Add(new TagOfClientDataTable(ds.Tables["TagOfClient"]));
  356. }
  357. if ((ds.Tables["Кли33ент"] != null)) {
  358. base.Tables.Add(new Кли33ентDataTable(ds.Tables["Кли33ент"]));
  359. }
  360. this.DataSetName = ds.DataSetName;
  361. this.Prefix = ds.Prefix;
  362. this.Namespace = ds.Namespace;
  363. this.Locale = ds.Locale;
  364. this.CaseSensitive = ds.CaseSensitive;
  365. this.EnforceConstraints = ds.EnforceConstraints;
  366. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  367. this.InitVars();
  368. }
  369. else {
  370. this.ReadXml(reader);
  371. this.InitVars();
  372. }
  373. }
  374. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  375. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  376. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  377. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  378. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  379. stream.Position = 0;
  380. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  381. }
  382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  383. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  384. internal void InitVars() {
  385. this.InitVars(true);
  386. }
  387. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  388. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  389. internal void InitVars(bool initTable) {
  390. this.tableAttachedProduct = ((AttachedProductDataTable)(base.Tables["AttachedProduct"]));
  391. if ((initTable == true)) {
  392. if ((this.tableAttachedProduct != null)) {
  393. this.tableAttachedProduct.InitVars();
  394. }
  395. }
  396. this.tableClientservic = ((ClientservicDataTable)(base.Tables["Clientservic"]));
  397. if ((initTable == true)) {
  398. if ((this.tableClientservic != null)) {
  399. this.tableClientservic.InitVars();
  400. }
  401. }
  402. this.tableDocumentByService = ((DocumentByServiceDataTable)(base.Tables["DocumentByService"]));
  403. if ((initTable == true)) {
  404. if ((this.tableDocumentByService != null)) {
  405. this.tableDocumentByService.InitVars();
  406. }
  407. }
  408. this.tableGender = ((GenderDataTable)(base.Tables["Gender"]));
  409. if ((initTable == true)) {
  410. if ((this.tableGender != null)) {
  411. this.tableGender.InitVars();
  412. }
  413. }
  414. this.tableLoginpass = ((LoginpassDataTable)(base.Tables["Loginpass"]));
  415. if ((initTable == true)) {
  416. if ((this.tableLoginpass != null)) {
  417. this.tableLoginpass.InitVars();
  418. }
  419. }
  420. this.tableManufacturer = ((ManufacturerDataTable)(base.Tables["Manufacturer"]));
  421. if ((initTable == true)) {
  422. if ((this.tableManufacturer != null)) {
  423. this.tableManufacturer.InitVars();
  424. }
  425. }
  426. this.tableProduct = ((ProductDataTable)(base.Tables["Product"]));
  427. if ((initTable == true)) {
  428. if ((this.tableProduct != null)) {
  429. this.tableProduct.InitVars();
  430. }
  431. }
  432. this.tableProductPhoto = ((ProductPhotoDataTable)(base.Tables["ProductPhoto"]));
  433. if ((initTable == true)) {
  434. if ((this.tableProductPhoto != null)) {
  435. this.tableProductPhoto.InitVars();
  436. }
  437. }
  438. this.tableProductSale = ((ProductSaleDataTable)(base.Tables["ProductSale"]));
  439. if ((initTable == true)) {
  440. if ((this.tableProductSale != null)) {
  441. this.tableProductSale.InitVars();
  442. }
  443. }
  444. this.tableService = ((ServiceDataTable)(base.Tables["Service"]));
  445. if ((initTable == true)) {
  446. if ((this.tableService != null)) {
  447. this.tableService.InitVars();
  448. }
  449. }
  450. this.tableServicePhoto = ((ServicePhotoDataTable)(base.Tables["ServicePhoto"]));
  451. if ((initTable == true)) {
  452. if ((this.tableServicePhoto != null)) {
  453. this.tableServicePhoto.InitVars();
  454. }
  455. }
  456. this.tableTag = ((TagDataTable)(base.Tables["Tag"]));
  457. if ((initTable == true)) {
  458. if ((this.tableTag != null)) {
  459. this.tableTag.InitVars();
  460. }
  461. }
  462. this.tableTagOfClient = ((TagOfClientDataTable)(base.Tables["TagOfClient"]));
  463. if ((initTable == true)) {
  464. if ((this.tableTagOfClient != null)) {
  465. this.tableTagOfClient.InitVars();
  466. }
  467. }
  468. this.tableКли33ент = ((Кли33ентDataTable)(base.Tables["Кли33ент"]));
  469. if ((initTable == true)) {
  470. if ((this.tableКли33ент != null)) {
  471. this.tableКли33ент.InitVars();
  472. }
  473. }
  474. this.relationFK_AttachedProduct_Product = this.Relations["FK_AttachedProduct_Product"];
  475. this.relationFK_AttachedProduct_Product1 = this.Relations["FK_AttachedProduct_Product1"];
  476. this.relationFK_Clientservic_Service = this.Relations["FK_Clientservic_Service"];
  477. this.relationFK_Clientservic_Кли33ент = this.Relations["FK_Clientservic_Кли33ент"];
  478. this.relationFK_Product_Manufacturer = this.Relations["FK_Product_Manufacturer"];
  479. this.relationFK_ProductPhoto_Product = this.Relations["FK_ProductPhoto_Product"];
  480. this.relationFK_ProductSale_Product = this.Relations["FK_ProductSale_Product"];
  481. this.relationFK_ServicePhoto_Service = this.Relations["FK_ServicePhoto_Service"];
  482. this.relationFK_TagOfClient_Tag = this.Relations["FK_TagOfClient_Tag"];
  483. this.relationFK_TagOfClient_Кли33ент = this.Relations["FK_TagOfClient_Кли33ент"];
  484. this.relationFK_Кли33ент_Gender = this.Relations["FK_Кли33ент_Gender"];
  485. }
  486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  488. private void InitClass() {
  489. this.DataSetName = "RozenbergBrDataSet";
  490. this.Prefix = "";
  491. this.Namespace = "http://tempuri.org/RozenbergBrDataSet.xsd";
  492. this.EnforceConstraints = true;
  493. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  494. this.tableAttachedProduct = new AttachedProductDataTable();
  495. base.Tables.Add(this.tableAttachedProduct);
  496. this.tableClientservic = new ClientservicDataTable();
  497. base.Tables.Add(this.tableClientservic);
  498. this.tableDocumentByService = new DocumentByServiceDataTable();
  499. base.Tables.Add(this.tableDocumentByService);
  500. this.tableGender = new GenderDataTable();
  501. base.Tables.Add(this.tableGender);
  502. this.tableLoginpass = new LoginpassDataTable();
  503. base.Tables.Add(this.tableLoginpass);
  504. this.tableManufacturer = new ManufacturerDataTable();
  505. base.Tables.Add(this.tableManufacturer);
  506. this.tableProduct = new ProductDataTable();
  507. base.Tables.Add(this.tableProduct);
  508. this.tableProductPhoto = new ProductPhotoDataTable();
  509. base.Tables.Add(this.tableProductPhoto);
  510. this.tableProductSale = new ProductSaleDataTable();
  511. base.Tables.Add(this.tableProductSale);
  512. this.tableService = new ServiceDataTable();
  513. base.Tables.Add(this.tableService);
  514. this.tableServicePhoto = new ServicePhotoDataTable();
  515. base.Tables.Add(this.tableServicePhoto);
  516. this.tableTag = new TagDataTable();
  517. base.Tables.Add(this.tableTag);
  518. this.tableTagOfClient = new TagOfClientDataTable();
  519. base.Tables.Add(this.tableTagOfClient);
  520. this.tableКли33ент = new Кли33ентDataTable();
  521. base.Tables.Add(this.tableКли33ент);
  522. this.relationFK_AttachedProduct_Product = new global::System.Data.DataRelation("FK_AttachedProduct_Product", new global::System.Data.DataColumn[] {
  523. this.tableProduct.IDColumn}, new global::System.Data.DataColumn[] {
  524. this.tableAttachedProduct.MainProductIDColumn}, false);
  525. this.Relations.Add(this.relationFK_AttachedProduct_Product);
  526. this.relationFK_AttachedProduct_Product1 = new global::System.Data.DataRelation("FK_AttachedProduct_Product1", new global::System.Data.DataColumn[] {
  527. this.tableProduct.IDColumn}, new global::System.Data.DataColumn[] {
  528. this.tableAttachedProduct.AttachedProductIDColumn}, false);
  529. this.Relations.Add(this.relationFK_AttachedProduct_Product1);
  530. this.relationFK_Clientservic_Service = new global::System.Data.DataRelation("FK_Clientservic_Service", new global::System.Data.DataColumn[] {
  531. this.tableService.IdColumn}, new global::System.Data.DataColumn[] {
  532. this.tableClientservic.ServiceidColumn}, false);
  533. this.Relations.Add(this.relationFK_Clientservic_Service);
  534. this.relationFK_Clientservic_Кли33ент = new global::System.Data.DataRelation("FK_Clientservic_Кли33ент", new global::System.Data.DataColumn[] {
  535. this.tableКли33ент.idColumn}, new global::System.Data.DataColumn[] {
  536. this.tableClientservic.ClientidColumn}, false);
  537. this.Relations.Add(this.relationFK_Clientservic_Кли33ент);
  538. this.relationFK_Product_Manufacturer = new global::System.Data.DataRelation("FK_Product_Manufacturer", new global::System.Data.DataColumn[] {
  539. this.tableManufacturer.IDColumn}, new global::System.Data.DataColumn[] {
  540. this.tableProduct.ManufacturerIDColumn}, false);
  541. this.Relations.Add(this.relationFK_Product_Manufacturer);
  542. this.relationFK_ProductPhoto_Product = new global::System.Data.DataRelation("FK_ProductPhoto_Product", new global::System.Data.DataColumn[] {
  543. this.tableProduct.IDColumn}, new global::System.Data.DataColumn[] {
  544. this.tableProductPhoto.ProductIDColumn}, false);
  545. this.Relations.Add(this.relationFK_ProductPhoto_Product);
  546. this.relationFK_ProductSale_Product = new global::System.Data.DataRelation("FK_ProductSale_Product", new global::System.Data.DataColumn[] {
  547. this.tableProduct.IDColumn}, new global::System.Data.DataColumn[] {
  548. this.tableProductSale.ProductIDColumn}, false);
  549. this.Relations.Add(this.relationFK_ProductSale_Product);
  550. this.relationFK_ServicePhoto_Service = new global::System.Data.DataRelation("FK_ServicePhoto_Service", new global::System.Data.DataColumn[] {
  551. this.tableService.IdColumn}, new global::System.Data.DataColumn[] {
  552. this.tableServicePhoto.ServiceIDColumn}, false);
  553. this.Relations.Add(this.relationFK_ServicePhoto_Service);
  554. this.relationFK_TagOfClient_Tag = new global::System.Data.DataRelation("FK_TagOfClient_Tag", new global::System.Data.DataColumn[] {
  555. this.tableTag.IDColumn}, new global::System.Data.DataColumn[] {
  556. this.tableTagOfClient.TagIDColumn}, false);
  557. this.Relations.Add(this.relationFK_TagOfClient_Tag);
  558. this.relationFK_TagOfClient_Кли33ент = new global::System.Data.DataRelation("FK_TagOfClient_Кли33ент", new global::System.Data.DataColumn[] {
  559. this.tableКли33ент.idColumn}, new global::System.Data.DataColumn[] {
  560. this.tableTagOfClient.ClientIDColumn}, false);
  561. this.Relations.Add(this.relationFK_TagOfClient_Кли33ент);
  562. this.relationFK_Кли33ент_Gender = new global::System.Data.DataRelation("FK_Кли33ент_Gender", new global::System.Data.DataColumn[] {
  563. this.tableGender.CodeColumn}, new global::System.Data.DataColumn[] {
  564. this.tableКли33ент.ПолColumn}, false);
  565. this.Relations.Add(this.relationFK_Кли33ент_Gender);
  566. }
  567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  569. private bool ShouldSerializeAttachedProduct() {
  570. return false;
  571. }
  572. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  573. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  574. private bool ShouldSerializeClientservic() {
  575. return false;
  576. }
  577. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  578. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  579. private bool ShouldSerializeDocumentByService() {
  580. return false;
  581. }
  582. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  583. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  584. private bool ShouldSerializeGender() {
  585. return false;
  586. }
  587. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  588. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  589. private bool ShouldSerializeLoginpass() {
  590. return false;
  591. }
  592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  594. private bool ShouldSerializeManufacturer() {
  595. return false;
  596. }
  597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  598. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  599. private bool ShouldSerializeProduct() {
  600. return false;
  601. }
  602. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  603. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  604. private bool ShouldSerializeProductPhoto() {
  605. return false;
  606. }
  607. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  608. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  609. private bool ShouldSerializeProductSale() {
  610. return false;
  611. }
  612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  614. private bool ShouldSerializeService() {
  615. return false;
  616. }
  617. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  618. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  619. private bool ShouldSerializeServicePhoto() {
  620. return false;
  621. }
  622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  623. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  624. private bool ShouldSerializeTag() {
  625. return false;
  626. }
  627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  629. private bool ShouldSerializeTagOfClient() {
  630. return false;
  631. }
  632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  634. private bool ShouldSerializeКли33ент() {
  635. return false;
  636. }
  637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  638. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  639. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  640. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  641. this.InitVars();
  642. }
  643. }
  644. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  645. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  646. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  647. RozenbergBrDataSet ds = new RozenbergBrDataSet();
  648. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  649. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  650. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  651. any.Namespace = ds.Namespace;
  652. sequence.Items.Add(any);
  653. type.Particle = sequence;
  654. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  655. if (xs.Contains(dsSchema.TargetNamespace)) {
  656. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  657. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  658. try {
  659. global::System.Xml.Schema.XmlSchema schema = null;
  660. dsSchema.Write(s1);
  661. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  662. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  663. s2.SetLength(0);
  664. schema.Write(s2);
  665. if ((s1.Length == s2.Length)) {
  666. s1.Position = 0;
  667. s2.Position = 0;
  668. for (; ((s1.Position != s1.Length)
  669. && (s1.ReadByte() == s2.ReadByte())); ) {
  670. ;
  671. }
  672. if ((s1.Position == s1.Length)) {
  673. return type;
  674. }
  675. }
  676. }
  677. }
  678. finally {
  679. if ((s1 != null)) {
  680. s1.Close();
  681. }
  682. if ((s2 != null)) {
  683. s2.Close();
  684. }
  685. }
  686. }
  687. xs.Add(dsSchema);
  688. return type;
  689. }
  690. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  691. public delegate void AttachedProductRowChangeEventHandler(object sender, AttachedProductRowChangeEvent e);
  692. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  693. public delegate void ClientservicRowChangeEventHandler(object sender, ClientservicRowChangeEvent e);
  694. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  695. public delegate void DocumentByServiceRowChangeEventHandler(object sender, DocumentByServiceRowChangeEvent e);
  696. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  697. public delegate void GenderRowChangeEventHandler(object sender, GenderRowChangeEvent e);
  698. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  699. public delegate void LoginpassRowChangeEventHandler(object sender, LoginpassRowChangeEvent e);
  700. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  701. public delegate void ManufacturerRowChangeEventHandler(object sender, ManufacturerRowChangeEvent e);
  702. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  703. public delegate void ProductRowChangeEventHandler(object sender, ProductRowChangeEvent e);
  704. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  705. public delegate void ProductPhotoRowChangeEventHandler(object sender, ProductPhotoRowChangeEvent e);
  706. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  707. public delegate void ProductSaleRowChangeEventHandler(object sender, ProductSaleRowChangeEvent e);
  708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  709. public delegate void ServiceRowChangeEventHandler(object sender, ServiceRowChangeEvent e);
  710. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  711. public delegate void ServicePhotoRowChangeEventHandler(object sender, ServicePhotoRowChangeEvent e);
  712. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  713. public delegate void TagRowChangeEventHandler(object sender, TagRowChangeEvent e);
  714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  715. public delegate void TagOfClientRowChangeEventHandler(object sender, TagOfClientRowChangeEvent e);
  716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  717. public delegate void Кли33ентRowChangeEventHandler(object sender, Кли33ентRowChangeEvent e);
  718. /// <summary>
  719. ///Represents the strongly named DataTable class.
  720. ///</summary>
  721. [global::System.Serializable()]
  722. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  723. public partial class AttachedProductDataTable : global::System.Data.TypedTableBase<AttachedProductRow> {
  724. private global::System.Data.DataColumn columnMainProductID;
  725. private global::System.Data.DataColumn columnAttachedProductID;
  726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  728. public AttachedProductDataTable() {
  729. this.TableName = "AttachedProduct";
  730. this.BeginInit();
  731. this.InitClass();
  732. this.EndInit();
  733. }
  734. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  736. internal AttachedProductDataTable(global::System.Data.DataTable table) {
  737. this.TableName = table.TableName;
  738. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  739. this.CaseSensitive = table.CaseSensitive;
  740. }
  741. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  742. this.Locale = table.Locale;
  743. }
  744. if ((table.Namespace != table.DataSet.Namespace)) {
  745. this.Namespace = table.Namespace;
  746. }
  747. this.Prefix = table.Prefix;
  748. this.MinimumCapacity = table.MinimumCapacity;
  749. }
  750. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  751. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  752. protected AttachedProductDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  753. base(info, context) {
  754. this.InitVars();
  755. }
  756. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  757. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  758. public global::System.Data.DataColumn MainProductIDColumn {
  759. get {
  760. return this.columnMainProductID;
  761. }
  762. }
  763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  764. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  765. public global::System.Data.DataColumn AttachedProductIDColumn {
  766. get {
  767. return this.columnAttachedProductID;
  768. }
  769. }
  770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  771. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  772. [global::System.ComponentModel.Browsable(false)]
  773. public int Count {
  774. get {
  775. return this.Rows.Count;
  776. }
  777. }
  778. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  779. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  780. public AttachedProductRow this[int index] {
  781. get {
  782. return ((AttachedProductRow)(this.Rows[index]));
  783. }
  784. }
  785. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  786. public event AttachedProductRowChangeEventHandler AttachedProductRowChanging;
  787. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  788. public event AttachedProductRowChangeEventHandler AttachedProductRowChanged;
  789. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  790. public event AttachedProductRowChangeEventHandler AttachedProductRowDeleting;
  791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  792. public event AttachedProductRowChangeEventHandler AttachedProductRowDeleted;
  793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  794. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  795. public void AddAttachedProductRow(AttachedProductRow row) {
  796. this.Rows.Add(row);
  797. }
  798. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  799. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  800. public AttachedProductRow AddAttachedProductRow(ProductRow parentProductRowByFK_AttachedProduct_Product, ProductRow parentProductRowByFK_AttachedProduct_Product1) {
  801. AttachedProductRow rowAttachedProductRow = ((AttachedProductRow)(this.NewRow()));
  802. object[] columnValuesArray = new object[] {
  803. null,
  804. null};
  805. if ((parentProductRowByFK_AttachedProduct_Product != null)) {
  806. columnValuesArray[0] = parentProductRowByFK_AttachedProduct_Product[0];
  807. }
  808. if ((parentProductRowByFK_AttachedProduct_Product1 != null)) {
  809. columnValuesArray[1] = parentProductRowByFK_AttachedProduct_Product1[0];
  810. }
  811. rowAttachedProductRow.ItemArray = columnValuesArray;
  812. this.Rows.Add(rowAttachedProductRow);
  813. return rowAttachedProductRow;
  814. }
  815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  816. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  817. public AttachedProductRow FindByMainProductIDAttachedProductID(int MainProductID, int AttachedProductID) {
  818. return ((AttachedProductRow)(this.Rows.Find(new object[] {
  819. MainProductID,
  820. AttachedProductID})));
  821. }
  822. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  823. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  824. public override global::System.Data.DataTable Clone() {
  825. AttachedProductDataTable cln = ((AttachedProductDataTable)(base.Clone()));
  826. cln.InitVars();
  827. return cln;
  828. }
  829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  830. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  831. protected override global::System.Data.DataTable CreateInstance() {
  832. return new AttachedProductDataTable();
  833. }
  834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  835. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  836. internal void InitVars() {
  837. this.columnMainProductID = base.Columns["MainProductID"];
  838. this.columnAttachedProductID = base.Columns["AttachedProductID"];
  839. }
  840. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  841. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  842. private void InitClass() {
  843. this.columnMainProductID = new global::System.Data.DataColumn("MainProductID", typeof(int), null, global::System.Data.MappingType.Element);
  844. base.Columns.Add(this.columnMainProductID);
  845. this.columnAttachedProductID = new global::System.Data.DataColumn("AttachedProductID", typeof(int), null, global::System.Data.MappingType.Element);
  846. base.Columns.Add(this.columnAttachedProductID);
  847. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  848. this.columnMainProductID,
  849. this.columnAttachedProductID}, true));
  850. this.columnMainProductID.AllowDBNull = false;
  851. this.columnAttachedProductID.AllowDBNull = false;
  852. }
  853. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  854. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  855. public AttachedProductRow NewAttachedProductRow() {
  856. return ((AttachedProductRow)(this.NewRow()));
  857. }
  858. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  859. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  860. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  861. return new AttachedProductRow(builder);
  862. }
  863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  864. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  865. protected override global::System.Type GetRowType() {
  866. return typeof(AttachedProductRow);
  867. }
  868. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  869. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  870. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  871. base.OnRowChanged(e);
  872. if ((this.AttachedProductRowChanged != null)) {
  873. this.AttachedProductRowChanged(this, new AttachedProductRowChangeEvent(((AttachedProductRow)(e.Row)), e.Action));
  874. }
  875. }
  876. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  877. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  878. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  879. base.OnRowChanging(e);
  880. if ((this.AttachedProductRowChanging != null)) {
  881. this.AttachedProductRowChanging(this, new AttachedProductRowChangeEvent(((AttachedProductRow)(e.Row)), e.Action));
  882. }
  883. }
  884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  886. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  887. base.OnRowDeleted(e);
  888. if ((this.AttachedProductRowDeleted != null)) {
  889. this.AttachedProductRowDeleted(this, new AttachedProductRowChangeEvent(((AttachedProductRow)(e.Row)), e.Action));
  890. }
  891. }
  892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  894. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  895. base.OnRowDeleting(e);
  896. if ((this.AttachedProductRowDeleting != null)) {
  897. this.AttachedProductRowDeleting(this, new AttachedProductRowChangeEvent(((AttachedProductRow)(e.Row)), e.Action));
  898. }
  899. }
  900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  901. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  902. public void RemoveAttachedProductRow(AttachedProductRow row) {
  903. this.Rows.Remove(row);
  904. }
  905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  906. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  907. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  908. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  909. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  910. RozenbergBrDataSet ds = new RozenbergBrDataSet();
  911. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  912. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  913. any1.MinOccurs = new decimal(0);
  914. any1.MaxOccurs = decimal.MaxValue;
  915. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  916. sequence.Items.Add(any1);
  917. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  918. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  919. any2.MinOccurs = new decimal(1);
  920. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  921. sequence.Items.Add(any2);
  922. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  923. attribute1.Name = "namespace";
  924. attribute1.FixedValue = ds.Namespace;
  925. type.Attributes.Add(attribute1);
  926. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  927. attribute2.Name = "tableTypeName";
  928. attribute2.FixedValue = "AttachedProductDataTable";
  929. type.Attributes.Add(attribute2);
  930. type.Particle = sequence;
  931. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  932. if (xs.Contains(dsSchema.TargetNamespace)) {
  933. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  934. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  935. try {
  936. global::System.Xml.Schema.XmlSchema schema = null;
  937. dsSchema.Write(s1);
  938. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  939. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  940. s2.SetLength(0);
  941. schema.Write(s2);
  942. if ((s1.Length == s2.Length)) {
  943. s1.Position = 0;
  944. s2.Position = 0;
  945. for (; ((s1.Position != s1.Length)
  946. && (s1.ReadByte() == s2.ReadByte())); ) {
  947. ;
  948. }
  949. if ((s1.Position == s1.Length)) {
  950. return type;
  951. }
  952. }
  953. }
  954. }
  955. finally {
  956. if ((s1 != null)) {
  957. s1.Close();
  958. }
  959. if ((s2 != null)) {
  960. s2.Close();
  961. }
  962. }
  963. }
  964. xs.Add(dsSchema);
  965. return type;
  966. }
  967. }
  968. /// <summary>
  969. ///Represents the strongly named DataTable class.
  970. ///</summary>
  971. [global::System.Serializable()]
  972. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  973. public partial class ClientservicDataTable : global::System.Data.TypedTableBase<ClientservicRow> {
  974. private global::System.Data.DataColumn columnid;
  975. private global::System.Data.DataColumn columnClientid;
  976. private global::System.Data.DataColumn columnServiceid;
  977. private global::System.Data.DataColumn columnУслуга;
  978. private global::System.Data.DataColumn columnНачало_оказания_услуги;
  979. private global::System.Data.DataColumn columnКлиент;
  980. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  981. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  982. public ClientservicDataTable() {
  983. this.TableName = "Clientservic";
  984. this.BeginInit();
  985. this.InitClass();
  986. this.EndInit();
  987. }
  988. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  989. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  990. internal ClientservicDataTable(global::System.Data.DataTable table) {
  991. this.TableName = table.TableName;
  992. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  993. this.CaseSensitive = table.CaseSensitive;
  994. }
  995. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  996. this.Locale = table.Locale;
  997. }
  998. if ((table.Namespace != table.DataSet.Namespace)) {
  999. this.Namespace = table.Namespace;
  1000. }
  1001. this.Prefix = table.Prefix;
  1002. this.MinimumCapacity = table.MinimumCapacity;
  1003. }
  1004. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1005. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1006. protected ClientservicDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1007. base(info, context) {
  1008. this.InitVars();
  1009. }
  1010. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1011. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1012. public global::System.Data.DataColumn idColumn {
  1013. get {
  1014. return this.columnid;
  1015. }
  1016. }
  1017. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1018. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1019. public global::System.Data.DataColumn ClientidColumn {
  1020. get {
  1021. return this.columnClientid;
  1022. }
  1023. }
  1024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1025. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1026. public global::System.Data.DataColumn ServiceidColumn {
  1027. get {
  1028. return this.columnServiceid;
  1029. }
  1030. }
  1031. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1032. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1033. public global::System.Data.DataColumn УслугаColumn {
  1034. get {
  1035. return this.columnУслуга;
  1036. }
  1037. }
  1038. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1039. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1040. public global::System.Data.DataColumn Начало_оказания_услугиColumn {
  1041. get {
  1042. return this.columnНачало_оказания_услуги;
  1043. }
  1044. }
  1045. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1046. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1047. public global::System.Data.DataColumn КлиентColumn {
  1048. get {
  1049. return this.columnКлиент;
  1050. }
  1051. }
  1052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1053. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1054. [global::System.ComponentModel.Browsable(false)]
  1055. public int Count {
  1056. get {
  1057. return this.Rows.Count;
  1058. }
  1059. }
  1060. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1061. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1062. public ClientservicRow this[int index] {
  1063. get {
  1064. return ((ClientservicRow)(this.Rows[index]));
  1065. }
  1066. }
  1067. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1068. public event ClientservicRowChangeEventHandler ClientservicRowChanging;
  1069. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1070. public event ClientservicRowChangeEventHandler ClientservicRowChanged;
  1071. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1072. public event ClientservicRowChangeEventHandler ClientservicRowDeleting;
  1073. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1074. public event ClientservicRowChangeEventHandler ClientservicRowDeleted;
  1075. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1076. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1077. public void AddClientservicRow(ClientservicRow row) {
  1078. this.Rows.Add(row);
  1079. }
  1080. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1081. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1082. public ClientservicRow AddClientservicRow(Кли33ентRow parentКли33ентRowByFK_Clientservic_Кли33ент, ServiceRow parentServiceRowByFK_Clientservic_Service, string Услуга, System.DateTime Начало_оказания_услуги, string Клиент) {
  1083. ClientservicRow rowClientservicRow = ((ClientservicRow)(this.NewRow()));
  1084. object[] columnValuesArray = new object[] {
  1085. null,
  1086. null,
  1087. null,
  1088. Услуга,
  1089. Начало_оказания_услуги,
  1090. Клиент};
  1091. if ((parentКли33ентRowByFK_Clientservic_Кли33ент != null)) {
  1092. columnValuesArray[1] = parentКли33ентRowByFK_Clientservic_Кли33ент[0];
  1093. }
  1094. if ((parentServiceRowByFK_Clientservic_Service != null)) {
  1095. columnValuesArray[2] = parentServiceRowByFK_Clientservic_Service[0];
  1096. }
  1097. rowClientservicRow.ItemArray = columnValuesArray;
  1098. this.Rows.Add(rowClientservicRow);
  1099. return rowClientservicRow;
  1100. }
  1101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1102. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1103. public ClientservicRow FindByid(int id) {
  1104. return ((ClientservicRow)(this.Rows.Find(new object[] {
  1105. id})));
  1106. }
  1107. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1108. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1109. public override global::System.Data.DataTable Clone() {
  1110. ClientservicDataTable cln = ((ClientservicDataTable)(base.Clone()));
  1111. cln.InitVars();
  1112. return cln;
  1113. }
  1114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1115. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1116. protected override global::System.Data.DataTable CreateInstance() {
  1117. return new ClientservicDataTable();
  1118. }
  1119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1120. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1121. internal void InitVars() {
  1122. this.columnid = base.Columns["id"];
  1123. this.columnClientid = base.Columns["Clientid"];
  1124. this.columnServiceid = base.Columns["Serviceid"];
  1125. this.columnУслуга = base.Columns["Услуга"];
  1126. this.columnНачало_оказания_услуги = base.Columns["Начало_оказания_услуги"];
  1127. this.columnКлиент = base.Columns["Клиент"];
  1128. }
  1129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1131. private void InitClass() {
  1132. this.columnid = new global::System.Data.DataColumn("id", typeof(int), null, global::System.Data.MappingType.Element);
  1133. base.Columns.Add(this.columnid);
  1134. this.columnClientid = new global::System.Data.DataColumn("Clientid", typeof(int), null, global::System.Data.MappingType.Element);
  1135. base.Columns.Add(this.columnClientid);
  1136. this.columnServiceid = new global::System.Data.DataColumn("Serviceid", typeof(int), null, global::System.Data.MappingType.Element);
  1137. base.Columns.Add(this.columnServiceid);
  1138. this.columnУслуга = new global::System.Data.DataColumn("Услуга", typeof(string), null, global::System.Data.MappingType.Element);
  1139. base.Columns.Add(this.columnУслуга);
  1140. this.columnНачало_оказания_услуги = new global::System.Data.DataColumn("Начало_оказания_услуги", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1141. base.Columns.Add(this.columnНачало_оказания_услуги);
  1142. this.columnКлиент = new global::System.Data.DataColumn("Клиент", typeof(string), null, global::System.Data.MappingType.Element);
  1143. base.Columns.Add(this.columnКлиент);
  1144. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1145. this.columnid}, true));
  1146. this.columnid.AutoIncrement = true;
  1147. this.columnid.AutoIncrementSeed = -1;
  1148. this.columnid.AutoIncrementStep = -1;
  1149. this.columnid.AllowDBNull = false;
  1150. this.columnid.ReadOnly = true;
  1151. this.columnid.Unique = true;
  1152. this.columnУслуга.AllowDBNull = false;
  1153. this.columnУслуга.MaxLength = 50;
  1154. this.columnНачало_оказания_услуги.AllowDBNull = false;
  1155. this.columnКлиент.AllowDBNull = false;
  1156. this.columnКлиент.MaxLength = 50;
  1157. }
  1158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1159. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1160. public ClientservicRow NewClientservicRow() {
  1161. return ((ClientservicRow)(this.NewRow()));
  1162. }
  1163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1164. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1165. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1166. return new ClientservicRow(builder);
  1167. }
  1168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1169. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1170. protected override global::System.Type GetRowType() {
  1171. return typeof(ClientservicRow);
  1172. }
  1173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1175. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1176. base.OnRowChanged(e);
  1177. if ((this.ClientservicRowChanged != null)) {
  1178. this.ClientservicRowChanged(this, new ClientservicRowChangeEvent(((ClientservicRow)(e.Row)), e.Action));
  1179. }
  1180. }
  1181. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1182. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1183. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1184. base.OnRowChanging(e);
  1185. if ((this.ClientservicRowChanging != null)) {
  1186. this.ClientservicRowChanging(this, new ClientservicRowChangeEvent(((ClientservicRow)(e.Row)), e.Action));
  1187. }
  1188. }
  1189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1191. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1192. base.OnRowDeleted(e);
  1193. if ((this.ClientservicRowDeleted != null)) {
  1194. this.ClientservicRowDeleted(this, new ClientservicRowChangeEvent(((ClientservicRow)(e.Row)), e.Action));
  1195. }
  1196. }
  1197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1198. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1199. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1200. base.OnRowDeleting(e);
  1201. if ((this.ClientservicRowDeleting != null)) {
  1202. this.ClientservicRowDeleting(this, new ClientservicRowChangeEvent(((ClientservicRow)(e.Row)), e.Action));
  1203. }
  1204. }
  1205. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1206. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1207. public void RemoveClientservicRow(ClientservicRow row) {
  1208. this.Rows.Remove(row);
  1209. }
  1210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1212. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1213. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1214. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1215. RozenbergBrDataSet ds = new RozenbergBrDataSet();
  1216. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1217. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1218. any1.MinOccurs = new decimal(0);
  1219. any1.MaxOccurs = decimal.MaxValue;
  1220. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1221. sequence.Items.Add(any1);
  1222. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1223. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1224. any2.MinOccurs = new decimal(1);
  1225. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1226. sequence.Items.Add(any2);
  1227. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1228. attribute1.Name = "namespace";
  1229. attribute1.FixedValue = ds.Namespace;
  1230. type.Attributes.Add(attribute1);
  1231. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1232. attribute2.Name = "tableTypeName";
  1233. attribute2.FixedValue = "ClientservicDataTable";
  1234. type.Attributes.Add(attribute2);
  1235. type.Particle = sequence;
  1236. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1237. if (xs.Contains(dsSchema.TargetNamespace)) {
  1238. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1239. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1240. try {
  1241. global::System.Xml.Schema.XmlSchema schema = null;
  1242. dsSchema.Write(s1);
  1243. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1244. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1245. s2.SetLength(0);
  1246. schema.Write(s2);
  1247. if ((s1.Length == s2.Length)) {
  1248. s1.Position = 0;
  1249. s2.Position = 0;
  1250. for (; ((s1.Position != s1.Length)
  1251. && (s1.ReadByte() == s2.ReadByte())); ) {
  1252. ;
  1253. }
  1254. if ((s1.Position == s1.Length)) {
  1255. return type;
  1256. }
  1257. }
  1258. }
  1259. }
  1260. finally {
  1261. if ((s1 != null)) {
  1262. s1.Close();
  1263. }
  1264. if ((s2 != null)) {
  1265. s2.Close();
  1266. }
  1267. }
  1268. }
  1269. xs.Add(dsSchema);
  1270. return type;
  1271. }
  1272. }
  1273. /// <summary>
  1274. ///Represents the strongly named DataTable class.
  1275. ///</summary>
  1276. [global::System.Serializable()]
  1277. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1278. public partial class DocumentByServiceDataTable : global::System.Data.TypedTableBase<DocumentByServiceRow> {
  1279. private global::System.Data.DataColumn columnID;
  1280. private global::System.Data.DataColumn columnClientServiceID;
  1281. private global::System.Data.DataColumn columnDocumentPath;
  1282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1284. public DocumentByServiceDataTable() {
  1285. this.TableName = "DocumentByService";
  1286. this.BeginInit();
  1287. this.InitClass();
  1288. this.EndInit();
  1289. }
  1290. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1291. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1292. internal DocumentByServiceDataTable(global::System.Data.DataTable table) {
  1293. this.TableName = table.TableName;
  1294. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1295. this.CaseSensitive = table.CaseSensitive;
  1296. }
  1297. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1298. this.Locale = table.Locale;
  1299. }
  1300. if ((table.Namespace != table.DataSet.Namespace)) {
  1301. this.Namespace = table.Namespace;
  1302. }
  1303. this.Prefix = table.Prefix;
  1304. this.MinimumCapacity = table.MinimumCapacity;
  1305. }
  1306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1307. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1308. protected DocumentByServiceDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1309. base(info, context) {
  1310. this.InitVars();
  1311. }
  1312. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1313. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1314. public global::System.Data.DataColumn IDColumn {
  1315. get {
  1316. return this.columnID;
  1317. }
  1318. }
  1319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1320. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1321. public global::System.Data.DataColumn ClientServiceIDColumn {
  1322. get {
  1323. return this.columnClientServiceID;
  1324. }
  1325. }
  1326. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1327. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1328. public global::System.Data.DataColumn DocumentPathColumn {
  1329. get {
  1330. return this.columnDocumentPath;
  1331. }
  1332. }
  1333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1334. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1335. [global::System.ComponentModel.Browsable(false)]
  1336. public int Count {
  1337. get {
  1338. return this.Rows.Count;
  1339. }
  1340. }
  1341. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1342. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1343. public DocumentByServiceRow this[int index] {
  1344. get {
  1345. return ((DocumentByServiceRow)(this.Rows[index]));
  1346. }
  1347. }
  1348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1349. public event DocumentByServiceRowChangeEventHandler DocumentByServiceRowChanging;
  1350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1351. public event DocumentByServiceRowChangeEventHandler DocumentByServiceRowChanged;
  1352. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1353. public event DocumentByServiceRowChangeEventHandler DocumentByServiceRowDeleting;
  1354. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1355. public event DocumentByServiceRowChangeEventHandler DocumentByServiceRowDeleted;
  1356. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1357. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1358. public void AddDocumentByServiceRow(DocumentByServiceRow row) {
  1359. this.Rows.Add(row);
  1360. }
  1361. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1362. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1363. public DocumentByServiceRow AddDocumentByServiceRow(int ClientServiceID, string DocumentPath) {
  1364. DocumentByServiceRow rowDocumentByServiceRow = ((DocumentByServiceRow)(this.NewRow()));
  1365. object[] columnValuesArray = new object[] {
  1366. null,
  1367. ClientServiceID,
  1368. DocumentPath};
  1369. rowDocumentByServiceRow.ItemArray = columnValuesArray;
  1370. this.Rows.Add(rowDocumentByServiceRow);
  1371. return rowDocumentByServiceRow;
  1372. }
  1373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1374. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1375. public DocumentByServiceRow FindByID(int ID) {
  1376. return ((DocumentByServiceRow)(this.Rows.Find(new object[] {
  1377. ID})));
  1378. }
  1379. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1380. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1381. public override global::System.Data.DataTable Clone() {
  1382. DocumentByServiceDataTable cln = ((DocumentByServiceDataTable)(base.Clone()));
  1383. cln.InitVars();
  1384. return cln;
  1385. }
  1386. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1387. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1388. protected override global::System.Data.DataTable CreateInstance() {
  1389. return new DocumentByServiceDataTable();
  1390. }
  1391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1392. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1393. internal void InitVars() {
  1394. this.columnID = base.Columns["ID"];
  1395. this.columnClientServiceID = base.Columns["ClientServiceID"];
  1396. this.columnDocumentPath = base.Columns["DocumentPath"];
  1397. }
  1398. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1399. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1400. private void InitClass() {
  1401. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  1402. base.Columns.Add(this.columnID);
  1403. this.columnClientServiceID = new global::System.Data.DataColumn("ClientServiceID", typeof(int), null, global::System.Data.MappingType.Element);
  1404. base.Columns.Add(this.columnClientServiceID);
  1405. this.columnDocumentPath = new global::System.Data.DataColumn("DocumentPath", typeof(string), null, global::System.Data.MappingType.Element);
  1406. base.Columns.Add(this.columnDocumentPath);
  1407. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1408. this.columnID}, true));
  1409. this.columnID.AutoIncrement = true;
  1410. this.columnID.AutoIncrementSeed = -1;
  1411. this.columnID.AutoIncrementStep = -1;
  1412. this.columnID.AllowDBNull = false;
  1413. this.columnID.ReadOnly = true;
  1414. this.columnID.Unique = true;
  1415. this.columnClientServiceID.AllowDBNull = false;
  1416. this.columnDocumentPath.AllowDBNull = false;
  1417. this.columnDocumentPath.MaxLength = 1000;
  1418. }
  1419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1421. public DocumentByServiceRow NewDocumentByServiceRow() {
  1422. return ((DocumentByServiceRow)(this.NewRow()));
  1423. }
  1424. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1425. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1426. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1427. return new DocumentByServiceRow(builder);
  1428. }
  1429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1431. protected override global::System.Type GetRowType() {
  1432. return typeof(DocumentByServiceRow);
  1433. }
  1434. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1435. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1436. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1437. base.OnRowChanged(e);
  1438. if ((this.DocumentByServiceRowChanged != null)) {
  1439. this.DocumentByServiceRowChanged(this, new DocumentByServiceRowChangeEvent(((DocumentByServiceRow)(e.Row)), e.Action));
  1440. }
  1441. }
  1442. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1443. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1444. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1445. base.OnRowChanging(e);
  1446. if ((this.DocumentByServiceRowChanging != null)) {
  1447. this.DocumentByServiceRowChanging(this, new DocumentByServiceRowChangeEvent(((DocumentByServiceRow)(e.Row)), e.Action));
  1448. }
  1449. }
  1450. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1451. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1452. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1453. base.OnRowDeleted(e);
  1454. if ((this.DocumentByServiceRowDeleted != null)) {
  1455. this.DocumentByServiceRowDeleted(this, new DocumentByServiceRowChangeEvent(((DocumentByServiceRow)(e.Row)), e.Action));
  1456. }
  1457. }
  1458. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1459. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1460. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1461. base.OnRowDeleting(e);
  1462. if ((this.DocumentByServiceRowDeleting != null)) {
  1463. this.DocumentByServiceRowDeleting(this, new DocumentByServiceRowChangeEvent(((DocumentByServiceRow)(e.Row)), e.Action));
  1464. }
  1465. }
  1466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1468. public void RemoveDocumentByServiceRow(DocumentByServiceRow row) {
  1469. this.Rows.Remove(row);
  1470. }
  1471. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1473. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1474. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1475. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1476. RozenbergBrDataSet ds = new RozenbergBrDataSet();
  1477. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1478. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1479. any1.MinOccurs = new decimal(0);
  1480. any1.MaxOccurs = decimal.MaxValue;
  1481. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1482. sequence.Items.Add(any1);
  1483. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1484. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1485. any2.MinOccurs = new decimal(1);
  1486. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1487. sequence.Items.Add(any2);
  1488. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1489. attribute1.Name = "namespace";
  1490. attribute1.FixedValue = ds.Namespace;
  1491. type.Attributes.Add(attribute1);
  1492. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1493. attribute2.Name = "tableTypeName";
  1494. attribute2.FixedValue = "DocumentByServiceDataTable";
  1495. type.Attributes.Add(attribute2);
  1496. type.Particle = sequence;
  1497. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1498. if (xs.Contains(dsSchema.TargetNamespace)) {
  1499. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1500. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1501. try {
  1502. global::System.Xml.Schema.XmlSchema schema = null;
  1503. dsSchema.Write(s1);
  1504. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1505. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1506. s2.SetLength(0);
  1507. schema.Write(s2);
  1508. if ((s1.Length == s2.Length)) {
  1509. s1.Position = 0;
  1510. s2.Position = 0;
  1511. for (; ((s1.Position != s1.Length)
  1512. && (s1.ReadByte() == s2.ReadByte())); ) {
  1513. ;
  1514. }
  1515. if ((s1.Position == s1.Length)) {
  1516. return type;
  1517. }
  1518. }
  1519. }
  1520. }
  1521. finally {
  1522. if ((s1 != null)) {
  1523. s1.Close();
  1524. }
  1525. if ((s2 != null)) {
  1526. s2.Close();
  1527. }
  1528. }
  1529. }
  1530. xs.Add(dsSchema);
  1531. return type;
  1532. }
  1533. }
  1534. /// <summary>
  1535. ///Represents the strongly named DataTable class.
  1536. ///</summary>
  1537. [global::System.Serializable()]
  1538. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1539. public partial class GenderDataTable : global::System.Data.TypedTableBase<GenderRow> {
  1540. private global::System.Data.DataColumn columnCode;
  1541. private global::System.Data.DataColumn columnName;
  1542. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1543. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1544. public GenderDataTable() {
  1545. this.TableName = "Gender";
  1546. this.BeginInit();
  1547. this.InitClass();
  1548. this.EndInit();
  1549. }
  1550. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1551. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1552. internal GenderDataTable(global::System.Data.DataTable table) {
  1553. this.TableName = table.TableName;
  1554. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1555. this.CaseSensitive = table.CaseSensitive;
  1556. }
  1557. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1558. this.Locale = table.Locale;
  1559. }
  1560. if ((table.Namespace != table.DataSet.Namespace)) {
  1561. this.Namespace = table.Namespace;
  1562. }
  1563. this.Prefix = table.Prefix;
  1564. this.MinimumCapacity = table.MinimumCapacity;
  1565. }
  1566. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1567. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1568. protected GenderDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1569. base(info, context) {
  1570. this.InitVars();
  1571. }
  1572. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1573. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1574. public global::System.Data.DataColumn CodeColumn {
  1575. get {
  1576. return this.columnCode;
  1577. }
  1578. }
  1579. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1580. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1581. public global::System.Data.DataColumn NameColumn {
  1582. get {
  1583. return this.columnName;
  1584. }
  1585. }
  1586. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1587. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1588. [global::System.ComponentModel.Browsable(false)]
  1589. public int Count {
  1590. get {
  1591. return this.Rows.Count;
  1592. }
  1593. }
  1594. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1595. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1596. public GenderRow this[int index] {
  1597. get {
  1598. return ((GenderRow)(this.Rows[index]));
  1599. }
  1600. }
  1601. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1602. public event GenderRowChangeEventHandler GenderRowChanging;
  1603. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1604. public event GenderRowChangeEventHandler GenderRowChanged;
  1605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1606. public event GenderRowChangeEventHandler GenderRowDeleting;
  1607. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1608. public event GenderRowChangeEventHandler GenderRowDeleted;
  1609. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1610. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1611. public void AddGenderRow(GenderRow row) {
  1612. this.Rows.Add(row);
  1613. }
  1614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1615. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1616. public GenderRow AddGenderRow(int Code, string Name) {
  1617. GenderRow rowGenderRow = ((GenderRow)(this.NewRow()));
  1618. object[] columnValuesArray = new object[] {
  1619. Code,
  1620. Name};
  1621. rowGenderRow.ItemArray = columnValuesArray;
  1622. this.Rows.Add(rowGenderRow);
  1623. return rowGenderRow;
  1624. }
  1625. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1626. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1627. public GenderRow FindByCode(int Code) {
  1628. return ((GenderRow)(this.Rows.Find(new object[] {
  1629. Code})));
  1630. }
  1631. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1632. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1633. public override global::System.Data.DataTable Clone() {
  1634. GenderDataTable cln = ((GenderDataTable)(base.Clone()));
  1635. cln.InitVars();
  1636. return cln;
  1637. }
  1638. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1639. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1640. protected override global::System.Data.DataTable CreateInstance() {
  1641. return new GenderDataTable();
  1642. }
  1643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1644. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1645. internal void InitVars() {
  1646. this.columnCode = base.Columns["Code"];
  1647. this.columnName = base.Columns["Name"];
  1648. }
  1649. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1650. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1651. private void InitClass() {
  1652. this.columnCode = new global::System.Data.DataColumn("Code", typeof(int), null, global::System.Data.MappingType.Element);
  1653. base.Columns.Add(this.columnCode);
  1654. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  1655. base.Columns.Add(this.columnName);
  1656. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1657. this.columnCode}, true));
  1658. this.columnCode.AllowDBNull = false;
  1659. this.columnCode.Unique = true;
  1660. this.columnName.MaxLength = 10;
  1661. }
  1662. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1663. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1664. public GenderRow NewGenderRow() {
  1665. return ((GenderRow)(this.NewRow()));
  1666. }
  1667. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1668. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1669. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1670. return new GenderRow(builder);
  1671. }
  1672. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1674. protected override global::System.Type GetRowType() {
  1675. return typeof(GenderRow);
  1676. }
  1677. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1678. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1679. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1680. base.OnRowChanged(e);
  1681. if ((this.GenderRowChanged != null)) {
  1682. this.GenderRowChanged(this, new GenderRowChangeEvent(((GenderRow)(e.Row)), e.Action));
  1683. }
  1684. }
  1685. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1686. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1687. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1688. base.OnRowChanging(e);
  1689. if ((this.GenderRowChanging != null)) {
  1690. this.GenderRowChanging(this, new GenderRowChangeEvent(((GenderRow)(e.Row)), e.Action));
  1691. }
  1692. }
  1693. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1694. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1695. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1696. base.OnRowDeleted(e);
  1697. if ((this.GenderRowDeleted != null)) {
  1698. this.GenderRowDeleted(this, new GenderRowChangeEvent(((GenderRow)(e.Row)), e.Action));
  1699. }
  1700. }
  1701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1702. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1703. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1704. base.OnRowDeleting(e);
  1705. if ((this.GenderRowDeleting != null)) {
  1706. this.GenderRowDeleting(this, new GenderRowChangeEvent(((GenderRow)(e.Row)), e.Action));
  1707. }
  1708. }
  1709. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1710. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1711. public void RemoveGenderRow(GenderRow row) {
  1712. this.Rows.Remove(row);
  1713. }
  1714. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1715. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1716. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1717. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1718. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1719. RozenbergBrDataSet ds = new RozenbergBrDataSet();
  1720. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1721. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1722. any1.MinOccurs = new decimal(0);
  1723. any1.MaxOccurs = decimal.MaxValue;
  1724. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1725. sequence.Items.Add(any1);
  1726. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1727. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1728. any2.MinOccurs = new decimal(1);
  1729. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1730. sequence.Items.Add(any2);
  1731. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1732. attribute1.Name = "namespace";
  1733. attribute1.FixedValue = ds.Namespace;
  1734. type.Attributes.Add(attribute1);
  1735. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1736. attribute2.Name = "tableTypeName";
  1737. attribute2.FixedValue = "GenderDataTable";
  1738. type.Attributes.Add(attribute2);
  1739. type.Particle = sequence;
  1740. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1741. if (xs.Contains(dsSchema.TargetNamespace)) {
  1742. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1743. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1744. try {
  1745. global::System.Xml.Schema.XmlSchema schema = null;
  1746. dsSchema.Write(s1);
  1747. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1748. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1749. s2.SetLength(0);
  1750. schema.Write(s2);
  1751. if ((s1.Length == s2.Length)) {
  1752. s1.Position = 0;
  1753. s2.Position = 0;
  1754. for (; ((s1.Position != s1.Length)
  1755. && (s1.ReadByte() == s2.ReadByte())); ) {
  1756. ;
  1757. }
  1758. if ((s1.Position == s1.Length)) {
  1759. return type;
  1760. }
  1761. }
  1762. }
  1763. }
  1764. finally {
  1765. if ((s1 != null)) {
  1766. s1.Close();
  1767. }
  1768. if ((s2 != null)) {
  1769. s2.Close();
  1770. }
  1771. }
  1772. }
  1773. xs.Add(dsSchema);
  1774. return type;
  1775. }
  1776. }
  1777. /// <summary>
  1778. ///Represents the strongly named DataTable class.
  1779. ///</summary>
  1780. [global::System.Serializable()]
  1781. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1782. public partial class LoginpassDataTable : global::System.Data.TypedTableBase<LoginpassRow> {
  1783. private global::System.Data.DataColumn columnid;
  1784. private global::System.Data.DataColumn columnLogin;
  1785. private global::System.Data.DataColumn columnPass;
  1786. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1787. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1788. public LoginpassDataTable() {
  1789. this.TableName = "Loginpass";
  1790. this.BeginInit();
  1791. this.InitClass();
  1792. this.EndInit();
  1793. }
  1794. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1795. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1796. internal LoginpassDataTable(global::System.Data.DataTable table) {
  1797. this.TableName = table.TableName;
  1798. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1799. this.CaseSensitive = table.CaseSensitive;
  1800. }
  1801. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1802. this.Locale = table.Locale;
  1803. }
  1804. if ((table.Namespace != table.DataSet.Namespace)) {
  1805. this.Namespace = table.Namespace;
  1806. }
  1807. this.Prefix = table.Prefix;
  1808. this.MinimumCapacity = table.MinimumCapacity;
  1809. }
  1810. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1811. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1812. protected LoginpassDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1813. base(info, context) {
  1814. this.InitVars();
  1815. }
  1816. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1817. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1818. public global::System.Data.DataColumn idColumn {
  1819. get {
  1820. return this.columnid;
  1821. }
  1822. }
  1823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1824. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1825. public global::System.Data.DataColumn LoginColumn {
  1826. get {
  1827. return this.columnLogin;
  1828. }
  1829. }
  1830. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1831. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1832. public global::System.Data.DataColumn PassColumn {
  1833. get {
  1834. return this.columnPass;
  1835. }
  1836. }
  1837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1839. [global::System.ComponentModel.Browsable(false)]
  1840. public int Count {
  1841. get {
  1842. return this.Rows.Count;
  1843. }
  1844. }
  1845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1846. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1847. public LoginpassRow this[int index] {
  1848. get {
  1849. return ((LoginpassRow)(this.Rows[index]));
  1850. }
  1851. }
  1852. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1853. public event LoginpassRowChangeEventHandler LoginpassRowChanging;
  1854. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1855. public event LoginpassRowChangeEventHandler LoginpassRowChanged;
  1856. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1857. public event LoginpassRowChangeEventHandler LoginpassRowDeleting;
  1858. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1859. public event LoginpassRowChangeEventHandler LoginpassRowDeleted;
  1860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1862. public void AddLoginpassRow(LoginpassRow row) {
  1863. this.Rows.Add(row);
  1864. }
  1865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1867. public LoginpassRow AddLoginpassRow(string Login, string Pass) {
  1868. LoginpassRow rowLoginpassRow = ((LoginpassRow)(this.NewRow()));
  1869. object[] columnValuesArray = new object[] {
  1870. null,
  1871. Login,
  1872. Pass};
  1873. rowLoginpassRow.ItemArray = columnValuesArray;
  1874. this.Rows.Add(rowLoginpassRow);
  1875. return rowLoginpassRow;
  1876. }
  1877. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1878. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1879. public LoginpassRow FindByid(int id) {
  1880. return ((LoginpassRow)(this.Rows.Find(new object[] {
  1881. id})));
  1882. }
  1883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1884. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1885. public override global::System.Data.DataTable Clone() {
  1886. LoginpassDataTable cln = ((LoginpassDataTable)(base.Clone()));
  1887. cln.InitVars();
  1888. return cln;
  1889. }
  1890. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1891. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1892. protected override global::System.Data.DataTable CreateInstance() {
  1893. return new LoginpassDataTable();
  1894. }
  1895. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1896. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1897. internal void InitVars() {
  1898. this.columnid = base.Columns["id"];
  1899. this.columnLogin = base.Columns["Login"];
  1900. this.columnPass = base.Columns["Pass"];
  1901. }
  1902. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1903. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1904. private void InitClass() {
  1905. this.columnid = new global::System.Data.DataColumn("id", typeof(int), null, global::System.Data.MappingType.Element);
  1906. base.Columns.Add(this.columnid);
  1907. this.columnLogin = new global::System.Data.DataColumn("Login", typeof(string), null, global::System.Data.MappingType.Element);
  1908. base.Columns.Add(this.columnLogin);
  1909. this.columnPass = new global::System.Data.DataColumn("Pass", typeof(string), null, global::System.Data.MappingType.Element);
  1910. base.Columns.Add(this.columnPass);
  1911. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1912. this.columnid}, true));
  1913. this.columnid.AutoIncrement = true;
  1914. this.columnid.AutoIncrementSeed = -1;
  1915. this.columnid.AutoIncrementStep = -1;
  1916. this.columnid.AllowDBNull = false;
  1917. this.columnid.ReadOnly = true;
  1918. this.columnid.Unique = true;
  1919. this.columnLogin.AllowDBNull = false;
  1920. this.columnLogin.MaxLength = 50;
  1921. this.columnPass.AllowDBNull = false;
  1922. this.columnPass.MaxLength = 50;
  1923. }
  1924. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1925. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1926. public LoginpassRow NewLoginpassRow() {
  1927. return ((LoginpassRow)(this.NewRow()));
  1928. }
  1929. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1930. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1931. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1932. return new LoginpassRow(builder);
  1933. }
  1934. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1935. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1936. protected override global::System.Type GetRowType() {
  1937. return typeof(LoginpassRow);
  1938. }
  1939. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1940. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1941. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1942. base.OnRowChanged(e);
  1943. if ((this.LoginpassRowChanged != null)) {
  1944. this.LoginpassRowChanged(this, new LoginpassRowChangeEvent(((LoginpassRow)(e.Row)), e.Action));
  1945. }
  1946. }
  1947. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1948. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1949. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1950. base.OnRowChanging(e);
  1951. if ((this.LoginpassRowChanging != null)) {
  1952. this.LoginpassRowChanging(this, new LoginpassRowChangeEvent(((LoginpassRow)(e.Row)), e.Action));
  1953. }
  1954. }
  1955. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1956. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1957. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1958. base.OnRowDeleted(e);
  1959. if ((this.LoginpassRowDeleted != null)) {
  1960. this.LoginpassRowDeleted(this, new LoginpassRowChangeEvent(((LoginpassRow)(e.Row)), e.Action));
  1961. }
  1962. }
  1963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1965. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1966. base.OnRowDeleting(e);
  1967. if ((this.LoginpassRowDeleting != null)) {
  1968. this.LoginpassRowDeleting(this, new LoginpassRowChangeEvent(((LoginpassRow)(e.Row)), e.Action));
  1969. }
  1970. }
  1971. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1972. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1973. public void RemoveLoginpassRow(LoginpassRow row) {
  1974. this.Rows.Remove(row);
  1975. }
  1976. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1977. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1978. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1979. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1980. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1981. RozenbergBrDataSet ds = new RozenbergBrDataSet();
  1982. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1983. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1984. any1.MinOccurs = new decimal(0);
  1985. any1.MaxOccurs = decimal.MaxValue;
  1986. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1987. sequence.Items.Add(any1);
  1988. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1989. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1990. any2.MinOccurs = new decimal(1);
  1991. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1992. sequence.Items.Add(any2);
  1993. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1994. attribute1.Name = "namespace";
  1995. attribute1.FixedValue = ds.Namespace;
  1996. type.Attributes.Add(attribute1);
  1997. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1998. attribute2.Name = "tableTypeName";
  1999. attribute2.FixedValue = "LoginpassDataTable";
  2000. type.Attributes.Add(attribute2);
  2001. type.Particle = sequence;
  2002. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2003. if (xs.Contains(dsSchema.TargetNamespace)) {
  2004. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2005. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2006. try {
  2007. global::System.Xml.Schema.XmlSchema schema = null;
  2008. dsSchema.Write(s1);
  2009. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2010. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2011. s2.SetLength(0);
  2012. schema.Write(s2);
  2013. if ((s1.Length == s2.Length)) {
  2014. s1.Position = 0;
  2015. s2.Position = 0;
  2016. for (; ((s1.Position != s1.Length)
  2017. && (s1.ReadByte() == s2.ReadByte())); ) {
  2018. ;
  2019. }
  2020. if ((s1.Position == s1.Length)) {
  2021. return type;
  2022. }
  2023. }
  2024. }
  2025. }
  2026. finally {
  2027. if ((s1 != null)) {
  2028. s1.Close();
  2029. }
  2030. if ((s2 != null)) {
  2031. s2.Close();
  2032. }
  2033. }
  2034. }
  2035. xs.Add(dsSchema);
  2036. return type;
  2037. }
  2038. }
  2039. /// <summary>
  2040. ///Represents the strongly named DataTable class.
  2041. ///</summary>
  2042. [global::System.Serializable()]
  2043. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2044. public partial class ManufacturerDataTable : global::System.Data.TypedTableBase<ManufacturerRow> {
  2045. private global::System.Data.DataColumn columnID;
  2046. private global::System.Data.DataColumn columnName;
  2047. private global::System.Data.DataColumn columnStartDate;
  2048. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2049. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2050. public ManufacturerDataTable() {
  2051. this.TableName = "Manufacturer";
  2052. this.BeginInit();
  2053. this.InitClass();
  2054. this.EndInit();
  2055. }
  2056. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2057. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2058. internal ManufacturerDataTable(global::System.Data.DataTable table) {
  2059. this.TableName = table.TableName;
  2060. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2061. this.CaseSensitive = table.CaseSensitive;
  2062. }
  2063. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2064. this.Locale = table.Locale;
  2065. }
  2066. if ((table.Namespace != table.DataSet.Namespace)) {
  2067. this.Namespace = table.Namespace;
  2068. }
  2069. this.Prefix = table.Prefix;
  2070. this.MinimumCapacity = table.MinimumCapacity;
  2071. }
  2072. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2073. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2074. protected ManufacturerDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2075. base(info, context) {
  2076. this.InitVars();
  2077. }
  2078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2079. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2080. public global::System.Data.DataColumn IDColumn {
  2081. get {
  2082. return this.columnID;
  2083. }
  2084. }
  2085. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2086. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2087. public global::System.Data.DataColumn NameColumn {
  2088. get {
  2089. return this.columnName;
  2090. }
  2091. }
  2092. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2093. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2094. public global::System.Data.DataColumn StartDateColumn {
  2095. get {
  2096. return this.columnStartDate;
  2097. }
  2098. }
  2099. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2100. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2101. [global::System.ComponentModel.Browsable(false)]
  2102. public int Count {
  2103. get {
  2104. return this.Rows.Count;
  2105. }
  2106. }
  2107. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2108. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2109. public ManufacturerRow this[int index] {
  2110. get {
  2111. return ((ManufacturerRow)(this.Rows[index]));
  2112. }
  2113. }
  2114. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2115. public event ManufacturerRowChangeEventHandler ManufacturerRowChanging;
  2116. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2117. public event ManufacturerRowChangeEventHandler ManufacturerRowChanged;
  2118. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2119. public event ManufacturerRowChangeEventHandler ManufacturerRowDeleting;
  2120. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2121. public event ManufacturerRowChangeEventHandler ManufacturerRowDeleted;
  2122. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2123. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2124. public void AddManufacturerRow(ManufacturerRow row) {
  2125. this.Rows.Add(row);
  2126. }
  2127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2128. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2129. public ManufacturerRow AddManufacturerRow(string Name, System.DateTime StartDate) {
  2130. ManufacturerRow rowManufacturerRow = ((ManufacturerRow)(this.NewRow()));
  2131. object[] columnValuesArray = new object[] {
  2132. null,
  2133. Name,
  2134. StartDate};
  2135. rowManufacturerRow.ItemArray = columnValuesArray;
  2136. this.Rows.Add(rowManufacturerRow);
  2137. return rowManufacturerRow;
  2138. }
  2139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2141. public ManufacturerRow FindByID(int ID) {
  2142. return ((ManufacturerRow)(this.Rows.Find(new object[] {
  2143. ID})));
  2144. }
  2145. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2146. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2147. public override global::System.Data.DataTable Clone() {
  2148. ManufacturerDataTable cln = ((ManufacturerDataTable)(base.Clone()));
  2149. cln.InitVars();
  2150. return cln;
  2151. }
  2152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2154. protected override global::System.Data.DataTable CreateInstance() {
  2155. return new ManufacturerDataTable();
  2156. }
  2157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2159. internal void InitVars() {
  2160. this.columnID = base.Columns["ID"];
  2161. this.columnName = base.Columns["Name"];
  2162. this.columnStartDate = base.Columns["StartDate"];
  2163. }
  2164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2165. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2166. private void InitClass() {
  2167. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  2168. base.Columns.Add(this.columnID);
  2169. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  2170. base.Columns.Add(this.columnName);
  2171. this.columnStartDate = new global::System.Data.DataColumn("StartDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  2172. base.Columns.Add(this.columnStartDate);
  2173. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2174. this.columnID}, true));
  2175. this.columnID.AutoIncrement = true;
  2176. this.columnID.AutoIncrementSeed = -1;
  2177. this.columnID.AutoIncrementStep = -1;
  2178. this.columnID.AllowDBNull = false;
  2179. this.columnID.ReadOnly = true;
  2180. this.columnID.Unique = true;
  2181. this.columnName.AllowDBNull = false;
  2182. this.columnName.MaxLength = 100;
  2183. }
  2184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2186. public ManufacturerRow NewManufacturerRow() {
  2187. return ((ManufacturerRow)(this.NewRow()));
  2188. }
  2189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2191. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2192. return new ManufacturerRow(builder);
  2193. }
  2194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2196. protected override global::System.Type GetRowType() {
  2197. return typeof(ManufacturerRow);
  2198. }
  2199. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2200. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2201. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2202. base.OnRowChanged(e);
  2203. if ((this.ManufacturerRowChanged != null)) {
  2204. this.ManufacturerRowChanged(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  2205. }
  2206. }
  2207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2208. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2209. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2210. base.OnRowChanging(e);
  2211. if ((this.ManufacturerRowChanging != null)) {
  2212. this.ManufacturerRowChanging(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  2213. }
  2214. }
  2215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2216. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2217. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2218. base.OnRowDeleted(e);
  2219. if ((this.ManufacturerRowDeleted != null)) {
  2220. this.ManufacturerRowDeleted(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  2221. }
  2222. }
  2223. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2224. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2225. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2226. base.OnRowDeleting(e);
  2227. if ((this.ManufacturerRowDeleting != null)) {
  2228. this.ManufacturerRowDeleting(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  2229. }
  2230. }
  2231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2233. public void RemoveManufacturerRow(ManufacturerRow row) {
  2234. this.Rows.Remove(row);
  2235. }
  2236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2237. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2238. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2239. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2240. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2241. RozenbergBrDataSet ds = new RozenbergBrDataSet();
  2242. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2243. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2244. any1.MinOccurs = new decimal(0);
  2245. any1.MaxOccurs = decimal.MaxValue;
  2246. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2247. sequence.Items.Add(any1);
  2248. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2249. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2250. any2.MinOccurs = new decimal(1);
  2251. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2252. sequence.Items.Add(any2);
  2253. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2254. attribute1.Name = "namespace";
  2255. attribute1.FixedValue = ds.Namespace;
  2256. type.Attributes.Add(attribute1);
  2257. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2258. attribute2.Name = "tableTypeName";
  2259. attribute2.FixedValue = "ManufacturerDataTable";
  2260. type.Attributes.Add(attribute2);
  2261. type.Particle = sequence;
  2262. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2263. if (xs.Contains(dsSchema.TargetNamespace)) {
  2264. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2265. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2266. try {
  2267. global::System.Xml.Schema.XmlSchema schema = null;
  2268. dsSchema.Write(s1);
  2269. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2270. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2271. s2.SetLength(0);
  2272. schema.Write(s2);
  2273. if ((s1.Length == s2.Length)) {
  2274. s1.Position = 0;
  2275. s2.Position = 0;
  2276. for (; ((s1.Position != s1.Length)
  2277. && (s1.ReadByte() == s2.ReadByte())); ) {
  2278. ;
  2279. }
  2280. if ((s1.Position == s1.Length)) {
  2281. return type;
  2282. }
  2283. }
  2284. }
  2285. }
  2286. finally {
  2287. if ((s1 != null)) {
  2288. s1.Close();
  2289. }
  2290. if ((s2 != null)) {
  2291. s2.Close();
  2292. }
  2293. }
  2294. }
  2295. xs.Add(dsSchema);
  2296. return type;
  2297. }
  2298. }
  2299. /// <summary>
  2300. ///Represents the strongly named DataTable class.
  2301. ///</summary>
  2302. [global::System.Serializable()]
  2303. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2304. public partial class ProductDataTable : global::System.Data.TypedTableBase<ProductRow> {
  2305. private global::System.Data.DataColumn columnID;
  2306. private global::System.Data.DataColumn columnTitle;
  2307. private global::System.Data.DataColumn columnCost;
  2308. private global::System.Data.DataColumn columnDescription;
  2309. private global::System.Data.DataColumn columnMainImagePath;
  2310. private global::System.Data.DataColumn columnIsActive;
  2311. private global::System.Data.DataColumn columnManufacturerID;
  2312. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2313. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2314. public ProductDataTable() {
  2315. this.TableName = "Product";
  2316. this.BeginInit();
  2317. this.InitClass();
  2318. this.EndInit();
  2319. }
  2320. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2321. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2322. internal ProductDataTable(global::System.Data.DataTable table) {
  2323. this.TableName = table.TableName;
  2324. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2325. this.CaseSensitive = table.CaseSensitive;
  2326. }
  2327. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2328. this.Locale = table.Locale;
  2329. }
  2330. if ((table.Namespace != table.DataSet.Namespace)) {
  2331. this.Namespace = table.Namespace;
  2332. }
  2333. this.Prefix = table.Prefix;
  2334. this.MinimumCapacity = table.MinimumCapacity;
  2335. }
  2336. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2337. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2338. protected ProductDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2339. base(info, context) {
  2340. this.InitVars();
  2341. }
  2342. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2343. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2344. public global::System.Data.DataColumn IDColumn {
  2345. get {
  2346. return this.columnID;
  2347. }
  2348. }
  2349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2351. public global::System.Data.DataColumn TitleColumn {
  2352. get {
  2353. return this.columnTitle;
  2354. }
  2355. }
  2356. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2357. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2358. public global::System.Data.DataColumn CostColumn {
  2359. get {
  2360. return this.columnCost;
  2361. }
  2362. }
  2363. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2364. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2365. public global::System.Data.DataColumn DescriptionColumn {
  2366. get {
  2367. return this.columnDescription;
  2368. }
  2369. }
  2370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2371. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2372. public global::System.Data.DataColumn MainImagePathColumn {
  2373. get {
  2374. return this.columnMainImagePath;
  2375. }
  2376. }
  2377. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2378. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2379. public global::System.Data.DataColumn IsActiveColumn {
  2380. get {
  2381. return this.columnIsActive;
  2382. }
  2383. }
  2384. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2385. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2386. public global::System.Data.DataColumn ManufacturerIDColumn {
  2387. get {
  2388. return this.columnManufacturerID;
  2389. }
  2390. }
  2391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2392. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2393. [global::System.ComponentModel.Browsable(false)]
  2394. public int Count {
  2395. get {
  2396. return this.Rows.Count;
  2397. }
  2398. }
  2399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2401. public ProductRow this[int index] {
  2402. get {
  2403. return ((ProductRow)(this.Rows[index]));
  2404. }
  2405. }
  2406. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2407. public event ProductRowChangeEventHandler ProductRowChanging;
  2408. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2409. public event ProductRowChangeEventHandler ProductRowChanged;
  2410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2411. public event ProductRowChangeEventHandler ProductRowDeleting;
  2412. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2413. public event ProductRowChangeEventHandler ProductRowDeleted;
  2414. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2415. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2416. public void AddProductRow(ProductRow row) {
  2417. this.Rows.Add(row);
  2418. }
  2419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2421. public ProductRow AddProductRow(string Title, decimal Cost, string Description, string MainImagePath, bool IsActive, ManufacturerRow parentManufacturerRowByFK_Product_Manufacturer) {
  2422. ProductRow rowProductRow = ((ProductRow)(this.NewRow()));
  2423. object[] columnValuesArray = new object[] {
  2424. null,
  2425. Title,
  2426. Cost,
  2427. Description,
  2428. MainImagePath,
  2429. IsActive,
  2430. null};
  2431. if ((parentManufacturerRowByFK_Product_Manufacturer != null)) {
  2432. columnValuesArray[6] = parentManufacturerRowByFK_Product_Manufacturer[0];
  2433. }
  2434. rowProductRow.ItemArray = columnValuesArray;
  2435. this.Rows.Add(rowProductRow);
  2436. return rowProductRow;
  2437. }
  2438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2439. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2440. public ProductRow FindByID(int ID) {
  2441. return ((ProductRow)(this.Rows.Find(new object[] {
  2442. ID})));
  2443. }
  2444. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2445. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2446. public override global::System.Data.DataTable Clone() {
  2447. ProductDataTable cln = ((ProductDataTable)(base.Clone()));
  2448. cln.InitVars();
  2449. return cln;
  2450. }
  2451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2452. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2453. protected override global::System.Data.DataTable CreateInstance() {
  2454. return new ProductDataTable();
  2455. }
  2456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2457. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2458. internal void InitVars() {
  2459. this.columnID = base.Columns["ID"];
  2460. this.columnTitle = base.Columns["Title"];
  2461. this.columnCost = base.Columns["Cost"];
  2462. this.columnDescription = base.Columns["Description"];
  2463. this.columnMainImagePath = base.Columns["MainImagePath"];
  2464. this.columnIsActive = base.Columns["IsActive"];
  2465. this.columnManufacturerID = base.Columns["ManufacturerID"];
  2466. }
  2467. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2468. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2469. private void InitClass() {
  2470. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  2471. base.Columns.Add(this.columnID);
  2472. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  2473. base.Columns.Add(this.columnTitle);
  2474. this.columnCost = new global::System.Data.DataColumn("Cost", typeof(decimal), null, global::System.Data.MappingType.Element);
  2475. base.Columns.Add(this.columnCost);
  2476. this.columnDescription = new global::System.Data.DataColumn("Description", typeof(string), null, global::System.Data.MappingType.Element);
  2477. base.Columns.Add(this.columnDescription);
  2478. this.columnMainImagePath = new global::System.Data.DataColumn("MainImagePath", typeof(string), null, global::System.Data.MappingType.Element);
  2479. base.Columns.Add(this.columnMainImagePath);
  2480. this.columnIsActive = new global::System.Data.DataColumn("IsActive", typeof(bool), null, global::System.Data.MappingType.Element);
  2481. base.Columns.Add(this.columnIsActive);
  2482. this.columnManufacturerID = new global::System.Data.DataColumn("ManufacturerID", typeof(int), null, global::System.Data.MappingType.Element);
  2483. base.Columns.Add(this.columnManufacturerID);
  2484. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2485. this.columnID}, true));
  2486. this.columnID.AutoIncrement = true;
  2487. this.columnID.AutoIncrementSeed = -1;
  2488. this.columnID.AutoIncrementStep = -1;
  2489. this.columnID.AllowDBNull = false;
  2490. this.columnID.ReadOnly = true;
  2491. this.columnID.Unique = true;
  2492. this.columnTitle.AllowDBNull = false;
  2493. this.columnTitle.MaxLength = 100;
  2494. this.columnCost.AllowDBNull = false;
  2495. this.columnDescription.MaxLength = 2147483647;
  2496. this.columnMainImagePath.MaxLength = 1000;
  2497. this.columnIsActive.AllowDBNull = false;
  2498. }
  2499. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2500. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2501. public ProductRow NewProductRow() {
  2502. return ((ProductRow)(this.NewRow()));
  2503. }
  2504. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2505. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2506. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2507. return new ProductRow(builder);
  2508. }
  2509. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2510. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2511. protected override global::System.Type GetRowType() {
  2512. return typeof(ProductRow);
  2513. }
  2514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2515. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2516. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2517. base.OnRowChanged(e);
  2518. if ((this.ProductRowChanged != null)) {
  2519. this.ProductRowChanged(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2520. }
  2521. }
  2522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2524. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2525. base.OnRowChanging(e);
  2526. if ((this.ProductRowChanging != null)) {
  2527. this.ProductRowChanging(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2528. }
  2529. }
  2530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2532. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2533. base.OnRowDeleted(e);
  2534. if ((this.ProductRowDeleted != null)) {
  2535. this.ProductRowDeleted(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2536. }
  2537. }
  2538. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2539. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2540. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2541. base.OnRowDeleting(e);
  2542. if ((this.ProductRowDeleting != null)) {
  2543. this.ProductRowDeleting(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2544. }
  2545. }
  2546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2548. public void RemoveProductRow(ProductRow row) {
  2549. this.Rows.Remove(row);
  2550. }
  2551. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2552. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2553. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2554. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2555. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2556. RozenbergBrDataSet ds = new RozenbergBrDataSet();
  2557. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2558. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2559. any1.MinOccurs = new decimal(0);
  2560. any1.MaxOccurs = decimal.MaxValue;
  2561. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2562. sequence.Items.Add(any1);
  2563. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2564. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2565. any2.MinOccurs = new decimal(1);
  2566. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2567. sequence.Items.Add(any2);
  2568. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2569. attribute1.Name = "namespace";
  2570. attribute1.FixedValue = ds.Namespace;
  2571. type.Attributes.Add(attribute1);
  2572. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2573. attribute2.Name = "tableTypeName";
  2574. attribute2.FixedValue = "ProductDataTable";
  2575. type.Attributes.Add(attribute2);
  2576. type.Particle = sequence;
  2577. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2578. if (xs.Contains(dsSchema.TargetNamespace)) {
  2579. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2580. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2581. try {
  2582. global::System.Xml.Schema.XmlSchema schema = null;
  2583. dsSchema.Write(s1);
  2584. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2585. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2586. s2.SetLength(0);
  2587. schema.Write(s2);
  2588. if ((s1.Length == s2.Length)) {
  2589. s1.Position = 0;
  2590. s2.Position = 0;
  2591. for (; ((s1.Position != s1.Length)
  2592. && (s1.ReadByte() == s2.ReadByte())); ) {
  2593. ;
  2594. }
  2595. if ((s1.Position == s1.Length)) {
  2596. return type;
  2597. }
  2598. }
  2599. }
  2600. }
  2601. finally {
  2602. if ((s1 != null)) {
  2603. s1.Close();
  2604. }
  2605. if ((s2 != null)) {
  2606. s2.Close();
  2607. }
  2608. }
  2609. }
  2610. xs.Add(dsSchema);
  2611. return type;
  2612. }
  2613. }
  2614. /// <summary>
  2615. ///Represents the strongly named DataTable class.
  2616. ///</summary>
  2617. [global::System.Serializable()]
  2618. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2619. public partial class ProductPhotoDataTable : global::System.Data.TypedTableBase<ProductPhotoRow> {
  2620. private global::System.Data.DataColumn columnID;
  2621. private global::System.Data.DataColumn columnProductID;
  2622. private global::System.Data.DataColumn columnPhotoPath;
  2623. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2625. public ProductPhotoDataTable() {
  2626. this.TableName = "ProductPhoto";
  2627. this.BeginInit();
  2628. this.InitClass();
  2629. this.EndInit();
  2630. }
  2631. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2632. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2633. internal ProductPhotoDataTable(global::System.Data.DataTable table) {
  2634. this.TableName = table.TableName;
  2635. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2636. this.CaseSensitive = table.CaseSensitive;
  2637. }
  2638. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2639. this.Locale = table.Locale;
  2640. }
  2641. if ((table.Namespace != table.DataSet.Namespace)) {
  2642. this.Namespace = table.Namespace;
  2643. }
  2644. this.Prefix = table.Prefix;
  2645. this.MinimumCapacity = table.MinimumCapacity;
  2646. }
  2647. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2648. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2649. protected ProductPhotoDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2650. base(info, context) {
  2651. this.InitVars();
  2652. }
  2653. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2654. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2655. public global::System.Data.DataColumn IDColumn {
  2656. get {
  2657. return this.columnID;
  2658. }
  2659. }
  2660. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2661. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2662. public global::System.Data.DataColumn ProductIDColumn {
  2663. get {
  2664. return this.columnProductID;
  2665. }
  2666. }
  2667. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2668. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2669. public global::System.Data.DataColumn PhotoPathColumn {
  2670. get {
  2671. return this.columnPhotoPath;
  2672. }
  2673. }
  2674. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2675. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2676. [global::System.ComponentModel.Browsable(false)]
  2677. public int Count {
  2678. get {
  2679. return this.Rows.Count;
  2680. }
  2681. }
  2682. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2683. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2684. public ProductPhotoRow this[int index] {
  2685. get {
  2686. return ((ProductPhotoRow)(this.Rows[index]));
  2687. }
  2688. }
  2689. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2690. public event ProductPhotoRowChangeEventHandler ProductPhotoRowChanging;
  2691. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2692. public event ProductPhotoRowChangeEventHandler ProductPhotoRowChanged;
  2693. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2694. public event ProductPhotoRowChangeEventHandler ProductPhotoRowDeleting;
  2695. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2696. public event ProductPhotoRowChangeEventHandler ProductPhotoRowDeleted;
  2697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2698. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2699. public void AddProductPhotoRow(ProductPhotoRow row) {
  2700. this.Rows.Add(row);
  2701. }
  2702. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2703. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2704. public ProductPhotoRow AddProductPhotoRow(ProductRow parentProductRowByFK_ProductPhoto_Product, string PhotoPath) {
  2705. ProductPhotoRow rowProductPhotoRow = ((ProductPhotoRow)(this.NewRow()));
  2706. object[] columnValuesArray = new object[] {
  2707. null,
  2708. null,
  2709. PhotoPath};
  2710. if ((parentProductRowByFK_ProductPhoto_Product != null)) {
  2711. columnValuesArray[1] = parentProductRowByFK_ProductPhoto_Product[0];
  2712. }
  2713. rowProductPhotoRow.ItemArray = columnValuesArray;
  2714. this.Rows.Add(rowProductPhotoRow);
  2715. return rowProductPhotoRow;
  2716. }
  2717. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2718. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2719. public ProductPhotoRow FindByID(int ID) {
  2720. return ((ProductPhotoRow)(this.Rows.Find(new object[] {
  2721. ID})));
  2722. }
  2723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2724. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2725. public override global::System.Data.DataTable Clone() {
  2726. ProductPhotoDataTable cln = ((ProductPhotoDataTable)(base.Clone()));
  2727. cln.InitVars();
  2728. return cln;
  2729. }
  2730. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2731. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2732. protected override global::System.Data.DataTable CreateInstance() {
  2733. return new ProductPhotoDataTable();
  2734. }
  2735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2736. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2737. internal void InitVars() {
  2738. this.columnID = base.Columns["ID"];
  2739. this.columnProductID = base.Columns["ProductID"];
  2740. this.columnPhotoPath = base.Columns["PhotoPath"];
  2741. }
  2742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2743. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2744. private void InitClass() {
  2745. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  2746. base.Columns.Add(this.columnID);
  2747. this.columnProductID = new global::System.Data.DataColumn("ProductID", typeof(int), null, global::System.Data.MappingType.Element);
  2748. base.Columns.Add(this.columnProductID);
  2749. this.columnPhotoPath = new global::System.Data.DataColumn("PhotoPath", typeof(string), null, global::System.Data.MappingType.Element);
  2750. base.Columns.Add(this.columnPhotoPath);
  2751. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2752. this.columnID}, true));
  2753. this.columnID.AutoIncrement = true;
  2754. this.columnID.AutoIncrementSeed = -1;
  2755. this.columnID.AutoIncrementStep = -1;
  2756. this.columnID.AllowDBNull = false;
  2757. this.columnID.ReadOnly = true;
  2758. this.columnID.Unique = true;
  2759. this.columnProductID.AllowDBNull = false;
  2760. this.columnPhotoPath.AllowDBNull = false;
  2761. this.columnPhotoPath.MaxLength = 1000;
  2762. }
  2763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2764. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2765. public ProductPhotoRow NewProductPhotoRow() {
  2766. return ((ProductPhotoRow)(this.NewRow()));
  2767. }
  2768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2770. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2771. return new ProductPhotoRow(builder);
  2772. }
  2773. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2774. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2775. protected override global::System.Type GetRowType() {
  2776. return typeof(ProductPhotoRow);
  2777. }
  2778. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2779. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2780. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2781. base.OnRowChanged(e);
  2782. if ((this.ProductPhotoRowChanged != null)) {
  2783. this.ProductPhotoRowChanged(this, new ProductPhotoRowChangeEvent(((ProductPhotoRow)(e.Row)), e.Action));
  2784. }
  2785. }
  2786. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2787. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2788. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2789. base.OnRowChanging(e);
  2790. if ((this.ProductPhotoRowChanging != null)) {
  2791. this.ProductPhotoRowChanging(this, new ProductPhotoRowChangeEvent(((ProductPhotoRow)(e.Row)), e.Action));
  2792. }
  2793. }
  2794. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2795. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2796. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2797. base.OnRowDeleted(e);
  2798. if ((this.ProductPhotoRowDeleted != null)) {
  2799. this.ProductPhotoRowDeleted(this, new ProductPhotoRowChangeEvent(((ProductPhotoRow)(e.Row)), e.Action));
  2800. }
  2801. }
  2802. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2803. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2804. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2805. base.OnRowDeleting(e);
  2806. if ((this.ProductPhotoRowDeleting != null)) {
  2807. this.ProductPhotoRowDeleting(this, new ProductPhotoRowChangeEvent(((ProductPhotoRow)(e.Row)), e.Action));
  2808. }
  2809. }
  2810. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2811. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2812. public void RemoveProductPhotoRow(ProductPhotoRow row) {
  2813. this.Rows.Remove(row);
  2814. }
  2815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2816. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2817. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2818. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2819. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2820. RozenbergBrDataSet ds = new RozenbergBrDataSet();
  2821. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2822. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2823. any1.MinOccurs = new decimal(0);
  2824. any1.MaxOccurs = decimal.MaxValue;
  2825. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2826. sequence.Items.Add(any1);
  2827. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2828. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2829. any2.MinOccurs = new decimal(1);
  2830. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2831. sequence.Items.Add(any2);
  2832. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2833. attribute1.Name = "namespace";
  2834. attribute1.FixedValue = ds.Namespace;
  2835. type.Attributes.Add(attribute1);
  2836. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2837. attribute2.Name = "tableTypeName";
  2838. attribute2.FixedValue = "ProductPhotoDataTable";
  2839. type.Attributes.Add(attribute2);
  2840. type.Particle = sequence;
  2841. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2842. if (xs.Contains(dsSchema.TargetNamespace)) {
  2843. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2844. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2845. try {
  2846. global::System.Xml.Schema.XmlSchema schema = null;
  2847. dsSchema.Write(s1);
  2848. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2849. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2850. s2.SetLength(0);
  2851. schema.Write(s2);
  2852. if ((s1.Length == s2.Length)) {
  2853. s1.Position = 0;
  2854. s2.Position = 0;
  2855. for (; ((s1.Position != s1.Length)
  2856. && (s1.ReadByte() == s2.ReadByte())); ) {
  2857. ;
  2858. }
  2859. if ((s1.Position == s1.Length)) {
  2860. return type;
  2861. }
  2862. }
  2863. }
  2864. }
  2865. finally {
  2866. if ((s1 != null)) {
  2867. s1.Close();
  2868. }
  2869. if ((s2 != null)) {
  2870. s2.Close();
  2871. }
  2872. }
  2873. }
  2874. xs.Add(dsSchema);
  2875. return type;
  2876. }
  2877. }
  2878. /// <summary>
  2879. ///Represents the strongly named DataTable class.
  2880. ///</summary>
  2881. [global::System.Serializable()]
  2882. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2883. public partial class ProductSaleDataTable : global::System.Data.TypedTableBase<ProductSaleRow> {
  2884. private global::System.Data.DataColumn columnID;
  2885. private global::System.Data.DataColumn columnSaleDate;
  2886. private global::System.Data.DataColumn columnProductID;
  2887. private global::System.Data.DataColumn columnQuantity;
  2888. private global::System.Data.DataColumn columnClientServiceID;
  2889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2890. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2891. public ProductSaleDataTable() {
  2892. this.TableName = "ProductSale";
  2893. this.BeginInit();
  2894. this.InitClass();
  2895. this.EndInit();
  2896. }
  2897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2898. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2899. internal ProductSaleDataTable(global::System.Data.DataTable table) {
  2900. this.TableName = table.TableName;
  2901. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2902. this.CaseSensitive = table.CaseSensitive;
  2903. }
  2904. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2905. this.Locale = table.Locale;
  2906. }
  2907. if ((table.Namespace != table.DataSet.Namespace)) {
  2908. this.Namespace = table.Namespace;
  2909. }
  2910. this.Prefix = table.Prefix;
  2911. this.MinimumCapacity = table.MinimumCapacity;
  2912. }
  2913. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2914. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2915. protected ProductSaleDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2916. base(info, context) {
  2917. this.InitVars();
  2918. }
  2919. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2920. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2921. public global::System.Data.DataColumn IDColumn {
  2922. get {
  2923. return this.columnID;
  2924. }
  2925. }
  2926. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2927. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2928. public global::System.Data.DataColumn SaleDateColumn {
  2929. get {
  2930. return this.columnSaleDate;
  2931. }
  2932. }
  2933. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2934. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2935. public global::System.Data.DataColumn ProductIDColumn {
  2936. get {
  2937. return this.columnProductID;
  2938. }
  2939. }
  2940. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2941. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2942. public global::System.Data.DataColumn QuantityColumn {
  2943. get {
  2944. return this.columnQuantity;
  2945. }
  2946. }
  2947. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2948. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2949. public global::System.Data.DataColumn ClientServiceIDColumn {
  2950. get {
  2951. return this.columnClientServiceID;
  2952. }
  2953. }
  2954. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2955. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2956. [global::System.ComponentModel.Browsable(false)]
  2957. public int Count {
  2958. get {
  2959. return this.Rows.Count;
  2960. }
  2961. }
  2962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2963. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2964. public ProductSaleRow this[int index] {
  2965. get {
  2966. return ((ProductSaleRow)(this.Rows[index]));
  2967. }
  2968. }
  2969. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2970. public event ProductSaleRowChangeEventHandler ProductSaleRowChanging;
  2971. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2972. public event ProductSaleRowChangeEventHandler ProductSaleRowChanged;
  2973. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2974. public event ProductSaleRowChangeEventHandler ProductSaleRowDeleting;
  2975. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2976. public event ProductSaleRowChangeEventHandler ProductSaleRowDeleted;
  2977. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2978. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2979. public void AddProductSaleRow(ProductSaleRow row) {
  2980. this.Rows.Add(row);
  2981. }
  2982. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2983. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2984. public ProductSaleRow AddProductSaleRow(System.DateTime SaleDate, ProductRow parentProductRowByFK_ProductSale_Product, int Quantity, int ClientServiceID) {
  2985. ProductSaleRow rowProductSaleRow = ((ProductSaleRow)(this.NewRow()));
  2986. object[] columnValuesArray = new object[] {
  2987. null,
  2988. SaleDate,
  2989. null,
  2990. Quantity,
  2991. ClientServiceID};
  2992. if ((parentProductRowByFK_ProductSale_Product != null)) {
  2993. columnValuesArray[2] = parentProductRowByFK_ProductSale_Product[0];
  2994. }
  2995. rowProductSaleRow.ItemArray = columnValuesArray;
  2996. this.Rows.Add(rowProductSaleRow);
  2997. return rowProductSaleRow;
  2998. }
  2999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3001. public ProductSaleRow FindByID(int ID) {
  3002. return ((ProductSaleRow)(this.Rows.Find(new object[] {
  3003. ID})));
  3004. }
  3005. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3006. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3007. public override global::System.Data.DataTable Clone() {
  3008. ProductSaleDataTable cln = ((ProductSaleDataTable)(base.Clone()));
  3009. cln.InitVars();
  3010. return cln;
  3011. }
  3012. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3013. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3014. protected override global::System.Data.DataTable CreateInstance() {
  3015. return new ProductSaleDataTable();
  3016. }
  3017. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3018. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3019. internal void InitVars() {
  3020. this.columnID = base.Columns["ID"];
  3021. this.columnSaleDate = base.Columns["SaleDate"];
  3022. this.columnProductID = base.Columns["ProductID"];
  3023. this.columnQuantity = base.Columns["Quantity"];
  3024. this.columnClientServiceID = base.Columns["ClientServiceID"];
  3025. }
  3026. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3027. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3028. private void InitClass() {
  3029. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3030. base.Columns.Add(this.columnID);
  3031. this.columnSaleDate = new global::System.Data.DataColumn("SaleDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  3032. base.Columns.Add(this.columnSaleDate);
  3033. this.columnProductID = new global::System.Data.DataColumn("ProductID", typeof(int), null, global::System.Data.MappingType.Element);
  3034. base.Columns.Add(this.columnProductID);
  3035. this.columnQuantity = new global::System.Data.DataColumn("Quantity", typeof(int), null, global::System.Data.MappingType.Element);
  3036. base.Columns.Add(this.columnQuantity);
  3037. this.columnClientServiceID = new global::System.Data.DataColumn("ClientServiceID", typeof(int), null, global::System.Data.MappingType.Element);
  3038. base.Columns.Add(this.columnClientServiceID);
  3039. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3040. this.columnID}, true));
  3041. this.columnID.AutoIncrement = true;
  3042. this.columnID.AutoIncrementSeed = -1;
  3043. this.columnID.AutoIncrementStep = -1;
  3044. this.columnID.AllowDBNull = false;
  3045. this.columnID.ReadOnly = true;
  3046. this.columnID.Unique = true;
  3047. this.columnSaleDate.AllowDBNull = false;
  3048. this.columnProductID.AllowDBNull = false;
  3049. this.columnQuantity.AllowDBNull = false;
  3050. }
  3051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3053. public ProductSaleRow NewProductSaleRow() {
  3054. return ((ProductSaleRow)(this.NewRow()));
  3055. }
  3056. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3057. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3058. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3059. return new ProductSaleRow(builder);
  3060. }
  3061. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3062. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3063. protected override global::System.Type GetRowType() {
  3064. return typeof(ProductSaleRow);
  3065. }
  3066. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3067. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3068. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3069. base.OnRowChanged(e);
  3070. if ((this.ProductSaleRowChanged != null)) {
  3071. this.ProductSaleRowChanged(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  3072. }
  3073. }
  3074. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3075. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3076. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3077. base.OnRowChanging(e);
  3078. if ((this.ProductSaleRowChanging != null)) {
  3079. this.ProductSaleRowChanging(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  3080. }
  3081. }
  3082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3084. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3085. base.OnRowDeleted(e);
  3086. if ((this.ProductSaleRowDeleted != null)) {
  3087. this.ProductSaleRowDeleted(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  3088. }
  3089. }
  3090. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3091. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3092. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3093. base.OnRowDeleting(e);
  3094. if ((this.ProductSaleRowDeleting != null)) {
  3095. this.ProductSaleRowDeleting(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  3096. }
  3097. }
  3098. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3099. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3100. public void RemoveProductSaleRow(ProductSaleRow row) {
  3101. this.Rows.Remove(row);
  3102. }
  3103. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3104. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3105. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3106. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3107. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3108. RozenbergBrDataSet ds = new RozenbergBrDataSet();
  3109. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3110. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3111. any1.MinOccurs = new decimal(0);
  3112. any1.MaxOccurs = decimal.MaxValue;
  3113. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3114. sequence.Items.Add(any1);
  3115. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3116. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3117. any2.MinOccurs = new decimal(1);
  3118. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3119. sequence.Items.Add(any2);
  3120. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3121. attribute1.Name = "namespace";
  3122. attribute1.FixedValue = ds.Namespace;
  3123. type.Attributes.Add(attribute1);
  3124. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3125. attribute2.Name = "tableTypeName";
  3126. attribute2.FixedValue = "ProductSaleDataTable";
  3127. type.Attributes.Add(attribute2);
  3128. type.Particle = sequence;
  3129. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3130. if (xs.Contains(dsSchema.TargetNamespace)) {
  3131. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3132. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3133. try {
  3134. global::System.Xml.Schema.XmlSchema schema = null;
  3135. dsSchema.Write(s1);
  3136. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3137. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3138. s2.SetLength(0);
  3139. schema.Write(s2);
  3140. if ((s1.Length == s2.Length)) {
  3141. s1.Position = 0;
  3142. s2.Position = 0;
  3143. for (; ((s1.Position != s1.Length)
  3144. && (s1.ReadByte() == s2.ReadByte())); ) {
  3145. ;
  3146. }
  3147. if ((s1.Position == s1.Length)) {
  3148. return type;
  3149. }
  3150. }
  3151. }
  3152. }
  3153. finally {
  3154. if ((s1 != null)) {
  3155. s1.Close();
  3156. }
  3157. if ((s2 != null)) {
  3158. s2.Close();
  3159. }
  3160. }
  3161. }
  3162. xs.Add(dsSchema);
  3163. return type;
  3164. }
  3165. }
  3166. /// <summary>
  3167. ///Represents the strongly named DataTable class.
  3168. ///</summary>
  3169. [global::System.Serializable()]
  3170. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3171. public partial class ServiceDataTable : global::System.Data.TypedTableBase<ServiceRow> {
  3172. private global::System.Data.DataColumn columnId;
  3173. private global::System.Data.DataColumn columnНаименование_услуги;
  3174. private global::System.Data.DataColumn columnГлавное_изображение;
  3175. private global::System.Data.DataColumn columnДлительность;
  3176. private global::System.Data.DataColumn columnСтоимость;
  3177. private global::System.Data.DataColumn columnДействующая_скидка;
  3178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3180. public ServiceDataTable() {
  3181. this.TableName = "Service";
  3182. this.BeginInit();
  3183. this.InitClass();
  3184. this.EndInit();
  3185. }
  3186. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3187. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3188. internal ServiceDataTable(global::System.Data.DataTable table) {
  3189. this.TableName = table.TableName;
  3190. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3191. this.CaseSensitive = table.CaseSensitive;
  3192. }
  3193. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3194. this.Locale = table.Locale;
  3195. }
  3196. if ((table.Namespace != table.DataSet.Namespace)) {
  3197. this.Namespace = table.Namespace;
  3198. }
  3199. this.Prefix = table.Prefix;
  3200. this.MinimumCapacity = table.MinimumCapacity;
  3201. }
  3202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3204. protected ServiceDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3205. base(info, context) {
  3206. this.InitVars();
  3207. }
  3208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3209. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3210. public global::System.Data.DataColumn IdColumn {
  3211. get {
  3212. return this.columnId;
  3213. }
  3214. }
  3215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3216. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3217. public global::System.Data.DataColumn Наименование_услугиColumn {
  3218. get {
  3219. return this.columnНаименование_услуги;
  3220. }
  3221. }
  3222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3224. public global::System.Data.DataColumn Главное_изображениеColumn {
  3225. get {
  3226. return this.columnГлавное_изображение;
  3227. }
  3228. }
  3229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3230. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3231. public global::System.Data.DataColumn ДлительностьColumn {
  3232. get {
  3233. return this.columnДлительность;
  3234. }
  3235. }
  3236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3237. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3238. public global::System.Data.DataColumn СтоимостьColumn {
  3239. get {
  3240. return this.columnСтоимость;
  3241. }
  3242. }
  3243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3245. public global::System.Data.DataColumn Действующая_скидкаColumn {
  3246. get {
  3247. return this.columnДействующая_скидка;
  3248. }
  3249. }
  3250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3252. [global::System.ComponentModel.Browsable(false)]
  3253. public int Count {
  3254. get {
  3255. return this.Rows.Count;
  3256. }
  3257. }
  3258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3260. public ServiceRow this[int index] {
  3261. get {
  3262. return ((ServiceRow)(this.Rows[index]));
  3263. }
  3264. }
  3265. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3266. public event ServiceRowChangeEventHandler ServiceRowChanging;
  3267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3268. public event ServiceRowChangeEventHandler ServiceRowChanged;
  3269. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3270. public event ServiceRowChangeEventHandler ServiceRowDeleting;
  3271. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3272. public event ServiceRowChangeEventHandler ServiceRowDeleted;
  3273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3274. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3275. public void AddServiceRow(ServiceRow row) {
  3276. this.Rows.Add(row);
  3277. }
  3278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3279. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3280. public ServiceRow AddServiceRow(string Наименование_услуги, string Главное_изображение, int Длительность, decimal Стоимость, double Действующая_скидка) {
  3281. ServiceRow rowServiceRow = ((ServiceRow)(this.NewRow()));
  3282. object[] columnValuesArray = new object[] {
  3283. null,
  3284. Наименование_услуги,
  3285. Главное_изображение,
  3286. Длительность,
  3287. Стоимость,
  3288. Действующая_скидка};
  3289. rowServiceRow.ItemArray = columnValuesArray;
  3290. this.Rows.Add(rowServiceRow);
  3291. return rowServiceRow;
  3292. }
  3293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3294. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3295. public ServiceRow FindById(int Id) {
  3296. return ((ServiceRow)(this.Rows.Find(new object[] {
  3297. Id})));
  3298. }
  3299. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3300. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3301. public override global::System.Data.DataTable Clone() {
  3302. ServiceDataTable cln = ((ServiceDataTable)(base.Clone()));
  3303. cln.InitVars();
  3304. return cln;
  3305. }
  3306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3307. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3308. protected override global::System.Data.DataTable CreateInstance() {
  3309. return new ServiceDataTable();
  3310. }
  3311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3312. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3313. internal void InitVars() {
  3314. this.columnId = base.Columns["Id"];
  3315. this.columnНаименование_услуги = base.Columns["Наименование_услуги"];
  3316. this.columnГлавное_изображение = base.Columns["Главное_изображение"];
  3317. this.columnДлительность = base.Columns["Длительность"];
  3318. this.columnСтоимость = base.Columns["Стоимость"];
  3319. this.columnДействующая_скидка = base.Columns["Действующая_скидка"];
  3320. }
  3321. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3322. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3323. private void InitClass() {
  3324. this.columnId = new global::System.Data.DataColumn("Id", typeof(int), null, global::System.Data.MappingType.Element);
  3325. base.Columns.Add(this.columnId);
  3326. this.columnНаименование_услуги = new global::System.Data.DataColumn("Наименование_услуги", typeof(string), null, global::System.Data.MappingType.Element);
  3327. base.Columns.Add(this.columnНаименование_услуги);
  3328. this.columnГлавное_изображение = new global::System.Data.DataColumn("Главное_изображение", typeof(string), null, global::System.Data.MappingType.Element);
  3329. base.Columns.Add(this.columnГлавное_изображение);
  3330. this.columnДлительность = new global::System.Data.DataColumn("Длительность", typeof(int), null, global::System.Data.MappingType.Element);
  3331. base.Columns.Add(this.columnДлительность);
  3332. this.columnСтоимость = new global::System.Data.DataColumn("Стоимость", typeof(decimal), null, global::System.Data.MappingType.Element);
  3333. base.Columns.Add(this.columnСтоимость);
  3334. this.columnДействующая_скидка = new global::System.Data.DataColumn("Действующая_скидка", typeof(double), null, global::System.Data.MappingType.Element);
  3335. base.Columns.Add(this.columnДействующая_скидка);
  3336. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3337. this.columnId}, true));
  3338. this.columnId.AutoIncrement = true;
  3339. this.columnId.AutoIncrementSeed = -1;
  3340. this.columnId.AutoIncrementStep = -1;
  3341. this.columnId.AllowDBNull = false;
  3342. this.columnId.ReadOnly = true;
  3343. this.columnId.Unique = true;
  3344. this.columnНаименование_услуги.AllowDBNull = false;
  3345. this.columnНаименование_услуги.MaxLength = 50;
  3346. this.columnГлавное_изображение.AllowDBNull = false;
  3347. this.columnГлавное_изображение.MaxLength = 50;
  3348. this.columnДлительность.AllowDBNull = false;
  3349. this.columnСтоимость.AllowDBNull = false;
  3350. this.columnДействующая_скидка.AllowDBNull = false;
  3351. }
  3352. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3353. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3354. public ServiceRow NewServiceRow() {
  3355. return ((ServiceRow)(this.NewRow()));
  3356. }
  3357. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3358. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3359. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3360. return new ServiceRow(builder);
  3361. }
  3362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3363. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3364. protected override global::System.Type GetRowType() {
  3365. return typeof(ServiceRow);
  3366. }
  3367. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3368. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3369. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3370. base.OnRowChanged(e);
  3371. if ((this.ServiceRowChanged != null)) {
  3372. this.ServiceRowChanged(this, new ServiceRowChangeEvent(((ServiceRow)(e.Row)), e.Action));
  3373. }
  3374. }
  3375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3377. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3378. base.OnRowChanging(e);
  3379. if ((this.ServiceRowChanging != null)) {
  3380. this.ServiceRowChanging(this, new ServiceRowChangeEvent(((ServiceRow)(e.Row)), e.Action));
  3381. }
  3382. }
  3383. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3384. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3385. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3386. base.OnRowDeleted(e);
  3387. if ((this.ServiceRowDeleted != null)) {
  3388. this.ServiceRowDeleted(this, new ServiceRowChangeEvent(((ServiceRow)(e.Row)), e.Action));
  3389. }
  3390. }
  3391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3392. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3393. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3394. base.OnRowDeleting(e);
  3395. if ((this.ServiceRowDeleting != null)) {
  3396. this.ServiceRowDeleting(this, new ServiceRowChangeEvent(((ServiceRow)(e.Row)), e.Action));
  3397. }
  3398. }
  3399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3401. public void RemoveServiceRow(ServiceRow row) {
  3402. this.Rows.Remove(row);
  3403. }
  3404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3406. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3407. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3408. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3409. RozenbergBrDataSet ds = new RozenbergBrDataSet();
  3410. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3411. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3412. any1.MinOccurs = new decimal(0);
  3413. any1.MaxOccurs = decimal.MaxValue;
  3414. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3415. sequence.Items.Add(any1);
  3416. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3417. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3418. any2.MinOccurs = new decimal(1);
  3419. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3420. sequence.Items.Add(any2);
  3421. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3422. attribute1.Name = "namespace";
  3423. attribute1.FixedValue = ds.Namespace;
  3424. type.Attributes.Add(attribute1);
  3425. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3426. attribute2.Name = "tableTypeName";
  3427. attribute2.FixedValue = "ServiceDataTable";
  3428. type.Attributes.Add(attribute2);
  3429. type.Particle = sequence;
  3430. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3431. if (xs.Contains(dsSchema.TargetNamespace)) {
  3432. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3433. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3434. try {
  3435. global::System.Xml.Schema.XmlSchema schema = null;
  3436. dsSchema.Write(s1);
  3437. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3438. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3439. s2.SetLength(0);
  3440. schema.Write(s2);
  3441. if ((s1.Length == s2.Length)) {
  3442. s1.Position = 0;
  3443. s2.Position = 0;
  3444. for (; ((s1.Position != s1.Length)
  3445. && (s1.ReadByte() == s2.ReadByte())); ) {
  3446. ;
  3447. }
  3448. if ((s1.Position == s1.Length)) {
  3449. return type;
  3450. }
  3451. }
  3452. }
  3453. }
  3454. finally {
  3455. if ((s1 != null)) {
  3456. s1.Close();
  3457. }
  3458. if ((s2 != null)) {
  3459. s2.Close();
  3460. }
  3461. }
  3462. }
  3463. xs.Add(dsSchema);
  3464. return type;
  3465. }
  3466. }
  3467. /// <summary>
  3468. ///Represents the strongly named DataTable class.
  3469. ///</summary>
  3470. [global::System.Serializable()]
  3471. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3472. public partial class ServicePhotoDataTable : global::System.Data.TypedTableBase<ServicePhotoRow> {
  3473. private global::System.Data.DataColumn columnID;
  3474. private global::System.Data.DataColumn columnServiceID;
  3475. private global::System.Data.DataColumn columnPhotoPath;
  3476. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3477. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3478. public ServicePhotoDataTable() {
  3479. this.TableName = "ServicePhoto";
  3480. this.BeginInit();
  3481. this.InitClass();
  3482. this.EndInit();
  3483. }
  3484. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3485. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3486. internal ServicePhotoDataTable(global::System.Data.DataTable table) {
  3487. this.TableName = table.TableName;
  3488. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3489. this.CaseSensitive = table.CaseSensitive;
  3490. }
  3491. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3492. this.Locale = table.Locale;
  3493. }
  3494. if ((table.Namespace != table.DataSet.Namespace)) {
  3495. this.Namespace = table.Namespace;
  3496. }
  3497. this.Prefix = table.Prefix;
  3498. this.MinimumCapacity = table.MinimumCapacity;
  3499. }
  3500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3502. protected ServicePhotoDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3503. base(info, context) {
  3504. this.InitVars();
  3505. }
  3506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3508. public global::System.Data.DataColumn IDColumn {
  3509. get {
  3510. return this.columnID;
  3511. }
  3512. }
  3513. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3514. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3515. public global::System.Data.DataColumn ServiceIDColumn {
  3516. get {
  3517. return this.columnServiceID;
  3518. }
  3519. }
  3520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3521. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3522. public global::System.Data.DataColumn PhotoPathColumn {
  3523. get {
  3524. return this.columnPhotoPath;
  3525. }
  3526. }
  3527. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3528. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3529. [global::System.ComponentModel.Browsable(false)]
  3530. public int Count {
  3531. get {
  3532. return this.Rows.Count;
  3533. }
  3534. }
  3535. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3536. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3537. public ServicePhotoRow this[int index] {
  3538. get {
  3539. return ((ServicePhotoRow)(this.Rows[index]));
  3540. }
  3541. }
  3542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3543. public event ServicePhotoRowChangeEventHandler ServicePhotoRowChanging;
  3544. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3545. public event ServicePhotoRowChangeEventHandler ServicePhotoRowChanged;
  3546. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3547. public event ServicePhotoRowChangeEventHandler ServicePhotoRowDeleting;
  3548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3549. public event ServicePhotoRowChangeEventHandler ServicePhotoRowDeleted;
  3550. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3551. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3552. public void AddServicePhotoRow(ServicePhotoRow row) {
  3553. this.Rows.Add(row);
  3554. }
  3555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3556. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3557. public ServicePhotoRow AddServicePhotoRow(ServiceRow parentServiceRowByFK_ServicePhoto_Service, string PhotoPath) {
  3558. ServicePhotoRow rowServicePhotoRow = ((ServicePhotoRow)(this.NewRow()));
  3559. object[] columnValuesArray = new object[] {
  3560. null,
  3561. null,
  3562. PhotoPath};
  3563. if ((parentServiceRowByFK_ServicePhoto_Service != null)) {
  3564. columnValuesArray[1] = parentServiceRowByFK_ServicePhoto_Service[0];
  3565. }
  3566. rowServicePhotoRow.ItemArray = columnValuesArray;
  3567. this.Rows.Add(rowServicePhotoRow);
  3568. return rowServicePhotoRow;
  3569. }
  3570. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3571. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3572. public ServicePhotoRow FindByID(int ID) {
  3573. return ((ServicePhotoRow)(this.Rows.Find(new object[] {
  3574. ID})));
  3575. }
  3576. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3577. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3578. public override global::System.Data.DataTable Clone() {
  3579. ServicePhotoDataTable cln = ((ServicePhotoDataTable)(base.Clone()));
  3580. cln.InitVars();
  3581. return cln;
  3582. }
  3583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3585. protected override global::System.Data.DataTable CreateInstance() {
  3586. return new ServicePhotoDataTable();
  3587. }
  3588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3589. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3590. internal void InitVars() {
  3591. this.columnID = base.Columns["ID"];
  3592. this.columnServiceID = base.Columns["ServiceID"];
  3593. this.columnPhotoPath = base.Columns["PhotoPath"];
  3594. }
  3595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3596. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3597. private void InitClass() {
  3598. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3599. base.Columns.Add(this.columnID);
  3600. this.columnServiceID = new global::System.Data.DataColumn("ServiceID", typeof(int), null, global::System.Data.MappingType.Element);
  3601. base.Columns.Add(this.columnServiceID);
  3602. this.columnPhotoPath = new global::System.Data.DataColumn("PhotoPath", typeof(string), null, global::System.Data.MappingType.Element);
  3603. base.Columns.Add(this.columnPhotoPath);
  3604. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3605. this.columnID}, true));
  3606. this.columnID.AutoIncrement = true;
  3607. this.columnID.AutoIncrementSeed = -1;
  3608. this.columnID.AutoIncrementStep = -1;
  3609. this.columnID.AllowDBNull = false;
  3610. this.columnID.ReadOnly = true;
  3611. this.columnID.Unique = true;
  3612. this.columnServiceID.AllowDBNull = false;
  3613. this.columnPhotoPath.AllowDBNull = false;
  3614. this.columnPhotoPath.MaxLength = 1000;
  3615. }
  3616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3617. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3618. public ServicePhotoRow NewServicePhotoRow() {
  3619. return ((ServicePhotoRow)(this.NewRow()));
  3620. }
  3621. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3622. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3623. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3624. return new ServicePhotoRow(builder);
  3625. }
  3626. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3627. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3628. protected override global::System.Type GetRowType() {
  3629. return typeof(ServicePhotoRow);
  3630. }
  3631. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3632. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3633. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3634. base.OnRowChanged(e);
  3635. if ((this.ServicePhotoRowChanged != null)) {
  3636. this.ServicePhotoRowChanged(this, new ServicePhotoRowChangeEvent(((ServicePhotoRow)(e.Row)), e.Action));
  3637. }
  3638. }
  3639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3641. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3642. base.OnRowChanging(e);
  3643. if ((this.ServicePhotoRowChanging != null)) {
  3644. this.ServicePhotoRowChanging(this, new ServicePhotoRowChangeEvent(((ServicePhotoRow)(e.Row)), e.Action));
  3645. }
  3646. }
  3647. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3648. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3649. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3650. base.OnRowDeleted(e);
  3651. if ((this.ServicePhotoRowDeleted != null)) {
  3652. this.ServicePhotoRowDeleted(this, new ServicePhotoRowChangeEvent(((ServicePhotoRow)(e.Row)), e.Action));
  3653. }
  3654. }
  3655. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3656. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3657. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3658. base.OnRowDeleting(e);
  3659. if ((this.ServicePhotoRowDeleting != null)) {
  3660. this.ServicePhotoRowDeleting(this, new ServicePhotoRowChangeEvent(((ServicePhotoRow)(e.Row)), e.Action));
  3661. }
  3662. }
  3663. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3664. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3665. public void RemoveServicePhotoRow(ServicePhotoRow row) {
  3666. this.Rows.Remove(row);
  3667. }
  3668. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3669. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3670. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3671. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3672. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3673. RozenbergBrDataSet ds = new RozenbergBrDataSet();
  3674. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3675. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3676. any1.MinOccurs = new decimal(0);
  3677. any1.MaxOccurs = decimal.MaxValue;
  3678. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3679. sequence.Items.Add(any1);
  3680. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3681. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3682. any2.MinOccurs = new decimal(1);
  3683. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3684. sequence.Items.Add(any2);
  3685. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3686. attribute1.Name = "namespace";
  3687. attribute1.FixedValue = ds.Namespace;
  3688. type.Attributes.Add(attribute1);
  3689. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3690. attribute2.Name = "tableTypeName";
  3691. attribute2.FixedValue = "ServicePhotoDataTable";
  3692. type.Attributes.Add(attribute2);
  3693. type.Particle = sequence;
  3694. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3695. if (xs.Contains(dsSchema.TargetNamespace)) {
  3696. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3697. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3698. try {
  3699. global::System.Xml.Schema.XmlSchema schema = null;
  3700. dsSchema.Write(s1);
  3701. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3702. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3703. s2.SetLength(0);
  3704. schema.Write(s2);
  3705. if ((s1.Length == s2.Length)) {
  3706. s1.Position = 0;
  3707. s2.Position = 0;
  3708. for (; ((s1.Position != s1.Length)
  3709. && (s1.ReadByte() == s2.ReadByte())); ) {
  3710. ;
  3711. }
  3712. if ((s1.Position == s1.Length)) {
  3713. return type;
  3714. }
  3715. }
  3716. }
  3717. }
  3718. finally {
  3719. if ((s1 != null)) {
  3720. s1.Close();
  3721. }
  3722. if ((s2 != null)) {
  3723. s2.Close();
  3724. }
  3725. }
  3726. }
  3727. xs.Add(dsSchema);
  3728. return type;
  3729. }
  3730. }
  3731. /// <summary>
  3732. ///Represents the strongly named DataTable class.
  3733. ///</summary>
  3734. [global::System.Serializable()]
  3735. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3736. public partial class TagDataTable : global::System.Data.TypedTableBase<TagRow> {
  3737. private global::System.Data.DataColumn columnID;
  3738. private global::System.Data.DataColumn columnTitle;
  3739. private global::System.Data.DataColumn columnColor;
  3740. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3741. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3742. public TagDataTable() {
  3743. this.TableName = "Tag";
  3744. this.BeginInit();
  3745. this.InitClass();
  3746. this.EndInit();
  3747. }
  3748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3750. internal TagDataTable(global::System.Data.DataTable table) {
  3751. this.TableName = table.TableName;
  3752. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3753. this.CaseSensitive = table.CaseSensitive;
  3754. }
  3755. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3756. this.Locale = table.Locale;
  3757. }
  3758. if ((table.Namespace != table.DataSet.Namespace)) {
  3759. this.Namespace = table.Namespace;
  3760. }
  3761. this.Prefix = table.Prefix;
  3762. this.MinimumCapacity = table.MinimumCapacity;
  3763. }
  3764. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3765. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3766. protected TagDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3767. base(info, context) {
  3768. this.InitVars();
  3769. }
  3770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3771. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3772. public global::System.Data.DataColumn IDColumn {
  3773. get {
  3774. return this.columnID;
  3775. }
  3776. }
  3777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3779. public global::System.Data.DataColumn TitleColumn {
  3780. get {
  3781. return this.columnTitle;
  3782. }
  3783. }
  3784. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3785. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3786. public global::System.Data.DataColumn ColorColumn {
  3787. get {
  3788. return this.columnColor;
  3789. }
  3790. }
  3791. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3792. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3793. [global::System.ComponentModel.Browsable(false)]
  3794. public int Count {
  3795. get {
  3796. return this.Rows.Count;
  3797. }
  3798. }
  3799. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3800. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3801. public TagRow this[int index] {
  3802. get {
  3803. return ((TagRow)(this.Rows[index]));
  3804. }
  3805. }
  3806. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3807. public event TagRowChangeEventHandler TagRowChanging;
  3808. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3809. public event TagRowChangeEventHandler TagRowChanged;
  3810. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3811. public event TagRowChangeEventHandler TagRowDeleting;
  3812. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3813. public event TagRowChangeEventHandler TagRowDeleted;
  3814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3816. public void AddTagRow(TagRow row) {
  3817. this.Rows.Add(row);
  3818. }
  3819. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3820. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3821. public TagRow AddTagRow(string Title, string Color) {
  3822. TagRow rowTagRow = ((TagRow)(this.NewRow()));
  3823. object[] columnValuesArray = new object[] {
  3824. null,
  3825. Title,
  3826. Color};
  3827. rowTagRow.ItemArray = columnValuesArray;
  3828. this.Rows.Add(rowTagRow);
  3829. return rowTagRow;
  3830. }
  3831. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3832. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3833. public TagRow FindByID(int ID) {
  3834. return ((TagRow)(this.Rows.Find(new object[] {
  3835. ID})));
  3836. }
  3837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3839. public override global::System.Data.DataTable Clone() {
  3840. TagDataTable cln = ((TagDataTable)(base.Clone()));
  3841. cln.InitVars();
  3842. return cln;
  3843. }
  3844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3845. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3846. protected override global::System.Data.DataTable CreateInstance() {
  3847. return new TagDataTable();
  3848. }
  3849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3850. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3851. internal void InitVars() {
  3852. this.columnID = base.Columns["ID"];
  3853. this.columnTitle = base.Columns["Title"];
  3854. this.columnColor = base.Columns["Color"];
  3855. }
  3856. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3857. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3858. private void InitClass() {
  3859. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3860. base.Columns.Add(this.columnID);
  3861. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  3862. base.Columns.Add(this.columnTitle);
  3863. this.columnColor = new global::System.Data.DataColumn("Color", typeof(string), null, global::System.Data.MappingType.Element);
  3864. base.Columns.Add(this.columnColor);
  3865. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3866. this.columnID}, true));
  3867. this.columnID.AutoIncrement = true;
  3868. this.columnID.AutoIncrementSeed = -1;
  3869. this.columnID.AutoIncrementStep = -1;
  3870. this.columnID.AllowDBNull = false;
  3871. this.columnID.ReadOnly = true;
  3872. this.columnID.Unique = true;
  3873. this.columnTitle.AllowDBNull = false;
  3874. this.columnTitle.MaxLength = 30;
  3875. this.columnColor.AllowDBNull = false;
  3876. this.columnColor.MaxLength = 6;
  3877. }
  3878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3879. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3880. public TagRow NewTagRow() {
  3881. return ((TagRow)(this.NewRow()));
  3882. }
  3883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3884. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3885. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3886. return new TagRow(builder);
  3887. }
  3888. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3889. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3890. protected override global::System.Type GetRowType() {
  3891. return typeof(TagRow);
  3892. }
  3893. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3894. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3895. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3896. base.OnRowChanged(e);
  3897. if ((this.TagRowChanged != null)) {
  3898. this.TagRowChanged(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  3899. }
  3900. }
  3901. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3902. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3903. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3904. base.OnRowChanging(e);
  3905. if ((this.TagRowChanging != null)) {
  3906. this.TagRowChanging(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  3907. }
  3908. }
  3909. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3910. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3911. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3912. base.OnRowDeleted(e);
  3913. if ((this.TagRowDeleted != null)) {
  3914. this.TagRowDeleted(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  3915. }
  3916. }
  3917. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3918. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3919. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3920. base.OnRowDeleting(e);
  3921. if ((this.TagRowDeleting != null)) {
  3922. this.TagRowDeleting(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  3923. }
  3924. }
  3925. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3926. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3927. public void RemoveTagRow(TagRow row) {
  3928. this.Rows.Remove(row);
  3929. }
  3930. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3931. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3932. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3933. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3934. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3935. RozenbergBrDataSet ds = new RozenbergBrDataSet();
  3936. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3937. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3938. any1.MinOccurs = new decimal(0);
  3939. any1.MaxOccurs = decimal.MaxValue;
  3940. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3941. sequence.Items.Add(any1);
  3942. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3943. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3944. any2.MinOccurs = new decimal(1);
  3945. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3946. sequence.Items.Add(any2);
  3947. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3948. attribute1.Name = "namespace";
  3949. attribute1.FixedValue = ds.Namespace;
  3950. type.Attributes.Add(attribute1);
  3951. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3952. attribute2.Name = "tableTypeName";
  3953. attribute2.FixedValue = "TagDataTable";
  3954. type.Attributes.Add(attribute2);
  3955. type.Particle = sequence;
  3956. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3957. if (xs.Contains(dsSchema.TargetNamespace)) {
  3958. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3959. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3960. try {
  3961. global::System.Xml.Schema.XmlSchema schema = null;
  3962. dsSchema.Write(s1);
  3963. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3964. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3965. s2.SetLength(0);
  3966. schema.Write(s2);
  3967. if ((s1.Length == s2.Length)) {
  3968. s1.Position = 0;
  3969. s2.Position = 0;
  3970. for (; ((s1.Position != s1.Length)
  3971. && (s1.ReadByte() == s2.ReadByte())); ) {
  3972. ;
  3973. }
  3974. if ((s1.Position == s1.Length)) {
  3975. return type;
  3976. }
  3977. }
  3978. }
  3979. }
  3980. finally {
  3981. if ((s1 != null)) {
  3982. s1.Close();
  3983. }
  3984. if ((s2 != null)) {
  3985. s2.Close();
  3986. }
  3987. }
  3988. }
  3989. xs.Add(dsSchema);
  3990. return type;
  3991. }
  3992. }
  3993. /// <summary>
  3994. ///Represents the strongly named DataTable class.
  3995. ///</summary>
  3996. [global::System.Serializable()]
  3997. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3998. public partial class TagOfClientDataTable : global::System.Data.TypedTableBase<TagOfClientRow> {
  3999. private global::System.Data.DataColumn columnClientID;
  4000. private global::System.Data.DataColumn columnTagID;
  4001. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4002. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4003. public TagOfClientDataTable() {
  4004. this.TableName = "TagOfClient";
  4005. this.BeginInit();
  4006. this.InitClass();
  4007. this.EndInit();
  4008. }
  4009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4011. internal TagOfClientDataTable(global::System.Data.DataTable table) {
  4012. this.TableName = table.TableName;
  4013. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  4014. this.CaseSensitive = table.CaseSensitive;
  4015. }
  4016. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  4017. this.Locale = table.Locale;
  4018. }
  4019. if ((table.Namespace != table.DataSet.Namespace)) {
  4020. this.Namespace = table.Namespace;
  4021. }
  4022. this.Prefix = table.Prefix;
  4023. this.MinimumCapacity = table.MinimumCapacity;
  4024. }
  4025. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4026. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4027. protected TagOfClientDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  4028. base(info, context) {
  4029. this.InitVars();
  4030. }
  4031. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4032. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4033. public global::System.Data.DataColumn ClientIDColumn {
  4034. get {
  4035. return this.columnClientID;
  4036. }
  4037. }
  4038. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4039. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4040. public global::System.Data.DataColumn TagIDColumn {
  4041. get {
  4042. return this.columnTagID;
  4043. }
  4044. }
  4045. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4046. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4047. [global::System.ComponentModel.Browsable(false)]
  4048. public int Count {
  4049. get {
  4050. return this.Rows.Count;
  4051. }
  4052. }
  4053. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4054. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4055. public TagOfClientRow this[int index] {
  4056. get {
  4057. return ((TagOfClientRow)(this.Rows[index]));
  4058. }
  4059. }
  4060. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4061. public event TagOfClientRowChangeEventHandler TagOfClientRowChanging;
  4062. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4063. public event TagOfClientRowChangeEventHandler TagOfClientRowChanged;
  4064. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4065. public event TagOfClientRowChangeEventHandler TagOfClientRowDeleting;
  4066. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4067. public event TagOfClientRowChangeEventHandler TagOfClientRowDeleted;
  4068. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4069. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4070. public void AddTagOfClientRow(TagOfClientRow row) {
  4071. this.Rows.Add(row);
  4072. }
  4073. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4074. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4075. public TagOfClientRow AddTagOfClientRow(Кли33ентRow parentКли33ентRowByFK_TagOfClient_Кли33ент, TagRow parentTagRowByFK_TagOfClient_Tag) {
  4076. TagOfClientRow rowTagOfClientRow = ((TagOfClientRow)(this.NewRow()));
  4077. object[] columnValuesArray = new object[] {
  4078. null,
  4079. null};
  4080. if ((parentКли33ентRowByFK_TagOfClient_Кли33ент != null)) {
  4081. columnValuesArray[0] = parentКли33ентRowByFK_TagOfClient_Кли33ент[0];
  4082. }
  4083. if ((parentTagRowByFK_TagOfClient_Tag != null)) {
  4084. columnValuesArray[1] = parentTagRowByFK_TagOfClient_Tag[0];
  4085. }
  4086. rowTagOfClientRow.ItemArray = columnValuesArray;
  4087. this.Rows.Add(rowTagOfClientRow);
  4088. return rowTagOfClientRow;
  4089. }
  4090. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4091. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4092. public TagOfClientRow FindByClientIDTagID(int ClientID, int TagID) {
  4093. return ((TagOfClientRow)(this.Rows.Find(new object[] {
  4094. ClientID,
  4095. TagID})));
  4096. }
  4097. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4098. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4099. public override global::System.Data.DataTable Clone() {
  4100. TagOfClientDataTable cln = ((TagOfClientDataTable)(base.Clone()));
  4101. cln.InitVars();
  4102. return cln;
  4103. }
  4104. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4105. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4106. protected override global::System.Data.DataTable CreateInstance() {
  4107. return new TagOfClientDataTable();
  4108. }
  4109. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4110. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4111. internal void InitVars() {
  4112. this.columnClientID = base.Columns["ClientID"];
  4113. this.columnTagID = base.Columns["TagID"];
  4114. }
  4115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4116. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4117. private void InitClass() {
  4118. this.columnClientID = new global::System.Data.DataColumn("ClientID", typeof(int), null, global::System.Data.MappingType.Element);
  4119. base.Columns.Add(this.columnClientID);
  4120. this.columnTagID = new global::System.Data.DataColumn("TagID", typeof(int), null, global::System.Data.MappingType.Element);
  4121. base.Columns.Add(this.columnTagID);
  4122. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  4123. this.columnClientID,
  4124. this.columnTagID}, true));
  4125. this.columnClientID.AllowDBNull = false;
  4126. this.columnTagID.AllowDBNull = false;
  4127. }
  4128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4129. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4130. public TagOfClientRow NewTagOfClientRow() {
  4131. return ((TagOfClientRow)(this.NewRow()));
  4132. }
  4133. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4134. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4135. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  4136. return new TagOfClientRow(builder);
  4137. }
  4138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4139. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4140. protected override global::System.Type GetRowType() {
  4141. return typeof(TagOfClientRow);
  4142. }
  4143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4144. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4145. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  4146. base.OnRowChanged(e);
  4147. if ((this.TagOfClientRowChanged != null)) {
  4148. this.TagOfClientRowChanged(this, new TagOfClientRowChangeEvent(((TagOfClientRow)(e.Row)), e.Action));
  4149. }
  4150. }
  4151. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4152. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4153. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  4154. base.OnRowChanging(e);
  4155. if ((this.TagOfClientRowChanging != null)) {
  4156. this.TagOfClientRowChanging(this, new TagOfClientRowChangeEvent(((TagOfClientRow)(e.Row)), e.Action));
  4157. }
  4158. }
  4159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4160. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4161. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  4162. base.OnRowDeleted(e);
  4163. if ((this.TagOfClientRowDeleted != null)) {
  4164. this.TagOfClientRowDeleted(this, new TagOfClientRowChangeEvent(((TagOfClientRow)(e.Row)), e.Action));
  4165. }
  4166. }
  4167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4169. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  4170. base.OnRowDeleting(e);
  4171. if ((this.TagOfClientRowDeleting != null)) {
  4172. this.TagOfClientRowDeleting(this, new TagOfClientRowChangeEvent(((TagOfClientRow)(e.Row)), e.Action));
  4173. }
  4174. }
  4175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4176. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4177. public void RemoveTagOfClientRow(TagOfClientRow row) {
  4178. this.Rows.Remove(row);
  4179. }
  4180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4181. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4182. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  4183. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  4184. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  4185. RozenbergBrDataSet ds = new RozenbergBrDataSet();
  4186. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  4187. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  4188. any1.MinOccurs = new decimal(0);
  4189. any1.MaxOccurs = decimal.MaxValue;
  4190. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4191. sequence.Items.Add(any1);
  4192. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  4193. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  4194. any2.MinOccurs = new decimal(1);
  4195. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4196. sequence.Items.Add(any2);
  4197. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4198. attribute1.Name = "namespace";
  4199. attribute1.FixedValue = ds.Namespace;
  4200. type.Attributes.Add(attribute1);
  4201. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4202. attribute2.Name = "tableTypeName";
  4203. attribute2.FixedValue = "TagOfClientDataTable";
  4204. type.Attributes.Add(attribute2);
  4205. type.Particle = sequence;
  4206. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  4207. if (xs.Contains(dsSchema.TargetNamespace)) {
  4208. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  4209. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  4210. try {
  4211. global::System.Xml.Schema.XmlSchema schema = null;
  4212. dsSchema.Write(s1);
  4213. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  4214. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  4215. s2.SetLength(0);
  4216. schema.Write(s2);
  4217. if ((s1.Length == s2.Length)) {
  4218. s1.Position = 0;
  4219. s2.Position = 0;
  4220. for (; ((s1.Position != s1.Length)
  4221. && (s1.ReadByte() == s2.ReadByte())); ) {
  4222. ;
  4223. }
  4224. if ((s1.Position == s1.Length)) {
  4225. return type;
  4226. }
  4227. }
  4228. }
  4229. }
  4230. finally {
  4231. if ((s1 != null)) {
  4232. s1.Close();
  4233. }
  4234. if ((s2 != null)) {
  4235. s2.Close();
  4236. }
  4237. }
  4238. }
  4239. xs.Add(dsSchema);
  4240. return type;
  4241. }
  4242. }
  4243. /// <summary>
  4244. ///Represents the strongly named DataTable class.
  4245. ///</summary>
  4246. [global::System.Serializable()]
  4247. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  4248. public partial class Кли33ентDataTable : global::System.Data.TypedTableBase<Кли33ентRow> {
  4249. private global::System.Data.DataColumn columnid;
  4250. private global::System.Data.DataColumn columnФамилия;
  4251. private global::System.Data.DataColumn columnИмя;
  4252. private global::System.Data.DataColumn columnОтчество;
  4253. private global::System.Data.DataColumn columnПол;
  4254. private global::System.Data.DataColumn columnТелефон;
  4255. private global::System.Data.DataColumn columnДата_рождения;
  4256. private global::System.Data.DataColumn columnEmail;
  4257. private global::System.Data.DataColumn columnДата_регистрации;
  4258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4260. public Кли33ентDataTable() {
  4261. this.TableName = "Кли33ент";
  4262. this.BeginInit();
  4263. this.InitClass();
  4264. this.EndInit();
  4265. }
  4266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4268. internal Кли33ентDataTable(global::System.Data.DataTable table) {
  4269. this.TableName = table.TableName;
  4270. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  4271. this.CaseSensitive = table.CaseSensitive;
  4272. }
  4273. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  4274. this.Locale = table.Locale;
  4275. }
  4276. if ((table.Namespace != table.DataSet.Namespace)) {
  4277. this.Namespace = table.Namespace;
  4278. }
  4279. this.Prefix = table.Prefix;
  4280. this.MinimumCapacity = table.MinimumCapacity;
  4281. }
  4282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4284. protected Кли33ентDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  4285. base(info, context) {
  4286. this.InitVars();
  4287. }
  4288. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4289. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4290. public global::System.Data.DataColumn idColumn {
  4291. get {
  4292. return this.columnid;
  4293. }
  4294. }
  4295. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4296. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4297. public global::System.Data.DataColumn ФамилияColumn {
  4298. get {
  4299. return this.columnФамилия;
  4300. }
  4301. }
  4302. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4303. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4304. public global::System.Data.DataColumn ИмяColumn {
  4305. get {
  4306. return this.columnИмя;
  4307. }
  4308. }
  4309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4310. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4311. public global::System.Data.DataColumn ОтчествоColumn {
  4312. get {
  4313. return this.columnОтчество;
  4314. }
  4315. }
  4316. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4317. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4318. public global::System.Data.DataColumn ПолColumn {
  4319. get {
  4320. return this.columnПол;
  4321. }
  4322. }
  4323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4324. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4325. public global::System.Data.DataColumn ТелефонColumn {
  4326. get {
  4327. return this.columnТелефон;
  4328. }
  4329. }
  4330. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4331. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4332. public global::System.Data.DataColumn Дата_рожденияColumn {
  4333. get {
  4334. return this.columnДата_рождения;
  4335. }
  4336. }
  4337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4339. public global::System.Data.DataColumn EmailColumn {
  4340. get {
  4341. return this.columnEmail;
  4342. }
  4343. }
  4344. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4345. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4346. public global::System.Data.DataColumn Дата_регистрацииColumn {
  4347. get {
  4348. return this.columnДата_регистрации;
  4349. }
  4350. }
  4351. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4352. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4353. [global::System.ComponentModel.Browsable(false)]
  4354. public int Count {
  4355. get {
  4356. return this.Rows.Count;
  4357. }
  4358. }
  4359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4360. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4361. public Кли33ентRow this[int index] {
  4362. get {
  4363. return ((Кли33ентRow)(this.Rows[index]));
  4364. }
  4365. }
  4366. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4367. public event Кли33ентRowChangeEventHandler Кли33ентRowChanging;
  4368. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4369. public event Кли33ентRowChangeEventHandler Кли33ентRowChanged;
  4370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4371. public event Кли33ентRowChangeEventHandler Кли33ентRowDeleting;
  4372. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4373. public event Кли33ентRowChangeEventHandler Кли33ентRowDeleted;
  4374. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4375. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4376. public void AddКли33ентRow(Кли33ентRow row) {
  4377. this.Rows.Add(row);
  4378. }
  4379. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4380. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4381. public Кли33ентRow AddКли33ентRow(int id, string Фамилия, string Имя, string Отчество, GenderRow parentGenderRowByFK_Кли33ент_Gender, string Телефон, System.DateTime Дата_рождения, string Email, System.DateTime Дата_регистрации) {
  4382. Кли33ентRow rowКли33ентRow = ((Кли33ентRow)(this.NewRow()));
  4383. object[] columnValuesArray = new object[] {
  4384. id,
  4385. Фамилия,
  4386. Имя,
  4387. Отчество,
  4388. null,
  4389. Телефон,
  4390. Дата_рождения,
  4391. Email,
  4392. Дата_регистрации};
  4393. if ((parentGenderRowByFK_Кли33ент_Gender != null)) {
  4394. columnValuesArray[4] = parentGenderRowByFK_Кли33ент_Gender[0];
  4395. }
  4396. rowКли33ентRow.ItemArray = columnValuesArray;
  4397. this.Rows.Add(rowКли33ентRow);
  4398. return rowКли33ентRow;
  4399. }
  4400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4402. public Кли33ентRow FindByid(int id) {
  4403. return ((Кли33ентRow)(this.Rows.Find(new object[] {
  4404. id})));
  4405. }
  4406. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4407. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4408. public override global::System.Data.DataTable Clone() {
  4409. Кли33ентDataTable cln = ((Кли33ентDataTable)(base.Clone()));
  4410. cln.InitVars();
  4411. return cln;
  4412. }
  4413. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4414. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4415. protected override global::System.Data.DataTable CreateInstance() {
  4416. return new Кли33ентDataTable();
  4417. }
  4418. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4419. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4420. internal void InitVars() {
  4421. this.columnid = base.Columns["id"];
  4422. this.columnФамилия = base.Columns["Фамилия"];
  4423. this.columnИмя = base.Columns["Имя"];
  4424. this.columnОтчество = base.Columns["Отчество"];
  4425. this.columnПол = base.Columns["Пол"];
  4426. this.columnТелефон = base.Columns["Телефон"];
  4427. this.columnДата_рождения = base.Columns["Дата_рождения"];
  4428. this.columnEmail = base.Columns["Email"];
  4429. this.columnДата_регистрации = base.Columns["Дата_регистрации"];
  4430. }
  4431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4433. private void InitClass() {
  4434. this.columnid = new global::System.Data.DataColumn("id", typeof(int), null, global::System.Data.MappingType.Element);
  4435. base.Columns.Add(this.columnid);
  4436. this.columnФамилия = new global::System.Data.DataColumn("Фамилия", typeof(string), null, global::System.Data.MappingType.Element);
  4437. base.Columns.Add(this.columnФамилия);
  4438. this.columnИмя = new global::System.Data.DataColumn("Имя", typeof(string), null, global::System.Data.MappingType.Element);
  4439. base.Columns.Add(this.columnИмя);
  4440. this.columnОтчество = new global::System.Data.DataColumn("Отчество", typeof(string), null, global::System.Data.MappingType.Element);
  4441. base.Columns.Add(this.columnОтчество);
  4442. this.columnПол = new global::System.Data.DataColumn("Пол", typeof(int), null, global::System.Data.MappingType.Element);
  4443. base.Columns.Add(this.columnПол);
  4444. this.columnТелефон = new global::System.Data.DataColumn("Телефон", typeof(string), null, global::System.Data.MappingType.Element);
  4445. base.Columns.Add(this.columnТелефон);
  4446. this.columnДата_рождения = new global::System.Data.DataColumn("Дата_рождения", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  4447. base.Columns.Add(this.columnДата_рождения);
  4448. this.columnEmail = new global::System.Data.DataColumn("Email", typeof(string), null, global::System.Data.MappingType.Element);
  4449. base.Columns.Add(this.columnEmail);
  4450. this.columnДата_регистрации = new global::System.Data.DataColumn("Дата_регистрации", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  4451. base.Columns.Add(this.columnДата_регистрации);
  4452. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  4453. this.columnid}, true));
  4454. this.columnid.AllowDBNull = false;
  4455. this.columnid.Unique = true;
  4456. this.columnФамилия.AllowDBNull = false;
  4457. this.columnФамилия.MaxLength = 50;
  4458. this.columnИмя.AllowDBNull = false;
  4459. this.columnИмя.MaxLength = 50;
  4460. this.columnОтчество.AllowDBNull = false;
  4461. this.columnОтчество.MaxLength = 50;
  4462. this.columnПол.AllowDBNull = false;
  4463. this.columnТелефон.AllowDBNull = false;
  4464. this.columnТелефон.MaxLength = 50;
  4465. this.columnДата_рождения.AllowDBNull = false;
  4466. this.columnEmail.AllowDBNull = false;
  4467. this.columnEmail.MaxLength = 50;
  4468. this.columnДата_регистрации.AllowDBNull = false;
  4469. }
  4470. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4471. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4472. public Кли33ентRow NewКли33ентRow() {
  4473. return ((Кли33ентRow)(this.NewRow()));
  4474. }
  4475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4477. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  4478. return new Кли33ентRow(builder);
  4479. }
  4480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4482. protected override global::System.Type GetRowType() {
  4483. return typeof(Кли33ентRow);
  4484. }
  4485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4486. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4487. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  4488. base.OnRowChanged(e);
  4489. if ((this.Кли33ентRowChanged != null)) {
  4490. this.Кли33ентRowChanged(this, new Кли33ентRowChangeEvent(((Кли33ентRow)(e.Row)), e.Action));
  4491. }
  4492. }
  4493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4494. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4495. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  4496. base.OnRowChanging(e);
  4497. if ((this.Кли33ентRowChanging != null)) {
  4498. this.Кли33ентRowChanging(this, new Кли33ентRowChangeEvent(((Кли33ентRow)(e.Row)), e.Action));
  4499. }
  4500. }
  4501. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4502. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4503. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  4504. base.OnRowDeleted(e);
  4505. if ((this.Кли33ентRowDeleted != null)) {
  4506. this.Кли33ентRowDeleted(this, new Кли33ентRowChangeEvent(((Кли33ентRow)(e.Row)), e.Action));
  4507. }
  4508. }
  4509. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4510. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4511. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  4512. base.OnRowDeleting(e);
  4513. if ((this.Кли33ентRowDeleting != null)) {
  4514. this.Кли33ентRowDeleting(this, new Кли33ентRowChangeEvent(((Кли33ентRow)(e.Row)), e.Action));
  4515. }
  4516. }
  4517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4518. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4519. public void RemoveКли33ентRow(Кли33ентRow row) {
  4520. this.Rows.Remove(row);
  4521. }
  4522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4524. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  4525. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  4526. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  4527. RozenbergBrDataSet ds = new RozenbergBrDataSet();
  4528. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  4529. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  4530. any1.MinOccurs = new decimal(0);
  4531. any1.MaxOccurs = decimal.MaxValue;
  4532. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4533. sequence.Items.Add(any1);
  4534. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  4535. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  4536. any2.MinOccurs = new decimal(1);
  4537. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4538. sequence.Items.Add(any2);
  4539. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4540. attribute1.Name = "namespace";
  4541. attribute1.FixedValue = ds.Namespace;
  4542. type.Attributes.Add(attribute1);
  4543. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4544. attribute2.Name = "tableTypeName";
  4545. attribute2.FixedValue = "Кли33ентDataTable";
  4546. type.Attributes.Add(attribute2);
  4547. type.Particle = sequence;
  4548. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  4549. if (xs.Contains(dsSchema.TargetNamespace)) {
  4550. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  4551. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  4552. try {
  4553. global::System.Xml.Schema.XmlSchema schema = null;
  4554. dsSchema.Write(s1);
  4555. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  4556. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  4557. s2.SetLength(0);
  4558. schema.Write(s2);
  4559. if ((s1.Length == s2.Length)) {
  4560. s1.Position = 0;
  4561. s2.Position = 0;
  4562. for (; ((s1.Position != s1.Length)
  4563. && (s1.ReadByte() == s2.ReadByte())); ) {
  4564. ;
  4565. }
  4566. if ((s1.Position == s1.Length)) {
  4567. return type;
  4568. }
  4569. }
  4570. }
  4571. }
  4572. finally {
  4573. if ((s1 != null)) {
  4574. s1.Close();
  4575. }
  4576. if ((s2 != null)) {
  4577. s2.Close();
  4578. }
  4579. }
  4580. }
  4581. xs.Add(dsSchema);
  4582. return type;
  4583. }
  4584. }
  4585. /// <summary>
  4586. ///Represents strongly named DataRow class.
  4587. ///</summary>
  4588. public partial class AttachedProductRow : global::System.Data.DataRow {
  4589. private AttachedProductDataTable tableAttachedProduct;
  4590. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4591. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4592. internal AttachedProductRow(global::System.Data.DataRowBuilder rb) :
  4593. base(rb) {
  4594. this.tableAttachedProduct = ((AttachedProductDataTable)(this.Table));
  4595. }
  4596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4597. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4598. public int MainProductID {
  4599. get {
  4600. return ((int)(this[this.tableAttachedProduct.MainProductIDColumn]));
  4601. }
  4602. set {
  4603. this[this.tableAttachedProduct.MainProductIDColumn] = value;
  4604. }
  4605. }
  4606. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4607. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4608. public int AttachedProductID {
  4609. get {
  4610. return ((int)(this[this.tableAttachedProduct.AttachedProductIDColumn]));
  4611. }
  4612. set {
  4613. this[this.tableAttachedProduct.AttachedProductIDColumn] = value;
  4614. }
  4615. }
  4616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4617. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4618. public ProductRow ProductRowByFK_AttachedProduct_Product {
  4619. get {
  4620. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_AttachedProduct_Product"])));
  4621. }
  4622. set {
  4623. this.SetParentRow(value, this.Table.ParentRelations["FK_AttachedProduct_Product"]);
  4624. }
  4625. }
  4626. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4627. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4628. public ProductRow ProductRowByFK_AttachedProduct_Product1 {
  4629. get {
  4630. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_AttachedProduct_Product1"])));
  4631. }
  4632. set {
  4633. this.SetParentRow(value, this.Table.ParentRelations["FK_AttachedProduct_Product1"]);
  4634. }
  4635. }
  4636. }
  4637. /// <summary>
  4638. ///Represents strongly named DataRow class.
  4639. ///</summary>
  4640. public partial class ClientservicRow : global::System.Data.DataRow {
  4641. private ClientservicDataTable tableClientservic;
  4642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4644. internal ClientservicRow(global::System.Data.DataRowBuilder rb) :
  4645. base(rb) {
  4646. this.tableClientservic = ((ClientservicDataTable)(this.Table));
  4647. }
  4648. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4649. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4650. public int id {
  4651. get {
  4652. return ((int)(this[this.tableClientservic.idColumn]));
  4653. }
  4654. set {
  4655. this[this.tableClientservic.idColumn] = value;
  4656. }
  4657. }
  4658. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4659. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4660. public int Clientid {
  4661. get {
  4662. try {
  4663. return ((int)(this[this.tableClientservic.ClientidColumn]));
  4664. }
  4665. catch (global::System.InvalidCastException e) {
  4666. throw new global::System.Data.StrongTypingException("Значение для столбца \'Clientid\' в таблице \'Clientservic\' равно DBNull.", e);
  4667. }
  4668. }
  4669. set {
  4670. this[this.tableClientservic.ClientidColumn] = value;
  4671. }
  4672. }
  4673. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4674. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4675. public int Serviceid {
  4676. get {
  4677. try {
  4678. return ((int)(this[this.tableClientservic.ServiceidColumn]));
  4679. }
  4680. catch (global::System.InvalidCastException e) {
  4681. throw new global::System.Data.StrongTypingException("Значение для столбца \'Serviceid\' в таблице \'Clientservic\' равно DBNull.", e);
  4682. }
  4683. }
  4684. set {
  4685. this[this.tableClientservic.ServiceidColumn] = value;
  4686. }
  4687. }
  4688. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4689. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4690. public string Услуга {
  4691. get {
  4692. return ((string)(this[this.tableClientservic.УслугаColumn]));
  4693. }
  4694. set {
  4695. this[this.tableClientservic.УслугаColumn] = value;
  4696. }
  4697. }
  4698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4699. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4700. public System.DateTime Начало_оказания_услуги {
  4701. get {
  4702. return ((global::System.DateTime)(this[this.tableClientservic.Начало_оказания_услугиColumn]));
  4703. }
  4704. set {
  4705. this[this.tableClientservic.Начало_оказания_услугиColumn] = value;
  4706. }
  4707. }
  4708. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4709. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4710. public string Клиент {
  4711. get {
  4712. return ((string)(this[this.tableClientservic.КлиентColumn]));
  4713. }
  4714. set {
  4715. this[this.tableClientservic.КлиентColumn] = value;
  4716. }
  4717. }
  4718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4719. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4720. public ServiceRow ServiceRow {
  4721. get {
  4722. return ((ServiceRow)(this.GetParentRow(this.Table.ParentRelations["FK_Clientservic_Service"])));
  4723. }
  4724. set {
  4725. this.SetParentRow(value, this.Table.ParentRelations["FK_Clientservic_Service"]);
  4726. }
  4727. }
  4728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4729. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4730. public Кли33ентRow Кли33ентRow {
  4731. get {
  4732. return ((Кли33ентRow)(this.GetParentRow(this.Table.ParentRelations["FK_Clientservic_Кли33ент"])));
  4733. }
  4734. set {
  4735. this.SetParentRow(value, this.Table.ParentRelations["FK_Clientservic_Кли33ент"]);
  4736. }
  4737. }
  4738. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4739. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4740. public bool IsClientidNull() {
  4741. return this.IsNull(this.tableClientservic.ClientidColumn);
  4742. }
  4743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4745. public void SetClientidNull() {
  4746. this[this.tableClientservic.ClientidColumn] = global::System.Convert.DBNull;
  4747. }
  4748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4750. public bool IsServiceidNull() {
  4751. return this.IsNull(this.tableClientservic.ServiceidColumn);
  4752. }
  4753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4755. public void SetServiceidNull() {
  4756. this[this.tableClientservic.ServiceidColumn] = global::System.Convert.DBNull;
  4757. }
  4758. }
  4759. /// <summary>
  4760. ///Represents strongly named DataRow class.
  4761. ///</summary>
  4762. public partial class DocumentByServiceRow : global::System.Data.DataRow {
  4763. private DocumentByServiceDataTable tableDocumentByService;
  4764. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4765. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4766. internal DocumentByServiceRow(global::System.Data.DataRowBuilder rb) :
  4767. base(rb) {
  4768. this.tableDocumentByService = ((DocumentByServiceDataTable)(this.Table));
  4769. }
  4770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4771. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4772. public int ID {
  4773. get {
  4774. return ((int)(this[this.tableDocumentByService.IDColumn]));
  4775. }
  4776. set {
  4777. this[this.tableDocumentByService.IDColumn] = value;
  4778. }
  4779. }
  4780. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4781. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4782. public int ClientServiceID {
  4783. get {
  4784. return ((int)(this[this.tableDocumentByService.ClientServiceIDColumn]));
  4785. }
  4786. set {
  4787. this[this.tableDocumentByService.ClientServiceIDColumn] = value;
  4788. }
  4789. }
  4790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4792. public string DocumentPath {
  4793. get {
  4794. return ((string)(this[this.tableDocumentByService.DocumentPathColumn]));
  4795. }
  4796. set {
  4797. this[this.tableDocumentByService.DocumentPathColumn] = value;
  4798. }
  4799. }
  4800. }
  4801. /// <summary>
  4802. ///Represents strongly named DataRow class.
  4803. ///</summary>
  4804. public partial class GenderRow : global::System.Data.DataRow {
  4805. private GenderDataTable tableGender;
  4806. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4807. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4808. internal GenderRow(global::System.Data.DataRowBuilder rb) :
  4809. base(rb) {
  4810. this.tableGender = ((GenderDataTable)(this.Table));
  4811. }
  4812. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4813. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4814. public int Code {
  4815. get {
  4816. return ((int)(this[this.tableGender.CodeColumn]));
  4817. }
  4818. set {
  4819. this[this.tableGender.CodeColumn] = value;
  4820. }
  4821. }
  4822. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4823. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4824. public string Name {
  4825. get {
  4826. try {
  4827. return ((string)(this[this.tableGender.NameColumn]));
  4828. }
  4829. catch (global::System.InvalidCastException e) {
  4830. throw new global::System.Data.StrongTypingException("Значение для столбца \'Name\' в таблице \'Gender\' равно DBNull.", e);
  4831. }
  4832. }
  4833. set {
  4834. this[this.tableGender.NameColumn] = value;
  4835. }
  4836. }
  4837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4839. public bool IsNameNull() {
  4840. return this.IsNull(this.tableGender.NameColumn);
  4841. }
  4842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4844. public void SetNameNull() {
  4845. this[this.tableGender.NameColumn] = global::System.Convert.DBNull;
  4846. }
  4847. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4848. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4849. public Кли33ентRow[] GetКли33ентRows() {
  4850. if ((this.Table.ChildRelations["FK_Кли33ент_Gender"] == null)) {
  4851. return new Кли33ентRow[0];
  4852. }
  4853. else {
  4854. return ((Кли33ентRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Кли33ент_Gender"])));
  4855. }
  4856. }
  4857. }
  4858. /// <summary>
  4859. ///Represents strongly named DataRow class.
  4860. ///</summary>
  4861. public partial class LoginpassRow : global::System.Data.DataRow {
  4862. private LoginpassDataTable tableLoginpass;
  4863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4864. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4865. internal LoginpassRow(global::System.Data.DataRowBuilder rb) :
  4866. base(rb) {
  4867. this.tableLoginpass = ((LoginpassDataTable)(this.Table));
  4868. }
  4869. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4870. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4871. public int id {
  4872. get {
  4873. return ((int)(this[this.tableLoginpass.idColumn]));
  4874. }
  4875. set {
  4876. this[this.tableLoginpass.idColumn] = value;
  4877. }
  4878. }
  4879. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4880. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4881. public string Login {
  4882. get {
  4883. return ((string)(this[this.tableLoginpass.LoginColumn]));
  4884. }
  4885. set {
  4886. this[this.tableLoginpass.LoginColumn] = value;
  4887. }
  4888. }
  4889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4890. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4891. public string Pass {
  4892. get {
  4893. return ((string)(this[this.tableLoginpass.PassColumn]));
  4894. }
  4895. set {
  4896. this[this.tableLoginpass.PassColumn] = value;
  4897. }
  4898. }
  4899. }
  4900. /// <summary>
  4901. ///Represents strongly named DataRow class.
  4902. ///</summary>
  4903. public partial class ManufacturerRow : global::System.Data.DataRow {
  4904. private ManufacturerDataTable tableManufacturer;
  4905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4906. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4907. internal ManufacturerRow(global::System.Data.DataRowBuilder rb) :
  4908. base(rb) {
  4909. this.tableManufacturer = ((ManufacturerDataTable)(this.Table));
  4910. }
  4911. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4912. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4913. public int ID {
  4914. get {
  4915. return ((int)(this[this.tableManufacturer.IDColumn]));
  4916. }
  4917. set {
  4918. this[this.tableManufacturer.IDColumn] = value;
  4919. }
  4920. }
  4921. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4922. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4923. public string Name {
  4924. get {
  4925. return ((string)(this[this.tableManufacturer.NameColumn]));
  4926. }
  4927. set {
  4928. this[this.tableManufacturer.NameColumn] = value;
  4929. }
  4930. }
  4931. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4932. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4933. public System.DateTime StartDate {
  4934. get {
  4935. try {
  4936. return ((global::System.DateTime)(this[this.tableManufacturer.StartDateColumn]));
  4937. }
  4938. catch (global::System.InvalidCastException e) {
  4939. throw new global::System.Data.StrongTypingException("Значение для столбца \'StartDate\' в таблице \'Manufacturer\' равно DBNull.", e);
  4940. }
  4941. }
  4942. set {
  4943. this[this.tableManufacturer.StartDateColumn] = value;
  4944. }
  4945. }
  4946. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4947. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4948. public bool IsStartDateNull() {
  4949. return this.IsNull(this.tableManufacturer.StartDateColumn);
  4950. }
  4951. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4952. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4953. public void SetStartDateNull() {
  4954. this[this.tableManufacturer.StartDateColumn] = global::System.Convert.DBNull;
  4955. }
  4956. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4957. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4958. public ProductRow[] GetProductRows() {
  4959. if ((this.Table.ChildRelations["FK_Product_Manufacturer"] == null)) {
  4960. return new ProductRow[0];
  4961. }
  4962. else {
  4963. return ((ProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Product_Manufacturer"])));
  4964. }
  4965. }
  4966. }
  4967. /// <summary>
  4968. ///Represents strongly named DataRow class.
  4969. ///</summary>
  4970. public partial class ProductRow : global::System.Data.DataRow {
  4971. private ProductDataTable tableProduct;
  4972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4973. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4974. internal ProductRow(global::System.Data.DataRowBuilder rb) :
  4975. base(rb) {
  4976. this.tableProduct = ((ProductDataTable)(this.Table));
  4977. }
  4978. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4979. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4980. public int ID {
  4981. get {
  4982. return ((int)(this[this.tableProduct.IDColumn]));
  4983. }
  4984. set {
  4985. this[this.tableProduct.IDColumn] = value;
  4986. }
  4987. }
  4988. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4989. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4990. public string Title {
  4991. get {
  4992. return ((string)(this[this.tableProduct.TitleColumn]));
  4993. }
  4994. set {
  4995. this[this.tableProduct.TitleColumn] = value;
  4996. }
  4997. }
  4998. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4999. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5000. public decimal Cost {
  5001. get {
  5002. return ((decimal)(this[this.tableProduct.CostColumn]));
  5003. }
  5004. set {
  5005. this[this.tableProduct.CostColumn] = value;
  5006. }
  5007. }
  5008. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5009. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5010. public string Description {
  5011. get {
  5012. try {
  5013. return ((string)(this[this.tableProduct.DescriptionColumn]));
  5014. }
  5015. catch (global::System.InvalidCastException e) {
  5016. throw new global::System.Data.StrongTypingException("Значение для столбца \'Description\' в таблице \'Product\' равно DBNull.", e);
  5017. }
  5018. }
  5019. set {
  5020. this[this.tableProduct.DescriptionColumn] = value;
  5021. }
  5022. }
  5023. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5024. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5025. public string MainImagePath {
  5026. get {
  5027. try {
  5028. return ((string)(this[this.tableProduct.MainImagePathColumn]));
  5029. }
  5030. catch (global::System.InvalidCastException e) {
  5031. throw new global::System.Data.StrongTypingException("Значение для столбца \'MainImagePath\' в таблице \'Product\' равно DBNull.", e);
  5032. }
  5033. }
  5034. set {
  5035. this[this.tableProduct.MainImagePathColumn] = value;
  5036. }
  5037. }
  5038. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5039. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5040. public bool IsActive {
  5041. get {
  5042. return ((bool)(this[this.tableProduct.IsActiveColumn]));
  5043. }
  5044. set {
  5045. this[this.tableProduct.IsActiveColumn] = value;
  5046. }
  5047. }
  5048. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5049. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5050. public int ManufacturerID {
  5051. get {
  5052. try {
  5053. return ((int)(this[this.tableProduct.ManufacturerIDColumn]));
  5054. }
  5055. catch (global::System.InvalidCastException e) {
  5056. throw new global::System.Data.StrongTypingException("Значение для столбца \'ManufacturerID\' в таблице \'Product\' равно DBNull.", e);
  5057. }
  5058. }
  5059. set {
  5060. this[this.tableProduct.ManufacturerIDColumn] = value;
  5061. }
  5062. }
  5063. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5064. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5065. public ManufacturerRow ManufacturerRow {
  5066. get {
  5067. return ((ManufacturerRow)(this.GetParentRow(this.Table.ParentRelations["FK_Product_Manufacturer"])));
  5068. }
  5069. set {
  5070. this.SetParentRow(value, this.Table.ParentRelations["FK_Product_Manufacturer"]);
  5071. }
  5072. }
  5073. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5074. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5075. public bool IsDescriptionNull() {
  5076. return this.IsNull(this.tableProduct.DescriptionColumn);
  5077. }
  5078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5079. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5080. public void SetDescriptionNull() {
  5081. this[this.tableProduct.DescriptionColumn] = global::System.Convert.DBNull;
  5082. }
  5083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5085. public bool IsMainImagePathNull() {
  5086. return this.IsNull(this.tableProduct.MainImagePathColumn);
  5087. }
  5088. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5089. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5090. public void SetMainImagePathNull() {
  5091. this[this.tableProduct.MainImagePathColumn] = global::System.Convert.DBNull;
  5092. }
  5093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5094. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5095. public bool IsManufacturerIDNull() {
  5096. return this.IsNull(this.tableProduct.ManufacturerIDColumn);
  5097. }
  5098. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5099. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5100. public void SetManufacturerIDNull() {
  5101. this[this.tableProduct.ManufacturerIDColumn] = global::System.Convert.DBNull;
  5102. }
  5103. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5104. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5105. public AttachedProductRow[] GetAttachedProductRowsByFK_AttachedProduct_Product() {
  5106. if ((this.Table.ChildRelations["FK_AttachedProduct_Product"] == null)) {
  5107. return new AttachedProductRow[0];
  5108. }
  5109. else {
  5110. return ((AttachedProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK_AttachedProduct_Product"])));
  5111. }
  5112. }
  5113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5114. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5115. public AttachedProductRow[] GetAttachedProductRowsByFK_AttachedProduct_Product1() {
  5116. if ((this.Table.ChildRelations["FK_AttachedProduct_Product1"] == null)) {
  5117. return new AttachedProductRow[0];
  5118. }
  5119. else {
  5120. return ((AttachedProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK_AttachedProduct_Product1"])));
  5121. }
  5122. }
  5123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5124. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5125. public ProductPhotoRow[] GetProductPhotoRows() {
  5126. if ((this.Table.ChildRelations["FK_ProductPhoto_Product"] == null)) {
  5127. return new ProductPhotoRow[0];
  5128. }
  5129. else {
  5130. return ((ProductPhotoRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductPhoto_Product"])));
  5131. }
  5132. }
  5133. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5134. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5135. public ProductSaleRow[] GetProductSaleRows() {
  5136. if ((this.Table.ChildRelations["FK_ProductSale_Product"] == null)) {
  5137. return new ProductSaleRow[0];
  5138. }
  5139. else {
  5140. return ((ProductSaleRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductSale_Product"])));
  5141. }
  5142. }
  5143. }
  5144. /// <summary>
  5145. ///Represents strongly named DataRow class.
  5146. ///</summary>
  5147. public partial class ProductPhotoRow : global::System.Data.DataRow {
  5148. private ProductPhotoDataTable tableProductPhoto;
  5149. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5150. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5151. internal ProductPhotoRow(global::System.Data.DataRowBuilder rb) :
  5152. base(rb) {
  5153. this.tableProductPhoto = ((ProductPhotoDataTable)(this.Table));
  5154. }
  5155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5156. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5157. public int ID {
  5158. get {
  5159. return ((int)(this[this.tableProductPhoto.IDColumn]));
  5160. }
  5161. set {
  5162. this[this.tableProductPhoto.IDColumn] = value;
  5163. }
  5164. }
  5165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5167. public int ProductID {
  5168. get {
  5169. return ((int)(this[this.tableProductPhoto.ProductIDColumn]));
  5170. }
  5171. set {
  5172. this[this.tableProductPhoto.ProductIDColumn] = value;
  5173. }
  5174. }
  5175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5176. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5177. public string PhotoPath {
  5178. get {
  5179. return ((string)(this[this.tableProductPhoto.PhotoPathColumn]));
  5180. }
  5181. set {
  5182. this[this.tableProductPhoto.PhotoPathColumn] = value;
  5183. }
  5184. }
  5185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5186. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5187. public ProductRow ProductRow {
  5188. get {
  5189. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_ProductPhoto_Product"])));
  5190. }
  5191. set {
  5192. this.SetParentRow(value, this.Table.ParentRelations["FK_ProductPhoto_Product"]);
  5193. }
  5194. }
  5195. }
  5196. /// <summary>
  5197. ///Represents strongly named DataRow class.
  5198. ///</summary>
  5199. public partial class ProductSaleRow : global::System.Data.DataRow {
  5200. private ProductSaleDataTable tableProductSale;
  5201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5203. internal ProductSaleRow(global::System.Data.DataRowBuilder rb) :
  5204. base(rb) {
  5205. this.tableProductSale = ((ProductSaleDataTable)(this.Table));
  5206. }
  5207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5208. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5209. public int ID {
  5210. get {
  5211. return ((int)(this[this.tableProductSale.IDColumn]));
  5212. }
  5213. set {
  5214. this[this.tableProductSale.IDColumn] = value;
  5215. }
  5216. }
  5217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5218. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5219. public System.DateTime SaleDate {
  5220. get {
  5221. return ((global::System.DateTime)(this[this.tableProductSale.SaleDateColumn]));
  5222. }
  5223. set {
  5224. this[this.tableProductSale.SaleDateColumn] = value;
  5225. }
  5226. }
  5227. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5228. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5229. public int ProductID {
  5230. get {
  5231. return ((int)(this[this.tableProductSale.ProductIDColumn]));
  5232. }
  5233. set {
  5234. this[this.tableProductSale.ProductIDColumn] = value;
  5235. }
  5236. }
  5237. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5238. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5239. public int Quantity {
  5240. get {
  5241. return ((int)(this[this.tableProductSale.QuantityColumn]));
  5242. }
  5243. set {
  5244. this[this.tableProductSale.QuantityColumn] = value;
  5245. }
  5246. }
  5247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5249. public int ClientServiceID {
  5250. get {
  5251. try {
  5252. return ((int)(this[this.tableProductSale.ClientServiceIDColumn]));
  5253. }
  5254. catch (global::System.InvalidCastException e) {
  5255. throw new global::System.Data.StrongTypingException("Значение для столбца \'ClientServiceID\' в таблице \'ProductSale\' равно DBNull.", e);
  5256. }
  5257. }
  5258. set {
  5259. this[this.tableProductSale.ClientServiceIDColumn] = value;
  5260. }
  5261. }
  5262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5263. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5264. public ProductRow ProductRow {
  5265. get {
  5266. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_ProductSale_Product"])));
  5267. }
  5268. set {
  5269. this.SetParentRow(value, this.Table.ParentRelations["FK_ProductSale_Product"]);
  5270. }
  5271. }
  5272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5274. public bool IsClientServiceIDNull() {
  5275. return this.IsNull(this.tableProductSale.ClientServiceIDColumn);
  5276. }
  5277. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5278. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5279. public void SetClientServiceIDNull() {
  5280. this[this.tableProductSale.ClientServiceIDColumn] = global::System.Convert.DBNull;
  5281. }
  5282. }
  5283. /// <summary>
  5284. ///Represents strongly named DataRow class.
  5285. ///</summary>
  5286. public partial class ServiceRow : global::System.Data.DataRow {
  5287. private ServiceDataTable tableService;
  5288. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5289. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5290. internal ServiceRow(global::System.Data.DataRowBuilder rb) :
  5291. base(rb) {
  5292. this.tableService = ((ServiceDataTable)(this.Table));
  5293. }
  5294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5296. public int Id {
  5297. get {
  5298. return ((int)(this[this.tableService.IdColumn]));
  5299. }
  5300. set {
  5301. this[this.tableService.IdColumn] = value;
  5302. }
  5303. }
  5304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5306. public string Наименование_услуги {
  5307. get {
  5308. return ((string)(this[this.tableService.Наименование_услугиColumn]));
  5309. }
  5310. set {
  5311. this[this.tableService.Наименование_услугиColumn] = value;
  5312. }
  5313. }
  5314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5315. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5316. public string Главное_изображение {
  5317. get {
  5318. return ((string)(this[this.tableService.Главное_изображениеColumn]));
  5319. }
  5320. set {
  5321. this[this.tableService.Главное_изображениеColumn] = value;
  5322. }
  5323. }
  5324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5326. public int Длительность {
  5327. get {
  5328. return ((int)(this[this.tableService.ДлительностьColumn]));
  5329. }
  5330. set {
  5331. this[this.tableService.ДлительностьColumn] = value;
  5332. }
  5333. }
  5334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5336. public decimal Стоимость {
  5337. get {
  5338. return ((decimal)(this[this.tableService.СтоимостьColumn]));
  5339. }
  5340. set {
  5341. this[this.tableService.СтоимостьColumn] = value;
  5342. }
  5343. }
  5344. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5345. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5346. public double Действующая_скидка {
  5347. get {
  5348. return ((double)(this[this.tableService.Действующая_скидкаColumn]));
  5349. }
  5350. set {
  5351. this[this.tableService.Действующая_скидкаColumn] = value;
  5352. }
  5353. }
  5354. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5355. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5356. public ClientservicRow[] GetClientservicRows() {
  5357. if ((this.Table.ChildRelations["FK_Clientservic_Service"] == null)) {
  5358. return new ClientservicRow[0];
  5359. }
  5360. else {
  5361. return ((ClientservicRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Clientservic_Service"])));
  5362. }
  5363. }
  5364. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5365. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5366. public ServicePhotoRow[] GetServicePhotoRows() {
  5367. if ((this.Table.ChildRelations["FK_ServicePhoto_Service"] == null)) {
  5368. return new ServicePhotoRow[0];
  5369. }
  5370. else {
  5371. return ((ServicePhotoRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ServicePhoto_Service"])));
  5372. }
  5373. }
  5374. }
  5375. /// <summary>
  5376. ///Represents strongly named DataRow class.
  5377. ///</summary>
  5378. public partial class ServicePhotoRow : global::System.Data.DataRow {
  5379. private ServicePhotoDataTable tableServicePhoto;
  5380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5382. internal ServicePhotoRow(global::System.Data.DataRowBuilder rb) :
  5383. base(rb) {
  5384. this.tableServicePhoto = ((ServicePhotoDataTable)(this.Table));
  5385. }
  5386. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5387. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5388. public int ID {
  5389. get {
  5390. return ((int)(this[this.tableServicePhoto.IDColumn]));
  5391. }
  5392. set {
  5393. this[this.tableServicePhoto.IDColumn] = value;
  5394. }
  5395. }
  5396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5398. public int ServiceID {
  5399. get {
  5400. return ((int)(this[this.tableServicePhoto.ServiceIDColumn]));
  5401. }
  5402. set {
  5403. this[this.tableServicePhoto.ServiceIDColumn] = value;
  5404. }
  5405. }
  5406. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5407. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5408. public string PhotoPath {
  5409. get {
  5410. return ((string)(this[this.tableServicePhoto.PhotoPathColumn]));
  5411. }
  5412. set {
  5413. this[this.tableServicePhoto.PhotoPathColumn] = value;
  5414. }
  5415. }
  5416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5418. public ServiceRow ServiceRow {
  5419. get {
  5420. return ((ServiceRow)(this.GetParentRow(this.Table.ParentRelations["FK_ServicePhoto_Service"])));
  5421. }
  5422. set {
  5423. this.SetParentRow(value, this.Table.ParentRelations["FK_ServicePhoto_Service"]);
  5424. }
  5425. }
  5426. }
  5427. /// <summary>
  5428. ///Represents strongly named DataRow class.
  5429. ///</summary>
  5430. public partial class TagRow : global::System.Data.DataRow {
  5431. private TagDataTable tableTag;
  5432. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5433. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5434. internal TagRow(global::System.Data.DataRowBuilder rb) :
  5435. base(rb) {
  5436. this.tableTag = ((TagDataTable)(this.Table));
  5437. }
  5438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5439. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5440. public int ID {
  5441. get {
  5442. return ((int)(this[this.tableTag.IDColumn]));
  5443. }
  5444. set {
  5445. this[this.tableTag.IDColumn] = value;
  5446. }
  5447. }
  5448. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5449. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5450. public string Title {
  5451. get {
  5452. return ((string)(this[this.tableTag.TitleColumn]));
  5453. }
  5454. set {
  5455. this[this.tableTag.TitleColumn] = value;
  5456. }
  5457. }
  5458. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5459. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5460. public string Color {
  5461. get {
  5462. return ((string)(this[this.tableTag.ColorColumn]));
  5463. }
  5464. set {
  5465. this[this.tableTag.ColorColumn] = value;
  5466. }
  5467. }
  5468. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5469. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5470. public TagOfClientRow[] GetTagOfClientRows() {
  5471. if ((this.Table.ChildRelations["FK_TagOfClient_Tag"] == null)) {
  5472. return new TagOfClientRow[0];
  5473. }
  5474. else {
  5475. return ((TagOfClientRow[])(base.GetChildRows(this.Table.ChildRelations["FK_TagOfClient_Tag"])));
  5476. }
  5477. }
  5478. }
  5479. /// <summary>
  5480. ///Represents strongly named DataRow class.
  5481. ///</summary>
  5482. public partial class TagOfClientRow : global::System.Data.DataRow {
  5483. private TagOfClientDataTable tableTagOfClient;
  5484. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5485. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5486. internal TagOfClientRow(global::System.Data.DataRowBuilder rb) :
  5487. base(rb) {
  5488. this.tableTagOfClient = ((TagOfClientDataTable)(this.Table));
  5489. }
  5490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5492. public int ClientID {
  5493. get {
  5494. return ((int)(this[this.tableTagOfClient.ClientIDColumn]));
  5495. }
  5496. set {
  5497. this[this.tableTagOfClient.ClientIDColumn] = value;
  5498. }
  5499. }
  5500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5502. public int TagID {
  5503. get {
  5504. return ((int)(this[this.tableTagOfClient.TagIDColumn]));
  5505. }
  5506. set {
  5507. this[this.tableTagOfClient.TagIDColumn] = value;
  5508. }
  5509. }
  5510. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5511. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5512. public TagRow TagRow {
  5513. get {
  5514. return ((TagRow)(this.GetParentRow(this.Table.ParentRelations["FK_TagOfClient_Tag"])));
  5515. }
  5516. set {
  5517. this.SetParentRow(value, this.Table.ParentRelations["FK_TagOfClient_Tag"]);
  5518. }
  5519. }
  5520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5521. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5522. public Кли33ентRow Кли33ентRow {
  5523. get {
  5524. return ((Кли33ентRow)(this.GetParentRow(this.Table.ParentRelations["FK_TagOfClient_Кли33ент"])));
  5525. }
  5526. set {
  5527. this.SetParentRow(value, this.Table.ParentRelations["FK_TagOfClient_Кли33ент"]);
  5528. }
  5529. }
  5530. }
  5531. /// <summary>
  5532. ///Represents strongly named DataRow class.
  5533. ///</summary>
  5534. public partial class Кли33ентRow : global::System.Data.DataRow {
  5535. private Кли33ентDataTable tableКли33ент;
  5536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5537. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5538. internal Кли33ентRow(global::System.Data.DataRowBuilder rb) :
  5539. base(rb) {
  5540. this.tableКли33ент = ((Кли33ентDataTable)(this.Table));
  5541. }
  5542. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5543. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5544. public int id {
  5545. get {
  5546. return ((int)(this[this.tableКли33ент.idColumn]));
  5547. }
  5548. set {
  5549. this[this.tableКли33ент.idColumn] = value;
  5550. }
  5551. }
  5552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5554. public string Фамилия {
  5555. get {
  5556. return ((string)(this[this.tableКли33ент.ФамилияColumn]));
  5557. }
  5558. set {
  5559. this[this.tableКли33ент.ФамилияColumn] = value;
  5560. }
  5561. }
  5562. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5563. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5564. public string Имя {
  5565. get {
  5566. return ((string)(this[this.tableКли33ент.ИмяColumn]));
  5567. }
  5568. set {
  5569. this[this.tableКли33ент.ИмяColumn] = value;
  5570. }
  5571. }
  5572. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5573. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5574. public string Отчество {
  5575. get {
  5576. return ((string)(this[this.tableКли33ент.ОтчествоColumn]));
  5577. }
  5578. set {
  5579. this[this.tableКли33ент.ОтчествоColumn] = value;
  5580. }
  5581. }
  5582. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5583. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5584. public int Пол {
  5585. get {
  5586. return ((int)(this[this.tableКли33ент.ПолColumn]));
  5587. }
  5588. set {
  5589. this[this.tableКли33ент.ПолColumn] = value;
  5590. }
  5591. }
  5592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5594. public string Телефон {
  5595. get {
  5596. return ((string)(this[this.tableКли33ент.ТелефонColumn]));
  5597. }
  5598. set {
  5599. this[this.tableКли33ент.ТелефонColumn] = value;
  5600. }
  5601. }
  5602. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5603. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5604. public System.DateTime Дата_рождения {
  5605. get {
  5606. return ((global::System.DateTime)(this[this.tableКли33ент.Дата_рожденияColumn]));
  5607. }
  5608. set {
  5609. this[this.tableКли33ент.Дата_рожденияColumn] = value;
  5610. }
  5611. }
  5612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5614. public string Email {
  5615. get {
  5616. return ((string)(this[this.tableКли33ент.EmailColumn]));
  5617. }
  5618. set {
  5619. this[this.tableКли33ент.EmailColumn] = value;
  5620. }
  5621. }
  5622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5623. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5624. public System.DateTime Дата_регистрации {
  5625. get {
  5626. return ((global::System.DateTime)(this[this.tableКли33ент.Дата_регистрацииColumn]));
  5627. }
  5628. set {
  5629. this[this.tableКли33ент.Дата_регистрацииColumn] = value;
  5630. }
  5631. }
  5632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5634. public GenderRow GenderRow {
  5635. get {
  5636. return ((GenderRow)(this.GetParentRow(this.Table.ParentRelations["FK_Кли33ент_Gender"])));
  5637. }
  5638. set {
  5639. this.SetParentRow(value, this.Table.ParentRelations["FK_Кли33ент_Gender"]);
  5640. }
  5641. }
  5642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5644. public ClientservicRow[] GetClientservicRows() {
  5645. if ((this.Table.ChildRelations["FK_Clientservic_Кли33ент"] == null)) {
  5646. return new ClientservicRow[0];
  5647. }
  5648. else {
  5649. return ((ClientservicRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Clientservic_Кли33ент"])));
  5650. }
  5651. }
  5652. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5653. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5654. public TagOfClientRow[] GetTagOfClientRows() {
  5655. if ((this.Table.ChildRelations["FK_TagOfClient_Кли33ент"] == null)) {
  5656. return new TagOfClientRow[0];
  5657. }
  5658. else {
  5659. return ((TagOfClientRow[])(base.GetChildRows(this.Table.ChildRelations["FK_TagOfClient_Кли33ент"])));
  5660. }
  5661. }
  5662. }
  5663. /// <summary>
  5664. ///Row event argument class
  5665. ///</summary>
  5666. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5667. public class AttachedProductRowChangeEvent : global::System.EventArgs {
  5668. private AttachedProductRow eventRow;
  5669. private global::System.Data.DataRowAction eventAction;
  5670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5671. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5672. public AttachedProductRowChangeEvent(AttachedProductRow row, global::System.Data.DataRowAction action) {
  5673. this.eventRow = row;
  5674. this.eventAction = action;
  5675. }
  5676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5677. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5678. public AttachedProductRow Row {
  5679. get {
  5680. return this.eventRow;
  5681. }
  5682. }
  5683. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5684. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5685. public global::System.Data.DataRowAction Action {
  5686. get {
  5687. return this.eventAction;
  5688. }
  5689. }
  5690. }
  5691. /// <summary>
  5692. ///Row event argument class
  5693. ///</summary>
  5694. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5695. public class ClientservicRowChangeEvent : global::System.EventArgs {
  5696. private ClientservicRow eventRow;
  5697. private global::System.Data.DataRowAction eventAction;
  5698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5699. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5700. public ClientservicRowChangeEvent(ClientservicRow row, global::System.Data.DataRowAction action) {
  5701. this.eventRow = row;
  5702. this.eventAction = action;
  5703. }
  5704. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5705. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5706. public ClientservicRow Row {
  5707. get {
  5708. return this.eventRow;
  5709. }
  5710. }
  5711. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5712. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5713. public global::System.Data.DataRowAction Action {
  5714. get {
  5715. return this.eventAction;
  5716. }
  5717. }
  5718. }
  5719. /// <summary>
  5720. ///Row event argument class
  5721. ///</summary>
  5722. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5723. public class DocumentByServiceRowChangeEvent : global::System.EventArgs {
  5724. private DocumentByServiceRow eventRow;
  5725. private global::System.Data.DataRowAction eventAction;
  5726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5728. public DocumentByServiceRowChangeEvent(DocumentByServiceRow row, global::System.Data.DataRowAction action) {
  5729. this.eventRow = row;
  5730. this.eventAction = action;
  5731. }
  5732. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5733. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5734. public DocumentByServiceRow Row {
  5735. get {
  5736. return this.eventRow;
  5737. }
  5738. }
  5739. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5740. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5741. public global::System.Data.DataRowAction Action {
  5742. get {
  5743. return this.eventAction;
  5744. }
  5745. }
  5746. }
  5747. /// <summary>
  5748. ///Row event argument class
  5749. ///</summary>
  5750. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5751. public class GenderRowChangeEvent : global::System.EventArgs {
  5752. private GenderRow eventRow;
  5753. private global::System.Data.DataRowAction eventAction;
  5754. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5755. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5756. public GenderRowChangeEvent(GenderRow row, global::System.Data.DataRowAction action) {
  5757. this.eventRow = row;
  5758. this.eventAction = action;
  5759. }
  5760. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5761. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5762. public GenderRow Row {
  5763. get {
  5764. return this.eventRow;
  5765. }
  5766. }
  5767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5768. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5769. public global::System.Data.DataRowAction Action {
  5770. get {
  5771. return this.eventAction;
  5772. }
  5773. }
  5774. }
  5775. /// <summary>
  5776. ///Row event argument class
  5777. ///</summary>
  5778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5779. public class LoginpassRowChangeEvent : global::System.EventArgs {
  5780. private LoginpassRow eventRow;
  5781. private global::System.Data.DataRowAction eventAction;
  5782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5783. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5784. public LoginpassRowChangeEvent(LoginpassRow row, global::System.Data.DataRowAction action) {
  5785. this.eventRow = row;
  5786. this.eventAction = action;
  5787. }
  5788. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5789. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5790. public LoginpassRow Row {
  5791. get {
  5792. return this.eventRow;
  5793. }
  5794. }
  5795. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5796. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5797. public global::System.Data.DataRowAction Action {
  5798. get {
  5799. return this.eventAction;
  5800. }
  5801. }
  5802. }
  5803. /// <summary>
  5804. ///Row event argument class
  5805. ///</summary>
  5806. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5807. public class ManufacturerRowChangeEvent : global::System.EventArgs {
  5808. private ManufacturerRow eventRow;
  5809. private global::System.Data.DataRowAction eventAction;
  5810. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5811. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5812. public ManufacturerRowChangeEvent(ManufacturerRow row, global::System.Data.DataRowAction action) {
  5813. this.eventRow = row;
  5814. this.eventAction = action;
  5815. }
  5816. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5817. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5818. public ManufacturerRow Row {
  5819. get {
  5820. return this.eventRow;
  5821. }
  5822. }
  5823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5824. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5825. public global::System.Data.DataRowAction Action {
  5826. get {
  5827. return this.eventAction;
  5828. }
  5829. }
  5830. }
  5831. /// <summary>
  5832. ///Row event argument class
  5833. ///</summary>
  5834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5835. public class ProductRowChangeEvent : global::System.EventArgs {
  5836. private ProductRow eventRow;
  5837. private global::System.Data.DataRowAction eventAction;
  5838. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5839. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5840. public ProductRowChangeEvent(ProductRow row, global::System.Data.DataRowAction action) {
  5841. this.eventRow = row;
  5842. this.eventAction = action;
  5843. }
  5844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5845. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5846. public ProductRow Row {
  5847. get {
  5848. return this.eventRow;
  5849. }
  5850. }
  5851. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5852. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5853. public global::System.Data.DataRowAction Action {
  5854. get {
  5855. return this.eventAction;
  5856. }
  5857. }
  5858. }
  5859. /// <summary>
  5860. ///Row event argument class
  5861. ///</summary>
  5862. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5863. public class ProductPhotoRowChangeEvent : global::System.EventArgs {
  5864. private ProductPhotoRow eventRow;
  5865. private global::System.Data.DataRowAction eventAction;
  5866. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5867. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5868. public ProductPhotoRowChangeEvent(ProductPhotoRow row, global::System.Data.DataRowAction action) {
  5869. this.eventRow = row;
  5870. this.eventAction = action;
  5871. }
  5872. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5873. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5874. public ProductPhotoRow Row {
  5875. get {
  5876. return this.eventRow;
  5877. }
  5878. }
  5879. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5880. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5881. public global::System.Data.DataRowAction Action {
  5882. get {
  5883. return this.eventAction;
  5884. }
  5885. }
  5886. }
  5887. /// <summary>
  5888. ///Row event argument class
  5889. ///</summary>
  5890. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5891. public class ProductSaleRowChangeEvent : global::System.EventArgs {
  5892. private ProductSaleRow eventRow;
  5893. private global::System.Data.DataRowAction eventAction;
  5894. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5895. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5896. public ProductSaleRowChangeEvent(ProductSaleRow row, global::System.Data.DataRowAction action) {
  5897. this.eventRow = row;
  5898. this.eventAction = action;
  5899. }
  5900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5901. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5902. public ProductSaleRow Row {
  5903. get {
  5904. return this.eventRow;
  5905. }
  5906. }
  5907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5909. public global::System.Data.DataRowAction Action {
  5910. get {
  5911. return this.eventAction;
  5912. }
  5913. }
  5914. }
  5915. /// <summary>
  5916. ///Row event argument class
  5917. ///</summary>
  5918. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5919. public class ServiceRowChangeEvent : global::System.EventArgs {
  5920. private ServiceRow eventRow;
  5921. private global::System.Data.DataRowAction eventAction;
  5922. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5923. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5924. public ServiceRowChangeEvent(ServiceRow row, global::System.Data.DataRowAction action) {
  5925. this.eventRow = row;
  5926. this.eventAction = action;
  5927. }
  5928. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5929. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5930. public ServiceRow Row {
  5931. get {
  5932. return this.eventRow;
  5933. }
  5934. }
  5935. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5936. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5937. public global::System.Data.DataRowAction Action {
  5938. get {
  5939. return this.eventAction;
  5940. }
  5941. }
  5942. }
  5943. /// <summary>
  5944. ///Row event argument class
  5945. ///</summary>
  5946. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5947. public class ServicePhotoRowChangeEvent : global::System.EventArgs {
  5948. private ServicePhotoRow eventRow;
  5949. private global::System.Data.DataRowAction eventAction;
  5950. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5951. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5952. public ServicePhotoRowChangeEvent(ServicePhotoRow row, global::System.Data.DataRowAction action) {
  5953. this.eventRow = row;
  5954. this.eventAction = action;
  5955. }
  5956. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5957. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5958. public ServicePhotoRow Row {
  5959. get {
  5960. return this.eventRow;
  5961. }
  5962. }
  5963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5965. public global::System.Data.DataRowAction Action {
  5966. get {
  5967. return this.eventAction;
  5968. }
  5969. }
  5970. }
  5971. /// <summary>
  5972. ///Row event argument class
  5973. ///</summary>
  5974. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5975. public class TagRowChangeEvent : global::System.EventArgs {
  5976. private TagRow eventRow;
  5977. private global::System.Data.DataRowAction eventAction;
  5978. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5979. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5980. public TagRowChangeEvent(TagRow row, global::System.Data.DataRowAction action) {
  5981. this.eventRow = row;
  5982. this.eventAction = action;
  5983. }
  5984. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5985. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5986. public TagRow Row {
  5987. get {
  5988. return this.eventRow;
  5989. }
  5990. }
  5991. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5992. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5993. public global::System.Data.DataRowAction Action {
  5994. get {
  5995. return this.eventAction;
  5996. }
  5997. }
  5998. }
  5999. /// <summary>
  6000. ///Row event argument class
  6001. ///</summary>
  6002. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6003. public class TagOfClientRowChangeEvent : global::System.EventArgs {
  6004. private TagOfClientRow eventRow;
  6005. private global::System.Data.DataRowAction eventAction;
  6006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6008. public TagOfClientRowChangeEvent(TagOfClientRow row, global::System.Data.DataRowAction action) {
  6009. this.eventRow = row;
  6010. this.eventAction = action;
  6011. }
  6012. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6013. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6014. public TagOfClientRow Row {
  6015. get {
  6016. return this.eventRow;
  6017. }
  6018. }
  6019. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6020. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6021. public global::System.Data.DataRowAction Action {
  6022. get {
  6023. return this.eventAction;
  6024. }
  6025. }
  6026. }
  6027. /// <summary>
  6028. ///Row event argument class
  6029. ///</summary>
  6030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6031. public class Кли33ентRowChangeEvent : global::System.EventArgs {
  6032. private Кли33ентRow eventRow;
  6033. private global::System.Data.DataRowAction eventAction;
  6034. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6035. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6036. public Кли33ентRowChangeEvent(Кли33ентRow row, global::System.Data.DataRowAction action) {
  6037. this.eventRow = row;
  6038. this.eventAction = action;
  6039. }
  6040. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6041. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6042. public Кли33ентRow Row {
  6043. get {
  6044. return this.eventRow;
  6045. }
  6046. }
  6047. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6048. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6049. public global::System.Data.DataRowAction Action {
  6050. get {
  6051. return this.eventAction;
  6052. }
  6053. }
  6054. }
  6055. }
  6056. }
  6057. namespace RozenbergBrovki.RozenbergBrDataSetTableAdapters {
  6058. /// <summary>
  6059. ///Represents the connection and commands used to retrieve and save data.
  6060. ///</summary>
  6061. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6062. [global::System.ComponentModel.ToolboxItem(true)]
  6063. [global::System.ComponentModel.DataObjectAttribute(true)]
  6064. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6065. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6066. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6067. public partial class AttachedProductTableAdapter : global::System.ComponentModel.Component {
  6068. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6069. private global::System.Data.SqlClient.SqlConnection _connection;
  6070. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6071. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6072. private bool _clearBeforeFill;
  6073. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6074. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6075. public AttachedProductTableAdapter() {
  6076. this.ClearBeforeFill = true;
  6077. }
  6078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6079. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6080. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6081. get {
  6082. if ((this._adapter == null)) {
  6083. this.InitAdapter();
  6084. }
  6085. return this._adapter;
  6086. }
  6087. }
  6088. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6089. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6090. internal global::System.Data.SqlClient.SqlConnection Connection {
  6091. get {
  6092. if ((this._connection == null)) {
  6093. this.InitConnection();
  6094. }
  6095. return this._connection;
  6096. }
  6097. set {
  6098. this._connection = value;
  6099. if ((this.Adapter.InsertCommand != null)) {
  6100. this.Adapter.InsertCommand.Connection = value;
  6101. }
  6102. if ((this.Adapter.DeleteCommand != null)) {
  6103. this.Adapter.DeleteCommand.Connection = value;
  6104. }
  6105. if ((this.Adapter.UpdateCommand != null)) {
  6106. this.Adapter.UpdateCommand.Connection = value;
  6107. }
  6108. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6109. if ((this.CommandCollection[i] != null)) {
  6110. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6111. }
  6112. }
  6113. }
  6114. }
  6115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6116. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6117. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6118. get {
  6119. return this._transaction;
  6120. }
  6121. set {
  6122. this._transaction = value;
  6123. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6124. this.CommandCollection[i].Transaction = this._transaction;
  6125. }
  6126. if (((this.Adapter != null)
  6127. && (this.Adapter.DeleteCommand != null))) {
  6128. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6129. }
  6130. if (((this.Adapter != null)
  6131. && (this.Adapter.InsertCommand != null))) {
  6132. this.Adapter.InsertCommand.Transaction = this._transaction;
  6133. }
  6134. if (((this.Adapter != null)
  6135. && (this.Adapter.UpdateCommand != null))) {
  6136. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6137. }
  6138. }
  6139. }
  6140. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6141. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6142. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6143. get {
  6144. if ((this._commandCollection == null)) {
  6145. this.InitCommandCollection();
  6146. }
  6147. return this._commandCollection;
  6148. }
  6149. }
  6150. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6151. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6152. public bool ClearBeforeFill {
  6153. get {
  6154. return this._clearBeforeFill;
  6155. }
  6156. set {
  6157. this._clearBeforeFill = value;
  6158. }
  6159. }
  6160. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6161. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6162. private void InitAdapter() {
  6163. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6164. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6165. tableMapping.SourceTable = "Table";
  6166. tableMapping.DataSetTable = "AttachedProduct";
  6167. tableMapping.ColumnMappings.Add("MainProductID", "MainProductID");
  6168. tableMapping.ColumnMappings.Add("AttachedProductID", "AttachedProductID");
  6169. this._adapter.TableMappings.Add(tableMapping);
  6170. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6171. this._adapter.DeleteCommand.Connection = this.Connection;
  6172. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[AttachedProduct] WHERE (([MainProductID] = @Original_MainProdu" +
  6173. "ctID) AND ([AttachedProductID] = @Original_AttachedProductID))";
  6174. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6175. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MainProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MainProductID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6176. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_AttachedProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AttachedProductID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6177. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6178. this._adapter.InsertCommand.Connection = this.Connection;
  6179. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[AttachedProduct] ([MainProductID], [AttachedProductID]) VALUES (@MainProductID, @AttachedProductID);
  6180. SELECT MainProductID, AttachedProductID FROM AttachedProduct WHERE (AttachedProductID = @AttachedProductID) AND (MainProductID = @MainProductID)";
  6181. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6182. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MainProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MainProductID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6183. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@AttachedProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AttachedProductID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6184. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6185. this._adapter.UpdateCommand.Connection = this.Connection;
  6186. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[AttachedProduct] SET [MainProductID] = @MainProductID, [AttachedProductID] = @AttachedProductID WHERE (([MainProductID] = @Original_MainProductID) AND ([AttachedProductID] = @Original_AttachedProductID));
  6187. SELECT MainProductID, AttachedProductID FROM AttachedProduct WHERE (AttachedProductID = @AttachedProductID) AND (MainProductID = @MainProductID)";
  6188. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6189. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MainProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MainProductID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6190. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@AttachedProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AttachedProductID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6191. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MainProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MainProductID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6192. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_AttachedProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AttachedProductID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6193. }
  6194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6196. private void InitConnection() {
  6197. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6198. this._connection.ConnectionString = global::RozenbergBrovki.Properties.Settings.Default.RozenbergBrConnectionString;
  6199. }
  6200. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6201. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6202. private void InitCommandCollection() {
  6203. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6204. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6205. this._commandCollection[0].Connection = this.Connection;
  6206. this._commandCollection[0].CommandText = "SELECT MainProductID, AttachedProductID FROM dbo.AttachedProduct";
  6207. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6208. }
  6209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6210. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6211. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6212. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6213. public virtual int Fill(RozenbergBrDataSet.AttachedProductDataTable dataTable) {
  6214. this.Adapter.SelectCommand = this.CommandCollection[0];
  6215. if ((this.ClearBeforeFill == true)) {
  6216. dataTable.Clear();
  6217. }
  6218. int returnValue = this.Adapter.Fill(dataTable);
  6219. return returnValue;
  6220. }
  6221. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6222. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6223. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6224. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6225. public virtual RozenbergBrDataSet.AttachedProductDataTable GetData() {
  6226. this.Adapter.SelectCommand = this.CommandCollection[0];
  6227. RozenbergBrDataSet.AttachedProductDataTable dataTable = new RozenbergBrDataSet.AttachedProductDataTable();
  6228. this.Adapter.Fill(dataTable);
  6229. return dataTable;
  6230. }
  6231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6233. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6234. public virtual int Update(RozenbergBrDataSet.AttachedProductDataTable dataTable) {
  6235. return this.Adapter.Update(dataTable);
  6236. }
  6237. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6238. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6239. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6240. public virtual int Update(RozenbergBrDataSet dataSet) {
  6241. return this.Adapter.Update(dataSet, "AttachedProduct");
  6242. }
  6243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6245. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6246. public virtual int Update(global::System.Data.DataRow dataRow) {
  6247. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6248. dataRow});
  6249. }
  6250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6252. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6253. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6254. return this.Adapter.Update(dataRows);
  6255. }
  6256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6258. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6259. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6260. public virtual int Delete(int Original_MainProductID, int Original_AttachedProductID) {
  6261. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_MainProductID));
  6262. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_AttachedProductID));
  6263. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6264. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6265. != global::System.Data.ConnectionState.Open)) {
  6266. this.Adapter.DeleteCommand.Connection.Open();
  6267. }
  6268. try {
  6269. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6270. return returnValue;
  6271. }
  6272. finally {
  6273. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6274. this.Adapter.DeleteCommand.Connection.Close();
  6275. }
  6276. }
  6277. }
  6278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6279. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6280. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6281. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6282. public virtual int Insert(int MainProductID, int AttachedProductID) {
  6283. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(MainProductID));
  6284. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(AttachedProductID));
  6285. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6286. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6287. != global::System.Data.ConnectionState.Open)) {
  6288. this.Adapter.InsertCommand.Connection.Open();
  6289. }
  6290. try {
  6291. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6292. return returnValue;
  6293. }
  6294. finally {
  6295. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6296. this.Adapter.InsertCommand.Connection.Close();
  6297. }
  6298. }
  6299. }
  6300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6301. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6302. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6303. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6304. public virtual int Update(int MainProductID, int AttachedProductID, int Original_MainProductID, int Original_AttachedProductID) {
  6305. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(MainProductID));
  6306. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(AttachedProductID));
  6307. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_MainProductID));
  6308. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_AttachedProductID));
  6309. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6310. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6311. != global::System.Data.ConnectionState.Open)) {
  6312. this.Adapter.UpdateCommand.Connection.Open();
  6313. }
  6314. try {
  6315. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6316. return returnValue;
  6317. }
  6318. finally {
  6319. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6320. this.Adapter.UpdateCommand.Connection.Close();
  6321. }
  6322. }
  6323. }
  6324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6326. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6327. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6328. public virtual int Update(int Original_MainProductID, int Original_AttachedProductID) {
  6329. return this.Update(Original_MainProductID, Original_AttachedProductID, Original_MainProductID, Original_AttachedProductID);
  6330. }
  6331. }
  6332. /// <summary>
  6333. ///Represents the connection and commands used to retrieve and save data.
  6334. ///</summary>
  6335. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6336. [global::System.ComponentModel.ToolboxItem(true)]
  6337. [global::System.ComponentModel.DataObjectAttribute(true)]
  6338. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6339. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6340. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6341. public partial class ClientservicTableAdapter : global::System.ComponentModel.Component {
  6342. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6343. private global::System.Data.SqlClient.SqlConnection _connection;
  6344. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6345. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6346. private bool _clearBeforeFill;
  6347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6349. public ClientservicTableAdapter() {
  6350. this.ClearBeforeFill = true;
  6351. }
  6352. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6353. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6354. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6355. get {
  6356. if ((this._adapter == null)) {
  6357. this.InitAdapter();
  6358. }
  6359. return this._adapter;
  6360. }
  6361. }
  6362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6363. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6364. internal global::System.Data.SqlClient.SqlConnection Connection {
  6365. get {
  6366. if ((this._connection == null)) {
  6367. this.InitConnection();
  6368. }
  6369. return this._connection;
  6370. }
  6371. set {
  6372. this._connection = value;
  6373. if ((this.Adapter.InsertCommand != null)) {
  6374. this.Adapter.InsertCommand.Connection = value;
  6375. }
  6376. if ((this.Adapter.DeleteCommand != null)) {
  6377. this.Adapter.DeleteCommand.Connection = value;
  6378. }
  6379. if ((this.Adapter.UpdateCommand != null)) {
  6380. this.Adapter.UpdateCommand.Connection = value;
  6381. }
  6382. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6383. if ((this.CommandCollection[i] != null)) {
  6384. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6385. }
  6386. }
  6387. }
  6388. }
  6389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6390. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6391. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6392. get {
  6393. return this._transaction;
  6394. }
  6395. set {
  6396. this._transaction = value;
  6397. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6398. this.CommandCollection[i].Transaction = this._transaction;
  6399. }
  6400. if (((this.Adapter != null)
  6401. && (this.Adapter.DeleteCommand != null))) {
  6402. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6403. }
  6404. if (((this.Adapter != null)
  6405. && (this.Adapter.InsertCommand != null))) {
  6406. this.Adapter.InsertCommand.Transaction = this._transaction;
  6407. }
  6408. if (((this.Adapter != null)
  6409. && (this.Adapter.UpdateCommand != null))) {
  6410. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6411. }
  6412. }
  6413. }
  6414. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6415. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6416. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6417. get {
  6418. if ((this._commandCollection == null)) {
  6419. this.InitCommandCollection();
  6420. }
  6421. return this._commandCollection;
  6422. }
  6423. }
  6424. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6425. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6426. public bool ClearBeforeFill {
  6427. get {
  6428. return this._clearBeforeFill;
  6429. }
  6430. set {
  6431. this._clearBeforeFill = value;
  6432. }
  6433. }
  6434. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6435. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6436. private void InitAdapter() {
  6437. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6438. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6439. tableMapping.SourceTable = "Table";
  6440. tableMapping.DataSetTable = "Clientservic";
  6441. tableMapping.ColumnMappings.Add("id", "id");
  6442. tableMapping.ColumnMappings.Add("Clientid", "Clientid");
  6443. tableMapping.ColumnMappings.Add("Serviceid", "Serviceid");
  6444. tableMapping.ColumnMappings.Add("Услуга", "Услуга");
  6445. tableMapping.ColumnMappings.Add("Начало_оказания_услуги", "Начало_оказания_услуги");
  6446. tableMapping.ColumnMappings.Add("Клиент", "Клиент");
  6447. this._adapter.TableMappings.Add(tableMapping);
  6448. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6449. this._adapter.DeleteCommand.Connection = this.Connection;
  6450. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Clientservic] WHERE (([id] = @Original_id) AND ((@IsNull_Clientid = 1 AND [Clientid] IS NULL) OR ([Clientid] = @Original_Clientid)) AND ((@IsNull_Serviceid = 1 AND [Serviceid] IS NULL) OR ([Serviceid] = @Original_Serviceid)) AND ([Услуга] = @Original_Услуга) AND ([Начало_оказания_услуги] = @Original_Начало_оказания_услуги) AND ([Клиент] = @Original_Клиент))";
  6451. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6452. 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, "", "", ""));
  6453. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Clientid", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Clientid", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6454. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Clientid", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Clientid", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6455. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Serviceid", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Serviceid", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6456. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Serviceid", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Serviceid", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6457. 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, "", "", ""));
  6458. 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, "", "", ""));
  6459. 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, "", "", ""));
  6460. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6461. this._adapter.InsertCommand.Connection = this.Connection;
  6462. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Clientservic] ([Clientid], [Serviceid], [Услуга], [Начало_оказания_услуги], [Клиент]) VALUES (@Clientid, @Serviceid, @Услуга, @Начало_оказания_услуги, @Клиент);
  6463. SELECT id, Clientid, Serviceid, Услуга, Начало_оказания_услуги, Клиент FROM Clientservic WHERE (id = SCOPE_IDENTITY())";
  6464. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6465. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Clientid", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Clientid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6466. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Serviceid", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Serviceid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6467. 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, "", "", ""));
  6468. 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, "", "", ""));
  6469. 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, "", "", ""));
  6470. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6471. this._adapter.UpdateCommand.Connection = this.Connection;
  6472. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Clientservic] SET [Clientid] = @Clientid, [Serviceid] = @Serviceid, [Услуга] = @Услуга, [Начало_оказания_услуги] = @Начало_оказания_услуги, [Клиент] = @Клиент WHERE (([id] = @Original_id) AND ((@IsNull_Clientid = 1 AND [Clientid] IS NULL) OR ([Clientid] = @Original_Clientid)) AND ((@IsNull_Serviceid = 1 AND [Serviceid] IS NULL) OR ([Serviceid] = @Original_Serviceid)) AND ([Услуга] = @Original_Услуга) AND ([Начало_оказания_услуги] = @Original_Начало_оказания_услуги) AND ([Клиент] = @Original_Клиент));
  6473. SELECT id, Clientid, Serviceid, Услуга, Начало_оказания_услуги, Клиент FROM Clientservic WHERE (id = @id)";
  6474. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6475. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Clientid", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Clientid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6476. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Serviceid", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Serviceid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6477. 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, "", "", ""));
  6478. 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, "", "", ""));
  6479. 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, "", "", ""));
  6480. 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, "", "", ""));
  6481. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Clientid", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Clientid", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6482. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Clientid", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Clientid", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6483. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Serviceid", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Serviceid", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6484. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Serviceid", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Serviceid", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6485. 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, "", "", ""));
  6486. 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, "", "", ""));
  6487. 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, "", "", ""));
  6488. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6489. }
  6490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6492. private void InitConnection() {
  6493. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6494. this._connection.ConnectionString = global::RozenbergBrovki.Properties.Settings.Default.RozenbergBrConnectionString;
  6495. }
  6496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6497. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6498. private void InitCommandCollection() {
  6499. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6500. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6501. this._commandCollection[0].Connection = this.Connection;
  6502. this._commandCollection[0].CommandText = "SELECT id, Clientid, Serviceid, Услуга, Начало_оказания_услуги, Клиент FROM dbo.C" +
  6503. "lientservic";
  6504. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6505. }
  6506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6508. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6509. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6510. public virtual int Fill(RozenbergBrDataSet.ClientservicDataTable dataTable) {
  6511. this.Adapter.SelectCommand = this.CommandCollection[0];
  6512. if ((this.ClearBeforeFill == true)) {
  6513. dataTable.Clear();
  6514. }
  6515. int returnValue = this.Adapter.Fill(dataTable);
  6516. return returnValue;
  6517. }
  6518. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6519. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6520. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6521. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6522. public virtual RozenbergBrDataSet.ClientservicDataTable GetData() {
  6523. this.Adapter.SelectCommand = this.CommandCollection[0];
  6524. RozenbergBrDataSet.ClientservicDataTable dataTable = new RozenbergBrDataSet.ClientservicDataTable();
  6525. this.Adapter.Fill(dataTable);
  6526. return dataTable;
  6527. }
  6528. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6529. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6530. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6531. public virtual int Update(RozenbergBrDataSet.ClientservicDataTable dataTable) {
  6532. return this.Adapter.Update(dataTable);
  6533. }
  6534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6535. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6536. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6537. public virtual int Update(RozenbergBrDataSet dataSet) {
  6538. return this.Adapter.Update(dataSet, "Clientservic");
  6539. }
  6540. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6541. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6542. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6543. public virtual int Update(global::System.Data.DataRow dataRow) {
  6544. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6545. dataRow});
  6546. }
  6547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6549. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6550. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6551. return this.Adapter.Update(dataRows);
  6552. }
  6553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6555. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6556. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6557. public virtual int Delete(int Original_id, global::System.Nullable<int> Original_Clientid, global::System.Nullable<int> Original_Serviceid, string Original_Услуга, System.DateTime Original_Начало_оказания_услуги, string Original_Клиент) {
  6558. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id));
  6559. if ((Original_Clientid.HasValue == true)) {
  6560. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  6561. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_Clientid.Value));
  6562. }
  6563. else {
  6564. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  6565. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  6566. }
  6567. if ((Original_Serviceid.HasValue == true)) {
  6568. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  6569. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_Serviceid.Value));
  6570. }
  6571. else {
  6572. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  6573. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  6574. }
  6575. if ((Original_Услуга == null)) {
  6576. throw new global::System.ArgumentNullException("Original_Услуга");
  6577. }
  6578. else {
  6579. this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_Услуга));
  6580. }
  6581. this.Adapter.DeleteCommand.Parameters[6].Value = ((System.DateTime)(Original_Начало_оказания_услуги));
  6582. if ((Original_Клиент == null)) {
  6583. throw new global::System.ArgumentNullException("Original_Клиент");
  6584. }
  6585. else {
  6586. this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_Клиент));
  6587. }
  6588. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6589. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6590. != global::System.Data.ConnectionState.Open)) {
  6591. this.Adapter.DeleteCommand.Connection.Open();
  6592. }
  6593. try {
  6594. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6595. return returnValue;
  6596. }
  6597. finally {
  6598. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6599. this.Adapter.DeleteCommand.Connection.Close();
  6600. }
  6601. }
  6602. }
  6603. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6604. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6605. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6606. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6607. public virtual int Insert(global::System.Nullable<int> Clientid, global::System.Nullable<int> Serviceid, string Услуга, System.DateTime Начало_оказания_услуги, string Клиент) {
  6608. if ((Clientid.HasValue == true)) {
  6609. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(Clientid.Value));
  6610. }
  6611. else {
  6612. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  6613. }
  6614. if ((Serviceid.HasValue == true)) {
  6615. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(Serviceid.Value));
  6616. }
  6617. else {
  6618. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  6619. }
  6620. if ((Услуга == null)) {
  6621. throw new global::System.ArgumentNullException("Услуга");
  6622. }
  6623. else {
  6624. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Услуга));
  6625. }
  6626. this.Adapter.InsertCommand.Parameters[3].Value = ((System.DateTime)(Начало_оказания_услуги));
  6627. if ((Клиент == null)) {
  6628. throw new global::System.ArgumentNullException("Клиент");
  6629. }
  6630. else {
  6631. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Клиент));
  6632. }
  6633. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6634. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6635. != global::System.Data.ConnectionState.Open)) {
  6636. this.Adapter.InsertCommand.Connection.Open();
  6637. }
  6638. try {
  6639. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6640. return returnValue;
  6641. }
  6642. finally {
  6643. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6644. this.Adapter.InsertCommand.Connection.Close();
  6645. }
  6646. }
  6647. }
  6648. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6649. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6650. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6651. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6652. public virtual int Update(global::System.Nullable<int> Clientid, global::System.Nullable<int> Serviceid, string Услуга, System.DateTime Начало_оказания_услуги, string Клиент, int Original_id, global::System.Nullable<int> Original_Clientid, global::System.Nullable<int> Original_Serviceid, string Original_Услуга, System.DateTime Original_Начало_оказания_услуги, string Original_Клиент, int id) {
  6653. if ((Clientid.HasValue == true)) {
  6654. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(Clientid.Value));
  6655. }
  6656. else {
  6657. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  6658. }
  6659. if ((Serviceid.HasValue == true)) {
  6660. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Serviceid.Value));
  6661. }
  6662. else {
  6663. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  6664. }
  6665. if ((Услуга == null)) {
  6666. throw new global::System.ArgumentNullException("Услуга");
  6667. }
  6668. else {
  6669. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Услуга));
  6670. }
  6671. this.Adapter.UpdateCommand.Parameters[3].Value = ((System.DateTime)(Начало_оказания_услуги));
  6672. if ((Клиент == null)) {
  6673. throw new global::System.ArgumentNullException("Клиент");
  6674. }
  6675. else {
  6676. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Клиент));
  6677. }
  6678. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_id));
  6679. if ((Original_Clientid.HasValue == true)) {
  6680. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  6681. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_Clientid.Value));
  6682. }
  6683. else {
  6684. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  6685. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  6686. }
  6687. if ((Original_Serviceid.HasValue == true)) {
  6688. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  6689. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_Serviceid.Value));
  6690. }
  6691. else {
  6692. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  6693. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  6694. }
  6695. if ((Original_Услуга == null)) {
  6696. throw new global::System.ArgumentNullException("Original_Услуга");
  6697. }
  6698. else {
  6699. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_Услуга));
  6700. }
  6701. this.Adapter.UpdateCommand.Parameters[11].Value = ((System.DateTime)(Original_Начало_оказания_услуги));
  6702. if ((Original_Клиент == null)) {
  6703. throw new global::System.ArgumentNullException("Original_Клиент");
  6704. }
  6705. else {
  6706. this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_Клиент));
  6707. }
  6708. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(id));
  6709. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6710. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6711. != global::System.Data.ConnectionState.Open)) {
  6712. this.Adapter.UpdateCommand.Connection.Open();
  6713. }
  6714. try {
  6715. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6716. return returnValue;
  6717. }
  6718. finally {
  6719. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6720. this.Adapter.UpdateCommand.Connection.Close();
  6721. }
  6722. }
  6723. }
  6724. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6725. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6726. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6727. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6728. public virtual int Update(global::System.Nullable<int> Clientid, global::System.Nullable<int> Serviceid, string Услуга, System.DateTime Начало_оказания_услуги, string Клиент, int Original_id, global::System.Nullable<int> Original_Clientid, global::System.Nullable<int> Original_Serviceid, string Original_Услуга, System.DateTime Original_Начало_оказания_услуги, string Original_Клиент) {
  6729. return this.Update(Clientid, Serviceid, Услуга, Начало_оказания_услуги, Клиент, Original_id, Original_Clientid, Original_Serviceid, Original_Услуга, Original_Начало_оказания_услуги, Original_Клиент, Original_id);
  6730. }
  6731. }
  6732. /// <summary>
  6733. ///Represents the connection and commands used to retrieve and save data.
  6734. ///</summary>
  6735. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6736. [global::System.ComponentModel.ToolboxItem(true)]
  6737. [global::System.ComponentModel.DataObjectAttribute(true)]
  6738. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6739. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6740. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6741. public partial class DocumentByServiceTableAdapter : global::System.ComponentModel.Component {
  6742. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6743. private global::System.Data.SqlClient.SqlConnection _connection;
  6744. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6745. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6746. private bool _clearBeforeFill;
  6747. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6748. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6749. public DocumentByServiceTableAdapter() {
  6750. this.ClearBeforeFill = true;
  6751. }
  6752. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6753. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6754. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6755. get {
  6756. if ((this._adapter == null)) {
  6757. this.InitAdapter();
  6758. }
  6759. return this._adapter;
  6760. }
  6761. }
  6762. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6763. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6764. internal global::System.Data.SqlClient.SqlConnection Connection {
  6765. get {
  6766. if ((this._connection == null)) {
  6767. this.InitConnection();
  6768. }
  6769. return this._connection;
  6770. }
  6771. set {
  6772. this._connection = value;
  6773. if ((this.Adapter.InsertCommand != null)) {
  6774. this.Adapter.InsertCommand.Connection = value;
  6775. }
  6776. if ((this.Adapter.DeleteCommand != null)) {
  6777. this.Adapter.DeleteCommand.Connection = value;
  6778. }
  6779. if ((this.Adapter.UpdateCommand != null)) {
  6780. this.Adapter.UpdateCommand.Connection = value;
  6781. }
  6782. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6783. if ((this.CommandCollection[i] != null)) {
  6784. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6785. }
  6786. }
  6787. }
  6788. }
  6789. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6790. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6791. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6792. get {
  6793. return this._transaction;
  6794. }
  6795. set {
  6796. this._transaction = value;
  6797. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6798. this.CommandCollection[i].Transaction = this._transaction;
  6799. }
  6800. if (((this.Adapter != null)
  6801. && (this.Adapter.DeleteCommand != null))) {
  6802. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6803. }
  6804. if (((this.Adapter != null)
  6805. && (this.Adapter.InsertCommand != null))) {
  6806. this.Adapter.InsertCommand.Transaction = this._transaction;
  6807. }
  6808. if (((this.Adapter != null)
  6809. && (this.Adapter.UpdateCommand != null))) {
  6810. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6811. }
  6812. }
  6813. }
  6814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6816. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6817. get {
  6818. if ((this._commandCollection == null)) {
  6819. this.InitCommandCollection();
  6820. }
  6821. return this._commandCollection;
  6822. }
  6823. }
  6824. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6825. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6826. public bool ClearBeforeFill {
  6827. get {
  6828. return this._clearBeforeFill;
  6829. }
  6830. set {
  6831. this._clearBeforeFill = value;
  6832. }
  6833. }
  6834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6835. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6836. private void InitAdapter() {
  6837. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6838. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6839. tableMapping.SourceTable = "Table";
  6840. tableMapping.DataSetTable = "DocumentByService";
  6841. tableMapping.ColumnMappings.Add("ID", "ID");
  6842. tableMapping.ColumnMappings.Add("ClientServiceID", "ClientServiceID");
  6843. tableMapping.ColumnMappings.Add("DocumentPath", "DocumentPath");
  6844. this._adapter.TableMappings.Add(tableMapping);
  6845. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6846. this._adapter.DeleteCommand.Connection = this.Connection;
  6847. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[DocumentByService] WHERE (([ID] = @Original_ID) AND ([ClientSe" +
  6848. "rviceID] = @Original_ClientServiceID) AND ([DocumentPath] = @Original_DocumentPa" +
  6849. "th))";
  6850. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6851. 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, "", "", ""));
  6852. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ClientServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientServiceID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6853. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DocumentPath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DocumentPath", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6854. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6855. this._adapter.InsertCommand.Connection = this.Connection;
  6856. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[DocumentByService] ([ClientServiceID], [DocumentPath]) VALUES " +
  6857. "(@ClientServiceID, @DocumentPath);\r\nSELECT ID, ClientServiceID, DocumentPath FRO" +
  6858. "M DocumentByService WHERE (ID = SCOPE_IDENTITY())";
  6859. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6860. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ClientServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientServiceID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6861. 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, "", "", ""));
  6862. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6863. this._adapter.UpdateCommand.Connection = this.Connection;
  6864. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[DocumentByService] SET [ClientServiceID] = @ClientServiceID, [DocumentPath] = @DocumentPath WHERE (([ID] = @Original_ID) AND ([ClientServiceID] = @Original_ClientServiceID) AND ([DocumentPath] = @Original_DocumentPath));
  6865. SELECT ID, ClientServiceID, DocumentPath FROM DocumentByService WHERE (ID = @ID)";
  6866. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6867. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ClientServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientServiceID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6868. 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, "", "", ""));
  6869. 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, "", "", ""));
  6870. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ClientServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientServiceID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6871. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DocumentPath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DocumentPath", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6872. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6873. }
  6874. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6875. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6876. private void InitConnection() {
  6877. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6878. this._connection.ConnectionString = global::RozenbergBrovki.Properties.Settings.Default.RozenbergBrConnectionString;
  6879. }
  6880. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6881. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6882. private void InitCommandCollection() {
  6883. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6884. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6885. this._commandCollection[0].Connection = this.Connection;
  6886. this._commandCollection[0].CommandText = "SELECT ID, ClientServiceID, DocumentPath FROM dbo.DocumentByService";
  6887. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6888. }
  6889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6890. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6891. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6892. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6893. public virtual int Fill(RozenbergBrDataSet.DocumentByServiceDataTable dataTable) {
  6894. this.Adapter.SelectCommand = this.CommandCollection[0];
  6895. if ((this.ClearBeforeFill == true)) {
  6896. dataTable.Clear();
  6897. }
  6898. int returnValue = this.Adapter.Fill(dataTable);
  6899. return returnValue;
  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.Select, true)]
  6905. public virtual RozenbergBrDataSet.DocumentByServiceDataTable GetData() {
  6906. this.Adapter.SelectCommand = this.CommandCollection[0];
  6907. RozenbergBrDataSet.DocumentByServiceDataTable dataTable = new RozenbergBrDataSet.DocumentByServiceDataTable();
  6908. this.Adapter.Fill(dataTable);
  6909. return dataTable;
  6910. }
  6911. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6912. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6913. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6914. public virtual int Update(RozenbergBrDataSet.DocumentByServiceDataTable dataTable) {
  6915. return this.Adapter.Update(dataTable);
  6916. }
  6917. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6918. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6919. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6920. public virtual int Update(RozenbergBrDataSet dataSet) {
  6921. return this.Adapter.Update(dataSet, "DocumentByService");
  6922. }
  6923. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6924. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6925. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6926. public virtual int Update(global::System.Data.DataRow dataRow) {
  6927. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6928. dataRow});
  6929. }
  6930. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6931. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6932. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6933. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6934. return this.Adapter.Update(dataRows);
  6935. }
  6936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6937. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6938. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6939. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6940. public virtual int Delete(int Original_ID, int Original_ClientServiceID, string Original_DocumentPath) {
  6941. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  6942. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ClientServiceID));
  6943. if ((Original_DocumentPath == null)) {
  6944. throw new global::System.ArgumentNullException("Original_DocumentPath");
  6945. }
  6946. else {
  6947. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_DocumentPath));
  6948. }
  6949. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6950. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6951. != global::System.Data.ConnectionState.Open)) {
  6952. this.Adapter.DeleteCommand.Connection.Open();
  6953. }
  6954. try {
  6955. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6956. return returnValue;
  6957. }
  6958. finally {
  6959. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6960. this.Adapter.DeleteCommand.Connection.Close();
  6961. }
  6962. }
  6963. }
  6964. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6965. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6966. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6967. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6968. public virtual int Insert(int ClientServiceID, string DocumentPath) {
  6969. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ClientServiceID));
  6970. if ((DocumentPath == null)) {
  6971. throw new global::System.ArgumentNullException("DocumentPath");
  6972. }
  6973. else {
  6974. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(DocumentPath));
  6975. }
  6976. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6977. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6978. != global::System.Data.ConnectionState.Open)) {
  6979. this.Adapter.InsertCommand.Connection.Open();
  6980. }
  6981. try {
  6982. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6983. return returnValue;
  6984. }
  6985. finally {
  6986. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6987. this.Adapter.InsertCommand.Connection.Close();
  6988. }
  6989. }
  6990. }
  6991. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6992. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6993. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6994. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6995. public virtual int Update(int ClientServiceID, string DocumentPath, int Original_ID, int Original_ClientServiceID, string Original_DocumentPath, int ID) {
  6996. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ClientServiceID));
  6997. if ((DocumentPath == null)) {
  6998. throw new global::System.ArgumentNullException("DocumentPath");
  6999. }
  7000. else {
  7001. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(DocumentPath));
  7002. }
  7003. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  7004. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ClientServiceID));
  7005. if ((Original_DocumentPath == null)) {
  7006. throw new global::System.ArgumentNullException("Original_DocumentPath");
  7007. }
  7008. else {
  7009. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_DocumentPath));
  7010. }
  7011. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID));
  7012. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7013. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7014. != global::System.Data.ConnectionState.Open)) {
  7015. this.Adapter.UpdateCommand.Connection.Open();
  7016. }
  7017. try {
  7018. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7019. return returnValue;
  7020. }
  7021. finally {
  7022. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7023. this.Adapter.UpdateCommand.Connection.Close();
  7024. }
  7025. }
  7026. }
  7027. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7028. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7029. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7030. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7031. public virtual int Update(int ClientServiceID, string DocumentPath, int Original_ID, int Original_ClientServiceID, string Original_DocumentPath) {
  7032. return this.Update(ClientServiceID, DocumentPath, Original_ID, Original_ClientServiceID, Original_DocumentPath, Original_ID);
  7033. }
  7034. }
  7035. /// <summary>
  7036. ///Represents the connection and commands used to retrieve and save data.
  7037. ///</summary>
  7038. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7039. [global::System.ComponentModel.ToolboxItem(true)]
  7040. [global::System.ComponentModel.DataObjectAttribute(true)]
  7041. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7042. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7043. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7044. public partial class GenderTableAdapter : global::System.ComponentModel.Component {
  7045. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7046. private global::System.Data.SqlClient.SqlConnection _connection;
  7047. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7048. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7049. private bool _clearBeforeFill;
  7050. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7052. public GenderTableAdapter() {
  7053. this.ClearBeforeFill = true;
  7054. }
  7055. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7056. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7057. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7058. get {
  7059. if ((this._adapter == null)) {
  7060. this.InitAdapter();
  7061. }
  7062. return this._adapter;
  7063. }
  7064. }
  7065. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7066. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7067. internal global::System.Data.SqlClient.SqlConnection Connection {
  7068. get {
  7069. if ((this._connection == null)) {
  7070. this.InitConnection();
  7071. }
  7072. return this._connection;
  7073. }
  7074. set {
  7075. this._connection = value;
  7076. if ((this.Adapter.InsertCommand != null)) {
  7077. this.Adapter.InsertCommand.Connection = value;
  7078. }
  7079. if ((this.Adapter.DeleteCommand != null)) {
  7080. this.Adapter.DeleteCommand.Connection = value;
  7081. }
  7082. if ((this.Adapter.UpdateCommand != null)) {
  7083. this.Adapter.UpdateCommand.Connection = value;
  7084. }
  7085. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7086. if ((this.CommandCollection[i] != null)) {
  7087. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7088. }
  7089. }
  7090. }
  7091. }
  7092. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7093. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7094. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7095. get {
  7096. return this._transaction;
  7097. }
  7098. set {
  7099. this._transaction = value;
  7100. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7101. this.CommandCollection[i].Transaction = this._transaction;
  7102. }
  7103. if (((this.Adapter != null)
  7104. && (this.Adapter.DeleteCommand != null))) {
  7105. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7106. }
  7107. if (((this.Adapter != null)
  7108. && (this.Adapter.InsertCommand != null))) {
  7109. this.Adapter.InsertCommand.Transaction = this._transaction;
  7110. }
  7111. if (((this.Adapter != null)
  7112. && (this.Adapter.UpdateCommand != null))) {
  7113. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7114. }
  7115. }
  7116. }
  7117. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7118. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7119. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7120. get {
  7121. if ((this._commandCollection == null)) {
  7122. this.InitCommandCollection();
  7123. }
  7124. return this._commandCollection;
  7125. }
  7126. }
  7127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7128. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7129. public bool ClearBeforeFill {
  7130. get {
  7131. return this._clearBeforeFill;
  7132. }
  7133. set {
  7134. this._clearBeforeFill = value;
  7135. }
  7136. }
  7137. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7138. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7139. private void InitAdapter() {
  7140. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7141. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7142. tableMapping.SourceTable = "Table";
  7143. tableMapping.DataSetTable = "Gender";
  7144. tableMapping.ColumnMappings.Add("Code", "Code");
  7145. tableMapping.ColumnMappings.Add("Name", "Name");
  7146. this._adapter.TableMappings.Add(tableMapping);
  7147. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7148. this._adapter.DeleteCommand.Connection = this.Connection;
  7149. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Gender] WHERE (([Code] = @Original_Code) AND ((@IsNull_Name = " +
  7150. "1 AND [Name] IS NULL) OR ([Name] = @Original_Name)))";
  7151. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7152. 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, "", "", ""));
  7153. 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, "", "", ""));
  7154. 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, "", "", ""));
  7155. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7156. this._adapter.InsertCommand.Connection = this.Connection;
  7157. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Gender] ([Code], [Name]) VALUES (@Code, @Name);\r\nSELECT Code, " +
  7158. "Name FROM Gender WHERE (Code = @Code)";
  7159. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7160. 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, "", "", ""));
  7161. 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, "", "", ""));
  7162. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7163. this._adapter.UpdateCommand.Connection = this.Connection;
  7164. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Gender] SET [Code] = @Code, [Name] = @Name WHERE (([Code] = @Origin" +
  7165. "al_Code) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)" +
  7166. "));\r\nSELECT Code, Name FROM Gender WHERE (Code = @Code)";
  7167. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7168. 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, "", "", ""));
  7169. 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, "", "", ""));
  7170. 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, "", "", ""));
  7171. 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, "", "", ""));
  7172. 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, "", "", ""));
  7173. }
  7174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7175. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7176. private void InitConnection() {
  7177. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7178. this._connection.ConnectionString = global::RozenbergBrovki.Properties.Settings.Default.RozenbergBrConnectionString;
  7179. }
  7180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7181. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7182. private void InitCommandCollection() {
  7183. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7184. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7185. this._commandCollection[0].Connection = this.Connection;
  7186. this._commandCollection[0].CommandText = "SELECT Code, Name FROM dbo.Gender";
  7187. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7188. }
  7189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7191. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7192. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7193. public virtual int Fill(RozenbergBrDataSet.GenderDataTable dataTable) {
  7194. this.Adapter.SelectCommand = this.CommandCollection[0];
  7195. if ((this.ClearBeforeFill == true)) {
  7196. dataTable.Clear();
  7197. }
  7198. int returnValue = this.Adapter.Fill(dataTable);
  7199. return returnValue;
  7200. }
  7201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7203. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7204. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7205. public virtual RozenbergBrDataSet.GenderDataTable GetData() {
  7206. this.Adapter.SelectCommand = this.CommandCollection[0];
  7207. RozenbergBrDataSet.GenderDataTable dataTable = new RozenbergBrDataSet.GenderDataTable();
  7208. this.Adapter.Fill(dataTable);
  7209. return dataTable;
  7210. }
  7211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7213. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7214. public virtual int Update(RozenbergBrDataSet.GenderDataTable dataTable) {
  7215. return this.Adapter.Update(dataTable);
  7216. }
  7217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7218. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7219. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7220. public virtual int Update(RozenbergBrDataSet dataSet) {
  7221. return this.Adapter.Update(dataSet, "Gender");
  7222. }
  7223. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7224. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7225. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7226. public virtual int Update(global::System.Data.DataRow dataRow) {
  7227. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7228. dataRow});
  7229. }
  7230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7232. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7233. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7234. return this.Adapter.Update(dataRows);
  7235. }
  7236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7237. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7238. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7239. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7240. public virtual int Delete(int Original_Code, string Original_Name) {
  7241. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_Code));
  7242. if ((Original_Name == null)) {
  7243. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  7244. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  7245. }
  7246. else {
  7247. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  7248. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Name));
  7249. }
  7250. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7251. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7252. != global::System.Data.ConnectionState.Open)) {
  7253. this.Adapter.DeleteCommand.Connection.Open();
  7254. }
  7255. try {
  7256. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7257. return returnValue;
  7258. }
  7259. finally {
  7260. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7261. this.Adapter.DeleteCommand.Connection.Close();
  7262. }
  7263. }
  7264. }
  7265. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7266. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7267. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7268. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7269. public virtual int Insert(int Code, string Name) {
  7270. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(Code));
  7271. if ((Name == null)) {
  7272. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  7273. }
  7274. else {
  7275. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Name));
  7276. }
  7277. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7278. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7279. != global::System.Data.ConnectionState.Open)) {
  7280. this.Adapter.InsertCommand.Connection.Open();
  7281. }
  7282. try {
  7283. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7284. return returnValue;
  7285. }
  7286. finally {
  7287. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7288. this.Adapter.InsertCommand.Connection.Close();
  7289. }
  7290. }
  7291. }
  7292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7293. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7294. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7295. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7296. public virtual int Update(int Code, string Name, int Original_Code, string Original_Name) {
  7297. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(Code));
  7298. if ((Name == null)) {
  7299. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  7300. }
  7301. else {
  7302. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Name));
  7303. }
  7304. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_Code));
  7305. if ((Original_Name == null)) {
  7306. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  7307. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  7308. }
  7309. else {
  7310. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  7311. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Name));
  7312. }
  7313. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7314. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7315. != global::System.Data.ConnectionState.Open)) {
  7316. this.Adapter.UpdateCommand.Connection.Open();
  7317. }
  7318. try {
  7319. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7320. return returnValue;
  7321. }
  7322. finally {
  7323. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7324. this.Adapter.UpdateCommand.Connection.Close();
  7325. }
  7326. }
  7327. }
  7328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7329. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7330. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7331. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7332. public virtual int Update(string Name, int Original_Code, string Original_Name) {
  7333. return this.Update(Original_Code, Name, Original_Code, Original_Name);
  7334. }
  7335. }
  7336. /// <summary>
  7337. ///Represents the connection and commands used to retrieve and save data.
  7338. ///</summary>
  7339. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7340. [global::System.ComponentModel.ToolboxItem(true)]
  7341. [global::System.ComponentModel.DataObjectAttribute(true)]
  7342. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7343. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7344. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7345. public partial class LoginpassTableAdapter : global::System.ComponentModel.Component {
  7346. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7347. private global::System.Data.SqlClient.SqlConnection _connection;
  7348. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7349. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7350. private bool _clearBeforeFill;
  7351. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7352. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7353. public LoginpassTableAdapter() {
  7354. this.ClearBeforeFill = true;
  7355. }
  7356. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7357. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7358. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7359. get {
  7360. if ((this._adapter == null)) {
  7361. this.InitAdapter();
  7362. }
  7363. return this._adapter;
  7364. }
  7365. }
  7366. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7367. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7368. internal global::System.Data.SqlClient.SqlConnection Connection {
  7369. get {
  7370. if ((this._connection == null)) {
  7371. this.InitConnection();
  7372. }
  7373. return this._connection;
  7374. }
  7375. set {
  7376. this._connection = value;
  7377. if ((this.Adapter.InsertCommand != null)) {
  7378. this.Adapter.InsertCommand.Connection = value;
  7379. }
  7380. if ((this.Adapter.DeleteCommand != null)) {
  7381. this.Adapter.DeleteCommand.Connection = value;
  7382. }
  7383. if ((this.Adapter.UpdateCommand != null)) {
  7384. this.Adapter.UpdateCommand.Connection = value;
  7385. }
  7386. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7387. if ((this.CommandCollection[i] != null)) {
  7388. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7389. }
  7390. }
  7391. }
  7392. }
  7393. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7394. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7395. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7396. get {
  7397. return this._transaction;
  7398. }
  7399. set {
  7400. this._transaction = value;
  7401. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7402. this.CommandCollection[i].Transaction = this._transaction;
  7403. }
  7404. if (((this.Adapter != null)
  7405. && (this.Adapter.DeleteCommand != null))) {
  7406. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7407. }
  7408. if (((this.Adapter != null)
  7409. && (this.Adapter.InsertCommand != null))) {
  7410. this.Adapter.InsertCommand.Transaction = this._transaction;
  7411. }
  7412. if (((this.Adapter != null)
  7413. && (this.Adapter.UpdateCommand != null))) {
  7414. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7415. }
  7416. }
  7417. }
  7418. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7419. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7420. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7421. get {
  7422. if ((this._commandCollection == null)) {
  7423. this.InitCommandCollection();
  7424. }
  7425. return this._commandCollection;
  7426. }
  7427. }
  7428. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7429. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7430. public bool ClearBeforeFill {
  7431. get {
  7432. return this._clearBeforeFill;
  7433. }
  7434. set {
  7435. this._clearBeforeFill = value;
  7436. }
  7437. }
  7438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7439. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7440. private void InitAdapter() {
  7441. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7442. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7443. tableMapping.SourceTable = "Table";
  7444. tableMapping.DataSetTable = "Loginpass";
  7445. tableMapping.ColumnMappings.Add("id", "id");
  7446. tableMapping.ColumnMappings.Add("Login", "Login");
  7447. tableMapping.ColumnMappings.Add("Pass", "Pass");
  7448. this._adapter.TableMappings.Add(tableMapping);
  7449. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7450. this._adapter.DeleteCommand.Connection = this.Connection;
  7451. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Loginpass] WHERE (([id] = @Original_id) AND ([Login] = @Origin" +
  7452. "al_Login) AND ([Pass] = @Original_Pass))";
  7453. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7454. 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, "", "", ""));
  7455. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Login", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7456. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Pass", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Pass", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7457. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7458. this._adapter.InsertCommand.Connection = this.Connection;
  7459. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Loginpass] ([Login], [Pass]) VALUES (@Login, @Pass);\r\nSELECT i" +
  7460. "d, Login, Pass FROM Loginpass WHERE (id = SCOPE_IDENTITY())";
  7461. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7462. 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, "", "", ""));
  7463. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Pass", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Pass", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7464. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7465. this._adapter.UpdateCommand.Connection = this.Connection;
  7466. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Loginpass] SET [Login] = @Login, [Pass] = @Pass WHERE (([id] = @Ori" +
  7467. "ginal_id) AND ([Login] = @Original_Login) AND ([Pass] = @Original_Pass));\r\nSELEC" +
  7468. "T id, Login, Pass FROM Loginpass WHERE (id = @id)";
  7469. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7470. this._adapter.UpdateCommand.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, "", "", ""));
  7471. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Pass", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Pass", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7472. 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, "", "", ""));
  7473. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Login", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7474. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Pass", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Pass", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7475. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7476. }
  7477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7479. private void InitConnection() {
  7480. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7481. this._connection.ConnectionString = global::RozenbergBrovki.Properties.Settings.Default.RozenbergBrConnectionString;
  7482. }
  7483. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7484. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7485. private void InitCommandCollection() {
  7486. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7487. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7488. this._commandCollection[0].Connection = this.Connection;
  7489. this._commandCollection[0].CommandText = "SELECT id, Login, Pass FROM dbo.Loginpass";
  7490. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7491. }
  7492. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7493. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7494. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7495. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7496. public virtual int Fill(RozenbergBrDataSet.LoginpassDataTable dataTable) {
  7497. this.Adapter.SelectCommand = this.CommandCollection[0];
  7498. if ((this.ClearBeforeFill == true)) {
  7499. dataTable.Clear();
  7500. }
  7501. int returnValue = this.Adapter.Fill(dataTable);
  7502. return returnValue;
  7503. }
  7504. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7505. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7506. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7507. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7508. public virtual RozenbergBrDataSet.LoginpassDataTable GetData() {
  7509. this.Adapter.SelectCommand = this.CommandCollection[0];
  7510. RozenbergBrDataSet.LoginpassDataTable dataTable = new RozenbergBrDataSet.LoginpassDataTable();
  7511. this.Adapter.Fill(dataTable);
  7512. return dataTable;
  7513. }
  7514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7515. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7516. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7517. public virtual int Update(RozenbergBrDataSet.LoginpassDataTable dataTable) {
  7518. return this.Adapter.Update(dataTable);
  7519. }
  7520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7521. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7522. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7523. public virtual int Update(RozenbergBrDataSet dataSet) {
  7524. return this.Adapter.Update(dataSet, "Loginpass");
  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. public virtual int Update(global::System.Data.DataRow dataRow) {
  7530. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7531. dataRow});
  7532. }
  7533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7535. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7536. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7537. return this.Adapter.Update(dataRows);
  7538. }
  7539. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7540. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7541. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7542. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7543. public virtual int Delete(int Original_id, string Original_Login, string Original_Pass) {
  7544. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id));
  7545. if ((Original_Login == null)) {
  7546. throw new global::System.ArgumentNullException("Original_Login");
  7547. }
  7548. else {
  7549. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Login));
  7550. }
  7551. if ((Original_Pass == null)) {
  7552. throw new global::System.ArgumentNullException("Original_Pass");
  7553. }
  7554. else {
  7555. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Pass));
  7556. }
  7557. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7558. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7559. != global::System.Data.ConnectionState.Open)) {
  7560. this.Adapter.DeleteCommand.Connection.Open();
  7561. }
  7562. try {
  7563. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7564. return returnValue;
  7565. }
  7566. finally {
  7567. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7568. this.Adapter.DeleteCommand.Connection.Close();
  7569. }
  7570. }
  7571. }
  7572. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7573. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7574. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7575. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7576. public virtual int Insert(string Login, string Pass) {
  7577. if ((Login == null)) {
  7578. throw new global::System.ArgumentNullException("Login");
  7579. }
  7580. else {
  7581. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Login));
  7582. }
  7583. if ((Pass == null)) {
  7584. throw new global::System.ArgumentNullException("Pass");
  7585. }
  7586. else {
  7587. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Pass));
  7588. }
  7589. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7590. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7591. != global::System.Data.ConnectionState.Open)) {
  7592. this.Adapter.InsertCommand.Connection.Open();
  7593. }
  7594. try {
  7595. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7596. return returnValue;
  7597. }
  7598. finally {
  7599. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7600. this.Adapter.InsertCommand.Connection.Close();
  7601. }
  7602. }
  7603. }
  7604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7606. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7607. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7608. public virtual int Update(string Login, string Pass, int Original_id, string Original_Login, string Original_Pass, int id) {
  7609. if ((Login == null)) {
  7610. throw new global::System.ArgumentNullException("Login");
  7611. }
  7612. else {
  7613. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Login));
  7614. }
  7615. if ((Pass == null)) {
  7616. throw new global::System.ArgumentNullException("Pass");
  7617. }
  7618. else {
  7619. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Pass));
  7620. }
  7621. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_id));
  7622. if ((Original_Login == null)) {
  7623. throw new global::System.ArgumentNullException("Original_Login");
  7624. }
  7625. else {
  7626. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Login));
  7627. }
  7628. if ((Original_Pass == null)) {
  7629. throw new global::System.ArgumentNullException("Original_Pass");
  7630. }
  7631. else {
  7632. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Pass));
  7633. }
  7634. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(id));
  7635. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7636. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7637. != global::System.Data.ConnectionState.Open)) {
  7638. this.Adapter.UpdateCommand.Connection.Open();
  7639. }
  7640. try {
  7641. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7642. return returnValue;
  7643. }
  7644. finally {
  7645. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7646. this.Adapter.UpdateCommand.Connection.Close();
  7647. }
  7648. }
  7649. }
  7650. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7651. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7652. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7653. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7654. public virtual int Update(string Login, string Pass, int Original_id, string Original_Login, string Original_Pass) {
  7655. return this.Update(Login, Pass, Original_id, Original_Login, Original_Pass, Original_id);
  7656. }
  7657. }
  7658. /// <summary>
  7659. ///Represents the connection and commands used to retrieve and save data.
  7660. ///</summary>
  7661. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7662. [global::System.ComponentModel.ToolboxItem(true)]
  7663. [global::System.ComponentModel.DataObjectAttribute(true)]
  7664. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7665. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7666. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7667. public partial class ManufacturerTableAdapter : global::System.ComponentModel.Component {
  7668. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7669. private global::System.Data.SqlClient.SqlConnection _connection;
  7670. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7671. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7672. private bool _clearBeforeFill;
  7673. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7674. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7675. public ManufacturerTableAdapter() {
  7676. this.ClearBeforeFill = true;
  7677. }
  7678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7680. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7681. get {
  7682. if ((this._adapter == null)) {
  7683. this.InitAdapter();
  7684. }
  7685. return this._adapter;
  7686. }
  7687. }
  7688. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7689. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7690. internal global::System.Data.SqlClient.SqlConnection Connection {
  7691. get {
  7692. if ((this._connection == null)) {
  7693. this.InitConnection();
  7694. }
  7695. return this._connection;
  7696. }
  7697. set {
  7698. this._connection = value;
  7699. if ((this.Adapter.InsertCommand != null)) {
  7700. this.Adapter.InsertCommand.Connection = value;
  7701. }
  7702. if ((this.Adapter.DeleteCommand != null)) {
  7703. this.Adapter.DeleteCommand.Connection = value;
  7704. }
  7705. if ((this.Adapter.UpdateCommand != null)) {
  7706. this.Adapter.UpdateCommand.Connection = value;
  7707. }
  7708. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7709. if ((this.CommandCollection[i] != null)) {
  7710. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7711. }
  7712. }
  7713. }
  7714. }
  7715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7717. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7718. get {
  7719. return this._transaction;
  7720. }
  7721. set {
  7722. this._transaction = value;
  7723. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7724. this.CommandCollection[i].Transaction = this._transaction;
  7725. }
  7726. if (((this.Adapter != null)
  7727. && (this.Adapter.DeleteCommand != null))) {
  7728. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7729. }
  7730. if (((this.Adapter != null)
  7731. && (this.Adapter.InsertCommand != null))) {
  7732. this.Adapter.InsertCommand.Transaction = this._transaction;
  7733. }
  7734. if (((this.Adapter != null)
  7735. && (this.Adapter.UpdateCommand != null))) {
  7736. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7737. }
  7738. }
  7739. }
  7740. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7741. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7742. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7743. get {
  7744. if ((this._commandCollection == null)) {
  7745. this.InitCommandCollection();
  7746. }
  7747. return this._commandCollection;
  7748. }
  7749. }
  7750. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7751. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7752. public bool ClearBeforeFill {
  7753. get {
  7754. return this._clearBeforeFill;
  7755. }
  7756. set {
  7757. this._clearBeforeFill = value;
  7758. }
  7759. }
  7760. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7761. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7762. private void InitAdapter() {
  7763. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7764. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7765. tableMapping.SourceTable = "Table";
  7766. tableMapping.DataSetTable = "Manufacturer";
  7767. tableMapping.ColumnMappings.Add("ID", "ID");
  7768. tableMapping.ColumnMappings.Add("Name", "Name");
  7769. tableMapping.ColumnMappings.Add("StartDate", "StartDate");
  7770. this._adapter.TableMappings.Add(tableMapping);
  7771. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7772. this._adapter.DeleteCommand.Connection = this.Connection;
  7773. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Manufacturer] WHERE (([ID] = @Original_ID) AND ([Name] = @Orig" +
  7774. "inal_Name) AND ((@IsNull_StartDate = 1 AND [StartDate] IS NULL) OR ([StartDate] " +
  7775. "= @Original_StartDate)))";
  7776. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7777. 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, "", "", ""));
  7778. 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, "", "", ""));
  7779. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_StartDate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StartDate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7780. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_StartDate", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StartDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7781. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7782. this._adapter.InsertCommand.Connection = this.Connection;
  7783. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Manufacturer] ([Name], [StartDate]) VALUES (@Name, @StartDate)" +
  7784. ";\r\nSELECT ID, Name, StartDate FROM Manufacturer WHERE (ID = SCOPE_IDENTITY())";
  7785. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7786. 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, "", "", ""));
  7787. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StartDate", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StartDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7788. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7789. this._adapter.UpdateCommand.Connection = this.Connection;
  7790. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Manufacturer] SET [Name] = @Name, [StartDate] = @StartDate WHERE (([ID] = @Original_ID) AND ([Name] = @Original_Name) AND ((@IsNull_StartDate = 1 AND [StartDate] IS NULL) OR ([StartDate] = @Original_StartDate)));
  7791. SELECT ID, Name, StartDate FROM Manufacturer WHERE (ID = @ID)";
  7792. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7793. 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, "", "", ""));
  7794. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StartDate", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StartDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7795. 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, "", "", ""));
  7796. 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, "", "", ""));
  7797. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_StartDate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StartDate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7798. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_StartDate", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StartDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7799. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7800. }
  7801. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7802. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7803. private void InitConnection() {
  7804. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7805. this._connection.ConnectionString = global::RozenbergBrovki.Properties.Settings.Default.RozenbergBrConnectionString;
  7806. }
  7807. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7808. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7809. private void InitCommandCollection() {
  7810. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7811. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7812. this._commandCollection[0].Connection = this.Connection;
  7813. this._commandCollection[0].CommandText = "SELECT ID, Name, StartDate FROM dbo.Manufacturer";
  7814. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7815. }
  7816. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7817. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7818. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7819. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7820. public virtual int Fill(RozenbergBrDataSet.ManufacturerDataTable dataTable) {
  7821. this.Adapter.SelectCommand = this.CommandCollection[0];
  7822. if ((this.ClearBeforeFill == true)) {
  7823. dataTable.Clear();
  7824. }
  7825. int returnValue = this.Adapter.Fill(dataTable);
  7826. return returnValue;
  7827. }
  7828. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7829. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7830. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7831. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7832. public virtual RozenbergBrDataSet.ManufacturerDataTable GetData() {
  7833. this.Adapter.SelectCommand = this.CommandCollection[0];
  7834. RozenbergBrDataSet.ManufacturerDataTable dataTable = new RozenbergBrDataSet.ManufacturerDataTable();
  7835. this.Adapter.Fill(dataTable);
  7836. return dataTable;
  7837. }
  7838. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7839. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7840. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7841. public virtual int Update(RozenbergBrDataSet.ManufacturerDataTable dataTable) {
  7842. return this.Adapter.Update(dataTable);
  7843. }
  7844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7845. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7846. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7847. public virtual int Update(RozenbergBrDataSet dataSet) {
  7848. return this.Adapter.Update(dataSet, "Manufacturer");
  7849. }
  7850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7851. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7852. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7853. public virtual int Update(global::System.Data.DataRow dataRow) {
  7854. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7855. dataRow});
  7856. }
  7857. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7858. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7859. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7860. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7861. return this.Adapter.Update(dataRows);
  7862. }
  7863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7864. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7865. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7866. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7867. public virtual int Delete(int Original_ID, string Original_Name, global::System.Nullable<global::System.DateTime> Original_StartDate) {
  7868. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  7869. if ((Original_Name == null)) {
  7870. throw new global::System.ArgumentNullException("Original_Name");
  7871. }
  7872. else {
  7873. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Name));
  7874. }
  7875. if ((Original_StartDate.HasValue == true)) {
  7876. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
  7877. this.Adapter.DeleteCommand.Parameters[3].Value = ((System.DateTime)(Original_StartDate.Value));
  7878. }
  7879. else {
  7880. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
  7881. this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
  7882. }
  7883. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7884. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7885. != global::System.Data.ConnectionState.Open)) {
  7886. this.Adapter.DeleteCommand.Connection.Open();
  7887. }
  7888. try {
  7889. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7890. return returnValue;
  7891. }
  7892. finally {
  7893. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7894. this.Adapter.DeleteCommand.Connection.Close();
  7895. }
  7896. }
  7897. }
  7898. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7899. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7900. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7901. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7902. public virtual int Insert(string Name, global::System.Nullable<global::System.DateTime> StartDate) {
  7903. if ((Name == null)) {
  7904. throw new global::System.ArgumentNullException("Name");
  7905. }
  7906. else {
  7907. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Name));
  7908. }
  7909. if ((StartDate.HasValue == true)) {
  7910. this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(StartDate.Value));
  7911. }
  7912. else {
  7913. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  7914. }
  7915. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7916. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7917. != global::System.Data.ConnectionState.Open)) {
  7918. this.Adapter.InsertCommand.Connection.Open();
  7919. }
  7920. try {
  7921. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7922. return returnValue;
  7923. }
  7924. finally {
  7925. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7926. this.Adapter.InsertCommand.Connection.Close();
  7927. }
  7928. }
  7929. }
  7930. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7931. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7932. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7933. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7934. public virtual int Update(string Name, global::System.Nullable<global::System.DateTime> StartDate, int Original_ID, string Original_Name, global::System.Nullable<global::System.DateTime> Original_StartDate, int ID) {
  7935. if ((Name == null)) {
  7936. throw new global::System.ArgumentNullException("Name");
  7937. }
  7938. else {
  7939. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Name));
  7940. }
  7941. if ((StartDate.HasValue == true)) {
  7942. this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(StartDate.Value));
  7943. }
  7944. else {
  7945. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  7946. }
  7947. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  7948. if ((Original_Name == null)) {
  7949. throw new global::System.ArgumentNullException("Original_Name");
  7950. }
  7951. else {
  7952. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Name));
  7953. }
  7954. if ((Original_StartDate.HasValue == true)) {
  7955. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  7956. this.Adapter.UpdateCommand.Parameters[5].Value = ((System.DateTime)(Original_StartDate.Value));
  7957. }
  7958. else {
  7959. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  7960. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  7961. }
  7962. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(ID));
  7963. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7964. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7965. != global::System.Data.ConnectionState.Open)) {
  7966. this.Adapter.UpdateCommand.Connection.Open();
  7967. }
  7968. try {
  7969. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7970. return returnValue;
  7971. }
  7972. finally {
  7973. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7974. this.Adapter.UpdateCommand.Connection.Close();
  7975. }
  7976. }
  7977. }
  7978. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7979. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7980. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7981. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7982. public virtual int Update(string Name, global::System.Nullable<global::System.DateTime> StartDate, int Original_ID, string Original_Name, global::System.Nullable<global::System.DateTime> Original_StartDate) {
  7983. return this.Update(Name, StartDate, Original_ID, Original_Name, Original_StartDate, Original_ID);
  7984. }
  7985. }
  7986. /// <summary>
  7987. ///Represents the connection and commands used to retrieve and save data.
  7988. ///</summary>
  7989. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7990. [global::System.ComponentModel.ToolboxItem(true)]
  7991. [global::System.ComponentModel.DataObjectAttribute(true)]
  7992. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7993. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7994. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7995. public partial class ProductTableAdapter : global::System.ComponentModel.Component {
  7996. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7997. private global::System.Data.SqlClient.SqlConnection _connection;
  7998. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7999. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8000. private bool _clearBeforeFill;
  8001. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8002. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8003. public ProductTableAdapter() {
  8004. this.ClearBeforeFill = true;
  8005. }
  8006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8008. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8009. get {
  8010. if ((this._adapter == null)) {
  8011. this.InitAdapter();
  8012. }
  8013. return this._adapter;
  8014. }
  8015. }
  8016. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8017. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8018. internal global::System.Data.SqlClient.SqlConnection Connection {
  8019. get {
  8020. if ((this._connection == null)) {
  8021. this.InitConnection();
  8022. }
  8023. return this._connection;
  8024. }
  8025. set {
  8026. this._connection = value;
  8027. if ((this.Adapter.InsertCommand != null)) {
  8028. this.Adapter.InsertCommand.Connection = value;
  8029. }
  8030. if ((this.Adapter.DeleteCommand != null)) {
  8031. this.Adapter.DeleteCommand.Connection = value;
  8032. }
  8033. if ((this.Adapter.UpdateCommand != null)) {
  8034. this.Adapter.UpdateCommand.Connection = value;
  8035. }
  8036. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8037. if ((this.CommandCollection[i] != null)) {
  8038. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8039. }
  8040. }
  8041. }
  8042. }
  8043. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8044. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8045. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8046. get {
  8047. return this._transaction;
  8048. }
  8049. set {
  8050. this._transaction = value;
  8051. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8052. this.CommandCollection[i].Transaction = this._transaction;
  8053. }
  8054. if (((this.Adapter != null)
  8055. && (this.Adapter.DeleteCommand != null))) {
  8056. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8057. }
  8058. if (((this.Adapter != null)
  8059. && (this.Adapter.InsertCommand != null))) {
  8060. this.Adapter.InsertCommand.Transaction = this._transaction;
  8061. }
  8062. if (((this.Adapter != null)
  8063. && (this.Adapter.UpdateCommand != null))) {
  8064. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8065. }
  8066. }
  8067. }
  8068. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8069. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8070. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8071. get {
  8072. if ((this._commandCollection == null)) {
  8073. this.InitCommandCollection();
  8074. }
  8075. return this._commandCollection;
  8076. }
  8077. }
  8078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8079. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8080. public bool ClearBeforeFill {
  8081. get {
  8082. return this._clearBeforeFill;
  8083. }
  8084. set {
  8085. this._clearBeforeFill = value;
  8086. }
  8087. }
  8088. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8089. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8090. private void InitAdapter() {
  8091. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8092. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8093. tableMapping.SourceTable = "Table";
  8094. tableMapping.DataSetTable = "Product";
  8095. tableMapping.ColumnMappings.Add("ID", "ID");
  8096. tableMapping.ColumnMappings.Add("Title", "Title");
  8097. tableMapping.ColumnMappings.Add("Cost", "Cost");
  8098. tableMapping.ColumnMappings.Add("Description", "Description");
  8099. tableMapping.ColumnMappings.Add("MainImagePath", "MainImagePath");
  8100. tableMapping.ColumnMappings.Add("IsActive", "IsActive");
  8101. tableMapping.ColumnMappings.Add("ManufacturerID", "ManufacturerID");
  8102. this._adapter.TableMappings.Add(tableMapping);
  8103. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8104. this._adapter.DeleteCommand.Connection = this.Connection;
  8105. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Product] WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ([Cost] = @Original_Cost) AND ((@IsNull_MainImagePath = 1 AND [MainImagePath] IS NULL) OR ([MainImagePath] = @Original_MainImagePath)) AND ([IsActive] = @Original_IsActive) AND ((@IsNull_ManufacturerID = 1 AND [ManufacturerID] IS NULL) OR ([ManufacturerID] = @Original_ManufacturerID)))";
  8106. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8107. 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, "", "", ""));
  8108. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8109. 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, "", "", ""));
  8110. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_MainImagePath", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MainImagePath", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8111. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MainImagePath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MainImagePath", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8112. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IsActive", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IsActive", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8113. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ManufacturerID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ManufacturerID", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8114. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ManufacturerID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ManufacturerID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8115. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8116. this._adapter.InsertCommand.Connection = this.Connection;
  8117. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Product] ([Title], [Cost], [Description], [MainImagePath], [IsActive], [ManufacturerID]) VALUES (@Title, @Cost, @Description, @MainImagePath, @IsActive, @ManufacturerID);
  8118. SELECT ID, Title, Cost, Description, MainImagePath, IsActive, ManufacturerID FROM Product WHERE (ID = SCOPE_IDENTITY())";
  8119. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8120. 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, "", "", ""));
  8121. 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, "", "", ""));
  8122. 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, "", "", ""));
  8123. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MainImagePath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MainImagePath", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8124. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsActive", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IsActive", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8125. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ManufacturerID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ManufacturerID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8126. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8127. this._adapter.UpdateCommand.Connection = this.Connection;
  8128. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Product] SET [Title] = @Title, [Cost] = @Cost, [Description] = @Description, [MainImagePath] = @MainImagePath, [IsActive] = @IsActive, [ManufacturerID] = @ManufacturerID WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ([Cost] = @Original_Cost) AND ((@IsNull_MainImagePath = 1 AND [MainImagePath] IS NULL) OR ([MainImagePath] = @Original_MainImagePath)) AND ([IsActive] = @Original_IsActive) AND ((@IsNull_ManufacturerID = 1 AND [ManufacturerID] IS NULL) OR ([ManufacturerID] = @Original_ManufacturerID)));
  8129. SELECT ID, Title, Cost, Description, MainImagePath, IsActive, ManufacturerID FROM Product WHERE (ID = @ID)";
  8130. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8131. 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, "", "", ""));
  8132. 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, "", "", ""));
  8133. 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, "", "", ""));
  8134. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MainImagePath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MainImagePath", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8135. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsActive", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IsActive", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8136. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ManufacturerID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ManufacturerID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8137. 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, "", "", ""));
  8138. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8139. 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, "", "", ""));
  8140. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_MainImagePath", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MainImagePath", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8141. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MainImagePath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MainImagePath", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8142. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IsActive", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IsActive", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8143. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ManufacturerID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ManufacturerID", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8144. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ManufacturerID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ManufacturerID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8145. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8146. }
  8147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8149. private void InitConnection() {
  8150. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8151. this._connection.ConnectionString = global::RozenbergBrovki.Properties.Settings.Default.RozenbergBrConnectionString;
  8152. }
  8153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8154. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8155. private void InitCommandCollection() {
  8156. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8157. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8158. this._commandCollection[0].Connection = this.Connection;
  8159. this._commandCollection[0].CommandText = "SELECT ID, Title, Cost, Description, MainImagePath, IsActive, ManufacturerID FROM" +
  8160. " dbo.Product";
  8161. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8162. }
  8163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8164. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8165. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8166. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8167. public virtual int Fill(RozenbergBrDataSet.ProductDataTable dataTable) {
  8168. this.Adapter.SelectCommand = this.CommandCollection[0];
  8169. if ((this.ClearBeforeFill == true)) {
  8170. dataTable.Clear();
  8171. }
  8172. int returnValue = this.Adapter.Fill(dataTable);
  8173. return returnValue;
  8174. }
  8175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8176. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8177. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8178. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8179. public virtual RozenbergBrDataSet.ProductDataTable GetData() {
  8180. this.Adapter.SelectCommand = this.CommandCollection[0];
  8181. RozenbergBrDataSet.ProductDataTable dataTable = new RozenbergBrDataSet.ProductDataTable();
  8182. this.Adapter.Fill(dataTable);
  8183. return dataTable;
  8184. }
  8185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8186. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8187. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8188. public virtual int Update(RozenbergBrDataSet.ProductDataTable dataTable) {
  8189. return this.Adapter.Update(dataTable);
  8190. }
  8191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8192. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8193. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8194. public virtual int Update(RozenbergBrDataSet dataSet) {
  8195. return this.Adapter.Update(dataSet, "Product");
  8196. }
  8197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8198. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8199. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8200. public virtual int Update(global::System.Data.DataRow dataRow) {
  8201. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8202. dataRow});
  8203. }
  8204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8205. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8206. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8207. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8208. return this.Adapter.Update(dataRows);
  8209. }
  8210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8212. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8213. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8214. public virtual int Delete(int Original_ID, string Original_Title, decimal Original_Cost, string Original_MainImagePath, bool Original_IsActive, global::System.Nullable<int> Original_ManufacturerID) {
  8215. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  8216. if ((Original_Title == null)) {
  8217. throw new global::System.ArgumentNullException("Original_Title");
  8218. }
  8219. else {
  8220. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Title));
  8221. }
  8222. this.Adapter.DeleteCommand.Parameters[2].Value = ((decimal)(Original_Cost));
  8223. if ((Original_MainImagePath == null)) {
  8224. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  8225. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  8226. }
  8227. else {
  8228. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  8229. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_MainImagePath));
  8230. }
  8231. this.Adapter.DeleteCommand.Parameters[5].Value = ((bool)(Original_IsActive));
  8232. if ((Original_ManufacturerID.HasValue == true)) {
  8233. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0));
  8234. this.Adapter.DeleteCommand.Parameters[7].Value = ((int)(Original_ManufacturerID.Value));
  8235. }
  8236. else {
  8237. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1));
  8238. this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value;
  8239. }
  8240. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8241. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8242. != global::System.Data.ConnectionState.Open)) {
  8243. this.Adapter.DeleteCommand.Connection.Open();
  8244. }
  8245. try {
  8246. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8247. return returnValue;
  8248. }
  8249. finally {
  8250. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8251. this.Adapter.DeleteCommand.Connection.Close();
  8252. }
  8253. }
  8254. }
  8255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8256. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8257. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8258. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8259. public virtual int Insert(string Title, decimal Cost, string Description, string MainImagePath, bool IsActive, global::System.Nullable<int> ManufacturerID) {
  8260. if ((Title == null)) {
  8261. throw new global::System.ArgumentNullException("Title");
  8262. }
  8263. else {
  8264. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  8265. }
  8266. this.Adapter.InsertCommand.Parameters[1].Value = ((decimal)(Cost));
  8267. if ((Description == null)) {
  8268. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  8269. }
  8270. else {
  8271. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Description));
  8272. }
  8273. if ((MainImagePath == null)) {
  8274. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  8275. }
  8276. else {
  8277. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(MainImagePath));
  8278. }
  8279. this.Adapter.InsertCommand.Parameters[4].Value = ((bool)(IsActive));
  8280. if ((ManufacturerID.HasValue == true)) {
  8281. this.Adapter.InsertCommand.Parameters[5].Value = ((int)(ManufacturerID.Value));
  8282. }
  8283. else {
  8284. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  8285. }
  8286. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8287. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8288. != global::System.Data.ConnectionState.Open)) {
  8289. this.Adapter.InsertCommand.Connection.Open();
  8290. }
  8291. try {
  8292. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8293. return returnValue;
  8294. }
  8295. finally {
  8296. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8297. this.Adapter.InsertCommand.Connection.Close();
  8298. }
  8299. }
  8300. }
  8301. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8302. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8303. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8304. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8305. public virtual int Update(string Title, decimal Cost, string Description, string MainImagePath, bool IsActive, global::System.Nullable<int> ManufacturerID, int Original_ID, string Original_Title, decimal Original_Cost, string Original_MainImagePath, bool Original_IsActive, global::System.Nullable<int> Original_ManufacturerID, int ID) {
  8306. if ((Title == null)) {
  8307. throw new global::System.ArgumentNullException("Title");
  8308. }
  8309. else {
  8310. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  8311. }
  8312. this.Adapter.UpdateCommand.Parameters[1].Value = ((decimal)(Cost));
  8313. if ((Description == null)) {
  8314. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  8315. }
  8316. else {
  8317. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Description));
  8318. }
  8319. if ((MainImagePath == null)) {
  8320. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  8321. }
  8322. else {
  8323. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(MainImagePath));
  8324. }
  8325. this.Adapter.UpdateCommand.Parameters[4].Value = ((bool)(IsActive));
  8326. if ((ManufacturerID.HasValue == true)) {
  8327. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ManufacturerID.Value));
  8328. }
  8329. else {
  8330. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  8331. }
  8332. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ID));
  8333. if ((Original_Title == null)) {
  8334. throw new global::System.ArgumentNullException("Original_Title");
  8335. }
  8336. else {
  8337. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Title));
  8338. }
  8339. this.Adapter.UpdateCommand.Parameters[8].Value = ((decimal)(Original_Cost));
  8340. if ((Original_MainImagePath == null)) {
  8341. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  8342. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  8343. }
  8344. else {
  8345. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  8346. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_MainImagePath));
  8347. }
  8348. this.Adapter.UpdateCommand.Parameters[11].Value = ((bool)(Original_IsActive));
  8349. if ((Original_ManufacturerID.HasValue == true)) {
  8350. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  8351. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Original_ManufacturerID.Value));
  8352. }
  8353. else {
  8354. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  8355. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  8356. }
  8357. this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(ID));
  8358. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8359. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8360. != global::System.Data.ConnectionState.Open)) {
  8361. this.Adapter.UpdateCommand.Connection.Open();
  8362. }
  8363. try {
  8364. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8365. return returnValue;
  8366. }
  8367. finally {
  8368. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8369. this.Adapter.UpdateCommand.Connection.Close();
  8370. }
  8371. }
  8372. }
  8373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8374. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8375. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8376. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8377. public virtual int Update(string Title, decimal Cost, string Description, string MainImagePath, bool IsActive, global::System.Nullable<int> ManufacturerID, int Original_ID, string Original_Title, decimal Original_Cost, string Original_MainImagePath, bool Original_IsActive, global::System.Nullable<int> Original_ManufacturerID) {
  8378. return this.Update(Title, Cost, Description, MainImagePath, IsActive, ManufacturerID, Original_ID, Original_Title, Original_Cost, Original_MainImagePath, Original_IsActive, Original_ManufacturerID, Original_ID);
  8379. }
  8380. }
  8381. /// <summary>
  8382. ///Represents the connection and commands used to retrieve and save data.
  8383. ///</summary>
  8384. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8385. [global::System.ComponentModel.ToolboxItem(true)]
  8386. [global::System.ComponentModel.DataObjectAttribute(true)]
  8387. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8388. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8389. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8390. public partial class ProductPhotoTableAdapter : global::System.ComponentModel.Component {
  8391. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8392. private global::System.Data.SqlClient.SqlConnection _connection;
  8393. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8394. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8395. private bool _clearBeforeFill;
  8396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8398. public ProductPhotoTableAdapter() {
  8399. this.ClearBeforeFill = true;
  8400. }
  8401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8402. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8403. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8404. get {
  8405. if ((this._adapter == null)) {
  8406. this.InitAdapter();
  8407. }
  8408. return this._adapter;
  8409. }
  8410. }
  8411. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8412. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8413. internal global::System.Data.SqlClient.SqlConnection Connection {
  8414. get {
  8415. if ((this._connection == null)) {
  8416. this.InitConnection();
  8417. }
  8418. return this._connection;
  8419. }
  8420. set {
  8421. this._connection = value;
  8422. if ((this.Adapter.InsertCommand != null)) {
  8423. this.Adapter.InsertCommand.Connection = value;
  8424. }
  8425. if ((this.Adapter.DeleteCommand != null)) {
  8426. this.Adapter.DeleteCommand.Connection = value;
  8427. }
  8428. if ((this.Adapter.UpdateCommand != null)) {
  8429. this.Adapter.UpdateCommand.Connection = value;
  8430. }
  8431. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8432. if ((this.CommandCollection[i] != null)) {
  8433. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8434. }
  8435. }
  8436. }
  8437. }
  8438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8439. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8440. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8441. get {
  8442. return this._transaction;
  8443. }
  8444. set {
  8445. this._transaction = value;
  8446. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8447. this.CommandCollection[i].Transaction = this._transaction;
  8448. }
  8449. if (((this.Adapter != null)
  8450. && (this.Adapter.DeleteCommand != null))) {
  8451. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8452. }
  8453. if (((this.Adapter != null)
  8454. && (this.Adapter.InsertCommand != null))) {
  8455. this.Adapter.InsertCommand.Transaction = this._transaction;
  8456. }
  8457. if (((this.Adapter != null)
  8458. && (this.Adapter.UpdateCommand != null))) {
  8459. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8460. }
  8461. }
  8462. }
  8463. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8464. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8465. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8466. get {
  8467. if ((this._commandCollection == null)) {
  8468. this.InitCommandCollection();
  8469. }
  8470. return this._commandCollection;
  8471. }
  8472. }
  8473. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8474. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8475. public bool ClearBeforeFill {
  8476. get {
  8477. return this._clearBeforeFill;
  8478. }
  8479. set {
  8480. this._clearBeforeFill = value;
  8481. }
  8482. }
  8483. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8484. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8485. private void InitAdapter() {
  8486. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8487. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8488. tableMapping.SourceTable = "Table";
  8489. tableMapping.DataSetTable = "ProductPhoto";
  8490. tableMapping.ColumnMappings.Add("ID", "ID");
  8491. tableMapping.ColumnMappings.Add("ProductID", "ProductID");
  8492. tableMapping.ColumnMappings.Add("PhotoPath", "PhotoPath");
  8493. this._adapter.TableMappings.Add(tableMapping);
  8494. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8495. this._adapter.DeleteCommand.Connection = this.Connection;
  8496. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ProductPhoto] WHERE (([ID] = @Original_ID) AND ([ProductID] = " +
  8497. "@Original_ProductID) AND ([PhotoPath] = @Original_PhotoPath))";
  8498. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8499. 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, "", "", ""));
  8500. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8501. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PhotoPath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhotoPath", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8502. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8503. this._adapter.InsertCommand.Connection = this.Connection;
  8504. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ProductPhoto] ([ProductID], [PhotoPath]) VALUES (@ProductID, @" +
  8505. "PhotoPath);\r\nSELECT ID, ProductID, PhotoPath FROM ProductPhoto WHERE (ID = SCOPE" +
  8506. "_IDENTITY())";
  8507. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8508. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8509. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PhotoPath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhotoPath", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8510. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8511. this._adapter.UpdateCommand.Connection = this.Connection;
  8512. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ProductPhoto] SET [ProductID] = @ProductID, [PhotoPath] = @PhotoPath WHERE (([ID] = @Original_ID) AND ([ProductID] = @Original_ProductID) AND ([PhotoPath] = @Original_PhotoPath));
  8513. SELECT ID, ProductID, PhotoPath FROM ProductPhoto WHERE (ID = @ID)";
  8514. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8515. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8516. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PhotoPath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhotoPath", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8517. 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, "", "", ""));
  8518. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8519. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PhotoPath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhotoPath", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8520. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8521. }
  8522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8524. private void InitConnection() {
  8525. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8526. this._connection.ConnectionString = global::RozenbergBrovki.Properties.Settings.Default.RozenbergBrConnectionString;
  8527. }
  8528. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8529. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8530. private void InitCommandCollection() {
  8531. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8532. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8533. this._commandCollection[0].Connection = this.Connection;
  8534. this._commandCollection[0].CommandText = "SELECT ID, ProductID, PhotoPath FROM dbo.ProductPhoto";
  8535. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8536. }
  8537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8538. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8539. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8540. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8541. public virtual int Fill(RozenbergBrDataSet.ProductPhotoDataTable dataTable) {
  8542. this.Adapter.SelectCommand = this.CommandCollection[0];
  8543. if ((this.ClearBeforeFill == true)) {
  8544. dataTable.Clear();
  8545. }
  8546. int returnValue = this.Adapter.Fill(dataTable);
  8547. return returnValue;
  8548. }
  8549. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8550. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8551. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8552. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8553. public virtual RozenbergBrDataSet.ProductPhotoDataTable GetData() {
  8554. this.Adapter.SelectCommand = this.CommandCollection[0];
  8555. RozenbergBrDataSet.ProductPhotoDataTable dataTable = new RozenbergBrDataSet.ProductPhotoDataTable();
  8556. this.Adapter.Fill(dataTable);
  8557. return dataTable;
  8558. }
  8559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8561. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8562. public virtual int Update(RozenbergBrDataSet.ProductPhotoDataTable dataTable) {
  8563. return this.Adapter.Update(dataTable);
  8564. }
  8565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8567. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8568. public virtual int Update(RozenbergBrDataSet dataSet) {
  8569. return this.Adapter.Update(dataSet, "ProductPhoto");
  8570. }
  8571. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8572. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8573. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8574. public virtual int Update(global::System.Data.DataRow dataRow) {
  8575. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8576. dataRow});
  8577. }
  8578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8580. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8581. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8582. return this.Adapter.Update(dataRows);
  8583. }
  8584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8586. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8587. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8588. public virtual int Delete(int Original_ID, int Original_ProductID, string Original_PhotoPath) {
  8589. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  8590. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ProductID));
  8591. if ((Original_PhotoPath == null)) {
  8592. throw new global::System.ArgumentNullException("Original_PhotoPath");
  8593. }
  8594. else {
  8595. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_PhotoPath));
  8596. }
  8597. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8598. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8599. != global::System.Data.ConnectionState.Open)) {
  8600. this.Adapter.DeleteCommand.Connection.Open();
  8601. }
  8602. try {
  8603. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8604. return returnValue;
  8605. }
  8606. finally {
  8607. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8608. this.Adapter.DeleteCommand.Connection.Close();
  8609. }
  8610. }
  8611. }
  8612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8614. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8615. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8616. public virtual int Insert(int ProductID, string PhotoPath) {
  8617. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ProductID));
  8618. if ((PhotoPath == null)) {
  8619. throw new global::System.ArgumentNullException("PhotoPath");
  8620. }
  8621. else {
  8622. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(PhotoPath));
  8623. }
  8624. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8625. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8626. != global::System.Data.ConnectionState.Open)) {
  8627. this.Adapter.InsertCommand.Connection.Open();
  8628. }
  8629. try {
  8630. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8631. return returnValue;
  8632. }
  8633. finally {
  8634. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8635. this.Adapter.InsertCommand.Connection.Close();
  8636. }
  8637. }
  8638. }
  8639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8641. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8642. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8643. public virtual int Update(int ProductID, string PhotoPath, int Original_ID, int Original_ProductID, string Original_PhotoPath, int ID) {
  8644. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ProductID));
  8645. if ((PhotoPath == null)) {
  8646. throw new global::System.ArgumentNullException("PhotoPath");
  8647. }
  8648. else {
  8649. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(PhotoPath));
  8650. }
  8651. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  8652. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ProductID));
  8653. if ((Original_PhotoPath == null)) {
  8654. throw new global::System.ArgumentNullException("Original_PhotoPath");
  8655. }
  8656. else {
  8657. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_PhotoPath));
  8658. }
  8659. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID));
  8660. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8661. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8662. != global::System.Data.ConnectionState.Open)) {
  8663. this.Adapter.UpdateCommand.Connection.Open();
  8664. }
  8665. try {
  8666. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8667. return returnValue;
  8668. }
  8669. finally {
  8670. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8671. this.Adapter.UpdateCommand.Connection.Close();
  8672. }
  8673. }
  8674. }
  8675. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8676. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8677. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8678. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8679. public virtual int Update(int ProductID, string PhotoPath, int Original_ID, int Original_ProductID, string Original_PhotoPath) {
  8680. return this.Update(ProductID, PhotoPath, Original_ID, Original_ProductID, Original_PhotoPath, Original_ID);
  8681. }
  8682. }
  8683. /// <summary>
  8684. ///Represents the connection and commands used to retrieve and save data.
  8685. ///</summary>
  8686. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8687. [global::System.ComponentModel.ToolboxItem(true)]
  8688. [global::System.ComponentModel.DataObjectAttribute(true)]
  8689. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8690. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8691. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8692. public partial class ProductSaleTableAdapter : global::System.ComponentModel.Component {
  8693. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8694. private global::System.Data.SqlClient.SqlConnection _connection;
  8695. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8696. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8697. private bool _clearBeforeFill;
  8698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8699. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8700. public ProductSaleTableAdapter() {
  8701. this.ClearBeforeFill = true;
  8702. }
  8703. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8704. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8705. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8706. get {
  8707. if ((this._adapter == null)) {
  8708. this.InitAdapter();
  8709. }
  8710. return this._adapter;
  8711. }
  8712. }
  8713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8715. internal global::System.Data.SqlClient.SqlConnection Connection {
  8716. get {
  8717. if ((this._connection == null)) {
  8718. this.InitConnection();
  8719. }
  8720. return this._connection;
  8721. }
  8722. set {
  8723. this._connection = value;
  8724. if ((this.Adapter.InsertCommand != null)) {
  8725. this.Adapter.InsertCommand.Connection = value;
  8726. }
  8727. if ((this.Adapter.DeleteCommand != null)) {
  8728. this.Adapter.DeleteCommand.Connection = value;
  8729. }
  8730. if ((this.Adapter.UpdateCommand != null)) {
  8731. this.Adapter.UpdateCommand.Connection = value;
  8732. }
  8733. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8734. if ((this.CommandCollection[i] != null)) {
  8735. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8736. }
  8737. }
  8738. }
  8739. }
  8740. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8741. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8742. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8743. get {
  8744. return this._transaction;
  8745. }
  8746. set {
  8747. this._transaction = value;
  8748. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8749. this.CommandCollection[i].Transaction = this._transaction;
  8750. }
  8751. if (((this.Adapter != null)
  8752. && (this.Adapter.DeleteCommand != null))) {
  8753. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8754. }
  8755. if (((this.Adapter != null)
  8756. && (this.Adapter.InsertCommand != null))) {
  8757. this.Adapter.InsertCommand.Transaction = this._transaction;
  8758. }
  8759. if (((this.Adapter != null)
  8760. && (this.Adapter.UpdateCommand != null))) {
  8761. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8762. }
  8763. }
  8764. }
  8765. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8766. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8767. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8768. get {
  8769. if ((this._commandCollection == null)) {
  8770. this.InitCommandCollection();
  8771. }
  8772. return this._commandCollection;
  8773. }
  8774. }
  8775. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8776. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8777. public bool ClearBeforeFill {
  8778. get {
  8779. return this._clearBeforeFill;
  8780. }
  8781. set {
  8782. this._clearBeforeFill = value;
  8783. }
  8784. }
  8785. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8786. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8787. private void InitAdapter() {
  8788. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8789. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8790. tableMapping.SourceTable = "Table";
  8791. tableMapping.DataSetTable = "ProductSale";
  8792. tableMapping.ColumnMappings.Add("ID", "ID");
  8793. tableMapping.ColumnMappings.Add("SaleDate", "SaleDate");
  8794. tableMapping.ColumnMappings.Add("ProductID", "ProductID");
  8795. tableMapping.ColumnMappings.Add("Quantity", "Quantity");
  8796. tableMapping.ColumnMappings.Add("ClientServiceID", "ClientServiceID");
  8797. this._adapter.TableMappings.Add(tableMapping);
  8798. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8799. this._adapter.DeleteCommand.Connection = this.Connection;
  8800. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[ProductSale] WHERE (([ID] = @Original_ID) AND ([SaleDate] = @Original_SaleDate) AND ([ProductID] = @Original_ProductID) AND ([Quantity] = @Original_Quantity) AND ((@IsNull_ClientServiceID = 1 AND [ClientServiceID] IS NULL) OR ([ClientServiceID] = @Original_ClientServiceID)))";
  8801. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8802. 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, "", "", ""));
  8803. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SaleDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SaleDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8804. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8805. 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, "", "", ""));
  8806. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ClientServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientServiceID", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8807. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ClientServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientServiceID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8808. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8809. this._adapter.InsertCommand.Connection = this.Connection;
  8810. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ProductSale] ([SaleDate], [ProductID], [Quantity], [ClientServ" +
  8811. "iceID]) VALUES (@SaleDate, @ProductID, @Quantity, @ClientServiceID);\r\nSELECT ID," +
  8812. " SaleDate, ProductID, Quantity, ClientServiceID FROM ProductSale WHERE (ID = SCO" +
  8813. "PE_IDENTITY())";
  8814. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8815. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SaleDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SaleDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8816. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8817. 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, "", "", ""));
  8818. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ClientServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientServiceID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8819. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8820. this._adapter.UpdateCommand.Connection = this.Connection;
  8821. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ProductSale] SET [SaleDate] = @SaleDate, [ProductID] = @ProductID, [Quantity] = @Quantity, [ClientServiceID] = @ClientServiceID WHERE (([ID] = @Original_ID) AND ([SaleDate] = @Original_SaleDate) AND ([ProductID] = @Original_ProductID) AND ([Quantity] = @Original_Quantity) AND ((@IsNull_ClientServiceID = 1 AND [ClientServiceID] IS NULL) OR ([ClientServiceID] = @Original_ClientServiceID)));
  8822. SELECT ID, SaleDate, ProductID, Quantity, ClientServiceID FROM ProductSale WHERE (ID = @ID)";
  8823. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8824. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SaleDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SaleDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8825. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8826. 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, "", "", ""));
  8827. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ClientServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientServiceID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8828. 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, "", "", ""));
  8829. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SaleDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SaleDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8830. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8831. 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, "", "", ""));
  8832. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ClientServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientServiceID", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8833. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ClientServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientServiceID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8834. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8835. }
  8836. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8837. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8838. private void InitConnection() {
  8839. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8840. this._connection.ConnectionString = global::RozenbergBrovki.Properties.Settings.Default.RozenbergBrConnectionString;
  8841. }
  8842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8844. private void InitCommandCollection() {
  8845. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8846. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8847. this._commandCollection[0].Connection = this.Connection;
  8848. this._commandCollection[0].CommandText = "SELECT ID, SaleDate, ProductID, Quantity, ClientServiceID FROM dbo.ProductSale";
  8849. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8850. }
  8851. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8852. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8853. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8854. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8855. public virtual int Fill(RozenbergBrDataSet.ProductSaleDataTable dataTable) {
  8856. this.Adapter.SelectCommand = this.CommandCollection[0];
  8857. if ((this.ClearBeforeFill == true)) {
  8858. dataTable.Clear();
  8859. }
  8860. int returnValue = this.Adapter.Fill(dataTable);
  8861. return returnValue;
  8862. }
  8863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8864. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8865. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8866. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8867. public virtual RozenbergBrDataSet.ProductSaleDataTable GetData() {
  8868. this.Adapter.SelectCommand = this.CommandCollection[0];
  8869. RozenbergBrDataSet.ProductSaleDataTable dataTable = new RozenbergBrDataSet.ProductSaleDataTable();
  8870. this.Adapter.Fill(dataTable);
  8871. return dataTable;
  8872. }
  8873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8874. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8875. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8876. public virtual int Update(RozenbergBrDataSet.ProductSaleDataTable dataTable) {
  8877. return this.Adapter.Update(dataTable);
  8878. }
  8879. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8880. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8881. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8882. public virtual int Update(RozenbergBrDataSet dataSet) {
  8883. return this.Adapter.Update(dataSet, "ProductSale");
  8884. }
  8885. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8886. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8887. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8888. public virtual int Update(global::System.Data.DataRow dataRow) {
  8889. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8890. dataRow});
  8891. }
  8892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8894. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8895. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8896. return this.Adapter.Update(dataRows);
  8897. }
  8898. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8899. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8900. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8901. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8902. public virtual int Delete(int Original_ID, System.DateTime Original_SaleDate, int Original_ProductID, int Original_Quantity, global::System.Nullable<int> Original_ClientServiceID) {
  8903. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  8904. this.Adapter.DeleteCommand.Parameters[1].Value = ((System.DateTime)(Original_SaleDate));
  8905. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_ProductID));
  8906. this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_Quantity));
  8907. if ((Original_ClientServiceID.HasValue == true)) {
  8908. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
  8909. this.Adapter.DeleteCommand.Parameters[5].Value = ((int)(Original_ClientServiceID.Value));
  8910. }
  8911. else {
  8912. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
  8913. this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
  8914. }
  8915. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8916. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8917. != global::System.Data.ConnectionState.Open)) {
  8918. this.Adapter.DeleteCommand.Connection.Open();
  8919. }
  8920. try {
  8921. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8922. return returnValue;
  8923. }
  8924. finally {
  8925. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8926. this.Adapter.DeleteCommand.Connection.Close();
  8927. }
  8928. }
  8929. }
  8930. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8931. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8932. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8933. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8934. public virtual int Insert(System.DateTime SaleDate, int ProductID, int Quantity, global::System.Nullable<int> ClientServiceID) {
  8935. this.Adapter.InsertCommand.Parameters[0].Value = ((System.DateTime)(SaleDate));
  8936. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(ProductID));
  8937. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Quantity));
  8938. if ((ClientServiceID.HasValue == true)) {
  8939. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(ClientServiceID.Value));
  8940. }
  8941. else {
  8942. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  8943. }
  8944. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8945. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8946. != global::System.Data.ConnectionState.Open)) {
  8947. this.Adapter.InsertCommand.Connection.Open();
  8948. }
  8949. try {
  8950. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8951. return returnValue;
  8952. }
  8953. finally {
  8954. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8955. this.Adapter.InsertCommand.Connection.Close();
  8956. }
  8957. }
  8958. }
  8959. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8960. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8961. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8962. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8963. public virtual int Update(System.DateTime SaleDate, int ProductID, int Quantity, global::System.Nullable<int> ClientServiceID, int Original_ID, System.DateTime Original_SaleDate, int Original_ProductID, int Original_Quantity, global::System.Nullable<int> Original_ClientServiceID, int ID) {
  8964. this.Adapter.UpdateCommand.Parameters[0].Value = ((System.DateTime)(SaleDate));
  8965. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(ProductID));
  8966. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Quantity));
  8967. if ((ClientServiceID.HasValue == true)) {
  8968. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(ClientServiceID.Value));
  8969. }
  8970. else {
  8971. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  8972. }
  8973. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_ID));
  8974. this.Adapter.UpdateCommand.Parameters[5].Value = ((System.DateTime)(Original_SaleDate));
  8975. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ProductID));
  8976. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_Quantity));
  8977. if ((Original_ClientServiceID.HasValue == true)) {
  8978. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  8979. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_ClientServiceID.Value));
  8980. }
  8981. else {
  8982. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  8983. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  8984. }
  8985. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(ID));
  8986. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8987. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8988. != global::System.Data.ConnectionState.Open)) {
  8989. this.Adapter.UpdateCommand.Connection.Open();
  8990. }
  8991. try {
  8992. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8993. return returnValue;
  8994. }
  8995. finally {
  8996. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8997. this.Adapter.UpdateCommand.Connection.Close();
  8998. }
  8999. }
  9000. }
  9001. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9002. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9003. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9004. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9005. public virtual int Update(System.DateTime SaleDate, int ProductID, int Quantity, global::System.Nullable<int> ClientServiceID, int Original_ID, System.DateTime Original_SaleDate, int Original_ProductID, int Original_Quantity, global::System.Nullable<int> Original_ClientServiceID) {
  9006. return this.Update(SaleDate, ProductID, Quantity, ClientServiceID, Original_ID, Original_SaleDate, Original_ProductID, Original_Quantity, Original_ClientServiceID, Original_ID);
  9007. }
  9008. }
  9009. /// <summary>
  9010. ///Represents the connection and commands used to retrieve and save data.
  9011. ///</summary>
  9012. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9013. [global::System.ComponentModel.ToolboxItem(true)]
  9014. [global::System.ComponentModel.DataObjectAttribute(true)]
  9015. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9016. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9017. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9018. public partial class ServiceTableAdapter : global::System.ComponentModel.Component {
  9019. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9020. private global::System.Data.SqlClient.SqlConnection _connection;
  9021. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9022. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9023. private bool _clearBeforeFill;
  9024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9025. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9026. public ServiceTableAdapter() {
  9027. this.ClearBeforeFill = true;
  9028. }
  9029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9031. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9032. get {
  9033. if ((this._adapter == null)) {
  9034. this.InitAdapter();
  9035. }
  9036. return this._adapter;
  9037. }
  9038. }
  9039. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9041. internal global::System.Data.SqlClient.SqlConnection Connection {
  9042. get {
  9043. if ((this._connection == null)) {
  9044. this.InitConnection();
  9045. }
  9046. return this._connection;
  9047. }
  9048. set {
  9049. this._connection = value;
  9050. if ((this.Adapter.InsertCommand != null)) {
  9051. this.Adapter.InsertCommand.Connection = value;
  9052. }
  9053. if ((this.Adapter.DeleteCommand != null)) {
  9054. this.Adapter.DeleteCommand.Connection = value;
  9055. }
  9056. if ((this.Adapter.UpdateCommand != null)) {
  9057. this.Adapter.UpdateCommand.Connection = value;
  9058. }
  9059. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9060. if ((this.CommandCollection[i] != null)) {
  9061. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9062. }
  9063. }
  9064. }
  9065. }
  9066. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9067. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9068. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9069. get {
  9070. return this._transaction;
  9071. }
  9072. set {
  9073. this._transaction = value;
  9074. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9075. this.CommandCollection[i].Transaction = this._transaction;
  9076. }
  9077. if (((this.Adapter != null)
  9078. && (this.Adapter.DeleteCommand != null))) {
  9079. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9080. }
  9081. if (((this.Adapter != null)
  9082. && (this.Adapter.InsertCommand != null))) {
  9083. this.Adapter.InsertCommand.Transaction = this._transaction;
  9084. }
  9085. if (((this.Adapter != null)
  9086. && (this.Adapter.UpdateCommand != null))) {
  9087. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9088. }
  9089. }
  9090. }
  9091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9093. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9094. get {
  9095. if ((this._commandCollection == null)) {
  9096. this.InitCommandCollection();
  9097. }
  9098. return this._commandCollection;
  9099. }
  9100. }
  9101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9102. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9103. public bool ClearBeforeFill {
  9104. get {
  9105. return this._clearBeforeFill;
  9106. }
  9107. set {
  9108. this._clearBeforeFill = value;
  9109. }
  9110. }
  9111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9113. private void InitAdapter() {
  9114. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9115. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9116. tableMapping.SourceTable = "Table";
  9117. tableMapping.DataSetTable = "Service";
  9118. tableMapping.ColumnMappings.Add("Id", "Id");
  9119. tableMapping.ColumnMappings.Add("Наименование_услуги", "Наименование_услуги");
  9120. tableMapping.ColumnMappings.Add("Главное_изображение", "Главное_изображение");
  9121. tableMapping.ColumnMappings.Add("Длительность", "Длительность");
  9122. tableMapping.ColumnMappings.Add("Стоимость", "Стоимость");
  9123. tableMapping.ColumnMappings.Add("Действующая_скидка", "Действующая_скидка");
  9124. this._adapter.TableMappings.Add(tableMapping);
  9125. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9126. this._adapter.DeleteCommand.Connection = this.Connection;
  9127. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Service] WHERE (([Id] = @Original_Id) AND ([Наименование_услуги] = @Original_Наименование_услуги) AND ([Главное_изображение] = @Original_Главное_изображение) AND ([Длительность] = @Original_Длительность) AND ([Стоимость] = @Original_Стоимость) AND ([Действующая_скидка] = @Original_Действующая_скидка))";
  9128. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9129. 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, "", "", ""));
  9130. 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, "", "", ""));
  9131. 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, "", "", ""));
  9132. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Длительность", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Длительность", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9133. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Стоимость", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9134. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Действующая_скидка", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Действующая_скидка", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9135. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9136. this._adapter.InsertCommand.Connection = this.Connection;
  9137. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Service] ([Наименование_услуги], [Главное_изображение], [Длительность], [Стоимость], [Действующая_скидка]) VALUES (@Наименование_услуги, @Главное_изображение, @Длительность, @Стоимость, @Действующая_скидка);
  9138. SELECT Id, Наименование_услуги, Главное_изображение, Длительность, Стоимость, Действующая_скидка FROM Service WHERE (Id = SCOPE_IDENTITY())";
  9139. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9140. 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, "", "", ""));
  9141. 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, "", "", ""));
  9142. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Длительность", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Длительность", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9143. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Стоимость", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9144. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Действующая_скидка", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Действующая_скидка", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9145. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9146. this._adapter.UpdateCommand.Connection = this.Connection;
  9147. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Service] SET [Наименование_услуги] = @Наименование_услуги, [Главное_изображение] = @Главное_изображение, [Длительность] = @Длительность, [Стоимость] = @Стоимость, [Действующая_скидка] = @Действующая_скидка WHERE (([Id] = @Original_Id) AND ([Наименование_услуги] = @Original_Наименование_услуги) AND ([Главное_изображение] = @Original_Главное_изображение) AND ([Длительность] = @Original_Длительность) AND ([Стоимость] = @Original_Стоимость) AND ([Действующая_скидка] = @Original_Действующая_скидка));
  9148. SELECT Id, Наименование_услуги, Главное_изображение, Длительность, Стоимость, Действующая_скидка FROM Service WHERE (Id = @Id)";
  9149. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9150. 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, "", "", ""));
  9151. 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, "", "", ""));
  9152. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Длительность", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Длительность", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9153. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Стоимость", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9154. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Действующая_скидка", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Действующая_скидка", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9155. 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, "", "", ""));
  9156. 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, "", "", ""));
  9157. 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, "", "", ""));
  9158. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Длительность", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Длительность", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9159. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Стоимость", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9160. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Действующая_скидка", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Действующая_скидка", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9161. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Id", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "Id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9162. }
  9163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9164. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9165. private void InitConnection() {
  9166. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9167. this._connection.ConnectionString = global::RozenbergBrovki.Properties.Settings.Default.RozenbergBrConnectionString;
  9168. }
  9169. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9170. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9171. private void InitCommandCollection() {
  9172. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9173. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9174. this._commandCollection[0].Connection = this.Connection;
  9175. this._commandCollection[0].CommandText = "SELECT Id, Наименование_услуги, Главное_изображение, Длительность, Стоимость, Дей" +
  9176. "ствующая_скидка FROM dbo.Service";
  9177. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9178. }
  9179. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9180. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9181. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9182. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9183. public virtual int Fill(RozenbergBrDataSet.ServiceDataTable dataTable) {
  9184. this.Adapter.SelectCommand = this.CommandCollection[0];
  9185. if ((this.ClearBeforeFill == true)) {
  9186. dataTable.Clear();
  9187. }
  9188. int returnValue = this.Adapter.Fill(dataTable);
  9189. return returnValue;
  9190. }
  9191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9192. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9193. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9194. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9195. public virtual RozenbergBrDataSet.ServiceDataTable GetData() {
  9196. this.Adapter.SelectCommand = this.CommandCollection[0];
  9197. RozenbergBrDataSet.ServiceDataTable dataTable = new RozenbergBrDataSet.ServiceDataTable();
  9198. this.Adapter.Fill(dataTable);
  9199. return dataTable;
  9200. }
  9201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9203. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9204. public virtual int Update(RozenbergBrDataSet.ServiceDataTable dataTable) {
  9205. return this.Adapter.Update(dataTable);
  9206. }
  9207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9208. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9209. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9210. public virtual int Update(RozenbergBrDataSet dataSet) {
  9211. return this.Adapter.Update(dataSet, "Service");
  9212. }
  9213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9214. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9215. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9216. public virtual int Update(global::System.Data.DataRow dataRow) {
  9217. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9218. dataRow});
  9219. }
  9220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9221. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9222. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9223. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9224. return this.Adapter.Update(dataRows);
  9225. }
  9226. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9227. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9228. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9229. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9230. public virtual int Delete(int Original_Id, string Original_Наименование_услуги, string Original_Главное_изображение, int Original_Длительность, decimal Original_Стоимость, double Original_Действующая_скидка) {
  9231. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_Id));
  9232. if ((Original_Наименование_услуги == null)) {
  9233. throw new global::System.ArgumentNullException("Original_Наименование_услуги");
  9234. }
  9235. else {
  9236. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Наименование_услуги));
  9237. }
  9238. if ((Original_Главное_изображение == null)) {
  9239. throw new global::System.ArgumentNullException("Original_Главное_изображение");
  9240. }
  9241. else {
  9242. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Главное_изображение));
  9243. }
  9244. this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_Длительность));
  9245. this.Adapter.DeleteCommand.Parameters[4].Value = ((decimal)(Original_Стоимость));
  9246. this.Adapter.DeleteCommand.Parameters[5].Value = ((double)(Original_Действующая_скидка));
  9247. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9248. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9249. != global::System.Data.ConnectionState.Open)) {
  9250. this.Adapter.DeleteCommand.Connection.Open();
  9251. }
  9252. try {
  9253. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9254. return returnValue;
  9255. }
  9256. finally {
  9257. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9258. this.Adapter.DeleteCommand.Connection.Close();
  9259. }
  9260. }
  9261. }
  9262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9263. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9264. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9265. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9266. public virtual int Insert(string Наименование_услуги, string Главное_изображение, int Длительность, decimal Стоимость, double Действующая_скидка) {
  9267. if ((Наименование_услуги == null)) {
  9268. throw new global::System.ArgumentNullException("Наименование_услуги");
  9269. }
  9270. else {
  9271. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Наименование_услуги));
  9272. }
  9273. if ((Главное_изображение == null)) {
  9274. throw new global::System.ArgumentNullException("Главное_изображение");
  9275. }
  9276. else {
  9277. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Главное_изображение));
  9278. }
  9279. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Длительность));
  9280. this.Adapter.InsertCommand.Parameters[3].Value = ((decimal)(Стоимость));
  9281. this.Adapter.InsertCommand.Parameters[4].Value = ((double)(Действующая_скидка));
  9282. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9283. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9284. != global::System.Data.ConnectionState.Open)) {
  9285. this.Adapter.InsertCommand.Connection.Open();
  9286. }
  9287. try {
  9288. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9289. return returnValue;
  9290. }
  9291. finally {
  9292. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9293. this.Adapter.InsertCommand.Connection.Close();
  9294. }
  9295. }
  9296. }
  9297. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9298. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9299. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9300. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9301. public virtual int Update(string Наименование_услуги, string Главное_изображение, int Длительность, decimal Стоимость, double Действующая_скидка, int Original_Id, string Original_Наименование_услуги, string Original_Главное_изображение, int Original_Длительность, decimal Original_Стоимость, double Original_Действующая_скидка, int Id) {
  9302. if ((Наименование_услуги == null)) {
  9303. throw new global::System.ArgumentNullException("Наименование_услуги");
  9304. }
  9305. else {
  9306. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Наименование_услуги));
  9307. }
  9308. if ((Главное_изображение == null)) {
  9309. throw new global::System.ArgumentNullException("Главное_изображение");
  9310. }
  9311. else {
  9312. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Главное_изображение));
  9313. }
  9314. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Длительность));
  9315. this.Adapter.UpdateCommand.Parameters[3].Value = ((decimal)(Стоимость));
  9316. this.Adapter.UpdateCommand.Parameters[4].Value = ((double)(Действующая_скидка));
  9317. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_Id));
  9318. if ((Original_Наименование_услуги == null)) {
  9319. throw new global::System.ArgumentNullException("Original_Наименование_услуги");
  9320. }
  9321. else {
  9322. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_Наименование_услуги));
  9323. }
  9324. if ((Original_Главное_изображение == null)) {
  9325. throw new global::System.ArgumentNullException("Original_Главное_изображение");
  9326. }
  9327. else {
  9328. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Главное_изображение));
  9329. }
  9330. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_Длительность));
  9331. this.Adapter.UpdateCommand.Parameters[9].Value = ((decimal)(Original_Стоимость));
  9332. this.Adapter.UpdateCommand.Parameters[10].Value = ((double)(Original_Действующая_скидка));
  9333. this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(Id));
  9334. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9335. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9336. != global::System.Data.ConnectionState.Open)) {
  9337. this.Adapter.UpdateCommand.Connection.Open();
  9338. }
  9339. try {
  9340. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9341. return returnValue;
  9342. }
  9343. finally {
  9344. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9345. this.Adapter.UpdateCommand.Connection.Close();
  9346. }
  9347. }
  9348. }
  9349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9351. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9352. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9353. public virtual int Update(string Наименование_услуги, string Главное_изображение, int Длительность, decimal Стоимость, double Действующая_скидка, int Original_Id, string Original_Наименование_услуги, string Original_Главное_изображение, int Original_Длительность, decimal Original_Стоимость, double Original_Действующая_скидка) {
  9354. return this.Update(Наименование_услуги, Главное_изображение, Длительность, Стоимость, Действующая_скидка, Original_Id, Original_Наименование_услуги, Original_Главное_изображение, Original_Длительность, Original_Стоимость, Original_Действующая_скидка, Original_Id);
  9355. }
  9356. }
  9357. /// <summary>
  9358. ///Represents the connection and commands used to retrieve and save data.
  9359. ///</summary>
  9360. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9361. [global::System.ComponentModel.ToolboxItem(true)]
  9362. [global::System.ComponentModel.DataObjectAttribute(true)]
  9363. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9364. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9365. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9366. public partial class ServicePhotoTableAdapter : global::System.ComponentModel.Component {
  9367. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9368. private global::System.Data.SqlClient.SqlConnection _connection;
  9369. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9370. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9371. private bool _clearBeforeFill;
  9372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9374. public ServicePhotoTableAdapter() {
  9375. this.ClearBeforeFill = true;
  9376. }
  9377. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9378. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9379. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9380. get {
  9381. if ((this._adapter == null)) {
  9382. this.InitAdapter();
  9383. }
  9384. return this._adapter;
  9385. }
  9386. }
  9387. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9388. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9389. internal global::System.Data.SqlClient.SqlConnection Connection {
  9390. get {
  9391. if ((this._connection == null)) {
  9392. this.InitConnection();
  9393. }
  9394. return this._connection;
  9395. }
  9396. set {
  9397. this._connection = value;
  9398. if ((this.Adapter.InsertCommand != null)) {
  9399. this.Adapter.InsertCommand.Connection = value;
  9400. }
  9401. if ((this.Adapter.DeleteCommand != null)) {
  9402. this.Adapter.DeleteCommand.Connection = value;
  9403. }
  9404. if ((this.Adapter.UpdateCommand != null)) {
  9405. this.Adapter.UpdateCommand.Connection = value;
  9406. }
  9407. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9408. if ((this.CommandCollection[i] != null)) {
  9409. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9410. }
  9411. }
  9412. }
  9413. }
  9414. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9415. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9416. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9417. get {
  9418. return this._transaction;
  9419. }
  9420. set {
  9421. this._transaction = value;
  9422. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9423. this.CommandCollection[i].Transaction = this._transaction;
  9424. }
  9425. if (((this.Adapter != null)
  9426. && (this.Adapter.DeleteCommand != null))) {
  9427. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9428. }
  9429. if (((this.Adapter != null)
  9430. && (this.Adapter.InsertCommand != null))) {
  9431. this.Adapter.InsertCommand.Transaction = this._transaction;
  9432. }
  9433. if (((this.Adapter != null)
  9434. && (this.Adapter.UpdateCommand != null))) {
  9435. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9436. }
  9437. }
  9438. }
  9439. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9440. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9441. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9442. get {
  9443. if ((this._commandCollection == null)) {
  9444. this.InitCommandCollection();
  9445. }
  9446. return this._commandCollection;
  9447. }
  9448. }
  9449. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9450. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9451. public bool ClearBeforeFill {
  9452. get {
  9453. return this._clearBeforeFill;
  9454. }
  9455. set {
  9456. this._clearBeforeFill = value;
  9457. }
  9458. }
  9459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9460. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9461. private void InitAdapter() {
  9462. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9463. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9464. tableMapping.SourceTable = "Table";
  9465. tableMapping.DataSetTable = "ServicePhoto";
  9466. tableMapping.ColumnMappings.Add("ID", "ID");
  9467. tableMapping.ColumnMappings.Add("ServiceID", "ServiceID");
  9468. tableMapping.ColumnMappings.Add("PhotoPath", "PhotoPath");
  9469. this._adapter.TableMappings.Add(tableMapping);
  9470. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9471. this._adapter.DeleteCommand.Connection = this.Connection;
  9472. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ServicePhoto] WHERE (([ID] = @Original_ID) AND ([ServiceID] = " +
  9473. "@Original_ServiceID) AND ([PhotoPath] = @Original_PhotoPath))";
  9474. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9475. 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, "", "", ""));
  9476. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ServiceID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9477. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PhotoPath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhotoPath", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9478. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9479. this._adapter.InsertCommand.Connection = this.Connection;
  9480. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ServicePhoto] ([ServiceID], [PhotoPath]) VALUES (@ServiceID, @" +
  9481. "PhotoPath);\r\nSELECT ID, ServiceID, PhotoPath FROM ServicePhoto WHERE (ID = SCOPE" +
  9482. "_IDENTITY())";
  9483. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9484. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ServiceID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9485. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PhotoPath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhotoPath", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9486. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9487. this._adapter.UpdateCommand.Connection = this.Connection;
  9488. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ServicePhoto] SET [ServiceID] = @ServiceID, [PhotoPath] = @PhotoPath WHERE (([ID] = @Original_ID) AND ([ServiceID] = @Original_ServiceID) AND ([PhotoPath] = @Original_PhotoPath));
  9489. SELECT ID, ServiceID, PhotoPath FROM ServicePhoto WHERE (ID = @ID)";
  9490. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9491. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ServiceID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9492. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PhotoPath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhotoPath", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9493. 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, "", "", ""));
  9494. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ServiceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ServiceID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9495. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PhotoPath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhotoPath", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9496. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9497. }
  9498. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9499. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9500. private void InitConnection() {
  9501. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9502. this._connection.ConnectionString = global::RozenbergBrovki.Properties.Settings.Default.RozenbergBrConnectionString;
  9503. }
  9504. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9505. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9506. private void InitCommandCollection() {
  9507. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9508. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9509. this._commandCollection[0].Connection = this.Connection;
  9510. this._commandCollection[0].CommandText = "SELECT ID, ServiceID, PhotoPath FROM dbo.ServicePhoto";
  9511. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9512. }
  9513. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9514. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9515. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9516. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9517. public virtual int Fill(RozenbergBrDataSet.ServicePhotoDataTable dataTable) {
  9518. this.Adapter.SelectCommand = this.CommandCollection[0];
  9519. if ((this.ClearBeforeFill == true)) {
  9520. dataTable.Clear();
  9521. }
  9522. int returnValue = this.Adapter.Fill(dataTable);
  9523. return returnValue;
  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.Select, true)]
  9529. public virtual RozenbergBrDataSet.ServicePhotoDataTable GetData() {
  9530. this.Adapter.SelectCommand = this.CommandCollection[0];
  9531. RozenbergBrDataSet.ServicePhotoDataTable dataTable = new RozenbergBrDataSet.ServicePhotoDataTable();
  9532. this.Adapter.Fill(dataTable);
  9533. return dataTable;
  9534. }
  9535. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9536. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9537. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9538. public virtual int Update(RozenbergBrDataSet.ServicePhotoDataTable dataTable) {
  9539. return this.Adapter.Update(dataTable);
  9540. }
  9541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9543. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9544. public virtual int Update(RozenbergBrDataSet dataSet) {
  9545. return this.Adapter.Update(dataSet, "ServicePhoto");
  9546. }
  9547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9549. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9550. public virtual int Update(global::System.Data.DataRow dataRow) {
  9551. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9552. dataRow});
  9553. }
  9554. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9555. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9556. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9557. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9558. return this.Adapter.Update(dataRows);
  9559. }
  9560. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9561. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9562. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9563. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9564. public virtual int Delete(int Original_ID, int Original_ServiceID, string Original_PhotoPath) {
  9565. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  9566. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ServiceID));
  9567. if ((Original_PhotoPath == null)) {
  9568. throw new global::System.ArgumentNullException("Original_PhotoPath");
  9569. }
  9570. else {
  9571. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_PhotoPath));
  9572. }
  9573. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9574. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9575. != global::System.Data.ConnectionState.Open)) {
  9576. this.Adapter.DeleteCommand.Connection.Open();
  9577. }
  9578. try {
  9579. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9580. return returnValue;
  9581. }
  9582. finally {
  9583. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9584. this.Adapter.DeleteCommand.Connection.Close();
  9585. }
  9586. }
  9587. }
  9588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9589. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9590. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9591. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9592. public virtual int Insert(int ServiceID, string PhotoPath) {
  9593. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ServiceID));
  9594. if ((PhotoPath == null)) {
  9595. throw new global::System.ArgumentNullException("PhotoPath");
  9596. }
  9597. else {
  9598. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(PhotoPath));
  9599. }
  9600. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9601. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9602. != global::System.Data.ConnectionState.Open)) {
  9603. this.Adapter.InsertCommand.Connection.Open();
  9604. }
  9605. try {
  9606. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9607. return returnValue;
  9608. }
  9609. finally {
  9610. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9611. this.Adapter.InsertCommand.Connection.Close();
  9612. }
  9613. }
  9614. }
  9615. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9616. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9617. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9618. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9619. public virtual int Update(int ServiceID, string PhotoPath, int Original_ID, int Original_ServiceID, string Original_PhotoPath, int ID) {
  9620. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ServiceID));
  9621. if ((PhotoPath == null)) {
  9622. throw new global::System.ArgumentNullException("PhotoPath");
  9623. }
  9624. else {
  9625. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(PhotoPath));
  9626. }
  9627. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  9628. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ServiceID));
  9629. if ((Original_PhotoPath == null)) {
  9630. throw new global::System.ArgumentNullException("Original_PhotoPath");
  9631. }
  9632. else {
  9633. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_PhotoPath));
  9634. }
  9635. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID));
  9636. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9637. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9638. != global::System.Data.ConnectionState.Open)) {
  9639. this.Adapter.UpdateCommand.Connection.Open();
  9640. }
  9641. try {
  9642. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9643. return returnValue;
  9644. }
  9645. finally {
  9646. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9647. this.Adapter.UpdateCommand.Connection.Close();
  9648. }
  9649. }
  9650. }
  9651. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9652. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9653. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9654. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9655. public virtual int Update(int ServiceID, string PhotoPath, int Original_ID, int Original_ServiceID, string Original_PhotoPath) {
  9656. return this.Update(ServiceID, PhotoPath, Original_ID, Original_ServiceID, Original_PhotoPath, Original_ID);
  9657. }
  9658. }
  9659. /// <summary>
  9660. ///Represents the connection and commands used to retrieve and save data.
  9661. ///</summary>
  9662. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9663. [global::System.ComponentModel.ToolboxItem(true)]
  9664. [global::System.ComponentModel.DataObjectAttribute(true)]
  9665. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9666. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9667. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9668. public partial class TagTableAdapter : global::System.ComponentModel.Component {
  9669. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9670. private global::System.Data.SqlClient.SqlConnection _connection;
  9671. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9672. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9673. private bool _clearBeforeFill;
  9674. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9675. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9676. public TagTableAdapter() {
  9677. this.ClearBeforeFill = true;
  9678. }
  9679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9680. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9681. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9682. get {
  9683. if ((this._adapter == null)) {
  9684. this.InitAdapter();
  9685. }
  9686. return this._adapter;
  9687. }
  9688. }
  9689. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9690. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9691. internal global::System.Data.SqlClient.SqlConnection Connection {
  9692. get {
  9693. if ((this._connection == null)) {
  9694. this.InitConnection();
  9695. }
  9696. return this._connection;
  9697. }
  9698. set {
  9699. this._connection = value;
  9700. if ((this.Adapter.InsertCommand != null)) {
  9701. this.Adapter.InsertCommand.Connection = value;
  9702. }
  9703. if ((this.Adapter.DeleteCommand != null)) {
  9704. this.Adapter.DeleteCommand.Connection = value;
  9705. }
  9706. if ((this.Adapter.UpdateCommand != null)) {
  9707. this.Adapter.UpdateCommand.Connection = value;
  9708. }
  9709. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9710. if ((this.CommandCollection[i] != null)) {
  9711. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9712. }
  9713. }
  9714. }
  9715. }
  9716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9717. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9718. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9719. get {
  9720. return this._transaction;
  9721. }
  9722. set {
  9723. this._transaction = value;
  9724. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9725. this.CommandCollection[i].Transaction = this._transaction;
  9726. }
  9727. if (((this.Adapter != null)
  9728. && (this.Adapter.DeleteCommand != null))) {
  9729. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9730. }
  9731. if (((this.Adapter != null)
  9732. && (this.Adapter.InsertCommand != null))) {
  9733. this.Adapter.InsertCommand.Transaction = this._transaction;
  9734. }
  9735. if (((this.Adapter != null)
  9736. && (this.Adapter.UpdateCommand != null))) {
  9737. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9738. }
  9739. }
  9740. }
  9741. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9742. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9743. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9744. get {
  9745. if ((this._commandCollection == null)) {
  9746. this.InitCommandCollection();
  9747. }
  9748. return this._commandCollection;
  9749. }
  9750. }
  9751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9753. public bool ClearBeforeFill {
  9754. get {
  9755. return this._clearBeforeFill;
  9756. }
  9757. set {
  9758. this._clearBeforeFill = value;
  9759. }
  9760. }
  9761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9763. private void InitAdapter() {
  9764. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9765. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9766. tableMapping.SourceTable = "Table";
  9767. tableMapping.DataSetTable = "Tag";
  9768. tableMapping.ColumnMappings.Add("ID", "ID");
  9769. tableMapping.ColumnMappings.Add("Title", "Title");
  9770. tableMapping.ColumnMappings.Add("Color", "Color");
  9771. this._adapter.TableMappings.Add(tableMapping);
  9772. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9773. this._adapter.DeleteCommand.Connection = this.Connection;
  9774. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Tag] WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Tit" +
  9775. "le) AND ([Color] = @Original_Color))";
  9776. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9777. 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, "", "", ""));
  9778. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9779. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Color", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Color", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9780. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9781. this._adapter.InsertCommand.Connection = this.Connection;
  9782. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Tag] ([Title], [Color]) VALUES (@Title, @Color);\r\nSELECT ID, T" +
  9783. "itle, Color FROM Tag WHERE (ID = SCOPE_IDENTITY())";
  9784. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9785. 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, "", "", ""));
  9786. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Color", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Color", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9787. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9788. this._adapter.UpdateCommand.Connection = this.Connection;
  9789. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Tag] SET [Title] = @Title, [Color] = @Color WHERE (([ID] = @Origina" +
  9790. "l_ID) AND ([Title] = @Original_Title) AND ([Color] = @Original_Color));\r\nSELECT " +
  9791. "ID, Title, Color FROM Tag WHERE (ID = @ID)";
  9792. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9793. 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, "", "", ""));
  9794. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Color", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Color", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9795. 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, "", "", ""));
  9796. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9797. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Color", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Color", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9798. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9799. }
  9800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9802. private void InitConnection() {
  9803. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9804. this._connection.ConnectionString = global::RozenbergBrovki.Properties.Settings.Default.RozenbergBrConnectionString;
  9805. }
  9806. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9807. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9808. private void InitCommandCollection() {
  9809. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9810. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9811. this._commandCollection[0].Connection = this.Connection;
  9812. this._commandCollection[0].CommandText = "SELECT ID, Title, Color FROM dbo.Tag";
  9813. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  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.Fill, true)]
  9819. public virtual int Fill(RozenbergBrDataSet.TagDataTable dataTable) {
  9820. this.Adapter.SelectCommand = this.CommandCollection[0];
  9821. if ((this.ClearBeforeFill == true)) {
  9822. dataTable.Clear();
  9823. }
  9824. int returnValue = this.Adapter.Fill(dataTable);
  9825. return returnValue;
  9826. }
  9827. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9828. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9829. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9830. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9831. public virtual RozenbergBrDataSet.TagDataTable GetData() {
  9832. this.Adapter.SelectCommand = this.CommandCollection[0];
  9833. RozenbergBrDataSet.TagDataTable dataTable = new RozenbergBrDataSet.TagDataTable();
  9834. this.Adapter.Fill(dataTable);
  9835. return dataTable;
  9836. }
  9837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9839. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9840. public virtual int Update(RozenbergBrDataSet.TagDataTable dataTable) {
  9841. return this.Adapter.Update(dataTable);
  9842. }
  9843. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9844. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9845. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9846. public virtual int Update(RozenbergBrDataSet dataSet) {
  9847. return this.Adapter.Update(dataSet, "Tag");
  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. public virtual int Update(global::System.Data.DataRow dataRow) {
  9853. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9854. dataRow});
  9855. }
  9856. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9857. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9858. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9859. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9860. return this.Adapter.Update(dataRows);
  9861. }
  9862. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9863. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9864. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9865. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9866. public virtual int Delete(int Original_ID, string Original_Title, string Original_Color) {
  9867. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  9868. if ((Original_Title == null)) {
  9869. throw new global::System.ArgumentNullException("Original_Title");
  9870. }
  9871. else {
  9872. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Title));
  9873. }
  9874. if ((Original_Color == null)) {
  9875. throw new global::System.ArgumentNullException("Original_Color");
  9876. }
  9877. else {
  9878. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Color));
  9879. }
  9880. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9881. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9882. != global::System.Data.ConnectionState.Open)) {
  9883. this.Adapter.DeleteCommand.Connection.Open();
  9884. }
  9885. try {
  9886. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9887. return returnValue;
  9888. }
  9889. finally {
  9890. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9891. this.Adapter.DeleteCommand.Connection.Close();
  9892. }
  9893. }
  9894. }
  9895. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9896. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9897. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9898. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9899. public virtual int Insert(string Title, string Color) {
  9900. if ((Title == null)) {
  9901. throw new global::System.ArgumentNullException("Title");
  9902. }
  9903. else {
  9904. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  9905. }
  9906. if ((Color == null)) {
  9907. throw new global::System.ArgumentNullException("Color");
  9908. }
  9909. else {
  9910. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Color));
  9911. }
  9912. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9913. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9914. != global::System.Data.ConnectionState.Open)) {
  9915. this.Adapter.InsertCommand.Connection.Open();
  9916. }
  9917. try {
  9918. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9919. return returnValue;
  9920. }
  9921. finally {
  9922. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9923. this.Adapter.InsertCommand.Connection.Close();
  9924. }
  9925. }
  9926. }
  9927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9928. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9929. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9930. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9931. public virtual int Update(string Title, string Color, int Original_ID, string Original_Title, string Original_Color, int ID) {
  9932. if ((Title == null)) {
  9933. throw new global::System.ArgumentNullException("Title");
  9934. }
  9935. else {
  9936. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  9937. }
  9938. if ((Color == null)) {
  9939. throw new global::System.ArgumentNullException("Color");
  9940. }
  9941. else {
  9942. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Color));
  9943. }
  9944. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  9945. if ((Original_Title == null)) {
  9946. throw new global::System.ArgumentNullException("Original_Title");
  9947. }
  9948. else {
  9949. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Title));
  9950. }
  9951. if ((Original_Color == null)) {
  9952. throw new global::System.ArgumentNullException("Original_Color");
  9953. }
  9954. else {
  9955. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Color));
  9956. }
  9957. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID));
  9958. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9959. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9960. != global::System.Data.ConnectionState.Open)) {
  9961. this.Adapter.UpdateCommand.Connection.Open();
  9962. }
  9963. try {
  9964. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9965. return returnValue;
  9966. }
  9967. finally {
  9968. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9969. this.Adapter.UpdateCommand.Connection.Close();
  9970. }
  9971. }
  9972. }
  9973. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9974. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9975. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9976. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9977. public virtual int Update(string Title, string Color, int Original_ID, string Original_Title, string Original_Color) {
  9978. return this.Update(Title, Color, Original_ID, Original_Title, Original_Color, Original_ID);
  9979. }
  9980. }
  9981. /// <summary>
  9982. ///Represents the connection and commands used to retrieve and save data.
  9983. ///</summary>
  9984. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9985. [global::System.ComponentModel.ToolboxItem(true)]
  9986. [global::System.ComponentModel.DataObjectAttribute(true)]
  9987. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9988. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9989. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9990. public partial class TagOfClientTableAdapter : global::System.ComponentModel.Component {
  9991. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9992. private global::System.Data.SqlClient.SqlConnection _connection;
  9993. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9994. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9995. private bool _clearBeforeFill;
  9996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9997. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9998. public TagOfClientTableAdapter() {
  9999. this.ClearBeforeFill = true;
  10000. }
  10001. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10002. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10003. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  10004. get {
  10005. if ((this._adapter == null)) {
  10006. this.InitAdapter();
  10007. }
  10008. return this._adapter;
  10009. }
  10010. }
  10011. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10012. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10013. internal global::System.Data.SqlClient.SqlConnection Connection {
  10014. get {
  10015. if ((this._connection == null)) {
  10016. this.InitConnection();
  10017. }
  10018. return this._connection;
  10019. }
  10020. set {
  10021. this._connection = value;
  10022. if ((this.Adapter.InsertCommand != null)) {
  10023. this.Adapter.InsertCommand.Connection = value;
  10024. }
  10025. if ((this.Adapter.DeleteCommand != null)) {
  10026. this.Adapter.DeleteCommand.Connection = value;
  10027. }
  10028. if ((this.Adapter.UpdateCommand != null)) {
  10029. this.Adapter.UpdateCommand.Connection = value;
  10030. }
  10031. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10032. if ((this.CommandCollection[i] != null)) {
  10033. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  10034. }
  10035. }
  10036. }
  10037. }
  10038. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10039. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10040. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  10041. get {
  10042. return this._transaction;
  10043. }
  10044. set {
  10045. this._transaction = value;
  10046. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10047. this.CommandCollection[i].Transaction = this._transaction;
  10048. }
  10049. if (((this.Adapter != null)
  10050. && (this.Adapter.DeleteCommand != null))) {
  10051. this.Adapter.DeleteCommand.Transaction = this._transaction;
  10052. }
  10053. if (((this.Adapter != null)
  10054. && (this.Adapter.InsertCommand != null))) {
  10055. this.Adapter.InsertCommand.Transaction = this._transaction;
  10056. }
  10057. if (((this.Adapter != null)
  10058. && (this.Adapter.UpdateCommand != null))) {
  10059. this.Adapter.UpdateCommand.Transaction = this._transaction;
  10060. }
  10061. }
  10062. }
  10063. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10064. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10065. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  10066. get {
  10067. if ((this._commandCollection == null)) {
  10068. this.InitCommandCollection();
  10069. }
  10070. return this._commandCollection;
  10071. }
  10072. }
  10073. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10074. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10075. public bool ClearBeforeFill {
  10076. get {
  10077. return this._clearBeforeFill;
  10078. }
  10079. set {
  10080. this._clearBeforeFill = value;
  10081. }
  10082. }
  10083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10085. private void InitAdapter() {
  10086. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  10087. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  10088. tableMapping.SourceTable = "Table";
  10089. tableMapping.DataSetTable = "TagOfClient";
  10090. tableMapping.ColumnMappings.Add("ClientID", "ClientID");
  10091. tableMapping.ColumnMappings.Add("TagID", "TagID");
  10092. this._adapter.TableMappings.Add(tableMapping);
  10093. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  10094. this._adapter.DeleteCommand.Connection = this.Connection;
  10095. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[TagOfClient] WHERE (([ClientID] = @Original_ClientID) AND ([Ta" +
  10096. "gID] = @Original_TagID))";
  10097. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  10098. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ClientID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10099. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TagID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TagID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10100. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  10101. this._adapter.InsertCommand.Connection = this.Connection;
  10102. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[TagOfClient] ([ClientID], [TagID]) VALUES (@ClientID, @TagID);" +
  10103. "\r\nSELECT ClientID, TagID FROM TagOfClient WHERE (ClientID = @ClientID) AND (TagI" +
  10104. "D = @TagID)";
  10105. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  10106. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ClientID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10107. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TagID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TagID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10108. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  10109. this._adapter.UpdateCommand.Connection = this.Connection;
  10110. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[TagOfClient] SET [ClientID] = @ClientID, [TagID] = @TagID WHERE (([" +
  10111. "ClientID] = @Original_ClientID) AND ([TagID] = @Original_TagID));\r\nSELECT Client" +
  10112. "ID, TagID FROM TagOfClient WHERE (ClientID = @ClientID) AND (TagID = @TagID)";
  10113. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  10114. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ClientID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10115. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TagID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TagID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10116. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ClientID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10117. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TagID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TagID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10118. }
  10119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10120. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10121. private void InitConnection() {
  10122. this._connection = new global::System.Data.SqlClient.SqlConnection();
  10123. this._connection.ConnectionString = global::RozenbergBrovki.Properties.Settings.Default.RozenbergBrConnectionString;
  10124. }
  10125. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10126. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10127. private void InitCommandCollection() {
  10128. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  10129. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  10130. this._commandCollection[0].Connection = this.Connection;
  10131. this._commandCollection[0].CommandText = "SELECT ClientID, TagID FROM dbo.TagOfClient";
  10132. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  10133. }
  10134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10135. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10136. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10137. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  10138. public virtual int Fill(RozenbergBrDataSet.TagOfClientDataTable dataTable) {
  10139. this.Adapter.SelectCommand = this.CommandCollection[0];
  10140. if ((this.ClearBeforeFill == true)) {
  10141. dataTable.Clear();
  10142. }
  10143. int returnValue = this.Adapter.Fill(dataTable);
  10144. return returnValue;
  10145. }
  10146. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10147. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10148. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10149. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  10150. public virtual RozenbergBrDataSet.TagOfClientDataTable GetData() {
  10151. this.Adapter.SelectCommand = this.CommandCollection[0];
  10152. RozenbergBrDataSet.TagOfClientDataTable dataTable = new RozenbergBrDataSet.TagOfClientDataTable();
  10153. this.Adapter.Fill(dataTable);
  10154. return dataTable;
  10155. }
  10156. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10157. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10158. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10159. public virtual int Update(RozenbergBrDataSet.TagOfClientDataTable dataTable) {
  10160. return this.Adapter.Update(dataTable);
  10161. }
  10162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10163. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10164. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10165. public virtual int Update(RozenbergBrDataSet dataSet) {
  10166. return this.Adapter.Update(dataSet, "TagOfClient");
  10167. }
  10168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10169. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10170. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10171. public virtual int Update(global::System.Data.DataRow dataRow) {
  10172. return this.Adapter.Update(new global::System.Data.DataRow[] {
  10173. dataRow});
  10174. }
  10175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10176. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10177. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10178. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  10179. return this.Adapter.Update(dataRows);
  10180. }
  10181. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10182. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10183. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10184. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  10185. public virtual int Delete(int Original_ClientID, int Original_TagID) {
  10186. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ClientID));
  10187. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_TagID));
  10188. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  10189. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10190. != global::System.Data.ConnectionState.Open)) {
  10191. this.Adapter.DeleteCommand.Connection.Open();
  10192. }
  10193. try {
  10194. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  10195. return returnValue;
  10196. }
  10197. finally {
  10198. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10199. this.Adapter.DeleteCommand.Connection.Close();
  10200. }
  10201. }
  10202. }
  10203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10204. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10205. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10206. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  10207. public virtual int Insert(int ClientID, int TagID) {
  10208. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ClientID));
  10209. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(TagID));
  10210. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  10211. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10212. != global::System.Data.ConnectionState.Open)) {
  10213. this.Adapter.InsertCommand.Connection.Open();
  10214. }
  10215. try {
  10216. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  10217. return returnValue;
  10218. }
  10219. finally {
  10220. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10221. this.Adapter.InsertCommand.Connection.Close();
  10222. }
  10223. }
  10224. }
  10225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10227. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10228. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10229. public virtual int Update(int ClientID, int TagID, int Original_ClientID, int Original_TagID) {
  10230. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ClientID));
  10231. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(TagID));
  10232. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ClientID));
  10233. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_TagID));
  10234. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  10235. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10236. != global::System.Data.ConnectionState.Open)) {
  10237. this.Adapter.UpdateCommand.Connection.Open();
  10238. }
  10239. try {
  10240. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  10241. return returnValue;
  10242. }
  10243. finally {
  10244. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10245. this.Adapter.UpdateCommand.Connection.Close();
  10246. }
  10247. }
  10248. }
  10249. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10250. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10251. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10252. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10253. public virtual int Update(int Original_ClientID, int Original_TagID) {
  10254. return this.Update(Original_ClientID, Original_TagID, Original_ClientID, Original_TagID);
  10255. }
  10256. }
  10257. /// <summary>
  10258. ///Represents the connection and commands used to retrieve and save data.
  10259. ///</summary>
  10260. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10261. [global::System.ComponentModel.ToolboxItem(true)]
  10262. [global::System.ComponentModel.DataObjectAttribute(true)]
  10263. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  10264. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10265. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10266. public partial class Кли33ентTableAdapter : global::System.ComponentModel.Component {
  10267. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  10268. private global::System.Data.SqlClient.SqlConnection _connection;
  10269. private global::System.Data.SqlClient.SqlTransaction _transaction;
  10270. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  10271. private bool _clearBeforeFill;
  10272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10274. public Кли33ентTableAdapter() {
  10275. this.ClearBeforeFill = true;
  10276. }
  10277. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10278. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10279. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  10280. get {
  10281. if ((this._adapter == null)) {
  10282. this.InitAdapter();
  10283. }
  10284. return this._adapter;
  10285. }
  10286. }
  10287. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10288. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10289. internal global::System.Data.SqlClient.SqlConnection Connection {
  10290. get {
  10291. if ((this._connection == null)) {
  10292. this.InitConnection();
  10293. }
  10294. return this._connection;
  10295. }
  10296. set {
  10297. this._connection = value;
  10298. if ((this.Adapter.InsertCommand != null)) {
  10299. this.Adapter.InsertCommand.Connection = value;
  10300. }
  10301. if ((this.Adapter.DeleteCommand != null)) {
  10302. this.Adapter.DeleteCommand.Connection = value;
  10303. }
  10304. if ((this.Adapter.UpdateCommand != null)) {
  10305. this.Adapter.UpdateCommand.Connection = value;
  10306. }
  10307. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10308. if ((this.CommandCollection[i] != null)) {
  10309. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  10310. }
  10311. }
  10312. }
  10313. }
  10314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10315. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10316. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  10317. get {
  10318. return this._transaction;
  10319. }
  10320. set {
  10321. this._transaction = value;
  10322. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10323. this.CommandCollection[i].Transaction = this._transaction;
  10324. }
  10325. if (((this.Adapter != null)
  10326. && (this.Adapter.DeleteCommand != null))) {
  10327. this.Adapter.DeleteCommand.Transaction = this._transaction;
  10328. }
  10329. if (((this.Adapter != null)
  10330. && (this.Adapter.InsertCommand != null))) {
  10331. this.Adapter.InsertCommand.Transaction = this._transaction;
  10332. }
  10333. if (((this.Adapter != null)
  10334. && (this.Adapter.UpdateCommand != null))) {
  10335. this.Adapter.UpdateCommand.Transaction = this._transaction;
  10336. }
  10337. }
  10338. }
  10339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10341. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  10342. get {
  10343. if ((this._commandCollection == null)) {
  10344. this.InitCommandCollection();
  10345. }
  10346. return this._commandCollection;
  10347. }
  10348. }
  10349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10351. public bool ClearBeforeFill {
  10352. get {
  10353. return this._clearBeforeFill;
  10354. }
  10355. set {
  10356. this._clearBeforeFill = value;
  10357. }
  10358. }
  10359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10360. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10361. private void InitAdapter() {
  10362. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  10363. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  10364. tableMapping.SourceTable = "Table";
  10365. tableMapping.DataSetTable = "Кли33ент";
  10366. tableMapping.ColumnMappings.Add("id", "id");
  10367. tableMapping.ColumnMappings.Add("Фамилия", "Фамилия");
  10368. tableMapping.ColumnMappings.Add("Имя", "Имя");
  10369. tableMapping.ColumnMappings.Add("Отчество", "Отчество");
  10370. tableMapping.ColumnMappings.Add("Пол", "Пол");
  10371. tableMapping.ColumnMappings.Add("Телефон", "Телефон");
  10372. tableMapping.ColumnMappings.Add("Дата_рождения", "Дата_рождения");
  10373. tableMapping.ColumnMappings.Add("Email", "Email");
  10374. tableMapping.ColumnMappings.Add("Дата_регистрации", "Дата_регистрации");
  10375. this._adapter.TableMappings.Add(tableMapping);
  10376. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  10377. this._adapter.DeleteCommand.Connection = this.Connection;
  10378. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Кли33ент] WHERE (([id] = @Original_id) AND ([Фамилия] = @Original_Фамилия) AND ([Имя] = @Original_Имя) AND ([Отчество] = @Original_Отчество) AND ([Пол] = @Original_Пол) AND ([Телефон] = @Original_Телефон) AND ([Дата_рождения] = @Original_Дата_рождения) AND ([Email] = @Original_Email) AND ([Дата_регистрации] = @Original_Дата_регистрации))";
  10379. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  10380. 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, "", "", ""));
  10381. 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, "", "", ""));
  10382. 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, "", "", ""));
  10383. 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, "", "", ""));
  10384. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Пол", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пол", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10385. 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, "", "", ""));
  10386. 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, "", "", ""));
  10387. 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, "", "", ""));
  10388. 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, "", "", ""));
  10389. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  10390. this._adapter.InsertCommand.Connection = this.Connection;
  10391. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Кли33ент] ([id], [Фамилия], [Имя], [Отчество], [Пол], [Телефон], [Дата_рождения], [Email], [Дата_регистрации]) VALUES (@id, @Фамилия, @Имя, @Отчество, @Пол, @Телефон, @Дата_рождения, @Email, @Дата_регистрации);
  10392. SELECT id, Фамилия, Имя, Отчество, Пол, Телефон, Дата_рождения, Email, Дата_регистрации FROM Кли33ент WHERE (id = @id)";
  10393. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  10394. 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, "", "", ""));
  10395. 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, "", "", ""));
  10396. 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, "", "", ""));
  10397. 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, "", "", ""));
  10398. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Пол", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пол", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10399. 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, "", "", ""));
  10400. 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, "", "", ""));
  10401. 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, "", "", ""));
  10402. 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, "", "", ""));
  10403. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  10404. this._adapter.UpdateCommand.Connection = this.Connection;
  10405. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Кли33ент] 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_Дата_регистрации));
  10406. SELECT id, Фамилия, Имя, Отчество, Пол, Телефон, Дата_рождения, Email, Дата_регистрации FROM Кли33ент WHERE (id = @id)";
  10407. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  10408. 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, "", "", ""));
  10409. 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, "", "", ""));
  10410. 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, "", "", ""));
  10411. 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, "", "", ""));
  10412. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Пол", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пол", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10413. 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, "", "", ""));
  10414. 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, "", "", ""));
  10415. 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, "", "", ""));
  10416. 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, "", "", ""));
  10417. 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, "", "", ""));
  10418. 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, "", "", ""));
  10419. 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, "", "", ""));
  10420. 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, "", "", ""));
  10421. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Пол", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пол", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10422. 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, "", "", ""));
  10423. 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, "", "", ""));
  10424. 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, "", "", ""));
  10425. 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, "", "", ""));
  10426. }
  10427. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10428. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10429. private void InitConnection() {
  10430. this._connection = new global::System.Data.SqlClient.SqlConnection();
  10431. this._connection.ConnectionString = global::RozenbergBrovki.Properties.Settings.Default.RozenbergBrConnectionString;
  10432. }
  10433. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10434. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10435. private void InitCommandCollection() {
  10436. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  10437. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  10438. this._commandCollection[0].Connection = this.Connection;
  10439. this._commandCollection[0].CommandText = "SELECT id, Фамилия, Имя, Отчество, Пол, Телефон, Дата_рождения, Email, Дата_регис" +
  10440. "трации FROM dbo.Кли33ент";
  10441. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  10442. }
  10443. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10444. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10445. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10446. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  10447. public virtual int Fill(RozenbergBrDataSet.Кли33ентDataTable dataTable) {
  10448. this.Adapter.SelectCommand = this.CommandCollection[0];
  10449. if ((this.ClearBeforeFill == true)) {
  10450. dataTable.Clear();
  10451. }
  10452. int returnValue = this.Adapter.Fill(dataTable);
  10453. return returnValue;
  10454. }
  10455. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10456. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10457. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10458. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  10459. public virtual RozenbergBrDataSet.Кли33ентDataTable GetData() {
  10460. this.Adapter.SelectCommand = this.CommandCollection[0];
  10461. RozenbergBrDataSet.Кли33ентDataTable dataTable = new RozenbergBrDataSet.Кли33ентDataTable();
  10462. this.Adapter.Fill(dataTable);
  10463. return dataTable;
  10464. }
  10465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10466. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10467. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10468. public virtual int Update(RozenbergBrDataSet.Кли33ентDataTable dataTable) {
  10469. return this.Adapter.Update(dataTable);
  10470. }
  10471. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10473. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10474. public virtual int Update(RozenbergBrDataSet dataSet) {
  10475. return this.Adapter.Update(dataSet, "Кли33ент");
  10476. }
  10477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10479. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10480. public virtual int Update(global::System.Data.DataRow dataRow) {
  10481. return this.Adapter.Update(new global::System.Data.DataRow[] {
  10482. dataRow});
  10483. }
  10484. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10485. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10486. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10487. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  10488. return this.Adapter.Update(dataRows);
  10489. }
  10490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10492. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10493. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  10494. public virtual int Delete(int Original_id, string Original_Фамилия, string Original_Имя, string Original_Отчество, int Original_Пол, string Original_Телефон, System.DateTime Original_Дата_рождения, string Original_Email, System.DateTime Original_Дата_регистрации) {
  10495. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id));
  10496. if ((Original_Фамилия == null)) {
  10497. throw new global::System.ArgumentNullException("Original_Фамилия");
  10498. }
  10499. else {
  10500. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Фамилия));
  10501. }
  10502. if ((Original_Имя == null)) {
  10503. throw new global::System.ArgumentNullException("Original_Имя");
  10504. }
  10505. else {
  10506. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Имя));
  10507. }
  10508. if ((Original_Отчество == null)) {
  10509. throw new global::System.ArgumentNullException("Original_Отчество");
  10510. }
  10511. else {
  10512. this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_Отчество));
  10513. }
  10514. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_Пол));
  10515. if ((Original_Телефон == null)) {
  10516. throw new global::System.ArgumentNullException("Original_Телефон");
  10517. }
  10518. else {
  10519. this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_Телефон));
  10520. }
  10521. this.Adapter.DeleteCommand.Parameters[6].Value = ((System.DateTime)(Original_Дата_рождения));
  10522. if ((Original_Email == null)) {
  10523. throw new global::System.ArgumentNullException("Original_Email");
  10524. }
  10525. else {
  10526. this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_Email));
  10527. }
  10528. this.Adapter.DeleteCommand.Parameters[8].Value = ((System.DateTime)(Original_Дата_регистрации));
  10529. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  10530. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10531. != global::System.Data.ConnectionState.Open)) {
  10532. this.Adapter.DeleteCommand.Connection.Open();
  10533. }
  10534. try {
  10535. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  10536. return returnValue;
  10537. }
  10538. finally {
  10539. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10540. this.Adapter.DeleteCommand.Connection.Close();
  10541. }
  10542. }
  10543. }
  10544. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10545. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10546. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10547. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  10548. public virtual int Insert(int id, string Фамилия, string Имя, string Отчество, int Пол, string Телефон, System.DateTime Дата_рождения, string Email, System.DateTime Дата_регистрации) {
  10549. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(id));
  10550. if ((Фамилия == null)) {
  10551. throw new global::System.ArgumentNullException("Фамилия");
  10552. }
  10553. else {
  10554. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Фамилия));
  10555. }
  10556. if ((Имя == null)) {
  10557. throw new global::System.ArgumentNullException("Имя");
  10558. }
  10559. else {
  10560. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Имя));
  10561. }
  10562. if ((Отчество == null)) {
  10563. throw new global::System.ArgumentNullException("Отчество");
  10564. }
  10565. else {
  10566. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Отчество));
  10567. }
  10568. this.Adapter.InsertCommand.Parameters[4].Value = ((int)(Пол));
  10569. if ((Телефон == null)) {
  10570. throw new global::System.ArgumentNullException("Телефон");
  10571. }
  10572. else {
  10573. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Телефон));
  10574. }
  10575. this.Adapter.InsertCommand.Parameters[6].Value = ((System.DateTime)(Дата_рождения));
  10576. if ((Email == null)) {
  10577. throw new global::System.ArgumentNullException("Email");
  10578. }
  10579. else {
  10580. this.Adapter.InsertCommand.Parameters[7].Value = ((string)(Email));
  10581. }
  10582. this.Adapter.InsertCommand.Parameters[8].Value = ((System.DateTime)(Дата_регистрации));
  10583. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  10584. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10585. != global::System.Data.ConnectionState.Open)) {
  10586. this.Adapter.InsertCommand.Connection.Open();
  10587. }
  10588. try {
  10589. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  10590. return returnValue;
  10591. }
  10592. finally {
  10593. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10594. this.Adapter.InsertCommand.Connection.Close();
  10595. }
  10596. }
  10597. }
  10598. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10599. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10600. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10601. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10602. public virtual int Update(
  10603. int id,
  10604. string Фамилия,
  10605. string Имя,
  10606. string Отчество,
  10607. int Пол,
  10608. string Телефон,
  10609. System.DateTime Дата_рождения,
  10610. string Email,
  10611. System.DateTime Дата_регистрации,
  10612. int Original_id,
  10613. string Original_Фамилия,
  10614. string Original_Имя,
  10615. string Original_Отчество,
  10616. int Original_Пол,
  10617. string Original_Телефон,
  10618. System.DateTime Original_Дата_рождения,
  10619. string Original_Email,
  10620. System.DateTime Original_Дата_регистрации) {
  10621. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(id));
  10622. if ((Фамилия == null)) {
  10623. throw new global::System.ArgumentNullException("Фамилия");
  10624. }
  10625. else {
  10626. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Фамилия));
  10627. }
  10628. if ((Имя == null)) {
  10629. throw new global::System.ArgumentNullException("Имя");
  10630. }
  10631. else {
  10632. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Имя));
  10633. }
  10634. if ((Отчество == null)) {
  10635. throw new global::System.ArgumentNullException("Отчество");
  10636. }
  10637. else {
  10638. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Отчество));
  10639. }
  10640. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Пол));
  10641. if ((Телефон == null)) {
  10642. throw new global::System.ArgumentNullException("Телефон");
  10643. }
  10644. else {
  10645. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Телефон));
  10646. }
  10647. this.Adapter.UpdateCommand.Parameters[6].Value = ((System.DateTime)(Дата_рождения));
  10648. if ((Email == null)) {
  10649. throw new global::System.ArgumentNullException("Email");
  10650. }
  10651. else {
  10652. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Email));
  10653. }
  10654. this.Adapter.UpdateCommand.Parameters[8].Value = ((System.DateTime)(Дата_регистрации));
  10655. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_id));
  10656. if ((Original_Фамилия == null)) {
  10657. throw new global::System.ArgumentNullException("Original_Фамилия");
  10658. }
  10659. else {
  10660. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_Фамилия));
  10661. }
  10662. if ((Original_Имя == null)) {
  10663. throw new global::System.ArgumentNullException("Original_Имя");
  10664. }
  10665. else {
  10666. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_Имя));
  10667. }
  10668. if ((Original_Отчество == null)) {
  10669. throw new global::System.ArgumentNullException("Original_Отчество");
  10670. }
  10671. else {
  10672. this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_Отчество));
  10673. }
  10674. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Original_Пол));
  10675. if ((Original_Телефон == null)) {
  10676. throw new global::System.ArgumentNullException("Original_Телефон");
  10677. }
  10678. else {
  10679. this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_Телефон));
  10680. }
  10681. this.Adapter.UpdateCommand.Parameters[15].Value = ((System.DateTime)(Original_Дата_рождения));
  10682. if ((Original_Email == null)) {
  10683. throw new global::System.ArgumentNullException("Original_Email");
  10684. }
  10685. else {
  10686. this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_Email));
  10687. }
  10688. this.Adapter.UpdateCommand.Parameters[17].Value = ((System.DateTime)(Original_Дата_регистрации));
  10689. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  10690. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10691. != global::System.Data.ConnectionState.Open)) {
  10692. this.Adapter.UpdateCommand.Connection.Open();
  10693. }
  10694. try {
  10695. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  10696. return returnValue;
  10697. }
  10698. finally {
  10699. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10700. this.Adapter.UpdateCommand.Connection.Close();
  10701. }
  10702. }
  10703. }
  10704. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10705. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10706. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10707. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10708. public virtual int Update(
  10709. string Фамилия,
  10710. string Имя,
  10711. string Отчество,
  10712. int Пол,
  10713. string Телефон,
  10714. System.DateTime Дата_рождения,
  10715. string Email,
  10716. System.DateTime Дата_регистрации,
  10717. int Original_id,
  10718. string Original_Фамилия,
  10719. string Original_Имя,
  10720. string Original_Отчество,
  10721. int Original_Пол,
  10722. string Original_Телефон,
  10723. System.DateTime Original_Дата_рождения,
  10724. string Original_Email,
  10725. System.DateTime Original_Дата_регистрации) {
  10726. return this.Update(Original_id, Фамилия, Имя, Отчество, Пол, Телефон, Дата_рождения, Email, Дата_регистрации, Original_id, Original_Фамилия, Original_Имя, Original_Отчество, Original_Пол, Original_Телефон, Original_Дата_рождения, Original_Email, Original_Дата_регистрации);
  10727. }
  10728. }
  10729. /// <summary>
  10730. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  10731. ///</summary>
  10732. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10733. [global::System.ComponentModel.ToolboxItem(true)]
  10734. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  10735. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10736. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  10737. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  10738. private UpdateOrderOption _updateOrder;
  10739. private AttachedProductTableAdapter _attachedProductTableAdapter;
  10740. private ClientservicTableAdapter _clientservicTableAdapter;
  10741. private DocumentByServiceTableAdapter _documentByServiceTableAdapter;
  10742. private GenderTableAdapter _genderTableAdapter;
  10743. private LoginpassTableAdapter _loginpassTableAdapter;
  10744. private ManufacturerTableAdapter _manufacturerTableAdapter;
  10745. private ProductTableAdapter _productTableAdapter;
  10746. private ProductPhotoTableAdapter _productPhotoTableAdapter;
  10747. private ProductSaleTableAdapter _productSaleTableAdapter;
  10748. private ServiceTableAdapter _serviceTableAdapter;
  10749. private ServicePhotoTableAdapter _servicePhotoTableAdapter;
  10750. private TagTableAdapter _tagTableAdapter;
  10751. private TagOfClientTableAdapter _tagOfClientTableAdapter;
  10752. private Кли33ентTableAdapter _кли33ентTableAdapter;
  10753. private bool _backupDataSetBeforeUpdate;
  10754. private global::System.Data.IDbConnection _connection;
  10755. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10756. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10757. public UpdateOrderOption UpdateOrder {
  10758. get {
  10759. return this._updateOrder;
  10760. }
  10761. set {
  10762. this._updateOrder = value;
  10763. }
  10764. }
  10765. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10766. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10767. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10768. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10769. "a", "System.Drawing.Design.UITypeEditor")]
  10770. public AttachedProductTableAdapter AttachedProductTableAdapter {
  10771. get {
  10772. return this._attachedProductTableAdapter;
  10773. }
  10774. set {
  10775. this._attachedProductTableAdapter = value;
  10776. }
  10777. }
  10778. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10779. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10780. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10781. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10782. "a", "System.Drawing.Design.UITypeEditor")]
  10783. public ClientservicTableAdapter ClientservicTableAdapter {
  10784. get {
  10785. return this._clientservicTableAdapter;
  10786. }
  10787. set {
  10788. this._clientservicTableAdapter = value;
  10789. }
  10790. }
  10791. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10792. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10793. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10794. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10795. "a", "System.Drawing.Design.UITypeEditor")]
  10796. public DocumentByServiceTableAdapter DocumentByServiceTableAdapter {
  10797. get {
  10798. return this._documentByServiceTableAdapter;
  10799. }
  10800. set {
  10801. this._documentByServiceTableAdapter = value;
  10802. }
  10803. }
  10804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10806. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10807. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10808. "a", "System.Drawing.Design.UITypeEditor")]
  10809. public GenderTableAdapter GenderTableAdapter {
  10810. get {
  10811. return this._genderTableAdapter;
  10812. }
  10813. set {
  10814. this._genderTableAdapter = value;
  10815. }
  10816. }
  10817. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10818. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10819. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10820. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10821. "a", "System.Drawing.Design.UITypeEditor")]
  10822. public LoginpassTableAdapter LoginpassTableAdapter {
  10823. get {
  10824. return this._loginpassTableAdapter;
  10825. }
  10826. set {
  10827. this._loginpassTableAdapter = value;
  10828. }
  10829. }
  10830. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10831. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10832. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10833. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10834. "a", "System.Drawing.Design.UITypeEditor")]
  10835. public ManufacturerTableAdapter ManufacturerTableAdapter {
  10836. get {
  10837. return this._manufacturerTableAdapter;
  10838. }
  10839. set {
  10840. this._manufacturerTableAdapter = value;
  10841. }
  10842. }
  10843. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10844. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10845. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10846. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10847. "a", "System.Drawing.Design.UITypeEditor")]
  10848. public ProductTableAdapter ProductTableAdapter {
  10849. get {
  10850. return this._productTableAdapter;
  10851. }
  10852. set {
  10853. this._productTableAdapter = value;
  10854. }
  10855. }
  10856. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10857. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10858. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10859. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10860. "a", "System.Drawing.Design.UITypeEditor")]
  10861. public ProductPhotoTableAdapter ProductPhotoTableAdapter {
  10862. get {
  10863. return this._productPhotoTableAdapter;
  10864. }
  10865. set {
  10866. this._productPhotoTableAdapter = value;
  10867. }
  10868. }
  10869. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10870. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10871. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10872. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10873. "a", "System.Drawing.Design.UITypeEditor")]
  10874. public ProductSaleTableAdapter ProductSaleTableAdapter {
  10875. get {
  10876. return this._productSaleTableAdapter;
  10877. }
  10878. set {
  10879. this._productSaleTableAdapter = value;
  10880. }
  10881. }
  10882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10883. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10884. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10885. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10886. "a", "System.Drawing.Design.UITypeEditor")]
  10887. public ServiceTableAdapter ServiceTableAdapter {
  10888. get {
  10889. return this._serviceTableAdapter;
  10890. }
  10891. set {
  10892. this._serviceTableAdapter = value;
  10893. }
  10894. }
  10895. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10896. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10897. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10898. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10899. "a", "System.Drawing.Design.UITypeEditor")]
  10900. public ServicePhotoTableAdapter ServicePhotoTableAdapter {
  10901. get {
  10902. return this._servicePhotoTableAdapter;
  10903. }
  10904. set {
  10905. this._servicePhotoTableAdapter = value;
  10906. }
  10907. }
  10908. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10909. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10910. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10911. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10912. "a", "System.Drawing.Design.UITypeEditor")]
  10913. public TagTableAdapter TagTableAdapter {
  10914. get {
  10915. return this._tagTableAdapter;
  10916. }
  10917. set {
  10918. this._tagTableAdapter = value;
  10919. }
  10920. }
  10921. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10922. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10923. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10924. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10925. "a", "System.Drawing.Design.UITypeEditor")]
  10926. public TagOfClientTableAdapter TagOfClientTableAdapter {
  10927. get {
  10928. return this._tagOfClientTableAdapter;
  10929. }
  10930. set {
  10931. this._tagOfClientTableAdapter = value;
  10932. }
  10933. }
  10934. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10935. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10936. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10937. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10938. "a", "System.Drawing.Design.UITypeEditor")]
  10939. public Кли33ентTableAdapter Кли33ентTableAdapter {
  10940. get {
  10941. return this._кли33ентTableAdapter;
  10942. }
  10943. set {
  10944. this._кли33ентTableAdapter = value;
  10945. }
  10946. }
  10947. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10948. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10949. public bool BackupDataSetBeforeUpdate {
  10950. get {
  10951. return this._backupDataSetBeforeUpdate;
  10952. }
  10953. set {
  10954. this._backupDataSetBeforeUpdate = value;
  10955. }
  10956. }
  10957. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10958. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10959. [global::System.ComponentModel.Browsable(false)]
  10960. public global::System.Data.IDbConnection Connection {
  10961. get {
  10962. if ((this._connection != null)) {
  10963. return this._connection;
  10964. }
  10965. if (((this._attachedProductTableAdapter != null)
  10966. && (this._attachedProductTableAdapter.Connection != null))) {
  10967. return this._attachedProductTableAdapter.Connection;
  10968. }
  10969. if (((this._clientservicTableAdapter != null)
  10970. && (this._clientservicTableAdapter.Connection != null))) {
  10971. return this._clientservicTableAdapter.Connection;
  10972. }
  10973. if (((this._documentByServiceTableAdapter != null)
  10974. && (this._documentByServiceTableAdapter.Connection != null))) {
  10975. return this._documentByServiceTableAdapter.Connection;
  10976. }
  10977. if (((this._genderTableAdapter != null)
  10978. && (this._genderTableAdapter.Connection != null))) {
  10979. return this._genderTableAdapter.Connection;
  10980. }
  10981. if (((this._loginpassTableAdapter != null)
  10982. && (this._loginpassTableAdapter.Connection != null))) {
  10983. return this._loginpassTableAdapter.Connection;
  10984. }
  10985. if (((this._manufacturerTableAdapter != null)
  10986. && (this._manufacturerTableAdapter.Connection != null))) {
  10987. return this._manufacturerTableAdapter.Connection;
  10988. }
  10989. if (((this._productTableAdapter != null)
  10990. && (this._productTableAdapter.Connection != null))) {
  10991. return this._productTableAdapter.Connection;
  10992. }
  10993. if (((this._productPhotoTableAdapter != null)
  10994. && (this._productPhotoTableAdapter.Connection != null))) {
  10995. return this._productPhotoTableAdapter.Connection;
  10996. }
  10997. if (((this._productSaleTableAdapter != null)
  10998. && (this._productSaleTableAdapter.Connection != null))) {
  10999. return this._productSaleTableAdapter.Connection;
  11000. }
  11001. if (((this._serviceTableAdapter != null)
  11002. && (this._serviceTableAdapter.Connection != null))) {
  11003. return this._serviceTableAdapter.Connection;
  11004. }
  11005. if (((this._servicePhotoTableAdapter != null)
  11006. && (this._servicePhotoTableAdapter.Connection != null))) {
  11007. return this._servicePhotoTableAdapter.Connection;
  11008. }
  11009. if (((this._tagTableAdapter != null)
  11010. && (this._tagTableAdapter.Connection != null))) {
  11011. return this._tagTableAdapter.Connection;
  11012. }
  11013. if (((this._tagOfClientTableAdapter != null)
  11014. && (this._tagOfClientTableAdapter.Connection != null))) {
  11015. return this._tagOfClientTableAdapter.Connection;
  11016. }
  11017. if (((this._кли33ентTableAdapter != null)
  11018. && (this._кли33ентTableAdapter.Connection != null))) {
  11019. return this._кли33ентTableAdapter.Connection;
  11020. }
  11021. return null;
  11022. }
  11023. set {
  11024. this._connection = value;
  11025. }
  11026. }
  11027. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11028. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11029. [global::System.ComponentModel.Browsable(false)]
  11030. public int TableAdapterInstanceCount {
  11031. get {
  11032. int count = 0;
  11033. if ((this._attachedProductTableAdapter != null)) {
  11034. count = (count + 1);
  11035. }
  11036. if ((this._clientservicTableAdapter != null)) {
  11037. count = (count + 1);
  11038. }
  11039. if ((this._documentByServiceTableAdapter != null)) {
  11040. count = (count + 1);
  11041. }
  11042. if ((this._genderTableAdapter != null)) {
  11043. count = (count + 1);
  11044. }
  11045. if ((this._loginpassTableAdapter != null)) {
  11046. count = (count + 1);
  11047. }
  11048. if ((this._manufacturerTableAdapter != null)) {
  11049. count = (count + 1);
  11050. }
  11051. if ((this._productTableAdapter != null)) {
  11052. count = (count + 1);
  11053. }
  11054. if ((this._productPhotoTableAdapter != null)) {
  11055. count = (count + 1);
  11056. }
  11057. if ((this._productSaleTableAdapter != null)) {
  11058. count = (count + 1);
  11059. }
  11060. if ((this._serviceTableAdapter != null)) {
  11061. count = (count + 1);
  11062. }
  11063. if ((this._servicePhotoTableAdapter != null)) {
  11064. count = (count + 1);
  11065. }
  11066. if ((this._tagTableAdapter != null)) {
  11067. count = (count + 1);
  11068. }
  11069. if ((this._tagOfClientTableAdapter != null)) {
  11070. count = (count + 1);
  11071. }
  11072. if ((this._кли33ентTableAdapter != null)) {
  11073. count = (count + 1);
  11074. }
  11075. return count;
  11076. }
  11077. }
  11078. /// <summary>
  11079. ///Update rows in top-down order.
  11080. ///</summary>
  11081. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11082. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11083. private int UpdateUpdatedRows(RozenbergBrDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  11084. int result = 0;
  11085. if ((this._genderTableAdapter != null)) {
  11086. global::System.Data.DataRow[] updatedRows = dataSet.Gender.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  11087. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  11088. if (((updatedRows != null)
  11089. && (0 < updatedRows.Length))) {
  11090. result = (result + this._genderTableAdapter.Update(updatedRows));
  11091. allChangedRows.AddRange(updatedRows);
  11092. }
  11093. }
  11094. if ((this._manufacturerTableAdapter != null)) {
  11095. global::System.Data.DataRow[] updatedRows = dataSet.Manufacturer.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  11096. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  11097. if (((updatedRows != null)
  11098. && (0 < updatedRows.Length))) {
  11099. result = (result + this._manufacturerTableAdapter.Update(updatedRows));
  11100. allChangedRows.AddRange(updatedRows);
  11101. }
  11102. }
  11103. if ((this._productTableAdapter != null)) {
  11104. global::System.Data.DataRow[] updatedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  11105. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  11106. if (((updatedRows != null)
  11107. && (0 < updatedRows.Length))) {
  11108. result = (result + this._productTableAdapter.Update(updatedRows));
  11109. allChangedRows.AddRange(updatedRows);
  11110. }
  11111. }
  11112. if ((this._serviceTableAdapter != null)) {
  11113. global::System.Data.DataRow[] updatedRows = dataSet.Service.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  11114. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  11115. if (((updatedRows != null)
  11116. && (0 < updatedRows.Length))) {
  11117. result = (result + this._serviceTableAdapter.Update(updatedRows));
  11118. allChangedRows.AddRange(updatedRows);
  11119. }
  11120. }
  11121. if ((this._tagTableAdapter != null)) {
  11122. global::System.Data.DataRow[] updatedRows = dataSet.Tag.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  11123. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  11124. if (((updatedRows != null)
  11125. && (0 < updatedRows.Length))) {
  11126. result = (result + this._tagTableAdapter.Update(updatedRows));
  11127. allChangedRows.AddRange(updatedRows);
  11128. }
  11129. }
  11130. if ((this._кли33ентTableAdapter != null)) {
  11131. global::System.Data.DataRow[] updatedRows = dataSet.Кли33ент.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  11132. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  11133. if (((updatedRows != null)
  11134. && (0 < updatedRows.Length))) {
  11135. result = (result + this._кли33ентTableAdapter.Update(updatedRows));
  11136. allChangedRows.AddRange(updatedRows);
  11137. }
  11138. }
  11139. if ((this._attachedProductTableAdapter != null)) {
  11140. global::System.Data.DataRow[] updatedRows = dataSet.AttachedProduct.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  11141. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  11142. if (((updatedRows != null)
  11143. && (0 < updatedRows.Length))) {
  11144. result = (result + this._attachedProductTableAdapter.Update(updatedRows));
  11145. allChangedRows.AddRange(updatedRows);
  11146. }
  11147. }
  11148. if ((this._clientservicTableAdapter != null)) {
  11149. global::System.Data.DataRow[] updatedRows = dataSet.Clientservic.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  11150. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  11151. if (((updatedRows != null)
  11152. && (0 < updatedRows.Length))) {
  11153. result = (result + this._clientservicTableAdapter.Update(updatedRows));
  11154. allChangedRows.AddRange(updatedRows);
  11155. }
  11156. }
  11157. if ((this._documentByServiceTableAdapter != null)) {
  11158. global::System.Data.DataRow[] updatedRows = dataSet.DocumentByService.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  11159. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  11160. if (((updatedRows != null)
  11161. && (0 < updatedRows.Length))) {
  11162. result = (result + this._documentByServiceTableAdapter.Update(updatedRows));
  11163. allChangedRows.AddRange(updatedRows);
  11164. }
  11165. }
  11166. if ((this._loginpassTableAdapter != null)) {
  11167. global::System.Data.DataRow[] updatedRows = dataSet.Loginpass.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  11168. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  11169. if (((updatedRows != null)
  11170. && (0 < updatedRows.Length))) {
  11171. result = (result + this._loginpassTableAdapter.Update(updatedRows));
  11172. allChangedRows.AddRange(updatedRows);
  11173. }
  11174. }
  11175. if ((this._productPhotoTableAdapter != null)) {
  11176. global::System.Data.DataRow[] updatedRows = dataSet.ProductPhoto.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  11177. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  11178. if (((updatedRows != null)
  11179. && (0 < updatedRows.Length))) {
  11180. result = (result + this._productPhotoTableAdapter.Update(updatedRows));
  11181. allChangedRows.AddRange(updatedRows);
  11182. }
  11183. }
  11184. if ((this._productSaleTableAdapter != null)) {
  11185. global::System.Data.DataRow[] updatedRows = dataSet.ProductSale.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  11186. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  11187. if (((updatedRows != null)
  11188. && (0 < updatedRows.Length))) {
  11189. result = (result + this._productSaleTableAdapter.Update(updatedRows));
  11190. allChangedRows.AddRange(updatedRows);
  11191. }
  11192. }
  11193. if ((this._servicePhotoTableAdapter != null)) {
  11194. global::System.Data.DataRow[] updatedRows = dataSet.ServicePhoto.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  11195. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  11196. if (((updatedRows != null)
  11197. && (0 < updatedRows.Length))) {
  11198. result = (result + this._servicePhotoTableAdapter.Update(updatedRows));
  11199. allChangedRows.AddRange(updatedRows);
  11200. }
  11201. }
  11202. if ((this._tagOfClientTableAdapter != null)) {
  11203. global::System.Data.DataRow[] updatedRows = dataSet.TagOfClient.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  11204. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  11205. if (((updatedRows != null)
  11206. && (0 < updatedRows.Length))) {
  11207. result = (result + this._tagOfClientTableAdapter.Update(updatedRows));
  11208. allChangedRows.AddRange(updatedRows);
  11209. }
  11210. }
  11211. return result;
  11212. }
  11213. /// <summary>
  11214. ///Insert rows in top-down order.
  11215. ///</summary>
  11216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11218. private int UpdateInsertedRows(RozenbergBrDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  11219. int result = 0;
  11220. if ((this._genderTableAdapter != null)) {
  11221. global::System.Data.DataRow[] addedRows = dataSet.Gender.Select(null, null, global::System.Data.DataViewRowState.Added);
  11222. if (((addedRows != null)
  11223. && (0 < addedRows.Length))) {
  11224. result = (result + this._genderTableAdapter.Update(addedRows));
  11225. allAddedRows.AddRange(addedRows);
  11226. }
  11227. }
  11228. if ((this._manufacturerTableAdapter != null)) {
  11229. global::System.Data.DataRow[] addedRows = dataSet.Manufacturer.Select(null, null, global::System.Data.DataViewRowState.Added);
  11230. if (((addedRows != null)
  11231. && (0 < addedRows.Length))) {
  11232. result = (result + this._manufacturerTableAdapter.Update(addedRows));
  11233. allAddedRows.AddRange(addedRows);
  11234. }
  11235. }
  11236. if ((this._productTableAdapter != null)) {
  11237. global::System.Data.DataRow[] addedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.Added);
  11238. if (((addedRows != null)
  11239. && (0 < addedRows.Length))) {
  11240. result = (result + this._productTableAdapter.Update(addedRows));
  11241. allAddedRows.AddRange(addedRows);
  11242. }
  11243. }
  11244. if ((this._serviceTableAdapter != null)) {
  11245. global::System.Data.DataRow[] addedRows = dataSet.Service.Select(null, null, global::System.Data.DataViewRowState.Added);
  11246. if (((addedRows != null)
  11247. && (0 < addedRows.Length))) {
  11248. result = (result + this._serviceTableAdapter.Update(addedRows));
  11249. allAddedRows.AddRange(addedRows);
  11250. }
  11251. }
  11252. if ((this._tagTableAdapter != null)) {
  11253. global::System.Data.DataRow[] addedRows = dataSet.Tag.Select(null, null, global::System.Data.DataViewRowState.Added);
  11254. if (((addedRows != null)
  11255. && (0 < addedRows.Length))) {
  11256. result = (result + this._tagTableAdapter.Update(addedRows));
  11257. allAddedRows.AddRange(addedRows);
  11258. }
  11259. }
  11260. if ((this._кли33ентTableAdapter != null)) {
  11261. global::System.Data.DataRow[] addedRows = dataSet.Кли33ент.Select(null, null, global::System.Data.DataViewRowState.Added);
  11262. if (((addedRows != null)
  11263. && (0 < addedRows.Length))) {
  11264. result = (result + this._кли33ентTableAdapter.Update(addedRows));
  11265. allAddedRows.AddRange(addedRows);
  11266. }
  11267. }
  11268. if ((this._attachedProductTableAdapter != null)) {
  11269. global::System.Data.DataRow[] addedRows = dataSet.AttachedProduct.Select(null, null, global::System.Data.DataViewRowState.Added);
  11270. if (((addedRows != null)
  11271. && (0 < addedRows.Length))) {
  11272. result = (result + this._attachedProductTableAdapter.Update(addedRows));
  11273. allAddedRows.AddRange(addedRows);
  11274. }
  11275. }
  11276. if ((this._clientservicTableAdapter != null)) {
  11277. global::System.Data.DataRow[] addedRows = dataSet.Clientservic.Select(null, null, global::System.Data.DataViewRowState.Added);
  11278. if (((addedRows != null)
  11279. && (0 < addedRows.Length))) {
  11280. result = (result + this._clientservicTableAdapter.Update(addedRows));
  11281. allAddedRows.AddRange(addedRows);
  11282. }
  11283. }
  11284. if ((this._documentByServiceTableAdapter != null)) {
  11285. global::System.Data.DataRow[] addedRows = dataSet.DocumentByService.Select(null, null, global::System.Data.DataViewRowState.Added);
  11286. if (((addedRows != null)
  11287. && (0 < addedRows.Length))) {
  11288. result = (result + this._documentByServiceTableAdapter.Update(addedRows));
  11289. allAddedRows.AddRange(addedRows);
  11290. }
  11291. }
  11292. if ((this._loginpassTableAdapter != null)) {
  11293. global::System.Data.DataRow[] addedRows = dataSet.Loginpass.Select(null, null, global::System.Data.DataViewRowState.Added);
  11294. if (((addedRows != null)
  11295. && (0 < addedRows.Length))) {
  11296. result = (result + this._loginpassTableAdapter.Update(addedRows));
  11297. allAddedRows.AddRange(addedRows);
  11298. }
  11299. }
  11300. if ((this._productPhotoTableAdapter != null)) {
  11301. global::System.Data.DataRow[] addedRows = dataSet.ProductPhoto.Select(null, null, global::System.Data.DataViewRowState.Added);
  11302. if (((addedRows != null)
  11303. && (0 < addedRows.Length))) {
  11304. result = (result + this._productPhotoTableAdapter.Update(addedRows));
  11305. allAddedRows.AddRange(addedRows);
  11306. }
  11307. }
  11308. if ((this._productSaleTableAdapter != null)) {
  11309. global::System.Data.DataRow[] addedRows = dataSet.ProductSale.Select(null, null, global::System.Data.DataViewRowState.Added);
  11310. if (((addedRows != null)
  11311. && (0 < addedRows.Length))) {
  11312. result = (result + this._productSaleTableAdapter.Update(addedRows));
  11313. allAddedRows.AddRange(addedRows);
  11314. }
  11315. }
  11316. if ((this._servicePhotoTableAdapter != null)) {
  11317. global::System.Data.DataRow[] addedRows = dataSet.ServicePhoto.Select(null, null, global::System.Data.DataViewRowState.Added);
  11318. if (((addedRows != null)
  11319. && (0 < addedRows.Length))) {
  11320. result = (result + this._servicePhotoTableAdapter.Update(addedRows));
  11321. allAddedRows.AddRange(addedRows);
  11322. }
  11323. }
  11324. if ((this._tagOfClientTableAdapter != null)) {
  11325. global::System.Data.DataRow[] addedRows = dataSet.TagOfClient.Select(null, null, global::System.Data.DataViewRowState.Added);
  11326. if (((addedRows != null)
  11327. && (0 < addedRows.Length))) {
  11328. result = (result + this._tagOfClientTableAdapter.Update(addedRows));
  11329. allAddedRows.AddRange(addedRows);
  11330. }
  11331. }
  11332. return result;
  11333. }
  11334. /// <summary>
  11335. ///Delete rows in bottom-up order.
  11336. ///</summary>
  11337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11339. private int UpdateDeletedRows(RozenbergBrDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  11340. int result = 0;
  11341. if ((this._tagOfClientTableAdapter != null)) {
  11342. global::System.Data.DataRow[] deletedRows = dataSet.TagOfClient.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11343. if (((deletedRows != null)
  11344. && (0 < deletedRows.Length))) {
  11345. result = (result + this._tagOfClientTableAdapter.Update(deletedRows));
  11346. allChangedRows.AddRange(deletedRows);
  11347. }
  11348. }
  11349. if ((this._servicePhotoTableAdapter != null)) {
  11350. global::System.Data.DataRow[] deletedRows = dataSet.ServicePhoto.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11351. if (((deletedRows != null)
  11352. && (0 < deletedRows.Length))) {
  11353. result = (result + this._servicePhotoTableAdapter.Update(deletedRows));
  11354. allChangedRows.AddRange(deletedRows);
  11355. }
  11356. }
  11357. if ((this._productSaleTableAdapter != null)) {
  11358. global::System.Data.DataRow[] deletedRows = dataSet.ProductSale.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11359. if (((deletedRows != null)
  11360. && (0 < deletedRows.Length))) {
  11361. result = (result + this._productSaleTableAdapter.Update(deletedRows));
  11362. allChangedRows.AddRange(deletedRows);
  11363. }
  11364. }
  11365. if ((this._productPhotoTableAdapter != null)) {
  11366. global::System.Data.DataRow[] deletedRows = dataSet.ProductPhoto.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11367. if (((deletedRows != null)
  11368. && (0 < deletedRows.Length))) {
  11369. result = (result + this._productPhotoTableAdapter.Update(deletedRows));
  11370. allChangedRows.AddRange(deletedRows);
  11371. }
  11372. }
  11373. if ((this._loginpassTableAdapter != null)) {
  11374. global::System.Data.DataRow[] deletedRows = dataSet.Loginpass.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11375. if (((deletedRows != null)
  11376. && (0 < deletedRows.Length))) {
  11377. result = (result + this._loginpassTableAdapter.Update(deletedRows));
  11378. allChangedRows.AddRange(deletedRows);
  11379. }
  11380. }
  11381. if ((this._documentByServiceTableAdapter != null)) {
  11382. global::System.Data.DataRow[] deletedRows = dataSet.DocumentByService.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11383. if (((deletedRows != null)
  11384. && (0 < deletedRows.Length))) {
  11385. result = (result + this._documentByServiceTableAdapter.Update(deletedRows));
  11386. allChangedRows.AddRange(deletedRows);
  11387. }
  11388. }
  11389. if ((this._clientservicTableAdapter != null)) {
  11390. global::System.Data.DataRow[] deletedRows = dataSet.Clientservic.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11391. if (((deletedRows != null)
  11392. && (0 < deletedRows.Length))) {
  11393. result = (result + this._clientservicTableAdapter.Update(deletedRows));
  11394. allChangedRows.AddRange(deletedRows);
  11395. }
  11396. }
  11397. if ((this._attachedProductTableAdapter != null)) {
  11398. global::System.Data.DataRow[] deletedRows = dataSet.AttachedProduct.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11399. if (((deletedRows != null)
  11400. && (0 < deletedRows.Length))) {
  11401. result = (result + this._attachedProductTableAdapter.Update(deletedRows));
  11402. allChangedRows.AddRange(deletedRows);
  11403. }
  11404. }
  11405. if ((this._кли33ентTableAdapter != null)) {
  11406. global::System.Data.DataRow[] deletedRows = dataSet.Кли33ент.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11407. if (((deletedRows != null)
  11408. && (0 < deletedRows.Length))) {
  11409. result = (result + this._кли33ентTableAdapter.Update(deletedRows));
  11410. allChangedRows.AddRange(deletedRows);
  11411. }
  11412. }
  11413. if ((this._tagTableAdapter != null)) {
  11414. global::System.Data.DataRow[] deletedRows = dataSet.Tag.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11415. if (((deletedRows != null)
  11416. && (0 < deletedRows.Length))) {
  11417. result = (result + this._tagTableAdapter.Update(deletedRows));
  11418. allChangedRows.AddRange(deletedRows);
  11419. }
  11420. }
  11421. if ((this._serviceTableAdapter != null)) {
  11422. global::System.Data.DataRow[] deletedRows = dataSet.Service.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11423. if (((deletedRows != null)
  11424. && (0 < deletedRows.Length))) {
  11425. result = (result + this._serviceTableAdapter.Update(deletedRows));
  11426. allChangedRows.AddRange(deletedRows);
  11427. }
  11428. }
  11429. if ((this._productTableAdapter != null)) {
  11430. global::System.Data.DataRow[] deletedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11431. if (((deletedRows != null)
  11432. && (0 < deletedRows.Length))) {
  11433. result = (result + this._productTableAdapter.Update(deletedRows));
  11434. allChangedRows.AddRange(deletedRows);
  11435. }
  11436. }
  11437. if ((this._manufacturerTableAdapter != null)) {
  11438. global::System.Data.DataRow[] deletedRows = dataSet.Manufacturer.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11439. if (((deletedRows != null)
  11440. && (0 < deletedRows.Length))) {
  11441. result = (result + this._manufacturerTableAdapter.Update(deletedRows));
  11442. allChangedRows.AddRange(deletedRows);
  11443. }
  11444. }
  11445. if ((this._genderTableAdapter != null)) {
  11446. global::System.Data.DataRow[] deletedRows = dataSet.Gender.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11447. if (((deletedRows != null)
  11448. && (0 < deletedRows.Length))) {
  11449. result = (result + this._genderTableAdapter.Update(deletedRows));
  11450. allChangedRows.AddRange(deletedRows);
  11451. }
  11452. }
  11453. return result;
  11454. }
  11455. /// <summary>
  11456. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  11457. ///</summary>
  11458. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11459. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11460. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  11461. if (((updatedRows == null)
  11462. || (updatedRows.Length < 1))) {
  11463. return updatedRows;
  11464. }
  11465. if (((allAddedRows == null)
  11466. || (allAddedRows.Count < 1))) {
  11467. return updatedRows;
  11468. }
  11469. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  11470. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  11471. global::System.Data.DataRow row = updatedRows[i];
  11472. if ((allAddedRows.Contains(row) == false)) {
  11473. realUpdatedRows.Add(row);
  11474. }
  11475. }
  11476. return realUpdatedRows.ToArray();
  11477. }
  11478. /// <summary>
  11479. ///Update all changes to the dataset.
  11480. ///</summary>
  11481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11483. public virtual int UpdateAll(RozenbergBrDataSet dataSet) {
  11484. if ((dataSet == null)) {
  11485. throw new global::System.ArgumentNullException("dataSet");
  11486. }
  11487. if ((dataSet.HasChanges() == false)) {
  11488. return 0;
  11489. }
  11490. if (((this._attachedProductTableAdapter != null)
  11491. && (this.MatchTableAdapterConnection(this._attachedProductTableAdapter.Connection) == false))) {
  11492. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11493. "r, должны использовать одинаковую строку подключения.");
  11494. }
  11495. if (((this._clientservicTableAdapter != null)
  11496. && (this.MatchTableAdapterConnection(this._clientservicTableAdapter.Connection) == false))) {
  11497. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11498. "r, должны использовать одинаковую строку подключения.");
  11499. }
  11500. if (((this._documentByServiceTableAdapter != null)
  11501. && (this.MatchTableAdapterConnection(this._documentByServiceTableAdapter.Connection) == false))) {
  11502. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11503. "r, должны использовать одинаковую строку подключения.");
  11504. }
  11505. if (((this._genderTableAdapter != null)
  11506. && (this.MatchTableAdapterConnection(this._genderTableAdapter.Connection) == false))) {
  11507. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11508. "r, должны использовать одинаковую строку подключения.");
  11509. }
  11510. if (((this._loginpassTableAdapter != null)
  11511. && (this.MatchTableAdapterConnection(this._loginpassTableAdapter.Connection) == false))) {
  11512. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11513. "r, должны использовать одинаковую строку подключения.");
  11514. }
  11515. if (((this._manufacturerTableAdapter != null)
  11516. && (this.MatchTableAdapterConnection(this._manufacturerTableAdapter.Connection) == false))) {
  11517. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11518. "r, должны использовать одинаковую строку подключения.");
  11519. }
  11520. if (((this._productTableAdapter != null)
  11521. && (this.MatchTableAdapterConnection(this._productTableAdapter.Connection) == false))) {
  11522. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11523. "r, должны использовать одинаковую строку подключения.");
  11524. }
  11525. if (((this._productPhotoTableAdapter != null)
  11526. && (this.MatchTableAdapterConnection(this._productPhotoTableAdapter.Connection) == false))) {
  11527. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11528. "r, должны использовать одинаковую строку подключения.");
  11529. }
  11530. if (((this._productSaleTableAdapter != null)
  11531. && (this.MatchTableAdapterConnection(this._productSaleTableAdapter.Connection) == false))) {
  11532. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11533. "r, должны использовать одинаковую строку подключения.");
  11534. }
  11535. if (((this._serviceTableAdapter != null)
  11536. && (this.MatchTableAdapterConnection(this._serviceTableAdapter.Connection) == false))) {
  11537. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11538. "r, должны использовать одинаковую строку подключения.");
  11539. }
  11540. if (((this._servicePhotoTableAdapter != null)
  11541. && (this.MatchTableAdapterConnection(this._servicePhotoTableAdapter.Connection) == false))) {
  11542. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11543. "r, должны использовать одинаковую строку подключения.");
  11544. }
  11545. if (((this._tagTableAdapter != null)
  11546. && (this.MatchTableAdapterConnection(this._tagTableAdapter.Connection) == false))) {
  11547. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11548. "r, должны использовать одинаковую строку подключения.");
  11549. }
  11550. if (((this._tagOfClientTableAdapter != null)
  11551. && (this.MatchTableAdapterConnection(this._tagOfClientTableAdapter.Connection) == false))) {
  11552. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11553. "r, должны использовать одинаковую строку подключения.");
  11554. }
  11555. if (((this._кли33ентTableAdapter != null)
  11556. && (this.MatchTableAdapterConnection(this._кли33ентTableAdapter.Connection) == false))) {
  11557. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11558. "r, должны использовать одинаковую строку подключения.");
  11559. }
  11560. global::System.Data.IDbConnection workConnection = this.Connection;
  11561. if ((workConnection == null)) {
  11562. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  11563. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  11564. }
  11565. bool workConnOpened = false;
  11566. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  11567. == global::System.Data.ConnectionState.Broken)) {
  11568. workConnection.Close();
  11569. }
  11570. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  11571. workConnection.Open();
  11572. workConnOpened = true;
  11573. }
  11574. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  11575. if ((workTransaction == null)) {
  11576. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  11577. "и или текущее состояние не позволяет начать транзакцию.");
  11578. }
  11579. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  11580. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  11581. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  11582. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  11583. int result = 0;
  11584. global::System.Data.DataSet backupDataSet = null;
  11585. if (this.BackupDataSetBeforeUpdate) {
  11586. backupDataSet = new global::System.Data.DataSet();
  11587. backupDataSet.Merge(dataSet);
  11588. }
  11589. try {
  11590. // ---- Prepare for update -----------
  11591. //
  11592. if ((this._attachedProductTableAdapter != null)) {
  11593. revertConnections.Add(this._attachedProductTableAdapter, this._attachedProductTableAdapter.Connection);
  11594. this._attachedProductTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11595. this._attachedProductTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11596. if (this._attachedProductTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11597. this._attachedProductTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11598. adaptersWithAcceptChangesDuringUpdate.Add(this._attachedProductTableAdapter.Adapter);
  11599. }
  11600. }
  11601. if ((this._clientservicTableAdapter != null)) {
  11602. revertConnections.Add(this._clientservicTableAdapter, this._clientservicTableAdapter.Connection);
  11603. this._clientservicTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11604. this._clientservicTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11605. if (this._clientservicTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11606. this._clientservicTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11607. adaptersWithAcceptChangesDuringUpdate.Add(this._clientservicTableAdapter.Adapter);
  11608. }
  11609. }
  11610. if ((this._documentByServiceTableAdapter != null)) {
  11611. revertConnections.Add(this._documentByServiceTableAdapter, this._documentByServiceTableAdapter.Connection);
  11612. this._documentByServiceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11613. this._documentByServiceTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11614. if (this._documentByServiceTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11615. this._documentByServiceTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11616. adaptersWithAcceptChangesDuringUpdate.Add(this._documentByServiceTableAdapter.Adapter);
  11617. }
  11618. }
  11619. if ((this._genderTableAdapter != null)) {
  11620. revertConnections.Add(this._genderTableAdapter, this._genderTableAdapter.Connection);
  11621. this._genderTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11622. this._genderTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11623. if (this._genderTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11624. this._genderTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11625. adaptersWithAcceptChangesDuringUpdate.Add(this._genderTableAdapter.Adapter);
  11626. }
  11627. }
  11628. if ((this._loginpassTableAdapter != null)) {
  11629. revertConnections.Add(this._loginpassTableAdapter, this._loginpassTableAdapter.Connection);
  11630. this._loginpassTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11631. this._loginpassTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11632. if (this._loginpassTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11633. this._loginpassTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11634. adaptersWithAcceptChangesDuringUpdate.Add(this._loginpassTableAdapter.Adapter);
  11635. }
  11636. }
  11637. if ((this._manufacturerTableAdapter != null)) {
  11638. revertConnections.Add(this._manufacturerTableAdapter, this._manufacturerTableAdapter.Connection);
  11639. this._manufacturerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11640. this._manufacturerTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11641. if (this._manufacturerTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11642. this._manufacturerTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11643. adaptersWithAcceptChangesDuringUpdate.Add(this._manufacturerTableAdapter.Adapter);
  11644. }
  11645. }
  11646. if ((this._productTableAdapter != null)) {
  11647. revertConnections.Add(this._productTableAdapter, this._productTableAdapter.Connection);
  11648. this._productTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11649. this._productTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11650. if (this._productTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11651. this._productTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11652. adaptersWithAcceptChangesDuringUpdate.Add(this._productTableAdapter.Adapter);
  11653. }
  11654. }
  11655. if ((this._productPhotoTableAdapter != null)) {
  11656. revertConnections.Add(this._productPhotoTableAdapter, this._productPhotoTableAdapter.Connection);
  11657. this._productPhotoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11658. this._productPhotoTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11659. if (this._productPhotoTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11660. this._productPhotoTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11661. adaptersWithAcceptChangesDuringUpdate.Add(this._productPhotoTableAdapter.Adapter);
  11662. }
  11663. }
  11664. if ((this._productSaleTableAdapter != null)) {
  11665. revertConnections.Add(this._productSaleTableAdapter, this._productSaleTableAdapter.Connection);
  11666. this._productSaleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11667. this._productSaleTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11668. if (this._productSaleTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11669. this._productSaleTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11670. adaptersWithAcceptChangesDuringUpdate.Add(this._productSaleTableAdapter.Adapter);
  11671. }
  11672. }
  11673. if ((this._serviceTableAdapter != null)) {
  11674. revertConnections.Add(this._serviceTableAdapter, this._serviceTableAdapter.Connection);
  11675. this._serviceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11676. this._serviceTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11677. if (this._serviceTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11678. this._serviceTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11679. adaptersWithAcceptChangesDuringUpdate.Add(this._serviceTableAdapter.Adapter);
  11680. }
  11681. }
  11682. if ((this._servicePhotoTableAdapter != null)) {
  11683. revertConnections.Add(this._servicePhotoTableAdapter, this._servicePhotoTableAdapter.Connection);
  11684. this._servicePhotoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11685. this._servicePhotoTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11686. if (this._servicePhotoTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11687. this._servicePhotoTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11688. adaptersWithAcceptChangesDuringUpdate.Add(this._servicePhotoTableAdapter.Adapter);
  11689. }
  11690. }
  11691. if ((this._tagTableAdapter != null)) {
  11692. revertConnections.Add(this._tagTableAdapter, this._tagTableAdapter.Connection);
  11693. this._tagTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11694. this._tagTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11695. if (this._tagTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11696. this._tagTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11697. adaptersWithAcceptChangesDuringUpdate.Add(this._tagTableAdapter.Adapter);
  11698. }
  11699. }
  11700. if ((this._tagOfClientTableAdapter != null)) {
  11701. revertConnections.Add(this._tagOfClientTableAdapter, this._tagOfClientTableAdapter.Connection);
  11702. this._tagOfClientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11703. this._tagOfClientTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11704. if (this._tagOfClientTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11705. this._tagOfClientTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11706. adaptersWithAcceptChangesDuringUpdate.Add(this._tagOfClientTableAdapter.Adapter);
  11707. }
  11708. }
  11709. if ((this._кли33ентTableAdapter != null)) {
  11710. revertConnections.Add(this._кли33ентTableAdapter, this._кли33ентTableAdapter.Connection);
  11711. this._кли33ентTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11712. this._кли33ентTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11713. if (this._кли33ентTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11714. this._кли33ентTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11715. adaptersWithAcceptChangesDuringUpdate.Add(this._кли33ентTableAdapter.Adapter);
  11716. }
  11717. }
  11718. //
  11719. //---- Perform updates -----------
  11720. //
  11721. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  11722. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  11723. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  11724. }
  11725. else {
  11726. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  11727. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  11728. }
  11729. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  11730. //
  11731. //---- Commit updates -----------
  11732. //
  11733. workTransaction.Commit();
  11734. if ((0 < allAddedRows.Count)) {
  11735. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  11736. allAddedRows.CopyTo(rows);
  11737. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  11738. global::System.Data.DataRow row = rows[i];
  11739. row.AcceptChanges();
  11740. }
  11741. }
  11742. if ((0 < allChangedRows.Count)) {
  11743. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  11744. allChangedRows.CopyTo(rows);
  11745. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  11746. global::System.Data.DataRow row = rows[i];
  11747. row.AcceptChanges();
  11748. }
  11749. }
  11750. }
  11751. catch (global::System.Exception ex) {
  11752. workTransaction.Rollback();
  11753. // ---- Restore the dataset -----------
  11754. if (this.BackupDataSetBeforeUpdate) {
  11755. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  11756. dataSet.Clear();
  11757. dataSet.Merge(backupDataSet);
  11758. }
  11759. else {
  11760. if ((0 < allAddedRows.Count)) {
  11761. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  11762. allAddedRows.CopyTo(rows);
  11763. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  11764. global::System.Data.DataRow row = rows[i];
  11765. row.AcceptChanges();
  11766. row.SetAdded();
  11767. }
  11768. }
  11769. }
  11770. throw ex;
  11771. }
  11772. finally {
  11773. if (workConnOpened) {
  11774. workConnection.Close();
  11775. }
  11776. if ((this._attachedProductTableAdapter != null)) {
  11777. this._attachedProductTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._attachedProductTableAdapter]));
  11778. this._attachedProductTableAdapter.Transaction = null;
  11779. }
  11780. if ((this._clientservicTableAdapter != null)) {
  11781. this._clientservicTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._clientservicTableAdapter]));
  11782. this._clientservicTableAdapter.Transaction = null;
  11783. }
  11784. if ((this._documentByServiceTableAdapter != null)) {
  11785. this._documentByServiceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._documentByServiceTableAdapter]));
  11786. this._documentByServiceTableAdapter.Transaction = null;
  11787. }
  11788. if ((this._genderTableAdapter != null)) {
  11789. this._genderTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._genderTableAdapter]));
  11790. this._genderTableAdapter.Transaction = null;
  11791. }
  11792. if ((this._loginpassTableAdapter != null)) {
  11793. this._loginpassTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._loginpassTableAdapter]));
  11794. this._loginpassTableAdapter.Transaction = null;
  11795. }
  11796. if ((this._manufacturerTableAdapter != null)) {
  11797. this._manufacturerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._manufacturerTableAdapter]));
  11798. this._manufacturerTableAdapter.Transaction = null;
  11799. }
  11800. if ((this._productTableAdapter != null)) {
  11801. this._productTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productTableAdapter]));
  11802. this._productTableAdapter.Transaction = null;
  11803. }
  11804. if ((this._productPhotoTableAdapter != null)) {
  11805. this._productPhotoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productPhotoTableAdapter]));
  11806. this._productPhotoTableAdapter.Transaction = null;
  11807. }
  11808. if ((this._productSaleTableAdapter != null)) {
  11809. this._productSaleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productSaleTableAdapter]));
  11810. this._productSaleTableAdapter.Transaction = null;
  11811. }
  11812. if ((this._serviceTableAdapter != null)) {
  11813. this._serviceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._serviceTableAdapter]));
  11814. this._serviceTableAdapter.Transaction = null;
  11815. }
  11816. if ((this._servicePhotoTableAdapter != null)) {
  11817. this._servicePhotoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._servicePhotoTableAdapter]));
  11818. this._servicePhotoTableAdapter.Transaction = null;
  11819. }
  11820. if ((this._tagTableAdapter != null)) {
  11821. this._tagTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tagTableAdapter]));
  11822. this._tagTableAdapter.Transaction = null;
  11823. }
  11824. if ((this._tagOfClientTableAdapter != null)) {
  11825. this._tagOfClientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tagOfClientTableAdapter]));
  11826. this._tagOfClientTableAdapter.Transaction = null;
  11827. }
  11828. if ((this._кли33ентTableAdapter != null)) {
  11829. this._кли33ентTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._кли33ентTableAdapter]));
  11830. this._кли33ентTableAdapter.Transaction = null;
  11831. }
  11832. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  11833. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  11834. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  11835. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  11836. global::System.Data.Common.DataAdapter adapter = adapters[i];
  11837. adapter.AcceptChangesDuringUpdate = true;
  11838. }
  11839. }
  11840. }
  11841. return result;
  11842. }
  11843. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11844. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11845. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  11846. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  11847. }
  11848. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11849. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11850. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  11851. if ((this._connection != null)) {
  11852. return true;
  11853. }
  11854. if (((this.Connection == null)
  11855. || (inputConnection == null))) {
  11856. return true;
  11857. }
  11858. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  11859. return true;
  11860. }
  11861. return false;
  11862. }
  11863. /// <summary>
  11864. ///Update Order Option
  11865. ///</summary>
  11866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11867. public enum UpdateOrderOption {
  11868. InsertUpdateDelete = 0,
  11869. UpdateInsertDelete = 1,
  11870. }
  11871. /// <summary>
  11872. ///Used to sort self-referenced table's rows
  11873. ///</summary>
  11874. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11875. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  11876. private global::System.Data.DataRelation _relation;
  11877. private int _childFirst;
  11878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11879. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11880. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  11881. this._relation = relation;
  11882. if (childFirst) {
  11883. this._childFirst = -1;
  11884. }
  11885. else {
  11886. this._childFirst = 1;
  11887. }
  11888. }
  11889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11890. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11891. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  11892. global::System.Diagnostics.Debug.Assert((row != null));
  11893. global::System.Data.DataRow root = row;
  11894. distance = 0;
  11895. 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>();
  11896. traversedRows[row] = row;
  11897. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  11898. for (
  11899. ; ((parent != null)
  11900. && (traversedRows.ContainsKey(parent) == false));
  11901. ) {
  11902. distance = (distance + 1);
  11903. root = parent;
  11904. traversedRows[parent] = parent;
  11905. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  11906. }
  11907. if ((distance == 0)) {
  11908. traversedRows.Clear();
  11909. traversedRows[row] = row;
  11910. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  11911. for (
  11912. ; ((parent != null)
  11913. && (traversedRows.ContainsKey(parent) == false));
  11914. ) {
  11915. distance = (distance + 1);
  11916. root = parent;
  11917. traversedRows[parent] = parent;
  11918. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  11919. }
  11920. }
  11921. return root;
  11922. }
  11923. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11924. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11925. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  11926. if (object.ReferenceEquals(row1, row2)) {
  11927. return 0;
  11928. }
  11929. if ((row1 == null)) {
  11930. return -1;
  11931. }
  11932. if ((row2 == null)) {
  11933. return 1;
  11934. }
  11935. int distance1 = 0;
  11936. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  11937. int distance2 = 0;
  11938. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  11939. if (object.ReferenceEquals(root1, root2)) {
  11940. return (this._childFirst * distance1.CompareTo(distance2));
  11941. }
  11942. else {
  11943. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  11944. && (root2.Table != null)));
  11945. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  11946. return -1;
  11947. }
  11948. else {
  11949. return 1;
  11950. }
  11951. }
  11952. }
  11953. }
  11954. }
  11955. }
  11956. #pragma warning restore 1591