BBrovkiZDataSet.Designer.cs 940 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace BBrovki1Z {
  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("BBrovkiZDataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class BBrovkiZDataSet : global::System.Data.DataSet {
  22. private AttachedProductDataTable tableAttachedProduct;
  23. private cDataTable tablec;
  24. private ClientDataTable tableClient;
  25. private ClientServiseDataTable tableClientServise;
  26. private csDataTable tablecs;
  27. private DocumentByServiceDataTable tableDocumentByService;
  28. private GenderDataTable tableGender;
  29. private ManufacturerDataTable tableManufacturer;
  30. private ProductDataTable tableProduct;
  31. private ProductPhotoDataTable tableProductPhoto;
  32. private ProductSaleDataTable tableProductSale;
  33. private sDataTable tables;
  34. private ServiceDataTable tableService;
  35. private ServicePhotoDataTable tableServicePhoto;
  36. private TagDataTable tableTag;
  37. private TagOfClientDataTable tableTagOfClient;
  38. private global::System.Data.DataRelation relationFK_AttachedProduct_Product;
  39. private global::System.Data.DataRelation relationFK_AttachedProduct_Product1;
  40. private global::System.Data.DataRelation relationFK_Client_Gender;
  41. private global::System.Data.DataRelation relationFK_ClientService_Client;
  42. private global::System.Data.DataRelation relationFK_ClientService_Service;
  43. private global::System.Data.DataRelation relationFK_DocumentByService_ClientService;
  44. private global::System.Data.DataRelation relationFK_Product_Manufacturer;
  45. private global::System.Data.DataRelation relationFK_ProductPhoto_Product;
  46. private global::System.Data.DataRelation relationFK_ProductSale_ClientService;
  47. private global::System.Data.DataRelation relationFK_ProductSale_Product;
  48. private global::System.Data.DataRelation relationFK_ServicePhoto_Service;
  49. private global::System.Data.DataRelation relationFK_TagOfClient_Client;
  50. private global::System.Data.DataRelation relationFK_TagOfClient_Tag;
  51. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  52. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  53. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  54. public BBrovkiZDataSet() {
  55. this.BeginInit();
  56. this.InitClass();
  57. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  58. base.Tables.CollectionChanged += schemaChangedHandler;
  59. base.Relations.CollectionChanged += schemaChangedHandler;
  60. this.EndInit();
  61. }
  62. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  63. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  64. protected BBrovkiZDataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  65. base(info, context, false) {
  66. if ((this.IsBinarySerialized(info, context) == true)) {
  67. this.InitVars(false);
  68. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  69. this.Tables.CollectionChanged += schemaChangedHandler1;
  70. this.Relations.CollectionChanged += schemaChangedHandler1;
  71. return;
  72. }
  73. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  74. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  75. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  76. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  77. if ((ds.Tables["AttachedProduct"] != null)) {
  78. base.Tables.Add(new AttachedProductDataTable(ds.Tables["AttachedProduct"]));
  79. }
  80. if ((ds.Tables["c"] != null)) {
  81. base.Tables.Add(new cDataTable(ds.Tables["c"]));
  82. }
  83. if ((ds.Tables["Client"] != null)) {
  84. base.Tables.Add(new ClientDataTable(ds.Tables["Client"]));
  85. }
  86. if ((ds.Tables["ClientServise"] != null)) {
  87. base.Tables.Add(new ClientServiseDataTable(ds.Tables["ClientServise"]));
  88. }
  89. if ((ds.Tables["cs"] != null)) {
  90. base.Tables.Add(new csDataTable(ds.Tables["cs"]));
  91. }
  92. if ((ds.Tables["DocumentByService"] != null)) {
  93. base.Tables.Add(new DocumentByServiceDataTable(ds.Tables["DocumentByService"]));
  94. }
  95. if ((ds.Tables["Gender"] != null)) {
  96. base.Tables.Add(new GenderDataTable(ds.Tables["Gender"]));
  97. }
  98. if ((ds.Tables["Manufacturer"] != null)) {
  99. base.Tables.Add(new ManufacturerDataTable(ds.Tables["Manufacturer"]));
  100. }
  101. if ((ds.Tables["Product"] != null)) {
  102. base.Tables.Add(new ProductDataTable(ds.Tables["Product"]));
  103. }
  104. if ((ds.Tables["ProductPhoto"] != null)) {
  105. base.Tables.Add(new ProductPhotoDataTable(ds.Tables["ProductPhoto"]));
  106. }
  107. if ((ds.Tables["ProductSale"] != null)) {
  108. base.Tables.Add(new ProductSaleDataTable(ds.Tables["ProductSale"]));
  109. }
  110. if ((ds.Tables["s"] != null)) {
  111. base.Tables.Add(new sDataTable(ds.Tables["s"]));
  112. }
  113. if ((ds.Tables["Service"] != null)) {
  114. base.Tables.Add(new ServiceDataTable(ds.Tables["Service"]));
  115. }
  116. if ((ds.Tables["ServicePhoto"] != null)) {
  117. base.Tables.Add(new ServicePhotoDataTable(ds.Tables["ServicePhoto"]));
  118. }
  119. if ((ds.Tables["Tag"] != null)) {
  120. base.Tables.Add(new TagDataTable(ds.Tables["Tag"]));
  121. }
  122. if ((ds.Tables["TagOfClient"] != null)) {
  123. base.Tables.Add(new TagOfClientDataTable(ds.Tables["TagOfClient"]));
  124. }
  125. this.DataSetName = ds.DataSetName;
  126. this.Prefix = ds.Prefix;
  127. this.Namespace = ds.Namespace;
  128. this.Locale = ds.Locale;
  129. this.CaseSensitive = ds.CaseSensitive;
  130. this.EnforceConstraints = ds.EnforceConstraints;
  131. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  132. this.InitVars();
  133. }
  134. else {
  135. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  136. }
  137. this.GetSerializationData(info, context);
  138. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  139. base.Tables.CollectionChanged += schemaChangedHandler;
  140. this.Relations.CollectionChanged += schemaChangedHandler;
  141. }
  142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  143. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  144. [global::System.ComponentModel.Browsable(false)]
  145. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  146. public AttachedProductDataTable AttachedProduct {
  147. get {
  148. return this.tableAttachedProduct;
  149. }
  150. }
  151. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  152. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  153. [global::System.ComponentModel.Browsable(false)]
  154. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  155. public cDataTable c {
  156. get {
  157. return this.tablec;
  158. }
  159. }
  160. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  161. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  162. [global::System.ComponentModel.Browsable(false)]
  163. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  164. public ClientDataTable Client {
  165. get {
  166. return this.tableClient;
  167. }
  168. }
  169. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  170. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  171. [global::System.ComponentModel.Browsable(false)]
  172. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  173. public ClientServiseDataTable ClientServise {
  174. get {
  175. return this.tableClientServise;
  176. }
  177. }
  178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  180. [global::System.ComponentModel.Browsable(false)]
  181. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  182. public csDataTable cs {
  183. get {
  184. return this.tablecs;
  185. }
  186. }
  187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  188. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  189. [global::System.ComponentModel.Browsable(false)]
  190. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  191. public DocumentByServiceDataTable DocumentByService {
  192. get {
  193. return this.tableDocumentByService;
  194. }
  195. }
  196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  197. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  198. [global::System.ComponentModel.Browsable(false)]
  199. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  200. public GenderDataTable Gender {
  201. get {
  202. return this.tableGender;
  203. }
  204. }
  205. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  206. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  207. [global::System.ComponentModel.Browsable(false)]
  208. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  209. public ManufacturerDataTable Manufacturer {
  210. get {
  211. return this.tableManufacturer;
  212. }
  213. }
  214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  215. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  216. [global::System.ComponentModel.Browsable(false)]
  217. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  218. public ProductDataTable Product {
  219. get {
  220. return this.tableProduct;
  221. }
  222. }
  223. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  224. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  225. [global::System.ComponentModel.Browsable(false)]
  226. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  227. public ProductPhotoDataTable ProductPhoto {
  228. get {
  229. return this.tableProductPhoto;
  230. }
  231. }
  232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  233. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  234. [global::System.ComponentModel.Browsable(false)]
  235. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  236. public ProductSaleDataTable ProductSale {
  237. get {
  238. return this.tableProductSale;
  239. }
  240. }
  241. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  242. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  243. [global::System.ComponentModel.Browsable(false)]
  244. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  245. public sDataTable s {
  246. get {
  247. return this.tables;
  248. }
  249. }
  250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  252. [global::System.ComponentModel.Browsable(false)]
  253. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  254. public ServiceDataTable Service {
  255. get {
  256. return this.tableService;
  257. }
  258. }
  259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  260. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  261. [global::System.ComponentModel.Browsable(false)]
  262. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  263. public ServicePhotoDataTable ServicePhoto {
  264. get {
  265. return this.tableServicePhoto;
  266. }
  267. }
  268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  269. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  270. [global::System.ComponentModel.Browsable(false)]
  271. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  272. public TagDataTable Tag {
  273. get {
  274. return this.tableTag;
  275. }
  276. }
  277. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  278. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  279. [global::System.ComponentModel.Browsable(false)]
  280. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  281. public TagOfClientDataTable TagOfClient {
  282. get {
  283. return this.tableTagOfClient;
  284. }
  285. }
  286. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  287. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  288. [global::System.ComponentModel.BrowsableAttribute(true)]
  289. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  290. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  291. get {
  292. return this._schemaSerializationMode;
  293. }
  294. set {
  295. this._schemaSerializationMode = value;
  296. }
  297. }
  298. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  299. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  300. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  301. public new global::System.Data.DataTableCollection Tables {
  302. get {
  303. return base.Tables;
  304. }
  305. }
  306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  307. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  308. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  309. public new global::System.Data.DataRelationCollection Relations {
  310. get {
  311. return base.Relations;
  312. }
  313. }
  314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  315. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  316. protected override void InitializeDerivedDataSet() {
  317. this.BeginInit();
  318. this.InitClass();
  319. this.EndInit();
  320. }
  321. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  322. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  323. public override global::System.Data.DataSet Clone() {
  324. BBrovkiZDataSet cln = ((BBrovkiZDataSet)(base.Clone()));
  325. cln.InitVars();
  326. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  327. return cln;
  328. }
  329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  331. protected override bool ShouldSerializeTables() {
  332. return false;
  333. }
  334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  336. protected override bool ShouldSerializeRelations() {
  337. return false;
  338. }
  339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  341. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  342. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  343. this.Reset();
  344. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  345. ds.ReadXml(reader);
  346. if ((ds.Tables["AttachedProduct"] != null)) {
  347. base.Tables.Add(new AttachedProductDataTable(ds.Tables["AttachedProduct"]));
  348. }
  349. if ((ds.Tables["c"] != null)) {
  350. base.Tables.Add(new cDataTable(ds.Tables["c"]));
  351. }
  352. if ((ds.Tables["Client"] != null)) {
  353. base.Tables.Add(new ClientDataTable(ds.Tables["Client"]));
  354. }
  355. if ((ds.Tables["ClientServise"] != null)) {
  356. base.Tables.Add(new ClientServiseDataTable(ds.Tables["ClientServise"]));
  357. }
  358. if ((ds.Tables["cs"] != null)) {
  359. base.Tables.Add(new csDataTable(ds.Tables["cs"]));
  360. }
  361. if ((ds.Tables["DocumentByService"] != null)) {
  362. base.Tables.Add(new DocumentByServiceDataTable(ds.Tables["DocumentByService"]));
  363. }
  364. if ((ds.Tables["Gender"] != null)) {
  365. base.Tables.Add(new GenderDataTable(ds.Tables["Gender"]));
  366. }
  367. if ((ds.Tables["Manufacturer"] != null)) {
  368. base.Tables.Add(new ManufacturerDataTable(ds.Tables["Manufacturer"]));
  369. }
  370. if ((ds.Tables["Product"] != null)) {
  371. base.Tables.Add(new ProductDataTable(ds.Tables["Product"]));
  372. }
  373. if ((ds.Tables["ProductPhoto"] != null)) {
  374. base.Tables.Add(new ProductPhotoDataTable(ds.Tables["ProductPhoto"]));
  375. }
  376. if ((ds.Tables["ProductSale"] != null)) {
  377. base.Tables.Add(new ProductSaleDataTable(ds.Tables["ProductSale"]));
  378. }
  379. if ((ds.Tables["s"] != null)) {
  380. base.Tables.Add(new sDataTable(ds.Tables["s"]));
  381. }
  382. if ((ds.Tables["Service"] != null)) {
  383. base.Tables.Add(new ServiceDataTable(ds.Tables["Service"]));
  384. }
  385. if ((ds.Tables["ServicePhoto"] != null)) {
  386. base.Tables.Add(new ServicePhotoDataTable(ds.Tables["ServicePhoto"]));
  387. }
  388. if ((ds.Tables["Tag"] != null)) {
  389. base.Tables.Add(new TagDataTable(ds.Tables["Tag"]));
  390. }
  391. if ((ds.Tables["TagOfClient"] != null)) {
  392. base.Tables.Add(new TagOfClientDataTable(ds.Tables["TagOfClient"]));
  393. }
  394. this.DataSetName = ds.DataSetName;
  395. this.Prefix = ds.Prefix;
  396. this.Namespace = ds.Namespace;
  397. this.Locale = ds.Locale;
  398. this.CaseSensitive = ds.CaseSensitive;
  399. this.EnforceConstraints = ds.EnforceConstraints;
  400. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  401. this.InitVars();
  402. }
  403. else {
  404. this.ReadXml(reader);
  405. this.InitVars();
  406. }
  407. }
  408. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  409. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  410. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  411. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  412. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  413. stream.Position = 0;
  414. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  415. }
  416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  418. internal void InitVars() {
  419. this.InitVars(true);
  420. }
  421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  422. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  423. internal void InitVars(bool initTable) {
  424. this.tableAttachedProduct = ((AttachedProductDataTable)(base.Tables["AttachedProduct"]));
  425. if ((initTable == true)) {
  426. if ((this.tableAttachedProduct != null)) {
  427. this.tableAttachedProduct.InitVars();
  428. }
  429. }
  430. this.tablec = ((cDataTable)(base.Tables["c"]));
  431. if ((initTable == true)) {
  432. if ((this.tablec != null)) {
  433. this.tablec.InitVars();
  434. }
  435. }
  436. this.tableClient = ((ClientDataTable)(base.Tables["Client"]));
  437. if ((initTable == true)) {
  438. if ((this.tableClient != null)) {
  439. this.tableClient.InitVars();
  440. }
  441. }
  442. this.tableClientServise = ((ClientServiseDataTable)(base.Tables["ClientServise"]));
  443. if ((initTable == true)) {
  444. if ((this.tableClientServise != null)) {
  445. this.tableClientServise.InitVars();
  446. }
  447. }
  448. this.tablecs = ((csDataTable)(base.Tables["cs"]));
  449. if ((initTable == true)) {
  450. if ((this.tablecs != null)) {
  451. this.tablecs.InitVars();
  452. }
  453. }
  454. this.tableDocumentByService = ((DocumentByServiceDataTable)(base.Tables["DocumentByService"]));
  455. if ((initTable == true)) {
  456. if ((this.tableDocumentByService != null)) {
  457. this.tableDocumentByService.InitVars();
  458. }
  459. }
  460. this.tableGender = ((GenderDataTable)(base.Tables["Gender"]));
  461. if ((initTable == true)) {
  462. if ((this.tableGender != null)) {
  463. this.tableGender.InitVars();
  464. }
  465. }
  466. this.tableManufacturer = ((ManufacturerDataTable)(base.Tables["Manufacturer"]));
  467. if ((initTable == true)) {
  468. if ((this.tableManufacturer != null)) {
  469. this.tableManufacturer.InitVars();
  470. }
  471. }
  472. this.tableProduct = ((ProductDataTable)(base.Tables["Product"]));
  473. if ((initTable == true)) {
  474. if ((this.tableProduct != null)) {
  475. this.tableProduct.InitVars();
  476. }
  477. }
  478. this.tableProductPhoto = ((ProductPhotoDataTable)(base.Tables["ProductPhoto"]));
  479. if ((initTable == true)) {
  480. if ((this.tableProductPhoto != null)) {
  481. this.tableProductPhoto.InitVars();
  482. }
  483. }
  484. this.tableProductSale = ((ProductSaleDataTable)(base.Tables["ProductSale"]));
  485. if ((initTable == true)) {
  486. if ((this.tableProductSale != null)) {
  487. this.tableProductSale.InitVars();
  488. }
  489. }
  490. this.tables = ((sDataTable)(base.Tables["s"]));
  491. if ((initTable == true)) {
  492. if ((this.tables != null)) {
  493. this.tables.InitVars();
  494. }
  495. }
  496. this.tableService = ((ServiceDataTable)(base.Tables["Service"]));
  497. if ((initTable == true)) {
  498. if ((this.tableService != null)) {
  499. this.tableService.InitVars();
  500. }
  501. }
  502. this.tableServicePhoto = ((ServicePhotoDataTable)(base.Tables["ServicePhoto"]));
  503. if ((initTable == true)) {
  504. if ((this.tableServicePhoto != null)) {
  505. this.tableServicePhoto.InitVars();
  506. }
  507. }
  508. this.tableTag = ((TagDataTable)(base.Tables["Tag"]));
  509. if ((initTable == true)) {
  510. if ((this.tableTag != null)) {
  511. this.tableTag.InitVars();
  512. }
  513. }
  514. this.tableTagOfClient = ((TagOfClientDataTable)(base.Tables["TagOfClient"]));
  515. if ((initTable == true)) {
  516. if ((this.tableTagOfClient != null)) {
  517. this.tableTagOfClient.InitVars();
  518. }
  519. }
  520. this.relationFK_AttachedProduct_Product = this.Relations["FK_AttachedProduct_Product"];
  521. this.relationFK_AttachedProduct_Product1 = this.Relations["FK_AttachedProduct_Product1"];
  522. this.relationFK_Client_Gender = this.Relations["FK_Client_Gender"];
  523. this.relationFK_ClientService_Client = this.Relations["FK_ClientService_Client"];
  524. this.relationFK_ClientService_Service = this.Relations["FK_ClientService_Service"];
  525. this.relationFK_DocumentByService_ClientService = this.Relations["FK_DocumentByService_ClientService"];
  526. this.relationFK_Product_Manufacturer = this.Relations["FK_Product_Manufacturer"];
  527. this.relationFK_ProductPhoto_Product = this.Relations["FK_ProductPhoto_Product"];
  528. this.relationFK_ProductSale_ClientService = this.Relations["FK_ProductSale_ClientService"];
  529. this.relationFK_ProductSale_Product = this.Relations["FK_ProductSale_Product"];
  530. this.relationFK_ServicePhoto_Service = this.Relations["FK_ServicePhoto_Service"];
  531. this.relationFK_TagOfClient_Client = this.Relations["FK_TagOfClient_Client"];
  532. this.relationFK_TagOfClient_Tag = this.Relations["FK_TagOfClient_Tag"];
  533. }
  534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  535. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  536. private void InitClass() {
  537. this.DataSetName = "BBrovkiZDataSet";
  538. this.Prefix = "";
  539. this.Namespace = "http://tempuri.org/BBrovkiZDataSet.xsd";
  540. this.EnforceConstraints = true;
  541. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  542. this.tableAttachedProduct = new AttachedProductDataTable();
  543. base.Tables.Add(this.tableAttachedProduct);
  544. this.tablec = new cDataTable();
  545. base.Tables.Add(this.tablec);
  546. this.tableClient = new ClientDataTable();
  547. base.Tables.Add(this.tableClient);
  548. this.tableClientServise = new ClientServiseDataTable();
  549. base.Tables.Add(this.tableClientServise);
  550. this.tablecs = new csDataTable();
  551. base.Tables.Add(this.tablecs);
  552. this.tableDocumentByService = new DocumentByServiceDataTable();
  553. base.Tables.Add(this.tableDocumentByService);
  554. this.tableGender = new GenderDataTable();
  555. base.Tables.Add(this.tableGender);
  556. this.tableManufacturer = new ManufacturerDataTable();
  557. base.Tables.Add(this.tableManufacturer);
  558. this.tableProduct = new ProductDataTable();
  559. base.Tables.Add(this.tableProduct);
  560. this.tableProductPhoto = new ProductPhotoDataTable();
  561. base.Tables.Add(this.tableProductPhoto);
  562. this.tableProductSale = new ProductSaleDataTable();
  563. base.Tables.Add(this.tableProductSale);
  564. this.tables = new sDataTable();
  565. base.Tables.Add(this.tables);
  566. this.tableService = new ServiceDataTable();
  567. base.Tables.Add(this.tableService);
  568. this.tableServicePhoto = new ServicePhotoDataTable();
  569. base.Tables.Add(this.tableServicePhoto);
  570. this.tableTag = new TagDataTable();
  571. base.Tables.Add(this.tableTag);
  572. this.tableTagOfClient = new TagOfClientDataTable();
  573. base.Tables.Add(this.tableTagOfClient);
  574. this.relationFK_AttachedProduct_Product = new global::System.Data.DataRelation("FK_AttachedProduct_Product", new global::System.Data.DataColumn[] {
  575. this.tableProduct.IDColumn}, new global::System.Data.DataColumn[] {
  576. this.tableAttachedProduct.MainProductIDColumn}, false);
  577. this.Relations.Add(this.relationFK_AttachedProduct_Product);
  578. this.relationFK_AttachedProduct_Product1 = new global::System.Data.DataRelation("FK_AttachedProduct_Product1", new global::System.Data.DataColumn[] {
  579. this.tableProduct.IDColumn}, new global::System.Data.DataColumn[] {
  580. this.tableAttachedProduct.AttachedProductIDColumn}, false);
  581. this.Relations.Add(this.relationFK_AttachedProduct_Product1);
  582. this.relationFK_Client_Gender = new global::System.Data.DataRelation("FK_Client_Gender", new global::System.Data.DataColumn[] {
  583. this.tableGender.CodeColumn}, new global::System.Data.DataColumn[] {
  584. this.tablec.GenderCodeColumn}, false);
  585. this.Relations.Add(this.relationFK_Client_Gender);
  586. this.relationFK_ClientService_Client = new global::System.Data.DataRelation("FK_ClientService_Client", new global::System.Data.DataColumn[] {
  587. this.tablec.IDColumn}, new global::System.Data.DataColumn[] {
  588. this.tablecs.ClientIDColumn}, false);
  589. this.Relations.Add(this.relationFK_ClientService_Client);
  590. this.relationFK_ClientService_Service = new global::System.Data.DataRelation("FK_ClientService_Service", new global::System.Data.DataColumn[] {
  591. this.tables.IDColumn}, new global::System.Data.DataColumn[] {
  592. this.tablecs.ServiceIDColumn}, false);
  593. this.Relations.Add(this.relationFK_ClientService_Service);
  594. this.relationFK_DocumentByService_ClientService = new global::System.Data.DataRelation("FK_DocumentByService_ClientService", new global::System.Data.DataColumn[] {
  595. this.tablecs.IDColumn}, new global::System.Data.DataColumn[] {
  596. this.tableDocumentByService.ClientServiceIDColumn}, false);
  597. this.Relations.Add(this.relationFK_DocumentByService_ClientService);
  598. this.relationFK_Product_Manufacturer = new global::System.Data.DataRelation("FK_Product_Manufacturer", new global::System.Data.DataColumn[] {
  599. this.tableManufacturer.IDColumn}, new global::System.Data.DataColumn[] {
  600. this.tableProduct.ManufacturerIDColumn}, false);
  601. this.Relations.Add(this.relationFK_Product_Manufacturer);
  602. this.relationFK_ProductPhoto_Product = new global::System.Data.DataRelation("FK_ProductPhoto_Product", new global::System.Data.DataColumn[] {
  603. this.tableProduct.IDColumn}, new global::System.Data.DataColumn[] {
  604. this.tableProductPhoto.ProductIDColumn}, false);
  605. this.Relations.Add(this.relationFK_ProductPhoto_Product);
  606. this.relationFK_ProductSale_ClientService = new global::System.Data.DataRelation("FK_ProductSale_ClientService", new global::System.Data.DataColumn[] {
  607. this.tablecs.IDColumn}, new global::System.Data.DataColumn[] {
  608. this.tableProductSale.ClientServiceIDColumn}, false);
  609. this.Relations.Add(this.relationFK_ProductSale_ClientService);
  610. this.relationFK_ProductSale_Product = new global::System.Data.DataRelation("FK_ProductSale_Product", new global::System.Data.DataColumn[] {
  611. this.tableProduct.IDColumn}, new global::System.Data.DataColumn[] {
  612. this.tableProductSale.ProductIDColumn}, false);
  613. this.Relations.Add(this.relationFK_ProductSale_Product);
  614. this.relationFK_ServicePhoto_Service = new global::System.Data.DataRelation("FK_ServicePhoto_Service", new global::System.Data.DataColumn[] {
  615. this.tables.IDColumn}, new global::System.Data.DataColumn[] {
  616. this.tableServicePhoto.ServiceIDColumn}, false);
  617. this.Relations.Add(this.relationFK_ServicePhoto_Service);
  618. this.relationFK_TagOfClient_Client = new global::System.Data.DataRelation("FK_TagOfClient_Client", new global::System.Data.DataColumn[] {
  619. this.tablec.IDColumn}, new global::System.Data.DataColumn[] {
  620. this.tableTagOfClient.ClientIDColumn}, false);
  621. this.Relations.Add(this.relationFK_TagOfClient_Client);
  622. this.relationFK_TagOfClient_Tag = new global::System.Data.DataRelation("FK_TagOfClient_Tag", new global::System.Data.DataColumn[] {
  623. this.tableTag.IDColumn}, new global::System.Data.DataColumn[] {
  624. this.tableTagOfClient.TagIDColumn}, false);
  625. this.Relations.Add(this.relationFK_TagOfClient_Tag);
  626. }
  627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  629. private bool ShouldSerializeAttachedProduct() {
  630. return false;
  631. }
  632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  634. private bool ShouldSerializec() {
  635. return false;
  636. }
  637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  638. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  639. private bool ShouldSerializeClient() {
  640. return false;
  641. }
  642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  644. private bool ShouldSerializeClientServise() {
  645. return false;
  646. }
  647. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  648. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  649. private bool ShouldSerializecs() {
  650. return false;
  651. }
  652. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  653. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  654. private bool ShouldSerializeDocumentByService() {
  655. return false;
  656. }
  657. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  658. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  659. private bool ShouldSerializeGender() {
  660. return false;
  661. }
  662. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  663. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  664. private bool ShouldSerializeManufacturer() {
  665. return false;
  666. }
  667. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  668. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  669. private bool ShouldSerializeProduct() {
  670. return false;
  671. }
  672. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  674. private bool ShouldSerializeProductPhoto() {
  675. return false;
  676. }
  677. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  678. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  679. private bool ShouldSerializeProductSale() {
  680. return false;
  681. }
  682. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  683. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  684. private bool ShouldSerializes() {
  685. return false;
  686. }
  687. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  688. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  689. private bool ShouldSerializeService() {
  690. return false;
  691. }
  692. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  693. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  694. private bool ShouldSerializeServicePhoto() {
  695. return false;
  696. }
  697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  698. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  699. private bool ShouldSerializeTag() {
  700. return false;
  701. }
  702. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  703. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  704. private bool ShouldSerializeTagOfClient() {
  705. return false;
  706. }
  707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  709. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  710. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  711. this.InitVars();
  712. }
  713. }
  714. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  715. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  716. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  717. BBrovkiZDataSet ds = new BBrovkiZDataSet();
  718. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  719. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  720. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  721. any.Namespace = ds.Namespace;
  722. sequence.Items.Add(any);
  723. type.Particle = sequence;
  724. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  725. if (xs.Contains(dsSchema.TargetNamespace)) {
  726. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  727. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  728. try {
  729. global::System.Xml.Schema.XmlSchema schema = null;
  730. dsSchema.Write(s1);
  731. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  732. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  733. s2.SetLength(0);
  734. schema.Write(s2);
  735. if ((s1.Length == s2.Length)) {
  736. s1.Position = 0;
  737. s2.Position = 0;
  738. for (; ((s1.Position != s1.Length)
  739. && (s1.ReadByte() == s2.ReadByte())); ) {
  740. ;
  741. }
  742. if ((s1.Position == s1.Length)) {
  743. return type;
  744. }
  745. }
  746. }
  747. }
  748. finally {
  749. if ((s1 != null)) {
  750. s1.Close();
  751. }
  752. if ((s2 != null)) {
  753. s2.Close();
  754. }
  755. }
  756. }
  757. xs.Add(dsSchema);
  758. return type;
  759. }
  760. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  761. public delegate void AttachedProductRowChangeEventHandler(object sender, AttachedProductRowChangeEvent e);
  762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  763. public delegate void cRowChangeEventHandler(object sender, cRowChangeEvent e);
  764. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  765. public delegate void ClientRowChangeEventHandler(object sender, ClientRowChangeEvent e);
  766. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  767. public delegate void ClientServiseRowChangeEventHandler(object sender, ClientServiseRowChangeEvent e);
  768. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  769. public delegate void csRowChangeEventHandler(object sender, csRowChangeEvent e);
  770. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  771. public delegate void DocumentByServiceRowChangeEventHandler(object sender, DocumentByServiceRowChangeEvent e);
  772. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  773. public delegate void GenderRowChangeEventHandler(object sender, GenderRowChangeEvent e);
  774. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  775. public delegate void ManufacturerRowChangeEventHandler(object sender, ManufacturerRowChangeEvent e);
  776. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  777. public delegate void ProductRowChangeEventHandler(object sender, ProductRowChangeEvent e);
  778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  779. public delegate void ProductPhotoRowChangeEventHandler(object sender, ProductPhotoRowChangeEvent e);
  780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  781. public delegate void ProductSaleRowChangeEventHandler(object sender, ProductSaleRowChangeEvent e);
  782. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  783. public delegate void sRowChangeEventHandler(object sender, sRowChangeEvent e);
  784. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  785. public delegate void ServiceRowChangeEventHandler(object sender, ServiceRowChangeEvent e);
  786. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  787. public delegate void ServicePhotoRowChangeEventHandler(object sender, ServicePhotoRowChangeEvent e);
  788. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  789. public delegate void TagRowChangeEventHandler(object sender, TagRowChangeEvent e);
  790. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  791. public delegate void TagOfClientRowChangeEventHandler(object sender, TagOfClientRowChangeEvent e);
  792. /// <summary>
  793. ///Represents the strongly named DataTable class.
  794. ///</summary>
  795. [global::System.Serializable()]
  796. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  797. public partial class AttachedProductDataTable : global::System.Data.TypedTableBase<AttachedProductRow> {
  798. private global::System.Data.DataColumn columnMainProductID;
  799. private global::System.Data.DataColumn columnAttachedProductID;
  800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  802. public AttachedProductDataTable() {
  803. this.TableName = "AttachedProduct";
  804. this.BeginInit();
  805. this.InitClass();
  806. this.EndInit();
  807. }
  808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  810. internal AttachedProductDataTable(global::System.Data.DataTable table) {
  811. this.TableName = table.TableName;
  812. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  813. this.CaseSensitive = table.CaseSensitive;
  814. }
  815. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  816. this.Locale = table.Locale;
  817. }
  818. if ((table.Namespace != table.DataSet.Namespace)) {
  819. this.Namespace = table.Namespace;
  820. }
  821. this.Prefix = table.Prefix;
  822. this.MinimumCapacity = table.MinimumCapacity;
  823. }
  824. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  825. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  826. protected AttachedProductDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  827. base(info, context) {
  828. this.InitVars();
  829. }
  830. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  831. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  832. public global::System.Data.DataColumn MainProductIDColumn {
  833. get {
  834. return this.columnMainProductID;
  835. }
  836. }
  837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  839. public global::System.Data.DataColumn AttachedProductIDColumn {
  840. get {
  841. return this.columnAttachedProductID;
  842. }
  843. }
  844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  845. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  846. [global::System.ComponentModel.Browsable(false)]
  847. public int Count {
  848. get {
  849. return this.Rows.Count;
  850. }
  851. }
  852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  853. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  854. public AttachedProductRow this[int index] {
  855. get {
  856. return ((AttachedProductRow)(this.Rows[index]));
  857. }
  858. }
  859. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  860. public event AttachedProductRowChangeEventHandler AttachedProductRowChanging;
  861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  862. public event AttachedProductRowChangeEventHandler AttachedProductRowChanged;
  863. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  864. public event AttachedProductRowChangeEventHandler AttachedProductRowDeleting;
  865. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  866. public event AttachedProductRowChangeEventHandler AttachedProductRowDeleted;
  867. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  868. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  869. public void AddAttachedProductRow(AttachedProductRow row) {
  870. this.Rows.Add(row);
  871. }
  872. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  873. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  874. public AttachedProductRow AddAttachedProductRow(ProductRow parentProductRowByFK_AttachedProduct_Product, ProductRow parentProductRowByFK_AttachedProduct_Product1) {
  875. AttachedProductRow rowAttachedProductRow = ((AttachedProductRow)(this.NewRow()));
  876. object[] columnValuesArray = new object[] {
  877. null,
  878. null};
  879. if ((parentProductRowByFK_AttachedProduct_Product != null)) {
  880. columnValuesArray[0] = parentProductRowByFK_AttachedProduct_Product[0];
  881. }
  882. if ((parentProductRowByFK_AttachedProduct_Product1 != null)) {
  883. columnValuesArray[1] = parentProductRowByFK_AttachedProduct_Product1[0];
  884. }
  885. rowAttachedProductRow.ItemArray = columnValuesArray;
  886. this.Rows.Add(rowAttachedProductRow);
  887. return rowAttachedProductRow;
  888. }
  889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  890. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  891. public AttachedProductRow FindByMainProductIDAttachedProductID(int MainProductID, int AttachedProductID) {
  892. return ((AttachedProductRow)(this.Rows.Find(new object[] {
  893. MainProductID,
  894. AttachedProductID})));
  895. }
  896. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  897. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  898. public override global::System.Data.DataTable Clone() {
  899. AttachedProductDataTable cln = ((AttachedProductDataTable)(base.Clone()));
  900. cln.InitVars();
  901. return cln;
  902. }
  903. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  904. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  905. protected override global::System.Data.DataTable CreateInstance() {
  906. return new AttachedProductDataTable();
  907. }
  908. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  909. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  910. internal void InitVars() {
  911. this.columnMainProductID = base.Columns["MainProductID"];
  912. this.columnAttachedProductID = base.Columns["AttachedProductID"];
  913. }
  914. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  915. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  916. private void InitClass() {
  917. this.columnMainProductID = new global::System.Data.DataColumn("MainProductID", typeof(int), null, global::System.Data.MappingType.Element);
  918. base.Columns.Add(this.columnMainProductID);
  919. this.columnAttachedProductID = new global::System.Data.DataColumn("AttachedProductID", typeof(int), null, global::System.Data.MappingType.Element);
  920. base.Columns.Add(this.columnAttachedProductID);
  921. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  922. this.columnMainProductID,
  923. this.columnAttachedProductID}, true));
  924. this.columnMainProductID.AllowDBNull = false;
  925. this.columnAttachedProductID.AllowDBNull = false;
  926. }
  927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  928. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  929. public AttachedProductRow NewAttachedProductRow() {
  930. return ((AttachedProductRow)(this.NewRow()));
  931. }
  932. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  933. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  934. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  935. return new AttachedProductRow(builder);
  936. }
  937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  938. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  939. protected override global::System.Type GetRowType() {
  940. return typeof(AttachedProductRow);
  941. }
  942. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  943. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  944. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  945. base.OnRowChanged(e);
  946. if ((this.AttachedProductRowChanged != null)) {
  947. this.AttachedProductRowChanged(this, new AttachedProductRowChangeEvent(((AttachedProductRow)(e.Row)), e.Action));
  948. }
  949. }
  950. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  951. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  952. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  953. base.OnRowChanging(e);
  954. if ((this.AttachedProductRowChanging != null)) {
  955. this.AttachedProductRowChanging(this, new AttachedProductRowChangeEvent(((AttachedProductRow)(e.Row)), e.Action));
  956. }
  957. }
  958. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  959. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  960. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  961. base.OnRowDeleted(e);
  962. if ((this.AttachedProductRowDeleted != null)) {
  963. this.AttachedProductRowDeleted(this, new AttachedProductRowChangeEvent(((AttachedProductRow)(e.Row)), e.Action));
  964. }
  965. }
  966. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  967. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  968. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  969. base.OnRowDeleting(e);
  970. if ((this.AttachedProductRowDeleting != null)) {
  971. this.AttachedProductRowDeleting(this, new AttachedProductRowChangeEvent(((AttachedProductRow)(e.Row)), e.Action));
  972. }
  973. }
  974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  975. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  976. public void RemoveAttachedProductRow(AttachedProductRow row) {
  977. this.Rows.Remove(row);
  978. }
  979. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  980. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  981. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  982. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  983. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  984. BBrovkiZDataSet ds = new BBrovkiZDataSet();
  985. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  986. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  987. any1.MinOccurs = new decimal(0);
  988. any1.MaxOccurs = decimal.MaxValue;
  989. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  990. sequence.Items.Add(any1);
  991. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  992. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  993. any2.MinOccurs = new decimal(1);
  994. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  995. sequence.Items.Add(any2);
  996. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  997. attribute1.Name = "namespace";
  998. attribute1.FixedValue = ds.Namespace;
  999. type.Attributes.Add(attribute1);
  1000. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1001. attribute2.Name = "tableTypeName";
  1002. attribute2.FixedValue = "AttachedProductDataTable";
  1003. type.Attributes.Add(attribute2);
  1004. type.Particle = sequence;
  1005. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1006. if (xs.Contains(dsSchema.TargetNamespace)) {
  1007. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1008. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1009. try {
  1010. global::System.Xml.Schema.XmlSchema schema = null;
  1011. dsSchema.Write(s1);
  1012. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1013. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1014. s2.SetLength(0);
  1015. schema.Write(s2);
  1016. if ((s1.Length == s2.Length)) {
  1017. s1.Position = 0;
  1018. s2.Position = 0;
  1019. for (; ((s1.Position != s1.Length)
  1020. && (s1.ReadByte() == s2.ReadByte())); ) {
  1021. ;
  1022. }
  1023. if ((s1.Position == s1.Length)) {
  1024. return type;
  1025. }
  1026. }
  1027. }
  1028. }
  1029. finally {
  1030. if ((s1 != null)) {
  1031. s1.Close();
  1032. }
  1033. if ((s2 != null)) {
  1034. s2.Close();
  1035. }
  1036. }
  1037. }
  1038. xs.Add(dsSchema);
  1039. return type;
  1040. }
  1041. }
  1042. /// <summary>
  1043. ///Represents the strongly named DataTable class.
  1044. ///</summary>
  1045. [global::System.Serializable()]
  1046. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1047. public partial class cDataTable : global::System.Data.TypedTableBase<cRow> {
  1048. private global::System.Data.DataColumn columnID;
  1049. private global::System.Data.DataColumn columnFirstName;
  1050. private global::System.Data.DataColumn columnLastName;
  1051. private global::System.Data.DataColumn columnPatronymic;
  1052. private global::System.Data.DataColumn columnBirthday;
  1053. private global::System.Data.DataColumn columnRegistrationDate;
  1054. private global::System.Data.DataColumn columnEmail;
  1055. private global::System.Data.DataColumn columnPhone;
  1056. private global::System.Data.DataColumn columnGenderCode;
  1057. private global::System.Data.DataColumn columnPhotoPath;
  1058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1059. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1060. public cDataTable() {
  1061. this.TableName = "c";
  1062. this.BeginInit();
  1063. this.InitClass();
  1064. this.EndInit();
  1065. }
  1066. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1067. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1068. internal cDataTable(global::System.Data.DataTable table) {
  1069. this.TableName = table.TableName;
  1070. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1071. this.CaseSensitive = table.CaseSensitive;
  1072. }
  1073. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1074. this.Locale = table.Locale;
  1075. }
  1076. if ((table.Namespace != table.DataSet.Namespace)) {
  1077. this.Namespace = table.Namespace;
  1078. }
  1079. this.Prefix = table.Prefix;
  1080. this.MinimumCapacity = table.MinimumCapacity;
  1081. }
  1082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1084. protected cDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1085. base(info, context) {
  1086. this.InitVars();
  1087. }
  1088. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1089. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1090. public global::System.Data.DataColumn IDColumn {
  1091. get {
  1092. return this.columnID;
  1093. }
  1094. }
  1095. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1096. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1097. public global::System.Data.DataColumn FirstNameColumn {
  1098. get {
  1099. return this.columnFirstName;
  1100. }
  1101. }
  1102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1103. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1104. public global::System.Data.DataColumn LastNameColumn {
  1105. get {
  1106. return this.columnLastName;
  1107. }
  1108. }
  1109. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1110. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1111. public global::System.Data.DataColumn PatronymicColumn {
  1112. get {
  1113. return this.columnPatronymic;
  1114. }
  1115. }
  1116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1118. public global::System.Data.DataColumn BirthdayColumn {
  1119. get {
  1120. return this.columnBirthday;
  1121. }
  1122. }
  1123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1124. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1125. public global::System.Data.DataColumn RegistrationDateColumn {
  1126. get {
  1127. return this.columnRegistrationDate;
  1128. }
  1129. }
  1130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1131. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1132. public global::System.Data.DataColumn EmailColumn {
  1133. get {
  1134. return this.columnEmail;
  1135. }
  1136. }
  1137. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1138. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1139. public global::System.Data.DataColumn PhoneColumn {
  1140. get {
  1141. return this.columnPhone;
  1142. }
  1143. }
  1144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1146. public global::System.Data.DataColumn GenderCodeColumn {
  1147. get {
  1148. return this.columnGenderCode;
  1149. }
  1150. }
  1151. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1152. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1153. public global::System.Data.DataColumn PhotoPathColumn {
  1154. get {
  1155. return this.columnPhotoPath;
  1156. }
  1157. }
  1158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1159. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1160. [global::System.ComponentModel.Browsable(false)]
  1161. public int Count {
  1162. get {
  1163. return this.Rows.Count;
  1164. }
  1165. }
  1166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1167. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1168. public cRow this[int index] {
  1169. get {
  1170. return ((cRow)(this.Rows[index]));
  1171. }
  1172. }
  1173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1174. public event cRowChangeEventHandler cRowChanging;
  1175. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1176. public event cRowChangeEventHandler cRowChanged;
  1177. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1178. public event cRowChangeEventHandler cRowDeleting;
  1179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1180. public event cRowChangeEventHandler cRowDeleted;
  1181. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1182. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1183. public void AddcRow(cRow row) {
  1184. this.Rows.Add(row);
  1185. }
  1186. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1187. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1188. public cRow AddcRow(string FirstName, string LastName, string Patronymic, System.DateTime Birthday, System.DateTime RegistrationDate, string Email, string Phone, GenderRow parentGenderRowByFK_Client_Gender, string PhotoPath) {
  1189. cRow rowcRow = ((cRow)(this.NewRow()));
  1190. object[] columnValuesArray = new object[] {
  1191. null,
  1192. FirstName,
  1193. LastName,
  1194. Patronymic,
  1195. Birthday,
  1196. RegistrationDate,
  1197. Email,
  1198. Phone,
  1199. null,
  1200. PhotoPath};
  1201. if ((parentGenderRowByFK_Client_Gender != null)) {
  1202. columnValuesArray[8] = parentGenderRowByFK_Client_Gender[0];
  1203. }
  1204. rowcRow.ItemArray = columnValuesArray;
  1205. this.Rows.Add(rowcRow);
  1206. return rowcRow;
  1207. }
  1208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1209. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1210. public cRow FindByID(int ID) {
  1211. return ((cRow)(this.Rows.Find(new object[] {
  1212. ID})));
  1213. }
  1214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1215. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1216. public override global::System.Data.DataTable Clone() {
  1217. cDataTable cln = ((cDataTable)(base.Clone()));
  1218. cln.InitVars();
  1219. return cln;
  1220. }
  1221. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1222. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1223. protected override global::System.Data.DataTable CreateInstance() {
  1224. return new cDataTable();
  1225. }
  1226. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1227. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1228. internal void InitVars() {
  1229. this.columnID = base.Columns["ID"];
  1230. this.columnFirstName = base.Columns["FirstName"];
  1231. this.columnLastName = base.Columns["LastName"];
  1232. this.columnPatronymic = base.Columns["Patronymic"];
  1233. this.columnBirthday = base.Columns["Birthday"];
  1234. this.columnRegistrationDate = base.Columns["RegistrationDate"];
  1235. this.columnEmail = base.Columns["Email"];
  1236. this.columnPhone = base.Columns["Phone"];
  1237. this.columnGenderCode = base.Columns["GenderCode"];
  1238. this.columnPhotoPath = base.Columns["PhotoPath"];
  1239. }
  1240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1241. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1242. private void InitClass() {
  1243. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  1244. base.Columns.Add(this.columnID);
  1245. this.columnFirstName = new global::System.Data.DataColumn("FirstName", typeof(string), null, global::System.Data.MappingType.Element);
  1246. base.Columns.Add(this.columnFirstName);
  1247. this.columnLastName = new global::System.Data.DataColumn("LastName", typeof(string), null, global::System.Data.MappingType.Element);
  1248. base.Columns.Add(this.columnLastName);
  1249. this.columnPatronymic = new global::System.Data.DataColumn("Patronymic", typeof(string), null, global::System.Data.MappingType.Element);
  1250. base.Columns.Add(this.columnPatronymic);
  1251. this.columnBirthday = new global::System.Data.DataColumn("Birthday", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1252. base.Columns.Add(this.columnBirthday);
  1253. this.columnRegistrationDate = new global::System.Data.DataColumn("RegistrationDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1254. base.Columns.Add(this.columnRegistrationDate);
  1255. this.columnEmail = new global::System.Data.DataColumn("Email", typeof(string), null, global::System.Data.MappingType.Element);
  1256. base.Columns.Add(this.columnEmail);
  1257. this.columnPhone = new global::System.Data.DataColumn("Phone", typeof(string), null, global::System.Data.MappingType.Element);
  1258. base.Columns.Add(this.columnPhone);
  1259. this.columnGenderCode = new global::System.Data.DataColumn("GenderCode", typeof(string), null, global::System.Data.MappingType.Element);
  1260. base.Columns.Add(this.columnGenderCode);
  1261. this.columnPhotoPath = new global::System.Data.DataColumn("PhotoPath", typeof(string), null, global::System.Data.MappingType.Element);
  1262. base.Columns.Add(this.columnPhotoPath);
  1263. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1264. this.columnID}, true));
  1265. this.columnID.AutoIncrement = true;
  1266. this.columnID.AutoIncrementSeed = -1;
  1267. this.columnID.AutoIncrementStep = -1;
  1268. this.columnID.AllowDBNull = false;
  1269. this.columnID.ReadOnly = true;
  1270. this.columnID.Unique = true;
  1271. this.columnFirstName.AllowDBNull = false;
  1272. this.columnFirstName.MaxLength = 50;
  1273. this.columnLastName.AllowDBNull = false;
  1274. this.columnLastName.MaxLength = 50;
  1275. this.columnPatronymic.MaxLength = 50;
  1276. this.columnRegistrationDate.AllowDBNull = false;
  1277. this.columnEmail.MaxLength = 255;
  1278. this.columnPhone.AllowDBNull = false;
  1279. this.columnPhone.MaxLength = 20;
  1280. this.columnGenderCode.AllowDBNull = false;
  1281. this.columnGenderCode.MaxLength = 1;
  1282. this.columnPhotoPath.MaxLength = 1000;
  1283. }
  1284. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1285. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1286. public cRow NewcRow() {
  1287. return ((cRow)(this.NewRow()));
  1288. }
  1289. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1290. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1291. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1292. return new cRow(builder);
  1293. }
  1294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1296. protected override global::System.Type GetRowType() {
  1297. return typeof(cRow);
  1298. }
  1299. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1300. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1301. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1302. base.OnRowChanged(e);
  1303. if ((this.cRowChanged != null)) {
  1304. this.cRowChanged(this, new cRowChangeEvent(((cRow)(e.Row)), e.Action));
  1305. }
  1306. }
  1307. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1308. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1309. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1310. base.OnRowChanging(e);
  1311. if ((this.cRowChanging != null)) {
  1312. this.cRowChanging(this, new cRowChangeEvent(((cRow)(e.Row)), e.Action));
  1313. }
  1314. }
  1315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1316. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1317. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1318. base.OnRowDeleted(e);
  1319. if ((this.cRowDeleted != null)) {
  1320. this.cRowDeleted(this, new cRowChangeEvent(((cRow)(e.Row)), e.Action));
  1321. }
  1322. }
  1323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1324. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1325. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1326. base.OnRowDeleting(e);
  1327. if ((this.cRowDeleting != null)) {
  1328. this.cRowDeleting(this, new cRowChangeEvent(((cRow)(e.Row)), e.Action));
  1329. }
  1330. }
  1331. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1332. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1333. public void RemovecRow(cRow row) {
  1334. this.Rows.Remove(row);
  1335. }
  1336. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1337. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1338. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1339. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1340. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1341. BBrovkiZDataSet ds = new BBrovkiZDataSet();
  1342. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1343. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1344. any1.MinOccurs = new decimal(0);
  1345. any1.MaxOccurs = decimal.MaxValue;
  1346. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1347. sequence.Items.Add(any1);
  1348. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1349. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1350. any2.MinOccurs = new decimal(1);
  1351. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1352. sequence.Items.Add(any2);
  1353. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1354. attribute1.Name = "namespace";
  1355. attribute1.FixedValue = ds.Namespace;
  1356. type.Attributes.Add(attribute1);
  1357. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1358. attribute2.Name = "tableTypeName";
  1359. attribute2.FixedValue = "cDataTable";
  1360. type.Attributes.Add(attribute2);
  1361. type.Particle = sequence;
  1362. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1363. if (xs.Contains(dsSchema.TargetNamespace)) {
  1364. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1365. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1366. try {
  1367. global::System.Xml.Schema.XmlSchema schema = null;
  1368. dsSchema.Write(s1);
  1369. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1370. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1371. s2.SetLength(0);
  1372. schema.Write(s2);
  1373. if ((s1.Length == s2.Length)) {
  1374. s1.Position = 0;
  1375. s2.Position = 0;
  1376. for (; ((s1.Position != s1.Length)
  1377. && (s1.ReadByte() == s2.ReadByte())); ) {
  1378. ;
  1379. }
  1380. if ((s1.Position == s1.Length)) {
  1381. return type;
  1382. }
  1383. }
  1384. }
  1385. }
  1386. finally {
  1387. if ((s1 != null)) {
  1388. s1.Close();
  1389. }
  1390. if ((s2 != null)) {
  1391. s2.Close();
  1392. }
  1393. }
  1394. }
  1395. xs.Add(dsSchema);
  1396. return type;
  1397. }
  1398. }
  1399. /// <summary>
  1400. ///Represents the strongly named DataTable class.
  1401. ///</summary>
  1402. [global::System.Serializable()]
  1403. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1404. public partial class ClientDataTable : global::System.Data.TypedTableBase<ClientRow> {
  1405. private global::System.Data.DataColumn columnID;
  1406. private global::System.Data.DataColumn columnФамилия;
  1407. private global::System.Data.DataColumn columnИмя;
  1408. private global::System.Data.DataColumn columnОтчество;
  1409. private global::System.Data.DataColumn columnПол;
  1410. private global::System.Data.DataColumn columnТелефон;
  1411. private global::System.Data.DataColumn columnДата_рождения;
  1412. private global::System.Data.DataColumn columnEmail;
  1413. private global::System.Data.DataColumn columnДата_регистрации;
  1414. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1415. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1416. public ClientDataTable() {
  1417. this.TableName = "Client";
  1418. this.BeginInit();
  1419. this.InitClass();
  1420. this.EndInit();
  1421. }
  1422. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1423. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1424. internal ClientDataTable(global::System.Data.DataTable table) {
  1425. this.TableName = table.TableName;
  1426. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1427. this.CaseSensitive = table.CaseSensitive;
  1428. }
  1429. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1430. this.Locale = table.Locale;
  1431. }
  1432. if ((table.Namespace != table.DataSet.Namespace)) {
  1433. this.Namespace = table.Namespace;
  1434. }
  1435. this.Prefix = table.Prefix;
  1436. this.MinimumCapacity = table.MinimumCapacity;
  1437. }
  1438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1439. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1440. protected ClientDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1441. base(info, context) {
  1442. this.InitVars();
  1443. }
  1444. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1445. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1446. public global::System.Data.DataColumn IDColumn {
  1447. get {
  1448. return this.columnID;
  1449. }
  1450. }
  1451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1452. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1453. public global::System.Data.DataColumn ФамилияColumn {
  1454. get {
  1455. return this.columnФамилия;
  1456. }
  1457. }
  1458. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1459. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1460. public global::System.Data.DataColumn ИмяColumn {
  1461. get {
  1462. return this.columnИмя;
  1463. }
  1464. }
  1465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1466. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1467. public global::System.Data.DataColumn ОтчествоColumn {
  1468. get {
  1469. return this.columnОтчество;
  1470. }
  1471. }
  1472. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1474. public global::System.Data.DataColumn ПолColumn {
  1475. get {
  1476. return this.columnПол;
  1477. }
  1478. }
  1479. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1480. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1481. public global::System.Data.DataColumn ТелефонColumn {
  1482. get {
  1483. return this.columnТелефон;
  1484. }
  1485. }
  1486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1488. public global::System.Data.DataColumn Дата_рожденияColumn {
  1489. get {
  1490. return this.columnДата_рождения;
  1491. }
  1492. }
  1493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1494. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1495. public global::System.Data.DataColumn EmailColumn {
  1496. get {
  1497. return this.columnEmail;
  1498. }
  1499. }
  1500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1502. public global::System.Data.DataColumn Дата_регистрацииColumn {
  1503. get {
  1504. return this.columnДата_регистрации;
  1505. }
  1506. }
  1507. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1508. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1509. [global::System.ComponentModel.Browsable(false)]
  1510. public int Count {
  1511. get {
  1512. return this.Rows.Count;
  1513. }
  1514. }
  1515. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1516. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1517. public ClientRow this[int index] {
  1518. get {
  1519. return ((ClientRow)(this.Rows[index]));
  1520. }
  1521. }
  1522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1523. public event ClientRowChangeEventHandler ClientRowChanging;
  1524. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1525. public event ClientRowChangeEventHandler ClientRowChanged;
  1526. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1527. public event ClientRowChangeEventHandler ClientRowDeleting;
  1528. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1529. public event ClientRowChangeEventHandler ClientRowDeleted;
  1530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1532. public void AddClientRow(ClientRow row) {
  1533. this.Rows.Add(row);
  1534. }
  1535. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1536. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1537. public ClientRow AddClientRow(int ID, string Фамилия, string Имя, string Отчество, string Пол, string Телефон, System.DateTime Дата_рождения, string Email, System.DateTime Дата_регистрации) {
  1538. ClientRow rowClientRow = ((ClientRow)(this.NewRow()));
  1539. object[] columnValuesArray = new object[] {
  1540. ID,
  1541. Фамилия,
  1542. Имя,
  1543. Отчество,
  1544. Пол,
  1545. Телефон,
  1546. Дата_рождения,
  1547. Email,
  1548. Дата_регистрации};
  1549. rowClientRow.ItemArray = columnValuesArray;
  1550. this.Rows.Add(rowClientRow);
  1551. return rowClientRow;
  1552. }
  1553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1555. public ClientRow FindByID(int ID) {
  1556. return ((ClientRow)(this.Rows.Find(new object[] {
  1557. ID})));
  1558. }
  1559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1561. public override global::System.Data.DataTable Clone() {
  1562. ClientDataTable cln = ((ClientDataTable)(base.Clone()));
  1563. cln.InitVars();
  1564. return cln;
  1565. }
  1566. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1567. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1568. protected override global::System.Data.DataTable CreateInstance() {
  1569. return new ClientDataTable();
  1570. }
  1571. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1572. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1573. internal void InitVars() {
  1574. this.columnID = base.Columns["ID"];
  1575. this.columnФамилия = base.Columns["Фамилия"];
  1576. this.columnИмя = base.Columns["Имя"];
  1577. this.columnОтчество = base.Columns["Отчество"];
  1578. this.columnПол = base.Columns["Пол"];
  1579. this.columnТелефон = base.Columns["Телефон"];
  1580. this.columnДата_рождения = base.Columns["Дата_рождения"];
  1581. this.columnEmail = base.Columns["Email"];
  1582. this.columnДата_регистрации = base.Columns["Дата_регистрации"];
  1583. }
  1584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1586. private void InitClass() {
  1587. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  1588. base.Columns.Add(this.columnID);
  1589. this.columnФамилия = new global::System.Data.DataColumn("Фамилия", typeof(string), null, global::System.Data.MappingType.Element);
  1590. base.Columns.Add(this.columnФамилия);
  1591. this.columnИмя = new global::System.Data.DataColumn("Имя", typeof(string), null, global::System.Data.MappingType.Element);
  1592. base.Columns.Add(this.columnИмя);
  1593. this.columnОтчество = new global::System.Data.DataColumn("Отчество", typeof(string), null, global::System.Data.MappingType.Element);
  1594. base.Columns.Add(this.columnОтчество);
  1595. this.columnПол = new global::System.Data.DataColumn("Пол", typeof(string), null, global::System.Data.MappingType.Element);
  1596. base.Columns.Add(this.columnПол);
  1597. this.columnТелефон = new global::System.Data.DataColumn("Телефон", typeof(string), null, global::System.Data.MappingType.Element);
  1598. base.Columns.Add(this.columnТелефон);
  1599. this.columnДата_рождения = new global::System.Data.DataColumn("Дата_рождения", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1600. base.Columns.Add(this.columnДата_рождения);
  1601. this.columnEmail = new global::System.Data.DataColumn("Email", typeof(string), null, global::System.Data.MappingType.Element);
  1602. base.Columns.Add(this.columnEmail);
  1603. this.columnДата_регистрации = new global::System.Data.DataColumn("Дата_регистрации", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1604. base.Columns.Add(this.columnДата_регистрации);
  1605. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1606. this.columnID}, true));
  1607. this.columnID.AllowDBNull = false;
  1608. this.columnID.Unique = true;
  1609. this.columnФамилия.AllowDBNull = false;
  1610. this.columnФамилия.MaxLength = 50;
  1611. this.columnИмя.AllowDBNull = false;
  1612. this.columnИмя.MaxLength = 50;
  1613. this.columnОтчество.AllowDBNull = false;
  1614. this.columnОтчество.MaxLength = 50;
  1615. this.columnПол.AllowDBNull = false;
  1616. this.columnПол.MaxLength = 50;
  1617. this.columnТелефон.AllowDBNull = false;
  1618. this.columnТелефон.MaxLength = 50;
  1619. this.columnДата_рождения.AllowDBNull = false;
  1620. this.columnEmail.AllowDBNull = false;
  1621. this.columnEmail.MaxLength = 50;
  1622. this.columnДата_регистрации.AllowDBNull = false;
  1623. }
  1624. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1625. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1626. public ClientRow NewClientRow() {
  1627. return ((ClientRow)(this.NewRow()));
  1628. }
  1629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1631. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1632. return new ClientRow(builder);
  1633. }
  1634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1636. protected override global::System.Type GetRowType() {
  1637. return typeof(ClientRow);
  1638. }
  1639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1641. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1642. base.OnRowChanged(e);
  1643. if ((this.ClientRowChanged != null)) {
  1644. this.ClientRowChanged(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  1645. }
  1646. }
  1647. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1648. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1649. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1650. base.OnRowChanging(e);
  1651. if ((this.ClientRowChanging != null)) {
  1652. this.ClientRowChanging(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  1653. }
  1654. }
  1655. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1656. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1657. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1658. base.OnRowDeleted(e);
  1659. if ((this.ClientRowDeleted != null)) {
  1660. this.ClientRowDeleted(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  1661. }
  1662. }
  1663. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1664. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1665. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1666. base.OnRowDeleting(e);
  1667. if ((this.ClientRowDeleting != null)) {
  1668. this.ClientRowDeleting(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  1669. }
  1670. }
  1671. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1672. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1673. public void RemoveClientRow(ClientRow row) {
  1674. this.Rows.Remove(row);
  1675. }
  1676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1677. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1678. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1679. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1680. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1681. BBrovkiZDataSet ds = new BBrovkiZDataSet();
  1682. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1683. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1684. any1.MinOccurs = new decimal(0);
  1685. any1.MaxOccurs = decimal.MaxValue;
  1686. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1687. sequence.Items.Add(any1);
  1688. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1689. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1690. any2.MinOccurs = new decimal(1);
  1691. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1692. sequence.Items.Add(any2);
  1693. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1694. attribute1.Name = "namespace";
  1695. attribute1.FixedValue = ds.Namespace;
  1696. type.Attributes.Add(attribute1);
  1697. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1698. attribute2.Name = "tableTypeName";
  1699. attribute2.FixedValue = "ClientDataTable";
  1700. type.Attributes.Add(attribute2);
  1701. type.Particle = sequence;
  1702. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1703. if (xs.Contains(dsSchema.TargetNamespace)) {
  1704. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1705. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1706. try {
  1707. global::System.Xml.Schema.XmlSchema schema = null;
  1708. dsSchema.Write(s1);
  1709. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1710. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1711. s2.SetLength(0);
  1712. schema.Write(s2);
  1713. if ((s1.Length == s2.Length)) {
  1714. s1.Position = 0;
  1715. s2.Position = 0;
  1716. for (; ((s1.Position != s1.Length)
  1717. && (s1.ReadByte() == s2.ReadByte())); ) {
  1718. ;
  1719. }
  1720. if ((s1.Position == s1.Length)) {
  1721. return type;
  1722. }
  1723. }
  1724. }
  1725. }
  1726. finally {
  1727. if ((s1 != null)) {
  1728. s1.Close();
  1729. }
  1730. if ((s2 != null)) {
  1731. s2.Close();
  1732. }
  1733. }
  1734. }
  1735. xs.Add(dsSchema);
  1736. return type;
  1737. }
  1738. }
  1739. /// <summary>
  1740. ///Represents the strongly named DataTable class.
  1741. ///</summary>
  1742. [global::System.Serializable()]
  1743. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1744. public partial class ClientServiseDataTable : global::System.Data.TypedTableBase<ClientServiseRow> {
  1745. private global::System.Data.DataColumn columnID;
  1746. private global::System.Data.DataColumn columnУслуга;
  1747. private global::System.Data.DataColumn columnНачало_оказания_услуги;
  1748. private global::System.Data.DataColumn columnКлиент;
  1749. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1750. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1751. public ClientServiseDataTable() {
  1752. this.TableName = "ClientServise";
  1753. this.BeginInit();
  1754. this.InitClass();
  1755. this.EndInit();
  1756. }
  1757. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1758. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1759. internal ClientServiseDataTable(global::System.Data.DataTable table) {
  1760. this.TableName = table.TableName;
  1761. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1762. this.CaseSensitive = table.CaseSensitive;
  1763. }
  1764. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1765. this.Locale = table.Locale;
  1766. }
  1767. if ((table.Namespace != table.DataSet.Namespace)) {
  1768. this.Namespace = table.Namespace;
  1769. }
  1770. this.Prefix = table.Prefix;
  1771. this.MinimumCapacity = table.MinimumCapacity;
  1772. }
  1773. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1774. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1775. protected ClientServiseDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1776. base(info, context) {
  1777. this.InitVars();
  1778. }
  1779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1781. public global::System.Data.DataColumn IDColumn {
  1782. get {
  1783. return this.columnID;
  1784. }
  1785. }
  1786. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1787. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1788. public global::System.Data.DataColumn УслугаColumn {
  1789. get {
  1790. return this.columnУслуга;
  1791. }
  1792. }
  1793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1794. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1795. public global::System.Data.DataColumn Начало_оказания_услугиColumn {
  1796. get {
  1797. return this.columnНачало_оказания_услуги;
  1798. }
  1799. }
  1800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1802. public global::System.Data.DataColumn КлиентColumn {
  1803. get {
  1804. return this.columnКлиент;
  1805. }
  1806. }
  1807. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1808. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1809. [global::System.ComponentModel.Browsable(false)]
  1810. public int Count {
  1811. get {
  1812. return this.Rows.Count;
  1813. }
  1814. }
  1815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1816. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1817. public ClientServiseRow this[int index] {
  1818. get {
  1819. return ((ClientServiseRow)(this.Rows[index]));
  1820. }
  1821. }
  1822. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1823. public event ClientServiseRowChangeEventHandler ClientServiseRowChanging;
  1824. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1825. public event ClientServiseRowChangeEventHandler ClientServiseRowChanged;
  1826. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1827. public event ClientServiseRowChangeEventHandler ClientServiseRowDeleting;
  1828. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1829. public event ClientServiseRowChangeEventHandler ClientServiseRowDeleted;
  1830. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1831. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1832. public void AddClientServiseRow(ClientServiseRow row) {
  1833. this.Rows.Add(row);
  1834. }
  1835. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1836. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1837. public ClientServiseRow AddClientServiseRow(int ID, string Услуга, System.DateTime Начало_оказания_услуги, string Клиент) {
  1838. ClientServiseRow rowClientServiseRow = ((ClientServiseRow)(this.NewRow()));
  1839. object[] columnValuesArray = new object[] {
  1840. ID,
  1841. Услуга,
  1842. Начало_оказания_услуги,
  1843. Клиент};
  1844. rowClientServiseRow.ItemArray = columnValuesArray;
  1845. this.Rows.Add(rowClientServiseRow);
  1846. return rowClientServiseRow;
  1847. }
  1848. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1849. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1850. public ClientServiseRow FindByID(int ID) {
  1851. return ((ClientServiseRow)(this.Rows.Find(new object[] {
  1852. ID})));
  1853. }
  1854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1855. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1856. public override global::System.Data.DataTable Clone() {
  1857. ClientServiseDataTable cln = ((ClientServiseDataTable)(base.Clone()));
  1858. cln.InitVars();
  1859. return cln;
  1860. }
  1861. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1862. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1863. protected override global::System.Data.DataTable CreateInstance() {
  1864. return new ClientServiseDataTable();
  1865. }
  1866. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1867. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1868. internal void InitVars() {
  1869. this.columnID = base.Columns["ID"];
  1870. this.columnУслуга = base.Columns["Услуга"];
  1871. this.columnНачало_оказания_услуги = base.Columns["Начало_оказания_услуги"];
  1872. this.columnКлиент = base.Columns["Клиент"];
  1873. }
  1874. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1875. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1876. private void InitClass() {
  1877. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  1878. base.Columns.Add(this.columnID);
  1879. this.columnУслуга = new global::System.Data.DataColumn("Услуга", typeof(string), null, global::System.Data.MappingType.Element);
  1880. base.Columns.Add(this.columnУслуга);
  1881. this.columnНачало_оказания_услуги = new global::System.Data.DataColumn("Начало_оказания_услуги", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1882. base.Columns.Add(this.columnНачало_оказания_услуги);
  1883. this.columnКлиент = new global::System.Data.DataColumn("Клиент", typeof(string), null, global::System.Data.MappingType.Element);
  1884. base.Columns.Add(this.columnКлиент);
  1885. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1886. this.columnID}, true));
  1887. this.columnID.AllowDBNull = false;
  1888. this.columnID.Unique = true;
  1889. this.columnУслуга.AllowDBNull = false;
  1890. this.columnУслуга.MaxLength = 50;
  1891. this.columnНачало_оказания_услуги.AllowDBNull = false;
  1892. this.columnКлиент.AllowDBNull = false;
  1893. this.columnКлиент.MaxLength = 50;
  1894. }
  1895. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1896. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1897. public ClientServiseRow NewClientServiseRow() {
  1898. return ((ClientServiseRow)(this.NewRow()));
  1899. }
  1900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1901. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1902. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1903. return new ClientServiseRow(builder);
  1904. }
  1905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1906. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1907. protected override global::System.Type GetRowType() {
  1908. return typeof(ClientServiseRow);
  1909. }
  1910. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1911. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1912. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1913. base.OnRowChanged(e);
  1914. if ((this.ClientServiseRowChanged != null)) {
  1915. this.ClientServiseRowChanged(this, new ClientServiseRowChangeEvent(((ClientServiseRow)(e.Row)), e.Action));
  1916. }
  1917. }
  1918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1919. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1920. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1921. base.OnRowChanging(e);
  1922. if ((this.ClientServiseRowChanging != null)) {
  1923. this.ClientServiseRowChanging(this, new ClientServiseRowChangeEvent(((ClientServiseRow)(e.Row)), e.Action));
  1924. }
  1925. }
  1926. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1927. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1928. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1929. base.OnRowDeleted(e);
  1930. if ((this.ClientServiseRowDeleted != null)) {
  1931. this.ClientServiseRowDeleted(this, new ClientServiseRowChangeEvent(((ClientServiseRow)(e.Row)), e.Action));
  1932. }
  1933. }
  1934. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1935. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1936. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1937. base.OnRowDeleting(e);
  1938. if ((this.ClientServiseRowDeleting != null)) {
  1939. this.ClientServiseRowDeleting(this, new ClientServiseRowChangeEvent(((ClientServiseRow)(e.Row)), e.Action));
  1940. }
  1941. }
  1942. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1943. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1944. public void RemoveClientServiseRow(ClientServiseRow row) {
  1945. this.Rows.Remove(row);
  1946. }
  1947. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1948. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1949. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1950. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1951. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1952. BBrovkiZDataSet ds = new BBrovkiZDataSet();
  1953. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1954. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1955. any1.MinOccurs = new decimal(0);
  1956. any1.MaxOccurs = decimal.MaxValue;
  1957. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1958. sequence.Items.Add(any1);
  1959. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1960. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1961. any2.MinOccurs = new decimal(1);
  1962. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1963. sequence.Items.Add(any2);
  1964. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1965. attribute1.Name = "namespace";
  1966. attribute1.FixedValue = ds.Namespace;
  1967. type.Attributes.Add(attribute1);
  1968. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1969. attribute2.Name = "tableTypeName";
  1970. attribute2.FixedValue = "ClientServiseDataTable";
  1971. type.Attributes.Add(attribute2);
  1972. type.Particle = sequence;
  1973. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1974. if (xs.Contains(dsSchema.TargetNamespace)) {
  1975. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1976. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1977. try {
  1978. global::System.Xml.Schema.XmlSchema schema = null;
  1979. dsSchema.Write(s1);
  1980. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1981. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1982. s2.SetLength(0);
  1983. schema.Write(s2);
  1984. if ((s1.Length == s2.Length)) {
  1985. s1.Position = 0;
  1986. s2.Position = 0;
  1987. for (; ((s1.Position != s1.Length)
  1988. && (s1.ReadByte() == s2.ReadByte())); ) {
  1989. ;
  1990. }
  1991. if ((s1.Position == s1.Length)) {
  1992. return type;
  1993. }
  1994. }
  1995. }
  1996. }
  1997. finally {
  1998. if ((s1 != null)) {
  1999. s1.Close();
  2000. }
  2001. if ((s2 != null)) {
  2002. s2.Close();
  2003. }
  2004. }
  2005. }
  2006. xs.Add(dsSchema);
  2007. return type;
  2008. }
  2009. }
  2010. /// <summary>
  2011. ///Represents the strongly named DataTable class.
  2012. ///</summary>
  2013. [global::System.Serializable()]
  2014. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2015. public partial class csDataTable : global::System.Data.TypedTableBase<csRow> {
  2016. private global::System.Data.DataColumn columnID;
  2017. private global::System.Data.DataColumn columnClientID;
  2018. private global::System.Data.DataColumn columnServiceID;
  2019. private global::System.Data.DataColumn columnStartTime;
  2020. private global::System.Data.DataColumn columnComment;
  2021. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2022. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2023. public csDataTable() {
  2024. this.TableName = "cs";
  2025. this.BeginInit();
  2026. this.InitClass();
  2027. this.EndInit();
  2028. }
  2029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2031. internal csDataTable(global::System.Data.DataTable table) {
  2032. this.TableName = table.TableName;
  2033. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2034. this.CaseSensitive = table.CaseSensitive;
  2035. }
  2036. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2037. this.Locale = table.Locale;
  2038. }
  2039. if ((table.Namespace != table.DataSet.Namespace)) {
  2040. this.Namespace = table.Namespace;
  2041. }
  2042. this.Prefix = table.Prefix;
  2043. this.MinimumCapacity = table.MinimumCapacity;
  2044. }
  2045. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2046. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2047. protected csDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2048. base(info, context) {
  2049. this.InitVars();
  2050. }
  2051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2053. public global::System.Data.DataColumn IDColumn {
  2054. get {
  2055. return this.columnID;
  2056. }
  2057. }
  2058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2059. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2060. public global::System.Data.DataColumn ClientIDColumn {
  2061. get {
  2062. return this.columnClientID;
  2063. }
  2064. }
  2065. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2066. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2067. public global::System.Data.DataColumn ServiceIDColumn {
  2068. get {
  2069. return this.columnServiceID;
  2070. }
  2071. }
  2072. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2073. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2074. public global::System.Data.DataColumn StartTimeColumn {
  2075. get {
  2076. return this.columnStartTime;
  2077. }
  2078. }
  2079. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2080. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2081. public global::System.Data.DataColumn CommentColumn {
  2082. get {
  2083. return this.columnComment;
  2084. }
  2085. }
  2086. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2087. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2088. [global::System.ComponentModel.Browsable(false)]
  2089. public int Count {
  2090. get {
  2091. return this.Rows.Count;
  2092. }
  2093. }
  2094. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2095. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2096. public csRow this[int index] {
  2097. get {
  2098. return ((csRow)(this.Rows[index]));
  2099. }
  2100. }
  2101. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2102. public event csRowChangeEventHandler csRowChanging;
  2103. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2104. public event csRowChangeEventHandler csRowChanged;
  2105. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2106. public event csRowChangeEventHandler csRowDeleting;
  2107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2108. public event csRowChangeEventHandler csRowDeleted;
  2109. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2110. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2111. public void AddcsRow(csRow row) {
  2112. this.Rows.Add(row);
  2113. }
  2114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2115. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2116. public csRow AddcsRow(cRow parentcRowByFK_ClientService_Client, sRow parentsRowByFK_ClientService_Service, System.DateTime StartTime, string Comment) {
  2117. csRow rowcsRow = ((csRow)(this.NewRow()));
  2118. object[] columnValuesArray = new object[] {
  2119. null,
  2120. null,
  2121. null,
  2122. StartTime,
  2123. Comment};
  2124. if ((parentcRowByFK_ClientService_Client != null)) {
  2125. columnValuesArray[1] = parentcRowByFK_ClientService_Client[0];
  2126. }
  2127. if ((parentsRowByFK_ClientService_Service != null)) {
  2128. columnValuesArray[2] = parentsRowByFK_ClientService_Service[0];
  2129. }
  2130. rowcsRow.ItemArray = columnValuesArray;
  2131. this.Rows.Add(rowcsRow);
  2132. return rowcsRow;
  2133. }
  2134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2135. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2136. public csRow FindByID(int ID) {
  2137. return ((csRow)(this.Rows.Find(new object[] {
  2138. ID})));
  2139. }
  2140. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2141. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2142. public override global::System.Data.DataTable Clone() {
  2143. csDataTable cln = ((csDataTable)(base.Clone()));
  2144. cln.InitVars();
  2145. return cln;
  2146. }
  2147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2149. protected override global::System.Data.DataTable CreateInstance() {
  2150. return new csDataTable();
  2151. }
  2152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2154. internal void InitVars() {
  2155. this.columnID = base.Columns["ID"];
  2156. this.columnClientID = base.Columns["ClientID"];
  2157. this.columnServiceID = base.Columns["ServiceID"];
  2158. this.columnStartTime = base.Columns["StartTime"];
  2159. this.columnComment = base.Columns["Comment"];
  2160. }
  2161. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2162. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2163. private void InitClass() {
  2164. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  2165. base.Columns.Add(this.columnID);
  2166. this.columnClientID = new global::System.Data.DataColumn("ClientID", typeof(int), null, global::System.Data.MappingType.Element);
  2167. base.Columns.Add(this.columnClientID);
  2168. this.columnServiceID = new global::System.Data.DataColumn("ServiceID", typeof(int), null, global::System.Data.MappingType.Element);
  2169. base.Columns.Add(this.columnServiceID);
  2170. this.columnStartTime = new global::System.Data.DataColumn("StartTime", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  2171. base.Columns.Add(this.columnStartTime);
  2172. this.columnComment = new global::System.Data.DataColumn("Comment", typeof(string), null, global::System.Data.MappingType.Element);
  2173. base.Columns.Add(this.columnComment);
  2174. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2175. this.columnID}, true));
  2176. this.columnID.AutoIncrement = true;
  2177. this.columnID.AutoIncrementSeed = -1;
  2178. this.columnID.AutoIncrementStep = -1;
  2179. this.columnID.AllowDBNull = false;
  2180. this.columnID.ReadOnly = true;
  2181. this.columnID.Unique = true;
  2182. this.columnClientID.AllowDBNull = false;
  2183. this.columnServiceID.AllowDBNull = false;
  2184. this.columnStartTime.AllowDBNull = false;
  2185. this.columnComment.MaxLength = 2147483647;
  2186. }
  2187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2188. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2189. public csRow NewcsRow() {
  2190. return ((csRow)(this.NewRow()));
  2191. }
  2192. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2193. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2194. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2195. return new csRow(builder);
  2196. }
  2197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2198. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2199. protected override global::System.Type GetRowType() {
  2200. return typeof(csRow);
  2201. }
  2202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2204. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2205. base.OnRowChanged(e);
  2206. if ((this.csRowChanged != null)) {
  2207. this.csRowChanged(this, new csRowChangeEvent(((csRow)(e.Row)), e.Action));
  2208. }
  2209. }
  2210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2212. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2213. base.OnRowChanging(e);
  2214. if ((this.csRowChanging != null)) {
  2215. this.csRowChanging(this, new csRowChangeEvent(((csRow)(e.Row)), e.Action));
  2216. }
  2217. }
  2218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2219. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2220. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2221. base.OnRowDeleted(e);
  2222. if ((this.csRowDeleted != null)) {
  2223. this.csRowDeleted(this, new csRowChangeEvent(((csRow)(e.Row)), e.Action));
  2224. }
  2225. }
  2226. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2227. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2228. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2229. base.OnRowDeleting(e);
  2230. if ((this.csRowDeleting != null)) {
  2231. this.csRowDeleting(this, new csRowChangeEvent(((csRow)(e.Row)), e.Action));
  2232. }
  2233. }
  2234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2235. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2236. public void RemovecsRow(csRow row) {
  2237. this.Rows.Remove(row);
  2238. }
  2239. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2240. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2241. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2242. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2243. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2244. BBrovkiZDataSet ds = new BBrovkiZDataSet();
  2245. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2246. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2247. any1.MinOccurs = new decimal(0);
  2248. any1.MaxOccurs = decimal.MaxValue;
  2249. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2250. sequence.Items.Add(any1);
  2251. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2252. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2253. any2.MinOccurs = new decimal(1);
  2254. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2255. sequence.Items.Add(any2);
  2256. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2257. attribute1.Name = "namespace";
  2258. attribute1.FixedValue = ds.Namespace;
  2259. type.Attributes.Add(attribute1);
  2260. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2261. attribute2.Name = "tableTypeName";
  2262. attribute2.FixedValue = "csDataTable";
  2263. type.Attributes.Add(attribute2);
  2264. type.Particle = sequence;
  2265. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2266. if (xs.Contains(dsSchema.TargetNamespace)) {
  2267. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2268. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2269. try {
  2270. global::System.Xml.Schema.XmlSchema schema = null;
  2271. dsSchema.Write(s1);
  2272. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2273. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2274. s2.SetLength(0);
  2275. schema.Write(s2);
  2276. if ((s1.Length == s2.Length)) {
  2277. s1.Position = 0;
  2278. s2.Position = 0;
  2279. for (; ((s1.Position != s1.Length)
  2280. && (s1.ReadByte() == s2.ReadByte())); ) {
  2281. ;
  2282. }
  2283. if ((s1.Position == s1.Length)) {
  2284. return type;
  2285. }
  2286. }
  2287. }
  2288. }
  2289. finally {
  2290. if ((s1 != null)) {
  2291. s1.Close();
  2292. }
  2293. if ((s2 != null)) {
  2294. s2.Close();
  2295. }
  2296. }
  2297. }
  2298. xs.Add(dsSchema);
  2299. return type;
  2300. }
  2301. }
  2302. /// <summary>
  2303. ///Represents the strongly named DataTable class.
  2304. ///</summary>
  2305. [global::System.Serializable()]
  2306. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2307. public partial class DocumentByServiceDataTable : global::System.Data.TypedTableBase<DocumentByServiceRow> {
  2308. private global::System.Data.DataColumn columnID;
  2309. private global::System.Data.DataColumn columnClientServiceID;
  2310. private global::System.Data.DataColumn columnDocumentPath;
  2311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2312. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2313. public DocumentByServiceDataTable() {
  2314. this.TableName = "DocumentByService";
  2315. this.BeginInit();
  2316. this.InitClass();
  2317. this.EndInit();
  2318. }
  2319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2320. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2321. internal DocumentByServiceDataTable(global::System.Data.DataTable table) {
  2322. this.TableName = table.TableName;
  2323. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2324. this.CaseSensitive = table.CaseSensitive;
  2325. }
  2326. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2327. this.Locale = table.Locale;
  2328. }
  2329. if ((table.Namespace != table.DataSet.Namespace)) {
  2330. this.Namespace = table.Namespace;
  2331. }
  2332. this.Prefix = table.Prefix;
  2333. this.MinimumCapacity = table.MinimumCapacity;
  2334. }
  2335. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2336. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2337. protected DocumentByServiceDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2338. base(info, context) {
  2339. this.InitVars();
  2340. }
  2341. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2342. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2343. public global::System.Data.DataColumn IDColumn {
  2344. get {
  2345. return this.columnID;
  2346. }
  2347. }
  2348. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2349. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2350. public global::System.Data.DataColumn ClientServiceIDColumn {
  2351. get {
  2352. return this.columnClientServiceID;
  2353. }
  2354. }
  2355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2357. public global::System.Data.DataColumn DocumentPathColumn {
  2358. get {
  2359. return this.columnDocumentPath;
  2360. }
  2361. }
  2362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2363. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2364. [global::System.ComponentModel.Browsable(false)]
  2365. public int Count {
  2366. get {
  2367. return this.Rows.Count;
  2368. }
  2369. }
  2370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2371. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2372. public DocumentByServiceRow this[int index] {
  2373. get {
  2374. return ((DocumentByServiceRow)(this.Rows[index]));
  2375. }
  2376. }
  2377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2378. public event DocumentByServiceRowChangeEventHandler DocumentByServiceRowChanging;
  2379. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2380. public event DocumentByServiceRowChangeEventHandler DocumentByServiceRowChanged;
  2381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2382. public event DocumentByServiceRowChangeEventHandler DocumentByServiceRowDeleting;
  2383. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2384. public event DocumentByServiceRowChangeEventHandler DocumentByServiceRowDeleted;
  2385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2386. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2387. public void AddDocumentByServiceRow(DocumentByServiceRow row) {
  2388. this.Rows.Add(row);
  2389. }
  2390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2392. public DocumentByServiceRow AddDocumentByServiceRow(csRow parentcsRowByFK_DocumentByService_ClientService, string DocumentPath) {
  2393. DocumentByServiceRow rowDocumentByServiceRow = ((DocumentByServiceRow)(this.NewRow()));
  2394. object[] columnValuesArray = new object[] {
  2395. null,
  2396. null,
  2397. DocumentPath};
  2398. if ((parentcsRowByFK_DocumentByService_ClientService != null)) {
  2399. columnValuesArray[1] = parentcsRowByFK_DocumentByService_ClientService[0];
  2400. }
  2401. rowDocumentByServiceRow.ItemArray = columnValuesArray;
  2402. this.Rows.Add(rowDocumentByServiceRow);
  2403. return rowDocumentByServiceRow;
  2404. }
  2405. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2406. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2407. public DocumentByServiceRow FindByID(int ID) {
  2408. return ((DocumentByServiceRow)(this.Rows.Find(new object[] {
  2409. ID})));
  2410. }
  2411. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2412. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2413. public override global::System.Data.DataTable Clone() {
  2414. DocumentByServiceDataTable cln = ((DocumentByServiceDataTable)(base.Clone()));
  2415. cln.InitVars();
  2416. return cln;
  2417. }
  2418. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2419. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2420. protected override global::System.Data.DataTable CreateInstance() {
  2421. return new DocumentByServiceDataTable();
  2422. }
  2423. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2424. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2425. internal void InitVars() {
  2426. this.columnID = base.Columns["ID"];
  2427. this.columnClientServiceID = base.Columns["ClientServiceID"];
  2428. this.columnDocumentPath = base.Columns["DocumentPath"];
  2429. }
  2430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2431. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2432. private void InitClass() {
  2433. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  2434. base.Columns.Add(this.columnID);
  2435. this.columnClientServiceID = new global::System.Data.DataColumn("ClientServiceID", typeof(int), null, global::System.Data.MappingType.Element);
  2436. base.Columns.Add(this.columnClientServiceID);
  2437. this.columnDocumentPath = new global::System.Data.DataColumn("DocumentPath", typeof(string), null, global::System.Data.MappingType.Element);
  2438. base.Columns.Add(this.columnDocumentPath);
  2439. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2440. this.columnID}, true));
  2441. this.columnID.AutoIncrement = true;
  2442. this.columnID.AutoIncrementSeed = -1;
  2443. this.columnID.AutoIncrementStep = -1;
  2444. this.columnID.AllowDBNull = false;
  2445. this.columnID.ReadOnly = true;
  2446. this.columnID.Unique = true;
  2447. this.columnClientServiceID.AllowDBNull = false;
  2448. this.columnDocumentPath.AllowDBNull = false;
  2449. this.columnDocumentPath.MaxLength = 1000;
  2450. }
  2451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2452. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2453. public DocumentByServiceRow NewDocumentByServiceRow() {
  2454. return ((DocumentByServiceRow)(this.NewRow()));
  2455. }
  2456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2457. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2458. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2459. return new DocumentByServiceRow(builder);
  2460. }
  2461. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2462. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2463. protected override global::System.Type GetRowType() {
  2464. return typeof(DocumentByServiceRow);
  2465. }
  2466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2468. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2469. base.OnRowChanged(e);
  2470. if ((this.DocumentByServiceRowChanged != null)) {
  2471. this.DocumentByServiceRowChanged(this, new DocumentByServiceRowChangeEvent(((DocumentByServiceRow)(e.Row)), e.Action));
  2472. }
  2473. }
  2474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2476. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2477. base.OnRowChanging(e);
  2478. if ((this.DocumentByServiceRowChanging != null)) {
  2479. this.DocumentByServiceRowChanging(this, new DocumentByServiceRowChangeEvent(((DocumentByServiceRow)(e.Row)), e.Action));
  2480. }
  2481. }
  2482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2484. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2485. base.OnRowDeleted(e);
  2486. if ((this.DocumentByServiceRowDeleted != null)) {
  2487. this.DocumentByServiceRowDeleted(this, new DocumentByServiceRowChangeEvent(((DocumentByServiceRow)(e.Row)), e.Action));
  2488. }
  2489. }
  2490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2492. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2493. base.OnRowDeleting(e);
  2494. if ((this.DocumentByServiceRowDeleting != null)) {
  2495. this.DocumentByServiceRowDeleting(this, new DocumentByServiceRowChangeEvent(((DocumentByServiceRow)(e.Row)), e.Action));
  2496. }
  2497. }
  2498. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2499. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2500. public void RemoveDocumentByServiceRow(DocumentByServiceRow row) {
  2501. this.Rows.Remove(row);
  2502. }
  2503. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2504. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2505. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2506. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2507. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2508. BBrovkiZDataSet ds = new BBrovkiZDataSet();
  2509. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2510. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2511. any1.MinOccurs = new decimal(0);
  2512. any1.MaxOccurs = decimal.MaxValue;
  2513. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2514. sequence.Items.Add(any1);
  2515. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2516. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2517. any2.MinOccurs = new decimal(1);
  2518. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2519. sequence.Items.Add(any2);
  2520. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2521. attribute1.Name = "namespace";
  2522. attribute1.FixedValue = ds.Namespace;
  2523. type.Attributes.Add(attribute1);
  2524. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2525. attribute2.Name = "tableTypeName";
  2526. attribute2.FixedValue = "DocumentByServiceDataTable";
  2527. type.Attributes.Add(attribute2);
  2528. type.Particle = sequence;
  2529. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2530. if (xs.Contains(dsSchema.TargetNamespace)) {
  2531. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2532. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2533. try {
  2534. global::System.Xml.Schema.XmlSchema schema = null;
  2535. dsSchema.Write(s1);
  2536. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2537. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2538. s2.SetLength(0);
  2539. schema.Write(s2);
  2540. if ((s1.Length == s2.Length)) {
  2541. s1.Position = 0;
  2542. s2.Position = 0;
  2543. for (; ((s1.Position != s1.Length)
  2544. && (s1.ReadByte() == s2.ReadByte())); ) {
  2545. ;
  2546. }
  2547. if ((s1.Position == s1.Length)) {
  2548. return type;
  2549. }
  2550. }
  2551. }
  2552. }
  2553. finally {
  2554. if ((s1 != null)) {
  2555. s1.Close();
  2556. }
  2557. if ((s2 != null)) {
  2558. s2.Close();
  2559. }
  2560. }
  2561. }
  2562. xs.Add(dsSchema);
  2563. return type;
  2564. }
  2565. }
  2566. /// <summary>
  2567. ///Represents the strongly named DataTable class.
  2568. ///</summary>
  2569. [global::System.Serializable()]
  2570. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2571. public partial class GenderDataTable : global::System.Data.TypedTableBase<GenderRow> {
  2572. private global::System.Data.DataColumn columnCode;
  2573. private global::System.Data.DataColumn columnName;
  2574. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2575. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2576. public GenderDataTable() {
  2577. this.TableName = "Gender";
  2578. this.BeginInit();
  2579. this.InitClass();
  2580. this.EndInit();
  2581. }
  2582. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2583. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2584. internal GenderDataTable(global::System.Data.DataTable table) {
  2585. this.TableName = table.TableName;
  2586. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2587. this.CaseSensitive = table.CaseSensitive;
  2588. }
  2589. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2590. this.Locale = table.Locale;
  2591. }
  2592. if ((table.Namespace != table.DataSet.Namespace)) {
  2593. this.Namespace = table.Namespace;
  2594. }
  2595. this.Prefix = table.Prefix;
  2596. this.MinimumCapacity = table.MinimumCapacity;
  2597. }
  2598. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2599. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2600. protected GenderDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2601. base(info, context) {
  2602. this.InitVars();
  2603. }
  2604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2606. public global::System.Data.DataColumn CodeColumn {
  2607. get {
  2608. return this.columnCode;
  2609. }
  2610. }
  2611. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2612. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2613. public global::System.Data.DataColumn NameColumn {
  2614. get {
  2615. return this.columnName;
  2616. }
  2617. }
  2618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2619. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2620. [global::System.ComponentModel.Browsable(false)]
  2621. public int Count {
  2622. get {
  2623. return this.Rows.Count;
  2624. }
  2625. }
  2626. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2627. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2628. public GenderRow this[int index] {
  2629. get {
  2630. return ((GenderRow)(this.Rows[index]));
  2631. }
  2632. }
  2633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2634. public event GenderRowChangeEventHandler GenderRowChanging;
  2635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2636. public event GenderRowChangeEventHandler GenderRowChanged;
  2637. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2638. public event GenderRowChangeEventHandler GenderRowDeleting;
  2639. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2640. public event GenderRowChangeEventHandler GenderRowDeleted;
  2641. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2642. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2643. public void AddGenderRow(GenderRow row) {
  2644. this.Rows.Add(row);
  2645. }
  2646. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2647. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2648. public GenderRow AddGenderRow(string Code, string Name) {
  2649. GenderRow rowGenderRow = ((GenderRow)(this.NewRow()));
  2650. object[] columnValuesArray = new object[] {
  2651. Code,
  2652. Name};
  2653. rowGenderRow.ItemArray = columnValuesArray;
  2654. this.Rows.Add(rowGenderRow);
  2655. return rowGenderRow;
  2656. }
  2657. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2658. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2659. public GenderRow FindByCode(string Code) {
  2660. return ((GenderRow)(this.Rows.Find(new object[] {
  2661. Code})));
  2662. }
  2663. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2664. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2665. public override global::System.Data.DataTable Clone() {
  2666. GenderDataTable cln = ((GenderDataTable)(base.Clone()));
  2667. cln.InitVars();
  2668. return cln;
  2669. }
  2670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2671. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2672. protected override global::System.Data.DataTable CreateInstance() {
  2673. return new GenderDataTable();
  2674. }
  2675. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2676. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2677. internal void InitVars() {
  2678. this.columnCode = base.Columns["Code"];
  2679. this.columnName = base.Columns["Name"];
  2680. }
  2681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2682. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2683. private void InitClass() {
  2684. this.columnCode = new global::System.Data.DataColumn("Code", typeof(string), null, global::System.Data.MappingType.Element);
  2685. base.Columns.Add(this.columnCode);
  2686. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  2687. base.Columns.Add(this.columnName);
  2688. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2689. this.columnCode}, true));
  2690. this.columnCode.AllowDBNull = false;
  2691. this.columnCode.Unique = true;
  2692. this.columnCode.MaxLength = 1;
  2693. this.columnName.MaxLength = 10;
  2694. }
  2695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2696. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2697. public GenderRow NewGenderRow() {
  2698. return ((GenderRow)(this.NewRow()));
  2699. }
  2700. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2701. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2702. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2703. return new GenderRow(builder);
  2704. }
  2705. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2706. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2707. protected override global::System.Type GetRowType() {
  2708. return typeof(GenderRow);
  2709. }
  2710. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2711. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2712. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2713. base.OnRowChanged(e);
  2714. if ((this.GenderRowChanged != null)) {
  2715. this.GenderRowChanged(this, new GenderRowChangeEvent(((GenderRow)(e.Row)), e.Action));
  2716. }
  2717. }
  2718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2719. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2720. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2721. base.OnRowChanging(e);
  2722. if ((this.GenderRowChanging != null)) {
  2723. this.GenderRowChanging(this, new GenderRowChangeEvent(((GenderRow)(e.Row)), e.Action));
  2724. }
  2725. }
  2726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2728. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2729. base.OnRowDeleted(e);
  2730. if ((this.GenderRowDeleted != null)) {
  2731. this.GenderRowDeleted(this, new GenderRowChangeEvent(((GenderRow)(e.Row)), e.Action));
  2732. }
  2733. }
  2734. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2736. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2737. base.OnRowDeleting(e);
  2738. if ((this.GenderRowDeleting != null)) {
  2739. this.GenderRowDeleting(this, new GenderRowChangeEvent(((GenderRow)(e.Row)), e.Action));
  2740. }
  2741. }
  2742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2743. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2744. public void RemoveGenderRow(GenderRow row) {
  2745. this.Rows.Remove(row);
  2746. }
  2747. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2748. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2749. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2750. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2751. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2752. BBrovkiZDataSet ds = new BBrovkiZDataSet();
  2753. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2754. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2755. any1.MinOccurs = new decimal(0);
  2756. any1.MaxOccurs = decimal.MaxValue;
  2757. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2758. sequence.Items.Add(any1);
  2759. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2760. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2761. any2.MinOccurs = new decimal(1);
  2762. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2763. sequence.Items.Add(any2);
  2764. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2765. attribute1.Name = "namespace";
  2766. attribute1.FixedValue = ds.Namespace;
  2767. type.Attributes.Add(attribute1);
  2768. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2769. attribute2.Name = "tableTypeName";
  2770. attribute2.FixedValue = "GenderDataTable";
  2771. type.Attributes.Add(attribute2);
  2772. type.Particle = sequence;
  2773. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2774. if (xs.Contains(dsSchema.TargetNamespace)) {
  2775. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2776. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2777. try {
  2778. global::System.Xml.Schema.XmlSchema schema = null;
  2779. dsSchema.Write(s1);
  2780. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2781. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2782. s2.SetLength(0);
  2783. schema.Write(s2);
  2784. if ((s1.Length == s2.Length)) {
  2785. s1.Position = 0;
  2786. s2.Position = 0;
  2787. for (; ((s1.Position != s1.Length)
  2788. && (s1.ReadByte() == s2.ReadByte())); ) {
  2789. ;
  2790. }
  2791. if ((s1.Position == s1.Length)) {
  2792. return type;
  2793. }
  2794. }
  2795. }
  2796. }
  2797. finally {
  2798. if ((s1 != null)) {
  2799. s1.Close();
  2800. }
  2801. if ((s2 != null)) {
  2802. s2.Close();
  2803. }
  2804. }
  2805. }
  2806. xs.Add(dsSchema);
  2807. return type;
  2808. }
  2809. }
  2810. /// <summary>
  2811. ///Represents the strongly named DataTable class.
  2812. ///</summary>
  2813. [global::System.Serializable()]
  2814. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2815. public partial class ManufacturerDataTable : global::System.Data.TypedTableBase<ManufacturerRow> {
  2816. private global::System.Data.DataColumn columnID;
  2817. private global::System.Data.DataColumn columnName;
  2818. private global::System.Data.DataColumn columnStartDate;
  2819. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2820. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2821. public ManufacturerDataTable() {
  2822. this.TableName = "Manufacturer";
  2823. this.BeginInit();
  2824. this.InitClass();
  2825. this.EndInit();
  2826. }
  2827. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2828. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2829. internal ManufacturerDataTable(global::System.Data.DataTable table) {
  2830. this.TableName = table.TableName;
  2831. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2832. this.CaseSensitive = table.CaseSensitive;
  2833. }
  2834. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2835. this.Locale = table.Locale;
  2836. }
  2837. if ((table.Namespace != table.DataSet.Namespace)) {
  2838. this.Namespace = table.Namespace;
  2839. }
  2840. this.Prefix = table.Prefix;
  2841. this.MinimumCapacity = table.MinimumCapacity;
  2842. }
  2843. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2844. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2845. protected ManufacturerDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2846. base(info, context) {
  2847. this.InitVars();
  2848. }
  2849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2850. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2851. public global::System.Data.DataColumn IDColumn {
  2852. get {
  2853. return this.columnID;
  2854. }
  2855. }
  2856. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2857. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2858. public global::System.Data.DataColumn NameColumn {
  2859. get {
  2860. return this.columnName;
  2861. }
  2862. }
  2863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2864. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2865. public global::System.Data.DataColumn StartDateColumn {
  2866. get {
  2867. return this.columnStartDate;
  2868. }
  2869. }
  2870. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2871. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2872. [global::System.ComponentModel.Browsable(false)]
  2873. public int Count {
  2874. get {
  2875. return this.Rows.Count;
  2876. }
  2877. }
  2878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2879. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2880. public ManufacturerRow this[int index] {
  2881. get {
  2882. return ((ManufacturerRow)(this.Rows[index]));
  2883. }
  2884. }
  2885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2886. public event ManufacturerRowChangeEventHandler ManufacturerRowChanging;
  2887. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2888. public event ManufacturerRowChangeEventHandler ManufacturerRowChanged;
  2889. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2890. public event ManufacturerRowChangeEventHandler ManufacturerRowDeleting;
  2891. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2892. public event ManufacturerRowChangeEventHandler ManufacturerRowDeleted;
  2893. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2894. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2895. public void AddManufacturerRow(ManufacturerRow row) {
  2896. this.Rows.Add(row);
  2897. }
  2898. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2899. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2900. public ManufacturerRow AddManufacturerRow(string Name, System.DateTime StartDate) {
  2901. ManufacturerRow rowManufacturerRow = ((ManufacturerRow)(this.NewRow()));
  2902. object[] columnValuesArray = new object[] {
  2903. null,
  2904. Name,
  2905. StartDate};
  2906. rowManufacturerRow.ItemArray = columnValuesArray;
  2907. this.Rows.Add(rowManufacturerRow);
  2908. return rowManufacturerRow;
  2909. }
  2910. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2911. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2912. public ManufacturerRow FindByID(int ID) {
  2913. return ((ManufacturerRow)(this.Rows.Find(new object[] {
  2914. ID})));
  2915. }
  2916. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2917. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2918. public override global::System.Data.DataTable Clone() {
  2919. ManufacturerDataTable cln = ((ManufacturerDataTable)(base.Clone()));
  2920. cln.InitVars();
  2921. return cln;
  2922. }
  2923. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2924. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2925. protected override global::System.Data.DataTable CreateInstance() {
  2926. return new ManufacturerDataTable();
  2927. }
  2928. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2929. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2930. internal void InitVars() {
  2931. this.columnID = base.Columns["ID"];
  2932. this.columnName = base.Columns["Name"];
  2933. this.columnStartDate = base.Columns["StartDate"];
  2934. }
  2935. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2936. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2937. private void InitClass() {
  2938. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  2939. base.Columns.Add(this.columnID);
  2940. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  2941. base.Columns.Add(this.columnName);
  2942. this.columnStartDate = new global::System.Data.DataColumn("StartDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  2943. base.Columns.Add(this.columnStartDate);
  2944. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2945. this.columnID}, true));
  2946. this.columnID.AutoIncrement = true;
  2947. this.columnID.AutoIncrementSeed = -1;
  2948. this.columnID.AutoIncrementStep = -1;
  2949. this.columnID.AllowDBNull = false;
  2950. this.columnID.ReadOnly = true;
  2951. this.columnID.Unique = true;
  2952. this.columnName.AllowDBNull = false;
  2953. this.columnName.MaxLength = 100;
  2954. }
  2955. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2956. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2957. public ManufacturerRow NewManufacturerRow() {
  2958. return ((ManufacturerRow)(this.NewRow()));
  2959. }
  2960. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2961. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2962. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2963. return new ManufacturerRow(builder);
  2964. }
  2965. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2966. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2967. protected override global::System.Type GetRowType() {
  2968. return typeof(ManufacturerRow);
  2969. }
  2970. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2971. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2972. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2973. base.OnRowChanged(e);
  2974. if ((this.ManufacturerRowChanged != null)) {
  2975. this.ManufacturerRowChanged(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  2976. }
  2977. }
  2978. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2979. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2980. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2981. base.OnRowChanging(e);
  2982. if ((this.ManufacturerRowChanging != null)) {
  2983. this.ManufacturerRowChanging(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  2984. }
  2985. }
  2986. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2987. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2988. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2989. base.OnRowDeleted(e);
  2990. if ((this.ManufacturerRowDeleted != null)) {
  2991. this.ManufacturerRowDeleted(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  2992. }
  2993. }
  2994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2995. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2996. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2997. base.OnRowDeleting(e);
  2998. if ((this.ManufacturerRowDeleting != null)) {
  2999. this.ManufacturerRowDeleting(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  3000. }
  3001. }
  3002. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3003. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3004. public void RemoveManufacturerRow(ManufacturerRow row) {
  3005. this.Rows.Remove(row);
  3006. }
  3007. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3008. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3009. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3010. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3011. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3012. BBrovkiZDataSet ds = new BBrovkiZDataSet();
  3013. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3014. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3015. any1.MinOccurs = new decimal(0);
  3016. any1.MaxOccurs = decimal.MaxValue;
  3017. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3018. sequence.Items.Add(any1);
  3019. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3020. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3021. any2.MinOccurs = new decimal(1);
  3022. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3023. sequence.Items.Add(any2);
  3024. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3025. attribute1.Name = "namespace";
  3026. attribute1.FixedValue = ds.Namespace;
  3027. type.Attributes.Add(attribute1);
  3028. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3029. attribute2.Name = "tableTypeName";
  3030. attribute2.FixedValue = "ManufacturerDataTable";
  3031. type.Attributes.Add(attribute2);
  3032. type.Particle = sequence;
  3033. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3034. if (xs.Contains(dsSchema.TargetNamespace)) {
  3035. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3036. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3037. try {
  3038. global::System.Xml.Schema.XmlSchema schema = null;
  3039. dsSchema.Write(s1);
  3040. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3041. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3042. s2.SetLength(0);
  3043. schema.Write(s2);
  3044. if ((s1.Length == s2.Length)) {
  3045. s1.Position = 0;
  3046. s2.Position = 0;
  3047. for (; ((s1.Position != s1.Length)
  3048. && (s1.ReadByte() == s2.ReadByte())); ) {
  3049. ;
  3050. }
  3051. if ((s1.Position == s1.Length)) {
  3052. return type;
  3053. }
  3054. }
  3055. }
  3056. }
  3057. finally {
  3058. if ((s1 != null)) {
  3059. s1.Close();
  3060. }
  3061. if ((s2 != null)) {
  3062. s2.Close();
  3063. }
  3064. }
  3065. }
  3066. xs.Add(dsSchema);
  3067. return type;
  3068. }
  3069. }
  3070. /// <summary>
  3071. ///Represents the strongly named DataTable class.
  3072. ///</summary>
  3073. [global::System.Serializable()]
  3074. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3075. public partial class ProductDataTable : global::System.Data.TypedTableBase<ProductRow> {
  3076. private global::System.Data.DataColumn columnID;
  3077. private global::System.Data.DataColumn columnTitle;
  3078. private global::System.Data.DataColumn columnCost;
  3079. private global::System.Data.DataColumn columnDescription;
  3080. private global::System.Data.DataColumn columnMainImagePath;
  3081. private global::System.Data.DataColumn columnIsActive;
  3082. private global::System.Data.DataColumn columnManufacturerID;
  3083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3085. public ProductDataTable() {
  3086. this.TableName = "Product";
  3087. this.BeginInit();
  3088. this.InitClass();
  3089. this.EndInit();
  3090. }
  3091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3093. internal ProductDataTable(global::System.Data.DataTable table) {
  3094. this.TableName = table.TableName;
  3095. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3096. this.CaseSensitive = table.CaseSensitive;
  3097. }
  3098. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3099. this.Locale = table.Locale;
  3100. }
  3101. if ((table.Namespace != table.DataSet.Namespace)) {
  3102. this.Namespace = table.Namespace;
  3103. }
  3104. this.Prefix = table.Prefix;
  3105. this.MinimumCapacity = table.MinimumCapacity;
  3106. }
  3107. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3108. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3109. protected ProductDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3110. base(info, context) {
  3111. this.InitVars();
  3112. }
  3113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3114. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3115. public global::System.Data.DataColumn IDColumn {
  3116. get {
  3117. return this.columnID;
  3118. }
  3119. }
  3120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3121. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3122. public global::System.Data.DataColumn TitleColumn {
  3123. get {
  3124. return this.columnTitle;
  3125. }
  3126. }
  3127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3128. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3129. public global::System.Data.DataColumn CostColumn {
  3130. get {
  3131. return this.columnCost;
  3132. }
  3133. }
  3134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3135. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3136. public global::System.Data.DataColumn DescriptionColumn {
  3137. get {
  3138. return this.columnDescription;
  3139. }
  3140. }
  3141. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3142. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3143. public global::System.Data.DataColumn MainImagePathColumn {
  3144. get {
  3145. return this.columnMainImagePath;
  3146. }
  3147. }
  3148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3150. public global::System.Data.DataColumn IsActiveColumn {
  3151. get {
  3152. return this.columnIsActive;
  3153. }
  3154. }
  3155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3156. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3157. public global::System.Data.DataColumn ManufacturerIDColumn {
  3158. get {
  3159. return this.columnManufacturerID;
  3160. }
  3161. }
  3162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3163. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3164. [global::System.ComponentModel.Browsable(false)]
  3165. public int Count {
  3166. get {
  3167. return this.Rows.Count;
  3168. }
  3169. }
  3170. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3171. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3172. public ProductRow this[int index] {
  3173. get {
  3174. return ((ProductRow)(this.Rows[index]));
  3175. }
  3176. }
  3177. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3178. public event ProductRowChangeEventHandler ProductRowChanging;
  3179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3180. public event ProductRowChangeEventHandler ProductRowChanged;
  3181. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3182. public event ProductRowChangeEventHandler ProductRowDeleting;
  3183. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3184. public event ProductRowChangeEventHandler ProductRowDeleted;
  3185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3186. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3187. public void AddProductRow(ProductRow row) {
  3188. this.Rows.Add(row);
  3189. }
  3190. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3191. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3192. public ProductRow AddProductRow(string Title, decimal Cost, string Description, string MainImagePath, bool IsActive, ManufacturerRow parentManufacturerRowByFK_Product_Manufacturer) {
  3193. ProductRow rowProductRow = ((ProductRow)(this.NewRow()));
  3194. object[] columnValuesArray = new object[] {
  3195. null,
  3196. Title,
  3197. Cost,
  3198. Description,
  3199. MainImagePath,
  3200. IsActive,
  3201. null};
  3202. if ((parentManufacturerRowByFK_Product_Manufacturer != null)) {
  3203. columnValuesArray[6] = parentManufacturerRowByFK_Product_Manufacturer[0];
  3204. }
  3205. rowProductRow.ItemArray = columnValuesArray;
  3206. this.Rows.Add(rowProductRow);
  3207. return rowProductRow;
  3208. }
  3209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3210. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3211. public ProductRow FindByID(int ID) {
  3212. return ((ProductRow)(this.Rows.Find(new object[] {
  3213. ID})));
  3214. }
  3215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3216. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3217. public override global::System.Data.DataTable Clone() {
  3218. ProductDataTable cln = ((ProductDataTable)(base.Clone()));
  3219. cln.InitVars();
  3220. return cln;
  3221. }
  3222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3224. protected override global::System.Data.DataTable CreateInstance() {
  3225. return new ProductDataTable();
  3226. }
  3227. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3228. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3229. internal void InitVars() {
  3230. this.columnID = base.Columns["ID"];
  3231. this.columnTitle = base.Columns["Title"];
  3232. this.columnCost = base.Columns["Cost"];
  3233. this.columnDescription = base.Columns["Description"];
  3234. this.columnMainImagePath = base.Columns["MainImagePath"];
  3235. this.columnIsActive = base.Columns["IsActive"];
  3236. this.columnManufacturerID = base.Columns["ManufacturerID"];
  3237. }
  3238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3239. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3240. private void InitClass() {
  3241. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3242. base.Columns.Add(this.columnID);
  3243. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  3244. base.Columns.Add(this.columnTitle);
  3245. this.columnCost = new global::System.Data.DataColumn("Cost", typeof(decimal), null, global::System.Data.MappingType.Element);
  3246. base.Columns.Add(this.columnCost);
  3247. this.columnDescription = new global::System.Data.DataColumn("Description", typeof(string), null, global::System.Data.MappingType.Element);
  3248. base.Columns.Add(this.columnDescription);
  3249. this.columnMainImagePath = new global::System.Data.DataColumn("MainImagePath", typeof(string), null, global::System.Data.MappingType.Element);
  3250. base.Columns.Add(this.columnMainImagePath);
  3251. this.columnIsActive = new global::System.Data.DataColumn("IsActive", typeof(bool), null, global::System.Data.MappingType.Element);
  3252. base.Columns.Add(this.columnIsActive);
  3253. this.columnManufacturerID = new global::System.Data.DataColumn("ManufacturerID", typeof(int), null, global::System.Data.MappingType.Element);
  3254. base.Columns.Add(this.columnManufacturerID);
  3255. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3256. this.columnID}, true));
  3257. this.columnID.AutoIncrement = true;
  3258. this.columnID.AutoIncrementSeed = -1;
  3259. this.columnID.AutoIncrementStep = -1;
  3260. this.columnID.AllowDBNull = false;
  3261. this.columnID.ReadOnly = true;
  3262. this.columnID.Unique = true;
  3263. this.columnTitle.AllowDBNull = false;
  3264. this.columnTitle.MaxLength = 100;
  3265. this.columnCost.AllowDBNull = false;
  3266. this.columnDescription.MaxLength = 2147483647;
  3267. this.columnMainImagePath.MaxLength = 1000;
  3268. this.columnIsActive.AllowDBNull = false;
  3269. }
  3270. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3271. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3272. public ProductRow NewProductRow() {
  3273. return ((ProductRow)(this.NewRow()));
  3274. }
  3275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3276. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3277. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3278. return new ProductRow(builder);
  3279. }
  3280. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3281. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3282. protected override global::System.Type GetRowType() {
  3283. return typeof(ProductRow);
  3284. }
  3285. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3286. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3287. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3288. base.OnRowChanged(e);
  3289. if ((this.ProductRowChanged != null)) {
  3290. this.ProductRowChanged(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  3291. }
  3292. }
  3293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3294. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3295. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3296. base.OnRowChanging(e);
  3297. if ((this.ProductRowChanging != null)) {
  3298. this.ProductRowChanging(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  3299. }
  3300. }
  3301. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3302. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3303. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3304. base.OnRowDeleted(e);
  3305. if ((this.ProductRowDeleted != null)) {
  3306. this.ProductRowDeleted(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  3307. }
  3308. }
  3309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3310. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3311. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3312. base.OnRowDeleting(e);
  3313. if ((this.ProductRowDeleting != null)) {
  3314. this.ProductRowDeleting(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  3315. }
  3316. }
  3317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3319. public void RemoveProductRow(ProductRow row) {
  3320. this.Rows.Remove(row);
  3321. }
  3322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3323. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3324. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3325. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3326. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3327. BBrovkiZDataSet ds = new BBrovkiZDataSet();
  3328. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3329. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3330. any1.MinOccurs = new decimal(0);
  3331. any1.MaxOccurs = decimal.MaxValue;
  3332. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3333. sequence.Items.Add(any1);
  3334. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3335. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3336. any2.MinOccurs = new decimal(1);
  3337. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3338. sequence.Items.Add(any2);
  3339. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3340. attribute1.Name = "namespace";
  3341. attribute1.FixedValue = ds.Namespace;
  3342. type.Attributes.Add(attribute1);
  3343. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3344. attribute2.Name = "tableTypeName";
  3345. attribute2.FixedValue = "ProductDataTable";
  3346. type.Attributes.Add(attribute2);
  3347. type.Particle = sequence;
  3348. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3349. if (xs.Contains(dsSchema.TargetNamespace)) {
  3350. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3351. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3352. try {
  3353. global::System.Xml.Schema.XmlSchema schema = null;
  3354. dsSchema.Write(s1);
  3355. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3356. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3357. s2.SetLength(0);
  3358. schema.Write(s2);
  3359. if ((s1.Length == s2.Length)) {
  3360. s1.Position = 0;
  3361. s2.Position = 0;
  3362. for (; ((s1.Position != s1.Length)
  3363. && (s1.ReadByte() == s2.ReadByte())); ) {
  3364. ;
  3365. }
  3366. if ((s1.Position == s1.Length)) {
  3367. return type;
  3368. }
  3369. }
  3370. }
  3371. }
  3372. finally {
  3373. if ((s1 != null)) {
  3374. s1.Close();
  3375. }
  3376. if ((s2 != null)) {
  3377. s2.Close();
  3378. }
  3379. }
  3380. }
  3381. xs.Add(dsSchema);
  3382. return type;
  3383. }
  3384. }
  3385. /// <summary>
  3386. ///Represents the strongly named DataTable class.
  3387. ///</summary>
  3388. [global::System.Serializable()]
  3389. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3390. public partial class ProductPhotoDataTable : global::System.Data.TypedTableBase<ProductPhotoRow> {
  3391. private global::System.Data.DataColumn columnID;
  3392. private global::System.Data.DataColumn columnProductID;
  3393. private global::System.Data.DataColumn columnPhotoPath;
  3394. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3395. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3396. public ProductPhotoDataTable() {
  3397. this.TableName = "ProductPhoto";
  3398. this.BeginInit();
  3399. this.InitClass();
  3400. this.EndInit();
  3401. }
  3402. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3403. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3404. internal ProductPhotoDataTable(global::System.Data.DataTable table) {
  3405. this.TableName = table.TableName;
  3406. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3407. this.CaseSensitive = table.CaseSensitive;
  3408. }
  3409. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3410. this.Locale = table.Locale;
  3411. }
  3412. if ((table.Namespace != table.DataSet.Namespace)) {
  3413. this.Namespace = table.Namespace;
  3414. }
  3415. this.Prefix = table.Prefix;
  3416. this.MinimumCapacity = table.MinimumCapacity;
  3417. }
  3418. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3419. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3420. protected ProductPhotoDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3421. base(info, context) {
  3422. this.InitVars();
  3423. }
  3424. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3425. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3426. public global::System.Data.DataColumn IDColumn {
  3427. get {
  3428. return this.columnID;
  3429. }
  3430. }
  3431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3433. public global::System.Data.DataColumn ProductIDColumn {
  3434. get {
  3435. return this.columnProductID;
  3436. }
  3437. }
  3438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3439. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3440. public global::System.Data.DataColumn PhotoPathColumn {
  3441. get {
  3442. return this.columnPhotoPath;
  3443. }
  3444. }
  3445. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3446. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3447. [global::System.ComponentModel.Browsable(false)]
  3448. public int Count {
  3449. get {
  3450. return this.Rows.Count;
  3451. }
  3452. }
  3453. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3454. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3455. public ProductPhotoRow this[int index] {
  3456. get {
  3457. return ((ProductPhotoRow)(this.Rows[index]));
  3458. }
  3459. }
  3460. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3461. public event ProductPhotoRowChangeEventHandler ProductPhotoRowChanging;
  3462. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3463. public event ProductPhotoRowChangeEventHandler ProductPhotoRowChanged;
  3464. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3465. public event ProductPhotoRowChangeEventHandler ProductPhotoRowDeleting;
  3466. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3467. public event ProductPhotoRowChangeEventHandler ProductPhotoRowDeleted;
  3468. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3469. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3470. public void AddProductPhotoRow(ProductPhotoRow row) {
  3471. this.Rows.Add(row);
  3472. }
  3473. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3474. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3475. public ProductPhotoRow AddProductPhotoRow(ProductRow parentProductRowByFK_ProductPhoto_Product, string PhotoPath) {
  3476. ProductPhotoRow rowProductPhotoRow = ((ProductPhotoRow)(this.NewRow()));
  3477. object[] columnValuesArray = new object[] {
  3478. null,
  3479. null,
  3480. PhotoPath};
  3481. if ((parentProductRowByFK_ProductPhoto_Product != null)) {
  3482. columnValuesArray[1] = parentProductRowByFK_ProductPhoto_Product[0];
  3483. }
  3484. rowProductPhotoRow.ItemArray = columnValuesArray;
  3485. this.Rows.Add(rowProductPhotoRow);
  3486. return rowProductPhotoRow;
  3487. }
  3488. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3489. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3490. public ProductPhotoRow FindByID(int ID) {
  3491. return ((ProductPhotoRow)(this.Rows.Find(new object[] {
  3492. ID})));
  3493. }
  3494. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3495. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3496. public override global::System.Data.DataTable Clone() {
  3497. ProductPhotoDataTable cln = ((ProductPhotoDataTable)(base.Clone()));
  3498. cln.InitVars();
  3499. return cln;
  3500. }
  3501. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3502. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3503. protected override global::System.Data.DataTable CreateInstance() {
  3504. return new ProductPhotoDataTable();
  3505. }
  3506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3508. internal void InitVars() {
  3509. this.columnID = base.Columns["ID"];
  3510. this.columnProductID = base.Columns["ProductID"];
  3511. this.columnPhotoPath = base.Columns["PhotoPath"];
  3512. }
  3513. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3514. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3515. private void InitClass() {
  3516. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3517. base.Columns.Add(this.columnID);
  3518. this.columnProductID = new global::System.Data.DataColumn("ProductID", typeof(int), null, global::System.Data.MappingType.Element);
  3519. base.Columns.Add(this.columnProductID);
  3520. this.columnPhotoPath = new global::System.Data.DataColumn("PhotoPath", typeof(string), null, global::System.Data.MappingType.Element);
  3521. base.Columns.Add(this.columnPhotoPath);
  3522. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3523. this.columnID}, true));
  3524. this.columnID.AutoIncrement = true;
  3525. this.columnID.AutoIncrementSeed = -1;
  3526. this.columnID.AutoIncrementStep = -1;
  3527. this.columnID.AllowDBNull = false;
  3528. this.columnID.ReadOnly = true;
  3529. this.columnID.Unique = true;
  3530. this.columnProductID.AllowDBNull = false;
  3531. this.columnPhotoPath.AllowDBNull = false;
  3532. this.columnPhotoPath.MaxLength = 1000;
  3533. }
  3534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3535. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3536. public ProductPhotoRow NewProductPhotoRow() {
  3537. return ((ProductPhotoRow)(this.NewRow()));
  3538. }
  3539. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3540. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3541. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3542. return new ProductPhotoRow(builder);
  3543. }
  3544. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3545. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3546. protected override global::System.Type GetRowType() {
  3547. return typeof(ProductPhotoRow);
  3548. }
  3549. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3550. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3551. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3552. base.OnRowChanged(e);
  3553. if ((this.ProductPhotoRowChanged != null)) {
  3554. this.ProductPhotoRowChanged(this, new ProductPhotoRowChangeEvent(((ProductPhotoRow)(e.Row)), e.Action));
  3555. }
  3556. }
  3557. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3558. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3559. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3560. base.OnRowChanging(e);
  3561. if ((this.ProductPhotoRowChanging != null)) {
  3562. this.ProductPhotoRowChanging(this, new ProductPhotoRowChangeEvent(((ProductPhotoRow)(e.Row)), e.Action));
  3563. }
  3564. }
  3565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3567. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3568. base.OnRowDeleted(e);
  3569. if ((this.ProductPhotoRowDeleted != null)) {
  3570. this.ProductPhotoRowDeleted(this, new ProductPhotoRowChangeEvent(((ProductPhotoRow)(e.Row)), e.Action));
  3571. }
  3572. }
  3573. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3574. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3575. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3576. base.OnRowDeleting(e);
  3577. if ((this.ProductPhotoRowDeleting != null)) {
  3578. this.ProductPhotoRowDeleting(this, new ProductPhotoRowChangeEvent(((ProductPhotoRow)(e.Row)), e.Action));
  3579. }
  3580. }
  3581. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3582. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3583. public void RemoveProductPhotoRow(ProductPhotoRow row) {
  3584. this.Rows.Remove(row);
  3585. }
  3586. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3587. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3588. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3589. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3590. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3591. BBrovkiZDataSet ds = new BBrovkiZDataSet();
  3592. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3593. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3594. any1.MinOccurs = new decimal(0);
  3595. any1.MaxOccurs = decimal.MaxValue;
  3596. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3597. sequence.Items.Add(any1);
  3598. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3599. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3600. any2.MinOccurs = new decimal(1);
  3601. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3602. sequence.Items.Add(any2);
  3603. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3604. attribute1.Name = "namespace";
  3605. attribute1.FixedValue = ds.Namespace;
  3606. type.Attributes.Add(attribute1);
  3607. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3608. attribute2.Name = "tableTypeName";
  3609. attribute2.FixedValue = "ProductPhotoDataTable";
  3610. type.Attributes.Add(attribute2);
  3611. type.Particle = sequence;
  3612. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3613. if (xs.Contains(dsSchema.TargetNamespace)) {
  3614. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3615. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3616. try {
  3617. global::System.Xml.Schema.XmlSchema schema = null;
  3618. dsSchema.Write(s1);
  3619. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3620. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3621. s2.SetLength(0);
  3622. schema.Write(s2);
  3623. if ((s1.Length == s2.Length)) {
  3624. s1.Position = 0;
  3625. s2.Position = 0;
  3626. for (; ((s1.Position != s1.Length)
  3627. && (s1.ReadByte() == s2.ReadByte())); ) {
  3628. ;
  3629. }
  3630. if ((s1.Position == s1.Length)) {
  3631. return type;
  3632. }
  3633. }
  3634. }
  3635. }
  3636. finally {
  3637. if ((s1 != null)) {
  3638. s1.Close();
  3639. }
  3640. if ((s2 != null)) {
  3641. s2.Close();
  3642. }
  3643. }
  3644. }
  3645. xs.Add(dsSchema);
  3646. return type;
  3647. }
  3648. }
  3649. /// <summary>
  3650. ///Represents the strongly named DataTable class.
  3651. ///</summary>
  3652. [global::System.Serializable()]
  3653. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3654. public partial class ProductSaleDataTable : global::System.Data.TypedTableBase<ProductSaleRow> {
  3655. private global::System.Data.DataColumn columnID;
  3656. private global::System.Data.DataColumn columnSaleDate;
  3657. private global::System.Data.DataColumn columnProductID;
  3658. private global::System.Data.DataColumn columnQuantity;
  3659. private global::System.Data.DataColumn columnClientServiceID;
  3660. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3661. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3662. public ProductSaleDataTable() {
  3663. this.TableName = "ProductSale";
  3664. this.BeginInit();
  3665. this.InitClass();
  3666. this.EndInit();
  3667. }
  3668. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3669. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3670. internal ProductSaleDataTable(global::System.Data.DataTable table) {
  3671. this.TableName = table.TableName;
  3672. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3673. this.CaseSensitive = table.CaseSensitive;
  3674. }
  3675. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3676. this.Locale = table.Locale;
  3677. }
  3678. if ((table.Namespace != table.DataSet.Namespace)) {
  3679. this.Namespace = table.Namespace;
  3680. }
  3681. this.Prefix = table.Prefix;
  3682. this.MinimumCapacity = table.MinimumCapacity;
  3683. }
  3684. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3685. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3686. protected ProductSaleDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3687. base(info, context) {
  3688. this.InitVars();
  3689. }
  3690. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3691. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3692. public global::System.Data.DataColumn IDColumn {
  3693. get {
  3694. return this.columnID;
  3695. }
  3696. }
  3697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3698. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3699. public global::System.Data.DataColumn SaleDateColumn {
  3700. get {
  3701. return this.columnSaleDate;
  3702. }
  3703. }
  3704. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3705. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3706. public global::System.Data.DataColumn ProductIDColumn {
  3707. get {
  3708. return this.columnProductID;
  3709. }
  3710. }
  3711. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3712. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3713. public global::System.Data.DataColumn QuantityColumn {
  3714. get {
  3715. return this.columnQuantity;
  3716. }
  3717. }
  3718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3719. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3720. public global::System.Data.DataColumn ClientServiceIDColumn {
  3721. get {
  3722. return this.columnClientServiceID;
  3723. }
  3724. }
  3725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3726. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3727. [global::System.ComponentModel.Browsable(false)]
  3728. public int Count {
  3729. get {
  3730. return this.Rows.Count;
  3731. }
  3732. }
  3733. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3734. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3735. public ProductSaleRow this[int index] {
  3736. get {
  3737. return ((ProductSaleRow)(this.Rows[index]));
  3738. }
  3739. }
  3740. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3741. public event ProductSaleRowChangeEventHandler ProductSaleRowChanging;
  3742. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3743. public event ProductSaleRowChangeEventHandler ProductSaleRowChanged;
  3744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3745. public event ProductSaleRowChangeEventHandler ProductSaleRowDeleting;
  3746. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3747. public event ProductSaleRowChangeEventHandler ProductSaleRowDeleted;
  3748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3750. public void AddProductSaleRow(ProductSaleRow row) {
  3751. this.Rows.Add(row);
  3752. }
  3753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3755. public ProductSaleRow AddProductSaleRow(System.DateTime SaleDate, ProductRow parentProductRowByFK_ProductSale_Product, int Quantity, csRow parentcsRowByFK_ProductSale_ClientService) {
  3756. ProductSaleRow rowProductSaleRow = ((ProductSaleRow)(this.NewRow()));
  3757. object[] columnValuesArray = new object[] {
  3758. null,
  3759. SaleDate,
  3760. null,
  3761. Quantity,
  3762. null};
  3763. if ((parentProductRowByFK_ProductSale_Product != null)) {
  3764. columnValuesArray[2] = parentProductRowByFK_ProductSale_Product[0];
  3765. }
  3766. if ((parentcsRowByFK_ProductSale_ClientService != null)) {
  3767. columnValuesArray[4] = parentcsRowByFK_ProductSale_ClientService[0];
  3768. }
  3769. rowProductSaleRow.ItemArray = columnValuesArray;
  3770. this.Rows.Add(rowProductSaleRow);
  3771. return rowProductSaleRow;
  3772. }
  3773. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3774. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3775. public ProductSaleRow FindByID(int ID) {
  3776. return ((ProductSaleRow)(this.Rows.Find(new object[] {
  3777. ID})));
  3778. }
  3779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3781. public override global::System.Data.DataTable Clone() {
  3782. ProductSaleDataTable cln = ((ProductSaleDataTable)(base.Clone()));
  3783. cln.InitVars();
  3784. return cln;
  3785. }
  3786. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3787. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3788. protected override global::System.Data.DataTable CreateInstance() {
  3789. return new ProductSaleDataTable();
  3790. }
  3791. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3792. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3793. internal void InitVars() {
  3794. this.columnID = base.Columns["ID"];
  3795. this.columnSaleDate = base.Columns["SaleDate"];
  3796. this.columnProductID = base.Columns["ProductID"];
  3797. this.columnQuantity = base.Columns["Quantity"];
  3798. this.columnClientServiceID = base.Columns["ClientServiceID"];
  3799. }
  3800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3802. private void InitClass() {
  3803. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3804. base.Columns.Add(this.columnID);
  3805. this.columnSaleDate = new global::System.Data.DataColumn("SaleDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  3806. base.Columns.Add(this.columnSaleDate);
  3807. this.columnProductID = new global::System.Data.DataColumn("ProductID", typeof(int), null, global::System.Data.MappingType.Element);
  3808. base.Columns.Add(this.columnProductID);
  3809. this.columnQuantity = new global::System.Data.DataColumn("Quantity", typeof(int), null, global::System.Data.MappingType.Element);
  3810. base.Columns.Add(this.columnQuantity);
  3811. this.columnClientServiceID = new global::System.Data.DataColumn("ClientServiceID", typeof(int), null, global::System.Data.MappingType.Element);
  3812. base.Columns.Add(this.columnClientServiceID);
  3813. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3814. this.columnID}, true));
  3815. this.columnID.AutoIncrement = true;
  3816. this.columnID.AutoIncrementSeed = -1;
  3817. this.columnID.AutoIncrementStep = -1;
  3818. this.columnID.AllowDBNull = false;
  3819. this.columnID.ReadOnly = true;
  3820. this.columnID.Unique = true;
  3821. this.columnSaleDate.AllowDBNull = false;
  3822. this.columnProductID.AllowDBNull = false;
  3823. this.columnQuantity.AllowDBNull = false;
  3824. }
  3825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3826. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3827. public ProductSaleRow NewProductSaleRow() {
  3828. return ((ProductSaleRow)(this.NewRow()));
  3829. }
  3830. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3831. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3832. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3833. return new ProductSaleRow(builder);
  3834. }
  3835. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3836. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3837. protected override global::System.Type GetRowType() {
  3838. return typeof(ProductSaleRow);
  3839. }
  3840. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3841. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3842. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3843. base.OnRowChanged(e);
  3844. if ((this.ProductSaleRowChanged != null)) {
  3845. this.ProductSaleRowChanged(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  3846. }
  3847. }
  3848. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3849. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3850. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3851. base.OnRowChanging(e);
  3852. if ((this.ProductSaleRowChanging != null)) {
  3853. this.ProductSaleRowChanging(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  3854. }
  3855. }
  3856. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3857. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3858. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3859. base.OnRowDeleted(e);
  3860. if ((this.ProductSaleRowDeleted != null)) {
  3861. this.ProductSaleRowDeleted(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  3862. }
  3863. }
  3864. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3865. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3866. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3867. base.OnRowDeleting(e);
  3868. if ((this.ProductSaleRowDeleting != null)) {
  3869. this.ProductSaleRowDeleting(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  3870. }
  3871. }
  3872. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3873. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3874. public void RemoveProductSaleRow(ProductSaleRow row) {
  3875. this.Rows.Remove(row);
  3876. }
  3877. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3878. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3879. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3880. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3881. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3882. BBrovkiZDataSet ds = new BBrovkiZDataSet();
  3883. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3884. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3885. any1.MinOccurs = new decimal(0);
  3886. any1.MaxOccurs = decimal.MaxValue;
  3887. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3888. sequence.Items.Add(any1);
  3889. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3890. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3891. any2.MinOccurs = new decimal(1);
  3892. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3893. sequence.Items.Add(any2);
  3894. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3895. attribute1.Name = "namespace";
  3896. attribute1.FixedValue = ds.Namespace;
  3897. type.Attributes.Add(attribute1);
  3898. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3899. attribute2.Name = "tableTypeName";
  3900. attribute2.FixedValue = "ProductSaleDataTable";
  3901. type.Attributes.Add(attribute2);
  3902. type.Particle = sequence;
  3903. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3904. if (xs.Contains(dsSchema.TargetNamespace)) {
  3905. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3906. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3907. try {
  3908. global::System.Xml.Schema.XmlSchema schema = null;
  3909. dsSchema.Write(s1);
  3910. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3911. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3912. s2.SetLength(0);
  3913. schema.Write(s2);
  3914. if ((s1.Length == s2.Length)) {
  3915. s1.Position = 0;
  3916. s2.Position = 0;
  3917. for (; ((s1.Position != s1.Length)
  3918. && (s1.ReadByte() == s2.ReadByte())); ) {
  3919. ;
  3920. }
  3921. if ((s1.Position == s1.Length)) {
  3922. return type;
  3923. }
  3924. }
  3925. }
  3926. }
  3927. finally {
  3928. if ((s1 != null)) {
  3929. s1.Close();
  3930. }
  3931. if ((s2 != null)) {
  3932. s2.Close();
  3933. }
  3934. }
  3935. }
  3936. xs.Add(dsSchema);
  3937. return type;
  3938. }
  3939. }
  3940. /// <summary>
  3941. ///Represents the strongly named DataTable class.
  3942. ///</summary>
  3943. [global::System.Serializable()]
  3944. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3945. public partial class sDataTable : global::System.Data.TypedTableBase<sRow> {
  3946. private global::System.Data.DataColumn columnID;
  3947. private global::System.Data.DataColumn columnTitle;
  3948. private global::System.Data.DataColumn columnCost;
  3949. private global::System.Data.DataColumn columnDurationInSeconds;
  3950. private global::System.Data.DataColumn columnDescription;
  3951. private global::System.Data.DataColumn columnDiscount;
  3952. private global::System.Data.DataColumn columnMainImagePath;
  3953. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3954. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3955. public sDataTable() {
  3956. this.TableName = "s";
  3957. this.BeginInit();
  3958. this.InitClass();
  3959. this.EndInit();
  3960. }
  3961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3962. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3963. internal sDataTable(global::System.Data.DataTable table) {
  3964. this.TableName = table.TableName;
  3965. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3966. this.CaseSensitive = table.CaseSensitive;
  3967. }
  3968. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3969. this.Locale = table.Locale;
  3970. }
  3971. if ((table.Namespace != table.DataSet.Namespace)) {
  3972. this.Namespace = table.Namespace;
  3973. }
  3974. this.Prefix = table.Prefix;
  3975. this.MinimumCapacity = table.MinimumCapacity;
  3976. }
  3977. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3978. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3979. protected sDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3980. base(info, context) {
  3981. this.InitVars();
  3982. }
  3983. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3984. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3985. public global::System.Data.DataColumn IDColumn {
  3986. get {
  3987. return this.columnID;
  3988. }
  3989. }
  3990. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3991. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3992. public global::System.Data.DataColumn TitleColumn {
  3993. get {
  3994. return this.columnTitle;
  3995. }
  3996. }
  3997. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3998. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3999. public global::System.Data.DataColumn CostColumn {
  4000. get {
  4001. return this.columnCost;
  4002. }
  4003. }
  4004. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4005. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4006. public global::System.Data.DataColumn DurationInSecondsColumn {
  4007. get {
  4008. return this.columnDurationInSeconds;
  4009. }
  4010. }
  4011. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4012. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4013. public global::System.Data.DataColumn DescriptionColumn {
  4014. get {
  4015. return this.columnDescription;
  4016. }
  4017. }
  4018. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4019. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4020. public global::System.Data.DataColumn DiscountColumn {
  4021. get {
  4022. return this.columnDiscount;
  4023. }
  4024. }
  4025. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4026. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4027. public global::System.Data.DataColumn MainImagePathColumn {
  4028. get {
  4029. return this.columnMainImagePath;
  4030. }
  4031. }
  4032. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4033. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4034. [global::System.ComponentModel.Browsable(false)]
  4035. public int Count {
  4036. get {
  4037. return this.Rows.Count;
  4038. }
  4039. }
  4040. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4041. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4042. public sRow this[int index] {
  4043. get {
  4044. return ((sRow)(this.Rows[index]));
  4045. }
  4046. }
  4047. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4048. public event sRowChangeEventHandler sRowChanging;
  4049. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4050. public event sRowChangeEventHandler sRowChanged;
  4051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4052. public event sRowChangeEventHandler sRowDeleting;
  4053. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4054. public event sRowChangeEventHandler sRowDeleted;
  4055. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4056. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4057. public void AddsRow(sRow row) {
  4058. this.Rows.Add(row);
  4059. }
  4060. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4061. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4062. public sRow AddsRow(string Title, decimal Cost, int DurationInSeconds, string Description, double Discount, string MainImagePath) {
  4063. sRow rowsRow = ((sRow)(this.NewRow()));
  4064. object[] columnValuesArray = new object[] {
  4065. null,
  4066. Title,
  4067. Cost,
  4068. DurationInSeconds,
  4069. Description,
  4070. Discount,
  4071. MainImagePath};
  4072. rowsRow.ItemArray = columnValuesArray;
  4073. this.Rows.Add(rowsRow);
  4074. return rowsRow;
  4075. }
  4076. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4077. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4078. public sRow FindByID(int ID) {
  4079. return ((sRow)(this.Rows.Find(new object[] {
  4080. ID})));
  4081. }
  4082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4084. public override global::System.Data.DataTable Clone() {
  4085. sDataTable cln = ((sDataTable)(base.Clone()));
  4086. cln.InitVars();
  4087. return cln;
  4088. }
  4089. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4090. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4091. protected override global::System.Data.DataTable CreateInstance() {
  4092. return new sDataTable();
  4093. }
  4094. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4095. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4096. internal void InitVars() {
  4097. this.columnID = base.Columns["ID"];
  4098. this.columnTitle = base.Columns["Title"];
  4099. this.columnCost = base.Columns["Cost"];
  4100. this.columnDurationInSeconds = base.Columns["DurationInSeconds"];
  4101. this.columnDescription = base.Columns["Description"];
  4102. this.columnDiscount = base.Columns["Discount"];
  4103. this.columnMainImagePath = base.Columns["MainImagePath"];
  4104. }
  4105. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4106. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4107. private void InitClass() {
  4108. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  4109. base.Columns.Add(this.columnID);
  4110. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  4111. base.Columns.Add(this.columnTitle);
  4112. this.columnCost = new global::System.Data.DataColumn("Cost", typeof(decimal), null, global::System.Data.MappingType.Element);
  4113. base.Columns.Add(this.columnCost);
  4114. this.columnDurationInSeconds = new global::System.Data.DataColumn("DurationInSeconds", typeof(int), null, global::System.Data.MappingType.Element);
  4115. base.Columns.Add(this.columnDurationInSeconds);
  4116. this.columnDescription = new global::System.Data.DataColumn("Description", typeof(string), null, global::System.Data.MappingType.Element);
  4117. base.Columns.Add(this.columnDescription);
  4118. this.columnDiscount = new global::System.Data.DataColumn("Discount", typeof(double), null, global::System.Data.MappingType.Element);
  4119. base.Columns.Add(this.columnDiscount);
  4120. this.columnMainImagePath = new global::System.Data.DataColumn("MainImagePath", typeof(string), null, global::System.Data.MappingType.Element);
  4121. base.Columns.Add(this.columnMainImagePath);
  4122. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  4123. this.columnID}, true));
  4124. this.columnID.AutoIncrement = true;
  4125. this.columnID.AutoIncrementSeed = -1;
  4126. this.columnID.AutoIncrementStep = -1;
  4127. this.columnID.AllowDBNull = false;
  4128. this.columnID.ReadOnly = true;
  4129. this.columnID.Unique = true;
  4130. this.columnTitle.AllowDBNull = false;
  4131. this.columnTitle.MaxLength = 100;
  4132. this.columnCost.AllowDBNull = false;
  4133. this.columnDurationInSeconds.AllowDBNull = false;
  4134. this.columnDescription.MaxLength = 2147483647;
  4135. this.columnMainImagePath.MaxLength = 1000;
  4136. }
  4137. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4138. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4139. public sRow NewsRow() {
  4140. return ((sRow)(this.NewRow()));
  4141. }
  4142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4143. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4144. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  4145. return new sRow(builder);
  4146. }
  4147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4149. protected override global::System.Type GetRowType() {
  4150. return typeof(sRow);
  4151. }
  4152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4154. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  4155. base.OnRowChanged(e);
  4156. if ((this.sRowChanged != null)) {
  4157. this.sRowChanged(this, new sRowChangeEvent(((sRow)(e.Row)), e.Action));
  4158. }
  4159. }
  4160. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4161. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4162. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  4163. base.OnRowChanging(e);
  4164. if ((this.sRowChanging != null)) {
  4165. this.sRowChanging(this, new sRowChangeEvent(((sRow)(e.Row)), e.Action));
  4166. }
  4167. }
  4168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4169. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4170. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  4171. base.OnRowDeleted(e);
  4172. if ((this.sRowDeleted != null)) {
  4173. this.sRowDeleted(this, new sRowChangeEvent(((sRow)(e.Row)), e.Action));
  4174. }
  4175. }
  4176. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4177. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4178. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  4179. base.OnRowDeleting(e);
  4180. if ((this.sRowDeleting != null)) {
  4181. this.sRowDeleting(this, new sRowChangeEvent(((sRow)(e.Row)), e.Action));
  4182. }
  4183. }
  4184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4186. public void RemovesRow(sRow row) {
  4187. this.Rows.Remove(row);
  4188. }
  4189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4191. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  4192. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  4193. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  4194. BBrovkiZDataSet ds = new BBrovkiZDataSet();
  4195. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  4196. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  4197. any1.MinOccurs = new decimal(0);
  4198. any1.MaxOccurs = decimal.MaxValue;
  4199. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4200. sequence.Items.Add(any1);
  4201. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  4202. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  4203. any2.MinOccurs = new decimal(1);
  4204. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4205. sequence.Items.Add(any2);
  4206. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4207. attribute1.Name = "namespace";
  4208. attribute1.FixedValue = ds.Namespace;
  4209. type.Attributes.Add(attribute1);
  4210. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4211. attribute2.Name = "tableTypeName";
  4212. attribute2.FixedValue = "sDataTable";
  4213. type.Attributes.Add(attribute2);
  4214. type.Particle = sequence;
  4215. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  4216. if (xs.Contains(dsSchema.TargetNamespace)) {
  4217. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  4218. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  4219. try {
  4220. global::System.Xml.Schema.XmlSchema schema = null;
  4221. dsSchema.Write(s1);
  4222. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  4223. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  4224. s2.SetLength(0);
  4225. schema.Write(s2);
  4226. if ((s1.Length == s2.Length)) {
  4227. s1.Position = 0;
  4228. s2.Position = 0;
  4229. for (; ((s1.Position != s1.Length)
  4230. && (s1.ReadByte() == s2.ReadByte())); ) {
  4231. ;
  4232. }
  4233. if ((s1.Position == s1.Length)) {
  4234. return type;
  4235. }
  4236. }
  4237. }
  4238. }
  4239. finally {
  4240. if ((s1 != null)) {
  4241. s1.Close();
  4242. }
  4243. if ((s2 != null)) {
  4244. s2.Close();
  4245. }
  4246. }
  4247. }
  4248. xs.Add(dsSchema);
  4249. return type;
  4250. }
  4251. }
  4252. /// <summary>
  4253. ///Represents the strongly named DataTable class.
  4254. ///</summary>
  4255. [global::System.Serializable()]
  4256. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  4257. public partial class ServiceDataTable : global::System.Data.TypedTableBase<ServiceRow> {
  4258. private global::System.Data.DataColumn columnID;
  4259. private global::System.Data.DataColumn columnНаименование_услуги;
  4260. private global::System.Data.DataColumn columnГлавное_изображение;
  4261. private global::System.Data.DataColumn columnДлительность;
  4262. private global::System.Data.DataColumn columnСтоимость;
  4263. private global::System.Data.DataColumn columnДействующая_скидка;
  4264. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4265. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4266. public ServiceDataTable() {
  4267. this.TableName = "Service";
  4268. this.BeginInit();
  4269. this.InitClass();
  4270. this.EndInit();
  4271. }
  4272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4274. internal ServiceDataTable(global::System.Data.DataTable table) {
  4275. this.TableName = table.TableName;
  4276. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  4277. this.CaseSensitive = table.CaseSensitive;
  4278. }
  4279. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  4280. this.Locale = table.Locale;
  4281. }
  4282. if ((table.Namespace != table.DataSet.Namespace)) {
  4283. this.Namespace = table.Namespace;
  4284. }
  4285. this.Prefix = table.Prefix;
  4286. this.MinimumCapacity = table.MinimumCapacity;
  4287. }
  4288. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4289. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4290. protected ServiceDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  4291. base(info, context) {
  4292. this.InitVars();
  4293. }
  4294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4296. public global::System.Data.DataColumn IDColumn {
  4297. get {
  4298. return this.columnID;
  4299. }
  4300. }
  4301. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4302. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4303. public global::System.Data.DataColumn Наименование_услугиColumn {
  4304. get {
  4305. return this.columnНаименование_услуги;
  4306. }
  4307. }
  4308. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4309. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4310. public global::System.Data.DataColumn Главное_изображениеColumn {
  4311. get {
  4312. return this.columnГлавное_изображение;
  4313. }
  4314. }
  4315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4316. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4317. public global::System.Data.DataColumn ДлительностьColumn {
  4318. get {
  4319. return this.columnДлительность;
  4320. }
  4321. }
  4322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4323. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4324. public global::System.Data.DataColumn СтоимостьColumn {
  4325. get {
  4326. return this.columnСтоимость;
  4327. }
  4328. }
  4329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4331. public global::System.Data.DataColumn Действующая_скидкаColumn {
  4332. get {
  4333. return this.columnДействующая_скидка;
  4334. }
  4335. }
  4336. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4337. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4338. [global::System.ComponentModel.Browsable(false)]
  4339. public int Count {
  4340. get {
  4341. return this.Rows.Count;
  4342. }
  4343. }
  4344. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4345. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4346. public ServiceRow this[int index] {
  4347. get {
  4348. return ((ServiceRow)(this.Rows[index]));
  4349. }
  4350. }
  4351. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4352. public event ServiceRowChangeEventHandler ServiceRowChanging;
  4353. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4354. public event ServiceRowChangeEventHandler ServiceRowChanged;
  4355. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4356. public event ServiceRowChangeEventHandler ServiceRowDeleting;
  4357. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4358. public event ServiceRowChangeEventHandler ServiceRowDeleted;
  4359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4360. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4361. public void AddServiceRow(ServiceRow row) {
  4362. this.Rows.Add(row);
  4363. }
  4364. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4365. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4366. public ServiceRow AddServiceRow(int ID, string Наименование_услуги, string Главное_изображение, string Длительность, decimal Стоимость, string Действующая_скидка) {
  4367. ServiceRow rowServiceRow = ((ServiceRow)(this.NewRow()));
  4368. object[] columnValuesArray = new object[] {
  4369. ID,
  4370. Наименование_услуги,
  4371. Главное_изображение,
  4372. Длительность,
  4373. Стоимость,
  4374. Действующая_скидка};
  4375. rowServiceRow.ItemArray = columnValuesArray;
  4376. this.Rows.Add(rowServiceRow);
  4377. return rowServiceRow;
  4378. }
  4379. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4380. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4381. public ServiceRow FindByID(int ID) {
  4382. return ((ServiceRow)(this.Rows.Find(new object[] {
  4383. ID})));
  4384. }
  4385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4386. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4387. public override global::System.Data.DataTable Clone() {
  4388. ServiceDataTable cln = ((ServiceDataTable)(base.Clone()));
  4389. cln.InitVars();
  4390. return cln;
  4391. }
  4392. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4393. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4394. protected override global::System.Data.DataTable CreateInstance() {
  4395. return new ServiceDataTable();
  4396. }
  4397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4398. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4399. internal void InitVars() {
  4400. this.columnID = base.Columns["ID"];
  4401. this.columnНаименование_услуги = base.Columns["Наименование_услуги"];
  4402. this.columnГлавное_изображение = base.Columns["Главное_изображение"];
  4403. this.columnДлительность = base.Columns["Длительность"];
  4404. this.columnСтоимость = base.Columns["Стоимость"];
  4405. this.columnДействующая_скидка = base.Columns["Действующая_скидка"];
  4406. }
  4407. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4408. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4409. private void InitClass() {
  4410. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  4411. base.Columns.Add(this.columnID);
  4412. this.columnНаименование_услуги = new global::System.Data.DataColumn("Наименование_услуги", typeof(string), null, global::System.Data.MappingType.Element);
  4413. base.Columns.Add(this.columnНаименование_услуги);
  4414. this.columnГлавное_изображение = new global::System.Data.DataColumn("Главное_изображение", typeof(string), null, global::System.Data.MappingType.Element);
  4415. base.Columns.Add(this.columnГлавное_изображение);
  4416. this.columnДлительность = new global::System.Data.DataColumn("Длительность", typeof(string), null, global::System.Data.MappingType.Element);
  4417. base.Columns.Add(this.columnДлительность);
  4418. this.columnСтоимость = new global::System.Data.DataColumn("Стоимость", typeof(decimal), null, global::System.Data.MappingType.Element);
  4419. base.Columns.Add(this.columnСтоимость);
  4420. this.columnДействующая_скидка = new global::System.Data.DataColumn("Действующая_скидка", typeof(string), null, global::System.Data.MappingType.Element);
  4421. base.Columns.Add(this.columnДействующая_скидка);
  4422. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  4423. this.columnID}, true));
  4424. this.columnID.AllowDBNull = false;
  4425. this.columnID.Unique = true;
  4426. this.columnНаименование_услуги.AllowDBNull = false;
  4427. this.columnНаименование_услуги.MaxLength = 50;
  4428. this.columnГлавное_изображение.AllowDBNull = false;
  4429. this.columnГлавное_изображение.MaxLength = 100;
  4430. this.columnДлительность.AllowDBNull = false;
  4431. this.columnДлительность.MaxLength = 50;
  4432. this.columnСтоимость.AllowDBNull = false;
  4433. this.columnДействующая_скидка.AllowDBNull = false;
  4434. this.columnДействующая_скидка.MaxLength = 50;
  4435. }
  4436. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4437. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4438. public ServiceRow NewServiceRow() {
  4439. return ((ServiceRow)(this.NewRow()));
  4440. }
  4441. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4442. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4443. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  4444. return new ServiceRow(builder);
  4445. }
  4446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4447. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4448. protected override global::System.Type GetRowType() {
  4449. return typeof(ServiceRow);
  4450. }
  4451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4452. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4453. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  4454. base.OnRowChanged(e);
  4455. if ((this.ServiceRowChanged != null)) {
  4456. this.ServiceRowChanged(this, new ServiceRowChangeEvent(((ServiceRow)(e.Row)), e.Action));
  4457. }
  4458. }
  4459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4460. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4461. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  4462. base.OnRowChanging(e);
  4463. if ((this.ServiceRowChanging != null)) {
  4464. this.ServiceRowChanging(this, new ServiceRowChangeEvent(((ServiceRow)(e.Row)), e.Action));
  4465. }
  4466. }
  4467. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4468. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4469. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  4470. base.OnRowDeleted(e);
  4471. if ((this.ServiceRowDeleted != null)) {
  4472. this.ServiceRowDeleted(this, new ServiceRowChangeEvent(((ServiceRow)(e.Row)), e.Action));
  4473. }
  4474. }
  4475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4477. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  4478. base.OnRowDeleting(e);
  4479. if ((this.ServiceRowDeleting != null)) {
  4480. this.ServiceRowDeleting(this, new ServiceRowChangeEvent(((ServiceRow)(e.Row)), e.Action));
  4481. }
  4482. }
  4483. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4484. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4485. public void RemoveServiceRow(ServiceRow row) {
  4486. this.Rows.Remove(row);
  4487. }
  4488. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4489. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4490. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  4491. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  4492. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  4493. BBrovkiZDataSet ds = new BBrovkiZDataSet();
  4494. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  4495. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  4496. any1.MinOccurs = new decimal(0);
  4497. any1.MaxOccurs = decimal.MaxValue;
  4498. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4499. sequence.Items.Add(any1);
  4500. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  4501. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  4502. any2.MinOccurs = new decimal(1);
  4503. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4504. sequence.Items.Add(any2);
  4505. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4506. attribute1.Name = "namespace";
  4507. attribute1.FixedValue = ds.Namespace;
  4508. type.Attributes.Add(attribute1);
  4509. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4510. attribute2.Name = "tableTypeName";
  4511. attribute2.FixedValue = "ServiceDataTable";
  4512. type.Attributes.Add(attribute2);
  4513. type.Particle = sequence;
  4514. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  4515. if (xs.Contains(dsSchema.TargetNamespace)) {
  4516. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  4517. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  4518. try {
  4519. global::System.Xml.Schema.XmlSchema schema = null;
  4520. dsSchema.Write(s1);
  4521. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  4522. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  4523. s2.SetLength(0);
  4524. schema.Write(s2);
  4525. if ((s1.Length == s2.Length)) {
  4526. s1.Position = 0;
  4527. s2.Position = 0;
  4528. for (; ((s1.Position != s1.Length)
  4529. && (s1.ReadByte() == s2.ReadByte())); ) {
  4530. ;
  4531. }
  4532. if ((s1.Position == s1.Length)) {
  4533. return type;
  4534. }
  4535. }
  4536. }
  4537. }
  4538. finally {
  4539. if ((s1 != null)) {
  4540. s1.Close();
  4541. }
  4542. if ((s2 != null)) {
  4543. s2.Close();
  4544. }
  4545. }
  4546. }
  4547. xs.Add(dsSchema);
  4548. return type;
  4549. }
  4550. }
  4551. /// <summary>
  4552. ///Represents the strongly named DataTable class.
  4553. ///</summary>
  4554. [global::System.Serializable()]
  4555. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  4556. public partial class ServicePhotoDataTable : global::System.Data.TypedTableBase<ServicePhotoRow> {
  4557. private global::System.Data.DataColumn columnID;
  4558. private global::System.Data.DataColumn columnServiceID;
  4559. private global::System.Data.DataColumn columnPhotoPath;
  4560. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4561. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4562. public ServicePhotoDataTable() {
  4563. this.TableName = "ServicePhoto";
  4564. this.BeginInit();
  4565. this.InitClass();
  4566. this.EndInit();
  4567. }
  4568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4570. internal ServicePhotoDataTable(global::System.Data.DataTable table) {
  4571. this.TableName = table.TableName;
  4572. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  4573. this.CaseSensitive = table.CaseSensitive;
  4574. }
  4575. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  4576. this.Locale = table.Locale;
  4577. }
  4578. if ((table.Namespace != table.DataSet.Namespace)) {
  4579. this.Namespace = table.Namespace;
  4580. }
  4581. this.Prefix = table.Prefix;
  4582. this.MinimumCapacity = table.MinimumCapacity;
  4583. }
  4584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4586. protected ServicePhotoDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  4587. base(info, context) {
  4588. this.InitVars();
  4589. }
  4590. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4591. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4592. public global::System.Data.DataColumn IDColumn {
  4593. get {
  4594. return this.columnID;
  4595. }
  4596. }
  4597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4598. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4599. public global::System.Data.DataColumn ServiceIDColumn {
  4600. get {
  4601. return this.columnServiceID;
  4602. }
  4603. }
  4604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4606. public global::System.Data.DataColumn PhotoPathColumn {
  4607. get {
  4608. return this.columnPhotoPath;
  4609. }
  4610. }
  4611. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4612. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4613. [global::System.ComponentModel.Browsable(false)]
  4614. public int Count {
  4615. get {
  4616. return this.Rows.Count;
  4617. }
  4618. }
  4619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4621. public ServicePhotoRow this[int index] {
  4622. get {
  4623. return ((ServicePhotoRow)(this.Rows[index]));
  4624. }
  4625. }
  4626. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4627. public event ServicePhotoRowChangeEventHandler ServicePhotoRowChanging;
  4628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4629. public event ServicePhotoRowChangeEventHandler ServicePhotoRowChanged;
  4630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4631. public event ServicePhotoRowChangeEventHandler ServicePhotoRowDeleting;
  4632. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4633. public event ServicePhotoRowChangeEventHandler ServicePhotoRowDeleted;
  4634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4636. public void AddServicePhotoRow(ServicePhotoRow row) {
  4637. this.Rows.Add(row);
  4638. }
  4639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4641. public ServicePhotoRow AddServicePhotoRow(sRow parentsRowByFK_ServicePhoto_Service, string PhotoPath) {
  4642. ServicePhotoRow rowServicePhotoRow = ((ServicePhotoRow)(this.NewRow()));
  4643. object[] columnValuesArray = new object[] {
  4644. null,
  4645. null,
  4646. PhotoPath};
  4647. if ((parentsRowByFK_ServicePhoto_Service != null)) {
  4648. columnValuesArray[1] = parentsRowByFK_ServicePhoto_Service[0];
  4649. }
  4650. rowServicePhotoRow.ItemArray = columnValuesArray;
  4651. this.Rows.Add(rowServicePhotoRow);
  4652. return rowServicePhotoRow;
  4653. }
  4654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4655. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4656. public ServicePhotoRow FindByID(int ID) {
  4657. return ((ServicePhotoRow)(this.Rows.Find(new object[] {
  4658. ID})));
  4659. }
  4660. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4661. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4662. public override global::System.Data.DataTable Clone() {
  4663. ServicePhotoDataTable cln = ((ServicePhotoDataTable)(base.Clone()));
  4664. cln.InitVars();
  4665. return cln;
  4666. }
  4667. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4668. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4669. protected override global::System.Data.DataTable CreateInstance() {
  4670. return new ServicePhotoDataTable();
  4671. }
  4672. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4674. internal void InitVars() {
  4675. this.columnID = base.Columns["ID"];
  4676. this.columnServiceID = base.Columns["ServiceID"];
  4677. this.columnPhotoPath = base.Columns["PhotoPath"];
  4678. }
  4679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4680. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4681. private void InitClass() {
  4682. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  4683. base.Columns.Add(this.columnID);
  4684. this.columnServiceID = new global::System.Data.DataColumn("ServiceID", typeof(int), null, global::System.Data.MappingType.Element);
  4685. base.Columns.Add(this.columnServiceID);
  4686. this.columnPhotoPath = new global::System.Data.DataColumn("PhotoPath", typeof(string), null, global::System.Data.MappingType.Element);
  4687. base.Columns.Add(this.columnPhotoPath);
  4688. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  4689. this.columnID}, true));
  4690. this.columnID.AutoIncrement = true;
  4691. this.columnID.AutoIncrementSeed = -1;
  4692. this.columnID.AutoIncrementStep = -1;
  4693. this.columnID.AllowDBNull = false;
  4694. this.columnID.ReadOnly = true;
  4695. this.columnID.Unique = true;
  4696. this.columnServiceID.AllowDBNull = false;
  4697. this.columnPhotoPath.AllowDBNull = false;
  4698. this.columnPhotoPath.MaxLength = 1000;
  4699. }
  4700. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4701. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4702. public ServicePhotoRow NewServicePhotoRow() {
  4703. return ((ServicePhotoRow)(this.NewRow()));
  4704. }
  4705. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4706. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4707. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  4708. return new ServicePhotoRow(builder);
  4709. }
  4710. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4711. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4712. protected override global::System.Type GetRowType() {
  4713. return typeof(ServicePhotoRow);
  4714. }
  4715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4717. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  4718. base.OnRowChanged(e);
  4719. if ((this.ServicePhotoRowChanged != null)) {
  4720. this.ServicePhotoRowChanged(this, new ServicePhotoRowChangeEvent(((ServicePhotoRow)(e.Row)), e.Action));
  4721. }
  4722. }
  4723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4724. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4725. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  4726. base.OnRowChanging(e);
  4727. if ((this.ServicePhotoRowChanging != null)) {
  4728. this.ServicePhotoRowChanging(this, new ServicePhotoRowChangeEvent(((ServicePhotoRow)(e.Row)), e.Action));
  4729. }
  4730. }
  4731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4732. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4733. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  4734. base.OnRowDeleted(e);
  4735. if ((this.ServicePhotoRowDeleted != null)) {
  4736. this.ServicePhotoRowDeleted(this, new ServicePhotoRowChangeEvent(((ServicePhotoRow)(e.Row)), e.Action));
  4737. }
  4738. }
  4739. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4740. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4741. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  4742. base.OnRowDeleting(e);
  4743. if ((this.ServicePhotoRowDeleting != null)) {
  4744. this.ServicePhotoRowDeleting(this, new ServicePhotoRowChangeEvent(((ServicePhotoRow)(e.Row)), e.Action));
  4745. }
  4746. }
  4747. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4748. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4749. public void RemoveServicePhotoRow(ServicePhotoRow row) {
  4750. this.Rows.Remove(row);
  4751. }
  4752. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4753. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4754. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  4755. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  4756. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  4757. BBrovkiZDataSet ds = new BBrovkiZDataSet();
  4758. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  4759. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  4760. any1.MinOccurs = new decimal(0);
  4761. any1.MaxOccurs = decimal.MaxValue;
  4762. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4763. sequence.Items.Add(any1);
  4764. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  4765. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  4766. any2.MinOccurs = new decimal(1);
  4767. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4768. sequence.Items.Add(any2);
  4769. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4770. attribute1.Name = "namespace";
  4771. attribute1.FixedValue = ds.Namespace;
  4772. type.Attributes.Add(attribute1);
  4773. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4774. attribute2.Name = "tableTypeName";
  4775. attribute2.FixedValue = "ServicePhotoDataTable";
  4776. type.Attributes.Add(attribute2);
  4777. type.Particle = sequence;
  4778. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  4779. if (xs.Contains(dsSchema.TargetNamespace)) {
  4780. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  4781. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  4782. try {
  4783. global::System.Xml.Schema.XmlSchema schema = null;
  4784. dsSchema.Write(s1);
  4785. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  4786. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  4787. s2.SetLength(0);
  4788. schema.Write(s2);
  4789. if ((s1.Length == s2.Length)) {
  4790. s1.Position = 0;
  4791. s2.Position = 0;
  4792. for (; ((s1.Position != s1.Length)
  4793. && (s1.ReadByte() == s2.ReadByte())); ) {
  4794. ;
  4795. }
  4796. if ((s1.Position == s1.Length)) {
  4797. return type;
  4798. }
  4799. }
  4800. }
  4801. }
  4802. finally {
  4803. if ((s1 != null)) {
  4804. s1.Close();
  4805. }
  4806. if ((s2 != null)) {
  4807. s2.Close();
  4808. }
  4809. }
  4810. }
  4811. xs.Add(dsSchema);
  4812. return type;
  4813. }
  4814. }
  4815. /// <summary>
  4816. ///Represents the strongly named DataTable class.
  4817. ///</summary>
  4818. [global::System.Serializable()]
  4819. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  4820. public partial class TagDataTable : global::System.Data.TypedTableBase<TagRow> {
  4821. private global::System.Data.DataColumn columnID;
  4822. private global::System.Data.DataColumn columnTitle;
  4823. private global::System.Data.DataColumn columnColor;
  4824. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4825. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4826. public TagDataTable() {
  4827. this.TableName = "Tag";
  4828. this.BeginInit();
  4829. this.InitClass();
  4830. this.EndInit();
  4831. }
  4832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4833. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4834. internal TagDataTable(global::System.Data.DataTable table) {
  4835. this.TableName = table.TableName;
  4836. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  4837. this.CaseSensitive = table.CaseSensitive;
  4838. }
  4839. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  4840. this.Locale = table.Locale;
  4841. }
  4842. if ((table.Namespace != table.DataSet.Namespace)) {
  4843. this.Namespace = table.Namespace;
  4844. }
  4845. this.Prefix = table.Prefix;
  4846. this.MinimumCapacity = table.MinimumCapacity;
  4847. }
  4848. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4849. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4850. protected TagDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  4851. base(info, context) {
  4852. this.InitVars();
  4853. }
  4854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4855. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4856. public global::System.Data.DataColumn IDColumn {
  4857. get {
  4858. return this.columnID;
  4859. }
  4860. }
  4861. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4862. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4863. public global::System.Data.DataColumn TitleColumn {
  4864. get {
  4865. return this.columnTitle;
  4866. }
  4867. }
  4868. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4869. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4870. public global::System.Data.DataColumn ColorColumn {
  4871. get {
  4872. return this.columnColor;
  4873. }
  4874. }
  4875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4876. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4877. [global::System.ComponentModel.Browsable(false)]
  4878. public int Count {
  4879. get {
  4880. return this.Rows.Count;
  4881. }
  4882. }
  4883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4884. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4885. public TagRow this[int index] {
  4886. get {
  4887. return ((TagRow)(this.Rows[index]));
  4888. }
  4889. }
  4890. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4891. public event TagRowChangeEventHandler TagRowChanging;
  4892. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4893. public event TagRowChangeEventHandler TagRowChanged;
  4894. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4895. public event TagRowChangeEventHandler TagRowDeleting;
  4896. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4897. public event TagRowChangeEventHandler TagRowDeleted;
  4898. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4899. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4900. public void AddTagRow(TagRow row) {
  4901. this.Rows.Add(row);
  4902. }
  4903. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4904. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4905. public TagRow AddTagRow(string Title, string Color) {
  4906. TagRow rowTagRow = ((TagRow)(this.NewRow()));
  4907. object[] columnValuesArray = new object[] {
  4908. null,
  4909. Title,
  4910. Color};
  4911. rowTagRow.ItemArray = columnValuesArray;
  4912. this.Rows.Add(rowTagRow);
  4913. return rowTagRow;
  4914. }
  4915. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4916. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4917. public TagRow FindByID(int ID) {
  4918. return ((TagRow)(this.Rows.Find(new object[] {
  4919. ID})));
  4920. }
  4921. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4922. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4923. public override global::System.Data.DataTable Clone() {
  4924. TagDataTable cln = ((TagDataTable)(base.Clone()));
  4925. cln.InitVars();
  4926. return cln;
  4927. }
  4928. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4929. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4930. protected override global::System.Data.DataTable CreateInstance() {
  4931. return new TagDataTable();
  4932. }
  4933. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4934. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4935. internal void InitVars() {
  4936. this.columnID = base.Columns["ID"];
  4937. this.columnTitle = base.Columns["Title"];
  4938. this.columnColor = base.Columns["Color"];
  4939. }
  4940. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4941. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4942. private void InitClass() {
  4943. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  4944. base.Columns.Add(this.columnID);
  4945. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  4946. base.Columns.Add(this.columnTitle);
  4947. this.columnColor = new global::System.Data.DataColumn("Color", typeof(string), null, global::System.Data.MappingType.Element);
  4948. base.Columns.Add(this.columnColor);
  4949. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  4950. this.columnID}, true));
  4951. this.columnID.AutoIncrement = true;
  4952. this.columnID.AutoIncrementSeed = -1;
  4953. this.columnID.AutoIncrementStep = -1;
  4954. this.columnID.AllowDBNull = false;
  4955. this.columnID.ReadOnly = true;
  4956. this.columnID.Unique = true;
  4957. this.columnTitle.AllowDBNull = false;
  4958. this.columnTitle.MaxLength = 30;
  4959. this.columnColor.AllowDBNull = false;
  4960. this.columnColor.MaxLength = 6;
  4961. }
  4962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4963. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4964. public TagRow NewTagRow() {
  4965. return ((TagRow)(this.NewRow()));
  4966. }
  4967. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4968. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4969. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  4970. return new TagRow(builder);
  4971. }
  4972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4973. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4974. protected override global::System.Type GetRowType() {
  4975. return typeof(TagRow);
  4976. }
  4977. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4978. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4979. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  4980. base.OnRowChanged(e);
  4981. if ((this.TagRowChanged != null)) {
  4982. this.TagRowChanged(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  4983. }
  4984. }
  4985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4986. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4987. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  4988. base.OnRowChanging(e);
  4989. if ((this.TagRowChanging != null)) {
  4990. this.TagRowChanging(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  4991. }
  4992. }
  4993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4994. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4995. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  4996. base.OnRowDeleted(e);
  4997. if ((this.TagRowDeleted != null)) {
  4998. this.TagRowDeleted(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  4999. }
  5000. }
  5001. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5002. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5003. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  5004. base.OnRowDeleting(e);
  5005. if ((this.TagRowDeleting != null)) {
  5006. this.TagRowDeleting(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  5007. }
  5008. }
  5009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5011. public void RemoveTagRow(TagRow row) {
  5012. this.Rows.Remove(row);
  5013. }
  5014. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5015. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5016. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  5017. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  5018. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  5019. BBrovkiZDataSet ds = new BBrovkiZDataSet();
  5020. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  5021. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  5022. any1.MinOccurs = new decimal(0);
  5023. any1.MaxOccurs = decimal.MaxValue;
  5024. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  5025. sequence.Items.Add(any1);
  5026. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  5027. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  5028. any2.MinOccurs = new decimal(1);
  5029. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  5030. sequence.Items.Add(any2);
  5031. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  5032. attribute1.Name = "namespace";
  5033. attribute1.FixedValue = ds.Namespace;
  5034. type.Attributes.Add(attribute1);
  5035. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  5036. attribute2.Name = "tableTypeName";
  5037. attribute2.FixedValue = "TagDataTable";
  5038. type.Attributes.Add(attribute2);
  5039. type.Particle = sequence;
  5040. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  5041. if (xs.Contains(dsSchema.TargetNamespace)) {
  5042. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  5043. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  5044. try {
  5045. global::System.Xml.Schema.XmlSchema schema = null;
  5046. dsSchema.Write(s1);
  5047. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  5048. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  5049. s2.SetLength(0);
  5050. schema.Write(s2);
  5051. if ((s1.Length == s2.Length)) {
  5052. s1.Position = 0;
  5053. s2.Position = 0;
  5054. for (; ((s1.Position != s1.Length)
  5055. && (s1.ReadByte() == s2.ReadByte())); ) {
  5056. ;
  5057. }
  5058. if ((s1.Position == s1.Length)) {
  5059. return type;
  5060. }
  5061. }
  5062. }
  5063. }
  5064. finally {
  5065. if ((s1 != null)) {
  5066. s1.Close();
  5067. }
  5068. if ((s2 != null)) {
  5069. s2.Close();
  5070. }
  5071. }
  5072. }
  5073. xs.Add(dsSchema);
  5074. return type;
  5075. }
  5076. }
  5077. /// <summary>
  5078. ///Represents the strongly named DataTable class.
  5079. ///</summary>
  5080. [global::System.Serializable()]
  5081. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  5082. public partial class TagOfClientDataTable : global::System.Data.TypedTableBase<TagOfClientRow> {
  5083. private global::System.Data.DataColumn columnClientID;
  5084. private global::System.Data.DataColumn columnTagID;
  5085. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5086. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5087. public TagOfClientDataTable() {
  5088. this.TableName = "TagOfClient";
  5089. this.BeginInit();
  5090. this.InitClass();
  5091. this.EndInit();
  5092. }
  5093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5094. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5095. internal TagOfClientDataTable(global::System.Data.DataTable table) {
  5096. this.TableName = table.TableName;
  5097. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  5098. this.CaseSensitive = table.CaseSensitive;
  5099. }
  5100. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  5101. this.Locale = table.Locale;
  5102. }
  5103. if ((table.Namespace != table.DataSet.Namespace)) {
  5104. this.Namespace = table.Namespace;
  5105. }
  5106. this.Prefix = table.Prefix;
  5107. this.MinimumCapacity = table.MinimumCapacity;
  5108. }
  5109. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5110. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5111. protected TagOfClientDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  5112. base(info, context) {
  5113. this.InitVars();
  5114. }
  5115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5116. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5117. public global::System.Data.DataColumn ClientIDColumn {
  5118. get {
  5119. return this.columnClientID;
  5120. }
  5121. }
  5122. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5123. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5124. public global::System.Data.DataColumn TagIDColumn {
  5125. get {
  5126. return this.columnTagID;
  5127. }
  5128. }
  5129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5131. [global::System.ComponentModel.Browsable(false)]
  5132. public int Count {
  5133. get {
  5134. return this.Rows.Count;
  5135. }
  5136. }
  5137. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5138. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5139. public TagOfClientRow this[int index] {
  5140. get {
  5141. return ((TagOfClientRow)(this.Rows[index]));
  5142. }
  5143. }
  5144. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5145. public event TagOfClientRowChangeEventHandler TagOfClientRowChanging;
  5146. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5147. public event TagOfClientRowChangeEventHandler TagOfClientRowChanged;
  5148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5149. public event TagOfClientRowChangeEventHandler TagOfClientRowDeleting;
  5150. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5151. public event TagOfClientRowChangeEventHandler TagOfClientRowDeleted;
  5152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5154. public void AddTagOfClientRow(TagOfClientRow row) {
  5155. this.Rows.Add(row);
  5156. }
  5157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5159. public TagOfClientRow AddTagOfClientRow(cRow parentcRowByFK_TagOfClient_Client, TagRow parentTagRowByFK_TagOfClient_Tag) {
  5160. TagOfClientRow rowTagOfClientRow = ((TagOfClientRow)(this.NewRow()));
  5161. object[] columnValuesArray = new object[] {
  5162. null,
  5163. null};
  5164. if ((parentcRowByFK_TagOfClient_Client != null)) {
  5165. columnValuesArray[0] = parentcRowByFK_TagOfClient_Client[0];
  5166. }
  5167. if ((parentTagRowByFK_TagOfClient_Tag != null)) {
  5168. columnValuesArray[1] = parentTagRowByFK_TagOfClient_Tag[0];
  5169. }
  5170. rowTagOfClientRow.ItemArray = columnValuesArray;
  5171. this.Rows.Add(rowTagOfClientRow);
  5172. return rowTagOfClientRow;
  5173. }
  5174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5175. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5176. public TagOfClientRow FindByClientIDTagID(int ClientID, int TagID) {
  5177. return ((TagOfClientRow)(this.Rows.Find(new object[] {
  5178. ClientID,
  5179. TagID})));
  5180. }
  5181. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5182. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5183. public override global::System.Data.DataTable Clone() {
  5184. TagOfClientDataTable cln = ((TagOfClientDataTable)(base.Clone()));
  5185. cln.InitVars();
  5186. return cln;
  5187. }
  5188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5190. protected override global::System.Data.DataTable CreateInstance() {
  5191. return new TagOfClientDataTable();
  5192. }
  5193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5194. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5195. internal void InitVars() {
  5196. this.columnClientID = base.Columns["ClientID"];
  5197. this.columnTagID = base.Columns["TagID"];
  5198. }
  5199. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5200. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5201. private void InitClass() {
  5202. this.columnClientID = new global::System.Data.DataColumn("ClientID", typeof(int), null, global::System.Data.MappingType.Element);
  5203. base.Columns.Add(this.columnClientID);
  5204. this.columnTagID = new global::System.Data.DataColumn("TagID", typeof(int), null, global::System.Data.MappingType.Element);
  5205. base.Columns.Add(this.columnTagID);
  5206. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  5207. this.columnClientID,
  5208. this.columnTagID}, true));
  5209. this.columnClientID.AllowDBNull = false;
  5210. this.columnTagID.AllowDBNull = false;
  5211. }
  5212. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5213. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5214. public TagOfClientRow NewTagOfClientRow() {
  5215. return ((TagOfClientRow)(this.NewRow()));
  5216. }
  5217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5218. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5219. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  5220. return new TagOfClientRow(builder);
  5221. }
  5222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5224. protected override global::System.Type GetRowType() {
  5225. return typeof(TagOfClientRow);
  5226. }
  5227. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5228. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5229. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  5230. base.OnRowChanged(e);
  5231. if ((this.TagOfClientRowChanged != null)) {
  5232. this.TagOfClientRowChanged(this, new TagOfClientRowChangeEvent(((TagOfClientRow)(e.Row)), e.Action));
  5233. }
  5234. }
  5235. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5236. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5237. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  5238. base.OnRowChanging(e);
  5239. if ((this.TagOfClientRowChanging != null)) {
  5240. this.TagOfClientRowChanging(this, new TagOfClientRowChangeEvent(((TagOfClientRow)(e.Row)), e.Action));
  5241. }
  5242. }
  5243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5245. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  5246. base.OnRowDeleted(e);
  5247. if ((this.TagOfClientRowDeleted != null)) {
  5248. this.TagOfClientRowDeleted(this, new TagOfClientRowChangeEvent(((TagOfClientRow)(e.Row)), e.Action));
  5249. }
  5250. }
  5251. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5252. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5253. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  5254. base.OnRowDeleting(e);
  5255. if ((this.TagOfClientRowDeleting != null)) {
  5256. this.TagOfClientRowDeleting(this, new TagOfClientRowChangeEvent(((TagOfClientRow)(e.Row)), e.Action));
  5257. }
  5258. }
  5259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5260. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5261. public void RemoveTagOfClientRow(TagOfClientRow row) {
  5262. this.Rows.Remove(row);
  5263. }
  5264. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5265. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5266. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  5267. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  5268. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  5269. BBrovkiZDataSet ds = new BBrovkiZDataSet();
  5270. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  5271. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  5272. any1.MinOccurs = new decimal(0);
  5273. any1.MaxOccurs = decimal.MaxValue;
  5274. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  5275. sequence.Items.Add(any1);
  5276. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  5277. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  5278. any2.MinOccurs = new decimal(1);
  5279. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  5280. sequence.Items.Add(any2);
  5281. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  5282. attribute1.Name = "namespace";
  5283. attribute1.FixedValue = ds.Namespace;
  5284. type.Attributes.Add(attribute1);
  5285. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  5286. attribute2.Name = "tableTypeName";
  5287. attribute2.FixedValue = "TagOfClientDataTable";
  5288. type.Attributes.Add(attribute2);
  5289. type.Particle = sequence;
  5290. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  5291. if (xs.Contains(dsSchema.TargetNamespace)) {
  5292. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  5293. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  5294. try {
  5295. global::System.Xml.Schema.XmlSchema schema = null;
  5296. dsSchema.Write(s1);
  5297. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  5298. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  5299. s2.SetLength(0);
  5300. schema.Write(s2);
  5301. if ((s1.Length == s2.Length)) {
  5302. s1.Position = 0;
  5303. s2.Position = 0;
  5304. for (; ((s1.Position != s1.Length)
  5305. && (s1.ReadByte() == s2.ReadByte())); ) {
  5306. ;
  5307. }
  5308. if ((s1.Position == s1.Length)) {
  5309. return type;
  5310. }
  5311. }
  5312. }
  5313. }
  5314. finally {
  5315. if ((s1 != null)) {
  5316. s1.Close();
  5317. }
  5318. if ((s2 != null)) {
  5319. s2.Close();
  5320. }
  5321. }
  5322. }
  5323. xs.Add(dsSchema);
  5324. return type;
  5325. }
  5326. }
  5327. /// <summary>
  5328. ///Represents strongly named DataRow class.
  5329. ///</summary>
  5330. public partial class AttachedProductRow : global::System.Data.DataRow {
  5331. private AttachedProductDataTable tableAttachedProduct;
  5332. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5333. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5334. internal AttachedProductRow(global::System.Data.DataRowBuilder rb) :
  5335. base(rb) {
  5336. this.tableAttachedProduct = ((AttachedProductDataTable)(this.Table));
  5337. }
  5338. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5339. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5340. public int MainProductID {
  5341. get {
  5342. return ((int)(this[this.tableAttachedProduct.MainProductIDColumn]));
  5343. }
  5344. set {
  5345. this[this.tableAttachedProduct.MainProductIDColumn] = value;
  5346. }
  5347. }
  5348. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5349. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5350. public int AttachedProductID {
  5351. get {
  5352. return ((int)(this[this.tableAttachedProduct.AttachedProductIDColumn]));
  5353. }
  5354. set {
  5355. this[this.tableAttachedProduct.AttachedProductIDColumn] = value;
  5356. }
  5357. }
  5358. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5359. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5360. public ProductRow ProductRowByFK_AttachedProduct_Product {
  5361. get {
  5362. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_AttachedProduct_Product"])));
  5363. }
  5364. set {
  5365. this.SetParentRow(value, this.Table.ParentRelations["FK_AttachedProduct_Product"]);
  5366. }
  5367. }
  5368. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5369. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5370. public ProductRow ProductRowByFK_AttachedProduct_Product1 {
  5371. get {
  5372. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_AttachedProduct_Product1"])));
  5373. }
  5374. set {
  5375. this.SetParentRow(value, this.Table.ParentRelations["FK_AttachedProduct_Product1"]);
  5376. }
  5377. }
  5378. }
  5379. /// <summary>
  5380. ///Represents strongly named DataRow class.
  5381. ///</summary>
  5382. public partial class cRow : global::System.Data.DataRow {
  5383. private cDataTable tablec;
  5384. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5385. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5386. internal cRow(global::System.Data.DataRowBuilder rb) :
  5387. base(rb) {
  5388. this.tablec = ((cDataTable)(this.Table));
  5389. }
  5390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5392. public int ID {
  5393. get {
  5394. return ((int)(this[this.tablec.IDColumn]));
  5395. }
  5396. set {
  5397. this[this.tablec.IDColumn] = value;
  5398. }
  5399. }
  5400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5402. public string FirstName {
  5403. get {
  5404. return ((string)(this[this.tablec.FirstNameColumn]));
  5405. }
  5406. set {
  5407. this[this.tablec.FirstNameColumn] = value;
  5408. }
  5409. }
  5410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5411. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5412. public string LastName {
  5413. get {
  5414. return ((string)(this[this.tablec.LastNameColumn]));
  5415. }
  5416. set {
  5417. this[this.tablec.LastNameColumn] = value;
  5418. }
  5419. }
  5420. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5421. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5422. public string Patronymic {
  5423. get {
  5424. try {
  5425. return ((string)(this[this.tablec.PatronymicColumn]));
  5426. }
  5427. catch (global::System.InvalidCastException e) {
  5428. throw new global::System.Data.StrongTypingException("Значение для столбца \'Patronymic\' в таблице \'c\' равно DBNull.", e);
  5429. }
  5430. }
  5431. set {
  5432. this[this.tablec.PatronymicColumn] = value;
  5433. }
  5434. }
  5435. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5436. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5437. public System.DateTime Birthday {
  5438. get {
  5439. try {
  5440. return ((global::System.DateTime)(this[this.tablec.BirthdayColumn]));
  5441. }
  5442. catch (global::System.InvalidCastException e) {
  5443. throw new global::System.Data.StrongTypingException("Значение для столбца \'Birthday\' в таблице \'c\' равно DBNull.", e);
  5444. }
  5445. }
  5446. set {
  5447. this[this.tablec.BirthdayColumn] = value;
  5448. }
  5449. }
  5450. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5451. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5452. public System.DateTime RegistrationDate {
  5453. get {
  5454. return ((global::System.DateTime)(this[this.tablec.RegistrationDateColumn]));
  5455. }
  5456. set {
  5457. this[this.tablec.RegistrationDateColumn] = value;
  5458. }
  5459. }
  5460. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5461. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5462. public string Email {
  5463. get {
  5464. try {
  5465. return ((string)(this[this.tablec.EmailColumn]));
  5466. }
  5467. catch (global::System.InvalidCastException e) {
  5468. throw new global::System.Data.StrongTypingException("Значение для столбца \'Email\' в таблице \'c\' равно DBNull.", e);
  5469. }
  5470. }
  5471. set {
  5472. this[this.tablec.EmailColumn] = value;
  5473. }
  5474. }
  5475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5477. public string Phone {
  5478. get {
  5479. return ((string)(this[this.tablec.PhoneColumn]));
  5480. }
  5481. set {
  5482. this[this.tablec.PhoneColumn] = value;
  5483. }
  5484. }
  5485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5486. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5487. public string GenderCode {
  5488. get {
  5489. return ((string)(this[this.tablec.GenderCodeColumn]));
  5490. }
  5491. set {
  5492. this[this.tablec.GenderCodeColumn] = value;
  5493. }
  5494. }
  5495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5497. public string PhotoPath {
  5498. get {
  5499. try {
  5500. return ((string)(this[this.tablec.PhotoPathColumn]));
  5501. }
  5502. catch (global::System.InvalidCastException e) {
  5503. throw new global::System.Data.StrongTypingException("Значение для столбца \'PhotoPath\' в таблице \'c\' равно DBNull.", e);
  5504. }
  5505. }
  5506. set {
  5507. this[this.tablec.PhotoPathColumn] = value;
  5508. }
  5509. }
  5510. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5511. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5512. public GenderRow GenderRow {
  5513. get {
  5514. return ((GenderRow)(this.GetParentRow(this.Table.ParentRelations["FK_Client_Gender"])));
  5515. }
  5516. set {
  5517. this.SetParentRow(value, this.Table.ParentRelations["FK_Client_Gender"]);
  5518. }
  5519. }
  5520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5521. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5522. public bool IsPatronymicNull() {
  5523. return this.IsNull(this.tablec.PatronymicColumn);
  5524. }
  5525. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5526. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5527. public void SetPatronymicNull() {
  5528. this[this.tablec.PatronymicColumn] = global::System.Convert.DBNull;
  5529. }
  5530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5532. public bool IsBirthdayNull() {
  5533. return this.IsNull(this.tablec.BirthdayColumn);
  5534. }
  5535. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5536. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5537. public void SetBirthdayNull() {
  5538. this[this.tablec.BirthdayColumn] = global::System.Convert.DBNull;
  5539. }
  5540. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5541. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5542. public bool IsEmailNull() {
  5543. return this.IsNull(this.tablec.EmailColumn);
  5544. }
  5545. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5546. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5547. public void SetEmailNull() {
  5548. this[this.tablec.EmailColumn] = global::System.Convert.DBNull;
  5549. }
  5550. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5551. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5552. public bool IsPhotoPathNull() {
  5553. return this.IsNull(this.tablec.PhotoPathColumn);
  5554. }
  5555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5556. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5557. public void SetPhotoPathNull() {
  5558. this[this.tablec.PhotoPathColumn] = global::System.Convert.DBNull;
  5559. }
  5560. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5561. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5562. public csRow[] GetcsRows() {
  5563. if ((this.Table.ChildRelations["FK_ClientService_Client"] == null)) {
  5564. return new csRow[0];
  5565. }
  5566. else {
  5567. return ((csRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ClientService_Client"])));
  5568. }
  5569. }
  5570. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5571. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5572. public TagOfClientRow[] GetTagOfClientRows() {
  5573. if ((this.Table.ChildRelations["FK_TagOfClient_Client"] == null)) {
  5574. return new TagOfClientRow[0];
  5575. }
  5576. else {
  5577. return ((TagOfClientRow[])(base.GetChildRows(this.Table.ChildRelations["FK_TagOfClient_Client"])));
  5578. }
  5579. }
  5580. }
  5581. /// <summary>
  5582. ///Represents strongly named DataRow class.
  5583. ///</summary>
  5584. public partial class ClientRow : global::System.Data.DataRow {
  5585. private ClientDataTable tableClient;
  5586. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5587. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5588. internal ClientRow(global::System.Data.DataRowBuilder rb) :
  5589. base(rb) {
  5590. this.tableClient = ((ClientDataTable)(this.Table));
  5591. }
  5592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5594. public int ID {
  5595. get {
  5596. return ((int)(this[this.tableClient.IDColumn]));
  5597. }
  5598. set {
  5599. this[this.tableClient.IDColumn] = value;
  5600. }
  5601. }
  5602. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5603. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5604. public string Фамилия {
  5605. get {
  5606. return ((string)(this[this.tableClient.ФамилияColumn]));
  5607. }
  5608. set {
  5609. this[this.tableClient.Фамилия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 Имя {
  5615. get {
  5616. return ((string)(this[this.tableClient.ИмяColumn]));
  5617. }
  5618. set {
  5619. this[this.tableClient.ИмяColumn] = value;
  5620. }
  5621. }
  5622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5623. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5624. public string Отчество {
  5625. get {
  5626. return ((string)(this[this.tableClient.ОтчествоColumn]));
  5627. }
  5628. set {
  5629. this[this.tableClient.Отчество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 string Пол {
  5635. get {
  5636. return ((string)(this[this.tableClient.ПолColumn]));
  5637. }
  5638. set {
  5639. this[this.tableClient.ПолColumn] = value;
  5640. }
  5641. }
  5642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5644. public string Телефон {
  5645. get {
  5646. return ((string)(this[this.tableClient.ТелефонColumn]));
  5647. }
  5648. set {
  5649. this[this.tableClient.ТелефонColumn] = value;
  5650. }
  5651. }
  5652. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5653. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5654. public System.DateTime Дата_рождения {
  5655. get {
  5656. return ((global::System.DateTime)(this[this.tableClient.Дата_рожденияColumn]));
  5657. }
  5658. set {
  5659. this[this.tableClient.Дата_рожденияColumn] = value;
  5660. }
  5661. }
  5662. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5663. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5664. public string Email {
  5665. get {
  5666. return ((string)(this[this.tableClient.EmailColumn]));
  5667. }
  5668. set {
  5669. this[this.tableClient.EmailColumn] = value;
  5670. }
  5671. }
  5672. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5674. public System.DateTime Дата_регистрации {
  5675. get {
  5676. return ((global::System.DateTime)(this[this.tableClient.Дата_регистрацииColumn]));
  5677. }
  5678. set {
  5679. this[this.tableClient.Дата_регистрацииColumn] = value;
  5680. }
  5681. }
  5682. }
  5683. /// <summary>
  5684. ///Represents strongly named DataRow class.
  5685. ///</summary>
  5686. public partial class ClientServiseRow : global::System.Data.DataRow {
  5687. private ClientServiseDataTable tableClientServise;
  5688. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5689. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5690. internal ClientServiseRow(global::System.Data.DataRowBuilder rb) :
  5691. base(rb) {
  5692. this.tableClientServise = ((ClientServiseDataTable)(this.Table));
  5693. }
  5694. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5695. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5696. public int ID {
  5697. get {
  5698. return ((int)(this[this.tableClientServise.IDColumn]));
  5699. }
  5700. set {
  5701. this[this.tableClientServise.IDColumn] = value;
  5702. }
  5703. }
  5704. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5705. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5706. public string Услуга {
  5707. get {
  5708. return ((string)(this[this.tableClientServise.УслугаColumn]));
  5709. }
  5710. set {
  5711. this[this.tableClientServise.УслугаColumn] = value;
  5712. }
  5713. }
  5714. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5715. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5716. public System.DateTime Начало_оказания_услуги {
  5717. get {
  5718. return ((global::System.DateTime)(this[this.tableClientServise.Начало_оказания_услугиColumn]));
  5719. }
  5720. set {
  5721. this[this.tableClientServise.Начало_оказания_услугиColumn] = value;
  5722. }
  5723. }
  5724. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5725. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5726. public string Клиент {
  5727. get {
  5728. return ((string)(this[this.tableClientServise.КлиентColumn]));
  5729. }
  5730. set {
  5731. this[this.tableClientServise.КлиентColumn] = value;
  5732. }
  5733. }
  5734. }
  5735. /// <summary>
  5736. ///Represents strongly named DataRow class.
  5737. ///</summary>
  5738. public partial class csRow : global::System.Data.DataRow {
  5739. private csDataTable tablecs;
  5740. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5741. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5742. internal csRow(global::System.Data.DataRowBuilder rb) :
  5743. base(rb) {
  5744. this.tablecs = ((csDataTable)(this.Table));
  5745. }
  5746. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5747. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5748. public int ID {
  5749. get {
  5750. return ((int)(this[this.tablecs.IDColumn]));
  5751. }
  5752. set {
  5753. this[this.tablecs.IDColumn] = value;
  5754. }
  5755. }
  5756. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5757. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5758. public int ClientID {
  5759. get {
  5760. return ((int)(this[this.tablecs.ClientIDColumn]));
  5761. }
  5762. set {
  5763. this[this.tablecs.ClientIDColumn] = value;
  5764. }
  5765. }
  5766. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5767. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5768. public int ServiceID {
  5769. get {
  5770. return ((int)(this[this.tablecs.ServiceIDColumn]));
  5771. }
  5772. set {
  5773. this[this.tablecs.ServiceIDColumn] = value;
  5774. }
  5775. }
  5776. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5777. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5778. public System.DateTime StartTime {
  5779. get {
  5780. return ((global::System.DateTime)(this[this.tablecs.StartTimeColumn]));
  5781. }
  5782. set {
  5783. this[this.tablecs.StartTimeColumn] = value;
  5784. }
  5785. }
  5786. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5787. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5788. public string Comment {
  5789. get {
  5790. try {
  5791. return ((string)(this[this.tablecs.CommentColumn]));
  5792. }
  5793. catch (global::System.InvalidCastException e) {
  5794. throw new global::System.Data.StrongTypingException("Значение для столбца \'Comment\' в таблице \'cs\' равно DBNull.", e);
  5795. }
  5796. }
  5797. set {
  5798. this[this.tablecs.CommentColumn] = value;
  5799. }
  5800. }
  5801. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5802. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5803. public cRow cRow {
  5804. get {
  5805. return ((cRow)(this.GetParentRow(this.Table.ParentRelations["FK_ClientService_Client"])));
  5806. }
  5807. set {
  5808. this.SetParentRow(value, this.Table.ParentRelations["FK_ClientService_Client"]);
  5809. }
  5810. }
  5811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5812. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5813. public sRow sRow {
  5814. get {
  5815. return ((sRow)(this.GetParentRow(this.Table.ParentRelations["FK_ClientService_Service"])));
  5816. }
  5817. set {
  5818. this.SetParentRow(value, this.Table.ParentRelations["FK_ClientService_Service"]);
  5819. }
  5820. }
  5821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5822. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5823. public bool IsCommentNull() {
  5824. return this.IsNull(this.tablecs.CommentColumn);
  5825. }
  5826. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5827. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5828. public void SetCommentNull() {
  5829. this[this.tablecs.CommentColumn] = global::System.Convert.DBNull;
  5830. }
  5831. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5832. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5833. public DocumentByServiceRow[] GetDocumentByServiceRows() {
  5834. if ((this.Table.ChildRelations["FK_DocumentByService_ClientService"] == null)) {
  5835. return new DocumentByServiceRow[0];
  5836. }
  5837. else {
  5838. return ((DocumentByServiceRow[])(base.GetChildRows(this.Table.ChildRelations["FK_DocumentByService_ClientService"])));
  5839. }
  5840. }
  5841. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5842. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5843. public ProductSaleRow[] GetProductSaleRows() {
  5844. if ((this.Table.ChildRelations["FK_ProductSale_ClientService"] == null)) {
  5845. return new ProductSaleRow[0];
  5846. }
  5847. else {
  5848. return ((ProductSaleRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductSale_ClientService"])));
  5849. }
  5850. }
  5851. }
  5852. /// <summary>
  5853. ///Represents strongly named DataRow class.
  5854. ///</summary>
  5855. public partial class DocumentByServiceRow : global::System.Data.DataRow {
  5856. private DocumentByServiceDataTable tableDocumentByService;
  5857. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5858. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5859. internal DocumentByServiceRow(global::System.Data.DataRowBuilder rb) :
  5860. base(rb) {
  5861. this.tableDocumentByService = ((DocumentByServiceDataTable)(this.Table));
  5862. }
  5863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5864. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5865. public int ID {
  5866. get {
  5867. return ((int)(this[this.tableDocumentByService.IDColumn]));
  5868. }
  5869. set {
  5870. this[this.tableDocumentByService.IDColumn] = value;
  5871. }
  5872. }
  5873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5874. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5875. public int ClientServiceID {
  5876. get {
  5877. return ((int)(this[this.tableDocumentByService.ClientServiceIDColumn]));
  5878. }
  5879. set {
  5880. this[this.tableDocumentByService.ClientServiceIDColumn] = value;
  5881. }
  5882. }
  5883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5884. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5885. public string DocumentPath {
  5886. get {
  5887. return ((string)(this[this.tableDocumentByService.DocumentPathColumn]));
  5888. }
  5889. set {
  5890. this[this.tableDocumentByService.DocumentPathColumn] = value;
  5891. }
  5892. }
  5893. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5894. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5895. public csRow csRow {
  5896. get {
  5897. return ((csRow)(this.GetParentRow(this.Table.ParentRelations["FK_DocumentByService_ClientService"])));
  5898. }
  5899. set {
  5900. this.SetParentRow(value, this.Table.ParentRelations["FK_DocumentByService_ClientService"]);
  5901. }
  5902. }
  5903. }
  5904. /// <summary>
  5905. ///Represents strongly named DataRow class.
  5906. ///</summary>
  5907. public partial class GenderRow : global::System.Data.DataRow {
  5908. private GenderDataTable tableGender;
  5909. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5910. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5911. internal GenderRow(global::System.Data.DataRowBuilder rb) :
  5912. base(rb) {
  5913. this.tableGender = ((GenderDataTable)(this.Table));
  5914. }
  5915. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5916. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5917. public string Code {
  5918. get {
  5919. return ((string)(this[this.tableGender.CodeColumn]));
  5920. }
  5921. set {
  5922. this[this.tableGender.CodeColumn] = value;
  5923. }
  5924. }
  5925. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5926. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5927. public string Name {
  5928. get {
  5929. try {
  5930. return ((string)(this[this.tableGender.NameColumn]));
  5931. }
  5932. catch (global::System.InvalidCastException e) {
  5933. throw new global::System.Data.StrongTypingException("Значение для столбца \'Name\' в таблице \'Gender\' равно DBNull.", e);
  5934. }
  5935. }
  5936. set {
  5937. this[this.tableGender.NameColumn] = value;
  5938. }
  5939. }
  5940. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5941. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5942. public bool IsNameNull() {
  5943. return this.IsNull(this.tableGender.NameColumn);
  5944. }
  5945. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5946. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5947. public void SetNameNull() {
  5948. this[this.tableGender.NameColumn] = global::System.Convert.DBNull;
  5949. }
  5950. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5951. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5952. public cRow[] GetcRows() {
  5953. if ((this.Table.ChildRelations["FK_Client_Gender"] == null)) {
  5954. return new cRow[0];
  5955. }
  5956. else {
  5957. return ((cRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Client_Gender"])));
  5958. }
  5959. }
  5960. }
  5961. /// <summary>
  5962. ///Represents strongly named DataRow class.
  5963. ///</summary>
  5964. public partial class ManufacturerRow : global::System.Data.DataRow {
  5965. private ManufacturerDataTable tableManufacturer;
  5966. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5967. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5968. internal ManufacturerRow(global::System.Data.DataRowBuilder rb) :
  5969. base(rb) {
  5970. this.tableManufacturer = ((ManufacturerDataTable)(this.Table));
  5971. }
  5972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5973. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5974. public int ID {
  5975. get {
  5976. return ((int)(this[this.tableManufacturer.IDColumn]));
  5977. }
  5978. set {
  5979. this[this.tableManufacturer.IDColumn] = value;
  5980. }
  5981. }
  5982. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5983. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5984. public string Name {
  5985. get {
  5986. return ((string)(this[this.tableManufacturer.NameColumn]));
  5987. }
  5988. set {
  5989. this[this.tableManufacturer.NameColumn] = value;
  5990. }
  5991. }
  5992. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5993. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5994. public System.DateTime StartDate {
  5995. get {
  5996. try {
  5997. return ((global::System.DateTime)(this[this.tableManufacturer.StartDateColumn]));
  5998. }
  5999. catch (global::System.InvalidCastException e) {
  6000. throw new global::System.Data.StrongTypingException("Значение для столбца \'StartDate\' в таблице \'Manufacturer\' равно DBNull.", e);
  6001. }
  6002. }
  6003. set {
  6004. this[this.tableManufacturer.StartDateColumn] = value;
  6005. }
  6006. }
  6007. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6008. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6009. public bool IsStartDateNull() {
  6010. return this.IsNull(this.tableManufacturer.StartDateColumn);
  6011. }
  6012. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6013. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6014. public void SetStartDateNull() {
  6015. this[this.tableManufacturer.StartDateColumn] = global::System.Convert.DBNull;
  6016. }
  6017. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6018. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6019. public ProductRow[] GetProductRows() {
  6020. if ((this.Table.ChildRelations["FK_Product_Manufacturer"] == null)) {
  6021. return new ProductRow[0];
  6022. }
  6023. else {
  6024. return ((ProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Product_Manufacturer"])));
  6025. }
  6026. }
  6027. }
  6028. /// <summary>
  6029. ///Represents strongly named DataRow class.
  6030. ///</summary>
  6031. public partial class ProductRow : global::System.Data.DataRow {
  6032. private ProductDataTable tableProduct;
  6033. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6034. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6035. internal ProductRow(global::System.Data.DataRowBuilder rb) :
  6036. base(rb) {
  6037. this.tableProduct = ((ProductDataTable)(this.Table));
  6038. }
  6039. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6041. public int ID {
  6042. get {
  6043. return ((int)(this[this.tableProduct.IDColumn]));
  6044. }
  6045. set {
  6046. this[this.tableProduct.IDColumn] = value;
  6047. }
  6048. }
  6049. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6050. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6051. public string Title {
  6052. get {
  6053. return ((string)(this[this.tableProduct.TitleColumn]));
  6054. }
  6055. set {
  6056. this[this.tableProduct.TitleColumn] = value;
  6057. }
  6058. }
  6059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6060. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6061. public decimal Cost {
  6062. get {
  6063. return ((decimal)(this[this.tableProduct.CostColumn]));
  6064. }
  6065. set {
  6066. this[this.tableProduct.CostColumn] = value;
  6067. }
  6068. }
  6069. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6070. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6071. public string Description {
  6072. get {
  6073. try {
  6074. return ((string)(this[this.tableProduct.DescriptionColumn]));
  6075. }
  6076. catch (global::System.InvalidCastException e) {
  6077. throw new global::System.Data.StrongTypingException("Значение для столбца \'Description\' в таблице \'Product\' равно DBNull.", e);
  6078. }
  6079. }
  6080. set {
  6081. this[this.tableProduct.DescriptionColumn] = value;
  6082. }
  6083. }
  6084. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6085. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6086. public string MainImagePath {
  6087. get {
  6088. try {
  6089. return ((string)(this[this.tableProduct.MainImagePathColumn]));
  6090. }
  6091. catch (global::System.InvalidCastException e) {
  6092. throw new global::System.Data.StrongTypingException("Значение для столбца \'MainImagePath\' в таблице \'Product\' равно DBNull.", e);
  6093. }
  6094. }
  6095. set {
  6096. this[this.tableProduct.MainImagePathColumn] = value;
  6097. }
  6098. }
  6099. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6100. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6101. public bool IsActive {
  6102. get {
  6103. return ((bool)(this[this.tableProduct.IsActiveColumn]));
  6104. }
  6105. set {
  6106. this[this.tableProduct.IsActiveColumn] = value;
  6107. }
  6108. }
  6109. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6110. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6111. public int ManufacturerID {
  6112. get {
  6113. try {
  6114. return ((int)(this[this.tableProduct.ManufacturerIDColumn]));
  6115. }
  6116. catch (global::System.InvalidCastException e) {
  6117. throw new global::System.Data.StrongTypingException("Значение для столбца \'ManufacturerID\' в таблице \'Product\' равно DBNull.", e);
  6118. }
  6119. }
  6120. set {
  6121. this[this.tableProduct.ManufacturerIDColumn] = value;
  6122. }
  6123. }
  6124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6125. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6126. public ManufacturerRow ManufacturerRow {
  6127. get {
  6128. return ((ManufacturerRow)(this.GetParentRow(this.Table.ParentRelations["FK_Product_Manufacturer"])));
  6129. }
  6130. set {
  6131. this.SetParentRow(value, this.Table.ParentRelations["FK_Product_Manufacturer"]);
  6132. }
  6133. }
  6134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6135. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6136. public bool IsDescriptionNull() {
  6137. return this.IsNull(this.tableProduct.DescriptionColumn);
  6138. }
  6139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6141. public void SetDescriptionNull() {
  6142. this[this.tableProduct.DescriptionColumn] = global::System.Convert.DBNull;
  6143. }
  6144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6146. public bool IsMainImagePathNull() {
  6147. return this.IsNull(this.tableProduct.MainImagePathColumn);
  6148. }
  6149. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6150. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6151. public void SetMainImagePathNull() {
  6152. this[this.tableProduct.MainImagePathColumn] = global::System.Convert.DBNull;
  6153. }
  6154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6155. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6156. public bool IsManufacturerIDNull() {
  6157. return this.IsNull(this.tableProduct.ManufacturerIDColumn);
  6158. }
  6159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6160. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6161. public void SetManufacturerIDNull() {
  6162. this[this.tableProduct.ManufacturerIDColumn] = global::System.Convert.DBNull;
  6163. }
  6164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6165. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6166. public AttachedProductRow[] GetAttachedProductRowsByFK_AttachedProduct_Product() {
  6167. if ((this.Table.ChildRelations["FK_AttachedProduct_Product"] == null)) {
  6168. return new AttachedProductRow[0];
  6169. }
  6170. else {
  6171. return ((AttachedProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK_AttachedProduct_Product"])));
  6172. }
  6173. }
  6174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6175. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6176. public AttachedProductRow[] GetAttachedProductRowsByFK_AttachedProduct_Product1() {
  6177. if ((this.Table.ChildRelations["FK_AttachedProduct_Product1"] == null)) {
  6178. return new AttachedProductRow[0];
  6179. }
  6180. else {
  6181. return ((AttachedProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK_AttachedProduct_Product1"])));
  6182. }
  6183. }
  6184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6186. public ProductPhotoRow[] GetProductPhotoRows() {
  6187. if ((this.Table.ChildRelations["FK_ProductPhoto_Product"] == null)) {
  6188. return new ProductPhotoRow[0];
  6189. }
  6190. else {
  6191. return ((ProductPhotoRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductPhoto_Product"])));
  6192. }
  6193. }
  6194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6196. public ProductSaleRow[] GetProductSaleRows() {
  6197. if ((this.Table.ChildRelations["FK_ProductSale_Product"] == null)) {
  6198. return new ProductSaleRow[0];
  6199. }
  6200. else {
  6201. return ((ProductSaleRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductSale_Product"])));
  6202. }
  6203. }
  6204. }
  6205. /// <summary>
  6206. ///Represents strongly named DataRow class.
  6207. ///</summary>
  6208. public partial class ProductPhotoRow : global::System.Data.DataRow {
  6209. private ProductPhotoDataTable tableProductPhoto;
  6210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6212. internal ProductPhotoRow(global::System.Data.DataRowBuilder rb) :
  6213. base(rb) {
  6214. this.tableProductPhoto = ((ProductPhotoDataTable)(this.Table));
  6215. }
  6216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6218. public int ID {
  6219. get {
  6220. return ((int)(this[this.tableProductPhoto.IDColumn]));
  6221. }
  6222. set {
  6223. this[this.tableProductPhoto.IDColumn] = value;
  6224. }
  6225. }
  6226. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6227. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6228. public int ProductID {
  6229. get {
  6230. return ((int)(this[this.tableProductPhoto.ProductIDColumn]));
  6231. }
  6232. set {
  6233. this[this.tableProductPhoto.ProductIDColumn] = value;
  6234. }
  6235. }
  6236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6237. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6238. public string PhotoPath {
  6239. get {
  6240. return ((string)(this[this.tableProductPhoto.PhotoPathColumn]));
  6241. }
  6242. set {
  6243. this[this.tableProductPhoto.PhotoPathColumn] = value;
  6244. }
  6245. }
  6246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6247. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6248. public ProductRow ProductRow {
  6249. get {
  6250. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_ProductPhoto_Product"])));
  6251. }
  6252. set {
  6253. this.SetParentRow(value, this.Table.ParentRelations["FK_ProductPhoto_Product"]);
  6254. }
  6255. }
  6256. }
  6257. /// <summary>
  6258. ///Represents strongly named DataRow class.
  6259. ///</summary>
  6260. public partial class ProductSaleRow : global::System.Data.DataRow {
  6261. private ProductSaleDataTable tableProductSale;
  6262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6263. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6264. internal ProductSaleRow(global::System.Data.DataRowBuilder rb) :
  6265. base(rb) {
  6266. this.tableProductSale = ((ProductSaleDataTable)(this.Table));
  6267. }
  6268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6269. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6270. public int ID {
  6271. get {
  6272. return ((int)(this[this.tableProductSale.IDColumn]));
  6273. }
  6274. set {
  6275. this[this.tableProductSale.IDColumn] = value;
  6276. }
  6277. }
  6278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6279. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6280. public System.DateTime SaleDate {
  6281. get {
  6282. return ((global::System.DateTime)(this[this.tableProductSale.SaleDateColumn]));
  6283. }
  6284. set {
  6285. this[this.tableProductSale.SaleDateColumn] = value;
  6286. }
  6287. }
  6288. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6289. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6290. public int ProductID {
  6291. get {
  6292. return ((int)(this[this.tableProductSale.ProductIDColumn]));
  6293. }
  6294. set {
  6295. this[this.tableProductSale.ProductIDColumn] = value;
  6296. }
  6297. }
  6298. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6299. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6300. public int Quantity {
  6301. get {
  6302. return ((int)(this[this.tableProductSale.QuantityColumn]));
  6303. }
  6304. set {
  6305. this[this.tableProductSale.QuantityColumn] = value;
  6306. }
  6307. }
  6308. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6309. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6310. public int ClientServiceID {
  6311. get {
  6312. try {
  6313. return ((int)(this[this.tableProductSale.ClientServiceIDColumn]));
  6314. }
  6315. catch (global::System.InvalidCastException e) {
  6316. throw new global::System.Data.StrongTypingException("Значение для столбца \'ClientServiceID\' в таблице \'ProductSale\' равно DBNull.", e);
  6317. }
  6318. }
  6319. set {
  6320. this[this.tableProductSale.ClientServiceIDColumn] = value;
  6321. }
  6322. }
  6323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6324. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6325. public csRow csRow {
  6326. get {
  6327. return ((csRow)(this.GetParentRow(this.Table.ParentRelations["FK_ProductSale_ClientService"])));
  6328. }
  6329. set {
  6330. this.SetParentRow(value, this.Table.ParentRelations["FK_ProductSale_ClientService"]);
  6331. }
  6332. }
  6333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6334. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6335. public ProductRow ProductRow {
  6336. get {
  6337. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_ProductSale_Product"])));
  6338. }
  6339. set {
  6340. this.SetParentRow(value, this.Table.ParentRelations["FK_ProductSale_Product"]);
  6341. }
  6342. }
  6343. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6344. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6345. public bool IsClientServiceIDNull() {
  6346. return this.IsNull(this.tableProductSale.ClientServiceIDColumn);
  6347. }
  6348. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6349. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6350. public void SetClientServiceIDNull() {
  6351. this[this.tableProductSale.ClientServiceIDColumn] = global::System.Convert.DBNull;
  6352. }
  6353. }
  6354. /// <summary>
  6355. ///Represents strongly named DataRow class.
  6356. ///</summary>
  6357. public partial class sRow : global::System.Data.DataRow {
  6358. private sDataTable tables;
  6359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6360. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6361. internal sRow(global::System.Data.DataRowBuilder rb) :
  6362. base(rb) {
  6363. this.tables = ((sDataTable)(this.Table));
  6364. }
  6365. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6366. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6367. public int ID {
  6368. get {
  6369. return ((int)(this[this.tables.IDColumn]));
  6370. }
  6371. set {
  6372. this[this.tables.IDColumn] = value;
  6373. }
  6374. }
  6375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6377. public string Title {
  6378. get {
  6379. return ((string)(this[this.tables.TitleColumn]));
  6380. }
  6381. set {
  6382. this[this.tables.TitleColumn] = value;
  6383. }
  6384. }
  6385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6386. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6387. public decimal Cost {
  6388. get {
  6389. return ((decimal)(this[this.tables.CostColumn]));
  6390. }
  6391. set {
  6392. this[this.tables.CostColumn] = value;
  6393. }
  6394. }
  6395. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6396. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6397. public int DurationInSeconds {
  6398. get {
  6399. return ((int)(this[this.tables.DurationInSecondsColumn]));
  6400. }
  6401. set {
  6402. this[this.tables.DurationInSecondsColumn] = value;
  6403. }
  6404. }
  6405. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6406. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6407. public string Description {
  6408. get {
  6409. try {
  6410. return ((string)(this[this.tables.DescriptionColumn]));
  6411. }
  6412. catch (global::System.InvalidCastException e) {
  6413. throw new global::System.Data.StrongTypingException("Значение для столбца \'Description\' в таблице \'s\' равно DBNull.", e);
  6414. }
  6415. }
  6416. set {
  6417. this[this.tables.DescriptionColumn] = value;
  6418. }
  6419. }
  6420. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6421. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6422. public double Discount {
  6423. get {
  6424. try {
  6425. return ((double)(this[this.tables.DiscountColumn]));
  6426. }
  6427. catch (global::System.InvalidCastException e) {
  6428. throw new global::System.Data.StrongTypingException("Значение для столбца \'Discount\' в таблице \'s\' равно DBNull.", e);
  6429. }
  6430. }
  6431. set {
  6432. this[this.tables.DiscountColumn] = value;
  6433. }
  6434. }
  6435. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6436. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6437. public string MainImagePath {
  6438. get {
  6439. try {
  6440. return ((string)(this[this.tables.MainImagePathColumn]));
  6441. }
  6442. catch (global::System.InvalidCastException e) {
  6443. throw new global::System.Data.StrongTypingException("Значение для столбца \'MainImagePath\' в таблице \'s\' равно DBNull.", e);
  6444. }
  6445. }
  6446. set {
  6447. this[this.tables.MainImagePathColumn] = value;
  6448. }
  6449. }
  6450. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6451. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6452. public bool IsDescriptionNull() {
  6453. return this.IsNull(this.tables.DescriptionColumn);
  6454. }
  6455. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6456. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6457. public void SetDescriptionNull() {
  6458. this[this.tables.DescriptionColumn] = global::System.Convert.DBNull;
  6459. }
  6460. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6461. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6462. public bool IsDiscountNull() {
  6463. return this.IsNull(this.tables.DiscountColumn);
  6464. }
  6465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6466. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6467. public void SetDiscountNull() {
  6468. this[this.tables.DiscountColumn] = global::System.Convert.DBNull;
  6469. }
  6470. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6471. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6472. public bool IsMainImagePathNull() {
  6473. return this.IsNull(this.tables.MainImagePathColumn);
  6474. }
  6475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6477. public void SetMainImagePathNull() {
  6478. this[this.tables.MainImagePathColumn] = global::System.Convert.DBNull;
  6479. }
  6480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6482. public csRow[] GetcsRows() {
  6483. if ((this.Table.ChildRelations["FK_ClientService_Service"] == null)) {
  6484. return new csRow[0];
  6485. }
  6486. else {
  6487. return ((csRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ClientService_Service"])));
  6488. }
  6489. }
  6490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6492. public ServicePhotoRow[] GetServicePhotoRows() {
  6493. if ((this.Table.ChildRelations["FK_ServicePhoto_Service"] == null)) {
  6494. return new ServicePhotoRow[0];
  6495. }
  6496. else {
  6497. return ((ServicePhotoRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ServicePhoto_Service"])));
  6498. }
  6499. }
  6500. }
  6501. /// <summary>
  6502. ///Represents strongly named DataRow class.
  6503. ///</summary>
  6504. public partial class ServiceRow : global::System.Data.DataRow {
  6505. private ServiceDataTable tableService;
  6506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6508. internal ServiceRow(global::System.Data.DataRowBuilder rb) :
  6509. base(rb) {
  6510. this.tableService = ((ServiceDataTable)(this.Table));
  6511. }
  6512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6513. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6514. public int ID {
  6515. get {
  6516. return ((int)(this[this.tableService.IDColumn]));
  6517. }
  6518. set {
  6519. this[this.tableService.IDColumn] = value;
  6520. }
  6521. }
  6522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6524. public string Наименование_услуги {
  6525. get {
  6526. return ((string)(this[this.tableService.Наименование_услугиColumn]));
  6527. }
  6528. set {
  6529. this[this.tableService.Наименование_услугиColumn] = value;
  6530. }
  6531. }
  6532. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6533. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6534. public string Главное_изображение {
  6535. get {
  6536. return ((string)(this[this.tableService.Главное_изображениеColumn]));
  6537. }
  6538. set {
  6539. this[this.tableService.Главное_изображениеColumn] = value;
  6540. }
  6541. }
  6542. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6543. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6544. public string Длительность {
  6545. get {
  6546. return ((string)(this[this.tableService.ДлительностьColumn]));
  6547. }
  6548. set {
  6549. this[this.tableService.ДлительностьColumn] = value;
  6550. }
  6551. }
  6552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6554. public decimal Стоимость {
  6555. get {
  6556. return ((decimal)(this[this.tableService.СтоимостьColumn]));
  6557. }
  6558. set {
  6559. this[this.tableService.СтоимостьColumn] = value;
  6560. }
  6561. }
  6562. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6563. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6564. public string Действующая_скидка {
  6565. get {
  6566. return ((string)(this[this.tableService.Действующая_скидкаColumn]));
  6567. }
  6568. set {
  6569. this[this.tableService.Действующая_скидкаColumn] = value;
  6570. }
  6571. }
  6572. }
  6573. /// <summary>
  6574. ///Represents strongly named DataRow class.
  6575. ///</summary>
  6576. public partial class ServicePhotoRow : global::System.Data.DataRow {
  6577. private ServicePhotoDataTable tableServicePhoto;
  6578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6580. internal ServicePhotoRow(global::System.Data.DataRowBuilder rb) :
  6581. base(rb) {
  6582. this.tableServicePhoto = ((ServicePhotoDataTable)(this.Table));
  6583. }
  6584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6586. public int ID {
  6587. get {
  6588. return ((int)(this[this.tableServicePhoto.IDColumn]));
  6589. }
  6590. set {
  6591. this[this.tableServicePhoto.IDColumn] = value;
  6592. }
  6593. }
  6594. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6595. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6596. public int ServiceID {
  6597. get {
  6598. return ((int)(this[this.tableServicePhoto.ServiceIDColumn]));
  6599. }
  6600. set {
  6601. this[this.tableServicePhoto.ServiceIDColumn] = value;
  6602. }
  6603. }
  6604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6606. public string PhotoPath {
  6607. get {
  6608. return ((string)(this[this.tableServicePhoto.PhotoPathColumn]));
  6609. }
  6610. set {
  6611. this[this.tableServicePhoto.PhotoPathColumn] = value;
  6612. }
  6613. }
  6614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6615. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6616. public sRow sRow {
  6617. get {
  6618. return ((sRow)(this.GetParentRow(this.Table.ParentRelations["FK_ServicePhoto_Service"])));
  6619. }
  6620. set {
  6621. this.SetParentRow(value, this.Table.ParentRelations["FK_ServicePhoto_Service"]);
  6622. }
  6623. }
  6624. }
  6625. /// <summary>
  6626. ///Represents strongly named DataRow class.
  6627. ///</summary>
  6628. public partial class TagRow : global::System.Data.DataRow {
  6629. private TagDataTable tableTag;
  6630. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6631. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6632. internal TagRow(global::System.Data.DataRowBuilder rb) :
  6633. base(rb) {
  6634. this.tableTag = ((TagDataTable)(this.Table));
  6635. }
  6636. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6637. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6638. public int ID {
  6639. get {
  6640. return ((int)(this[this.tableTag.IDColumn]));
  6641. }
  6642. set {
  6643. this[this.tableTag.IDColumn] = value;
  6644. }
  6645. }
  6646. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6647. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6648. public string Title {
  6649. get {
  6650. return ((string)(this[this.tableTag.TitleColumn]));
  6651. }
  6652. set {
  6653. this[this.tableTag.TitleColumn] = value;
  6654. }
  6655. }
  6656. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6657. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6658. public string Color {
  6659. get {
  6660. return ((string)(this[this.tableTag.ColorColumn]));
  6661. }
  6662. set {
  6663. this[this.tableTag.ColorColumn] = value;
  6664. }
  6665. }
  6666. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6667. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6668. public TagOfClientRow[] GetTagOfClientRows() {
  6669. if ((this.Table.ChildRelations["FK_TagOfClient_Tag"] == null)) {
  6670. return new TagOfClientRow[0];
  6671. }
  6672. else {
  6673. return ((TagOfClientRow[])(base.GetChildRows(this.Table.ChildRelations["FK_TagOfClient_Tag"])));
  6674. }
  6675. }
  6676. }
  6677. /// <summary>
  6678. ///Represents strongly named DataRow class.
  6679. ///</summary>
  6680. public partial class TagOfClientRow : global::System.Data.DataRow {
  6681. private TagOfClientDataTable tableTagOfClient;
  6682. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6683. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6684. internal TagOfClientRow(global::System.Data.DataRowBuilder rb) :
  6685. base(rb) {
  6686. this.tableTagOfClient = ((TagOfClientDataTable)(this.Table));
  6687. }
  6688. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6689. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6690. public int ClientID {
  6691. get {
  6692. return ((int)(this[this.tableTagOfClient.ClientIDColumn]));
  6693. }
  6694. set {
  6695. this[this.tableTagOfClient.ClientIDColumn] = value;
  6696. }
  6697. }
  6698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6699. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6700. public int TagID {
  6701. get {
  6702. return ((int)(this[this.tableTagOfClient.TagIDColumn]));
  6703. }
  6704. set {
  6705. this[this.tableTagOfClient.TagIDColumn] = value;
  6706. }
  6707. }
  6708. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6709. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6710. public cRow cRow {
  6711. get {
  6712. return ((cRow)(this.GetParentRow(this.Table.ParentRelations["FK_TagOfClient_Client"])));
  6713. }
  6714. set {
  6715. this.SetParentRow(value, this.Table.ParentRelations["FK_TagOfClient_Client"]);
  6716. }
  6717. }
  6718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6719. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6720. public TagRow TagRow {
  6721. get {
  6722. return ((TagRow)(this.GetParentRow(this.Table.ParentRelations["FK_TagOfClient_Tag"])));
  6723. }
  6724. set {
  6725. this.SetParentRow(value, this.Table.ParentRelations["FK_TagOfClient_Tag"]);
  6726. }
  6727. }
  6728. }
  6729. /// <summary>
  6730. ///Row event argument class
  6731. ///</summary>
  6732. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6733. public class AttachedProductRowChangeEvent : global::System.EventArgs {
  6734. private AttachedProductRow eventRow;
  6735. private global::System.Data.DataRowAction eventAction;
  6736. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6737. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6738. public AttachedProductRowChangeEvent(AttachedProductRow row, global::System.Data.DataRowAction action) {
  6739. this.eventRow = row;
  6740. this.eventAction = action;
  6741. }
  6742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6743. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6744. public AttachedProductRow Row {
  6745. get {
  6746. return this.eventRow;
  6747. }
  6748. }
  6749. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6750. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6751. public global::System.Data.DataRowAction Action {
  6752. get {
  6753. return this.eventAction;
  6754. }
  6755. }
  6756. }
  6757. /// <summary>
  6758. ///Row event argument class
  6759. ///</summary>
  6760. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6761. public class cRowChangeEvent : global::System.EventArgs {
  6762. private cRow eventRow;
  6763. private global::System.Data.DataRowAction eventAction;
  6764. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6765. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6766. public cRowChangeEvent(cRow row, global::System.Data.DataRowAction action) {
  6767. this.eventRow = row;
  6768. this.eventAction = action;
  6769. }
  6770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6771. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6772. public cRow Row {
  6773. get {
  6774. return this.eventRow;
  6775. }
  6776. }
  6777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6779. public global::System.Data.DataRowAction Action {
  6780. get {
  6781. return this.eventAction;
  6782. }
  6783. }
  6784. }
  6785. /// <summary>
  6786. ///Row event argument class
  6787. ///</summary>
  6788. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6789. public class ClientRowChangeEvent : global::System.EventArgs {
  6790. private ClientRow eventRow;
  6791. private global::System.Data.DataRowAction eventAction;
  6792. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6793. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6794. public ClientRowChangeEvent(ClientRow row, global::System.Data.DataRowAction action) {
  6795. this.eventRow = row;
  6796. this.eventAction = action;
  6797. }
  6798. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6799. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6800. public ClientRow Row {
  6801. get {
  6802. return this.eventRow;
  6803. }
  6804. }
  6805. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6806. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6807. public global::System.Data.DataRowAction Action {
  6808. get {
  6809. return this.eventAction;
  6810. }
  6811. }
  6812. }
  6813. /// <summary>
  6814. ///Row event argument class
  6815. ///</summary>
  6816. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6817. public class ClientServiseRowChangeEvent : global::System.EventArgs {
  6818. private ClientServiseRow eventRow;
  6819. private global::System.Data.DataRowAction eventAction;
  6820. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6821. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6822. public ClientServiseRowChangeEvent(ClientServiseRow row, global::System.Data.DataRowAction action) {
  6823. this.eventRow = row;
  6824. this.eventAction = action;
  6825. }
  6826. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6827. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6828. public ClientServiseRow Row {
  6829. get {
  6830. return this.eventRow;
  6831. }
  6832. }
  6833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6835. public global::System.Data.DataRowAction Action {
  6836. get {
  6837. return this.eventAction;
  6838. }
  6839. }
  6840. }
  6841. /// <summary>
  6842. ///Row event argument class
  6843. ///</summary>
  6844. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6845. public class csRowChangeEvent : global::System.EventArgs {
  6846. private csRow eventRow;
  6847. private global::System.Data.DataRowAction eventAction;
  6848. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6849. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6850. public csRowChangeEvent(csRow row, global::System.Data.DataRowAction action) {
  6851. this.eventRow = row;
  6852. this.eventAction = action;
  6853. }
  6854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6855. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6856. public csRow Row {
  6857. get {
  6858. return this.eventRow;
  6859. }
  6860. }
  6861. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6862. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6863. public global::System.Data.DataRowAction Action {
  6864. get {
  6865. return this.eventAction;
  6866. }
  6867. }
  6868. }
  6869. /// <summary>
  6870. ///Row event argument class
  6871. ///</summary>
  6872. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6873. public class DocumentByServiceRowChangeEvent : global::System.EventArgs {
  6874. private DocumentByServiceRow eventRow;
  6875. private global::System.Data.DataRowAction eventAction;
  6876. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6877. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6878. public DocumentByServiceRowChangeEvent(DocumentByServiceRow row, global::System.Data.DataRowAction action) {
  6879. this.eventRow = row;
  6880. this.eventAction = action;
  6881. }
  6882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6883. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6884. public DocumentByServiceRow Row {
  6885. get {
  6886. return this.eventRow;
  6887. }
  6888. }
  6889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6890. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6891. public global::System.Data.DataRowAction Action {
  6892. get {
  6893. return this.eventAction;
  6894. }
  6895. }
  6896. }
  6897. /// <summary>
  6898. ///Row event argument class
  6899. ///</summary>
  6900. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6901. public class GenderRowChangeEvent : global::System.EventArgs {
  6902. private GenderRow eventRow;
  6903. private global::System.Data.DataRowAction eventAction;
  6904. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6905. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6906. public GenderRowChangeEvent(GenderRow row, global::System.Data.DataRowAction action) {
  6907. this.eventRow = row;
  6908. this.eventAction = action;
  6909. }
  6910. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6911. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6912. public GenderRow Row {
  6913. get {
  6914. return this.eventRow;
  6915. }
  6916. }
  6917. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6918. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6919. public global::System.Data.DataRowAction Action {
  6920. get {
  6921. return this.eventAction;
  6922. }
  6923. }
  6924. }
  6925. /// <summary>
  6926. ///Row event argument class
  6927. ///</summary>
  6928. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6929. public class ManufacturerRowChangeEvent : global::System.EventArgs {
  6930. private ManufacturerRow eventRow;
  6931. private global::System.Data.DataRowAction eventAction;
  6932. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6933. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6934. public ManufacturerRowChangeEvent(ManufacturerRow row, global::System.Data.DataRowAction action) {
  6935. this.eventRow = row;
  6936. this.eventAction = action;
  6937. }
  6938. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6939. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6940. public ManufacturerRow Row {
  6941. get {
  6942. return this.eventRow;
  6943. }
  6944. }
  6945. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6946. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6947. public global::System.Data.DataRowAction Action {
  6948. get {
  6949. return this.eventAction;
  6950. }
  6951. }
  6952. }
  6953. /// <summary>
  6954. ///Row event argument class
  6955. ///</summary>
  6956. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6957. public class ProductRowChangeEvent : global::System.EventArgs {
  6958. private ProductRow eventRow;
  6959. private global::System.Data.DataRowAction eventAction;
  6960. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6961. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6962. public ProductRowChangeEvent(ProductRow row, global::System.Data.DataRowAction action) {
  6963. this.eventRow = row;
  6964. this.eventAction = action;
  6965. }
  6966. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6967. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6968. public ProductRow Row {
  6969. get {
  6970. return this.eventRow;
  6971. }
  6972. }
  6973. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6974. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6975. public global::System.Data.DataRowAction Action {
  6976. get {
  6977. return this.eventAction;
  6978. }
  6979. }
  6980. }
  6981. /// <summary>
  6982. ///Row event argument class
  6983. ///</summary>
  6984. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6985. public class ProductPhotoRowChangeEvent : global::System.EventArgs {
  6986. private ProductPhotoRow eventRow;
  6987. private global::System.Data.DataRowAction eventAction;
  6988. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6989. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6990. public ProductPhotoRowChangeEvent(ProductPhotoRow row, global::System.Data.DataRowAction action) {
  6991. this.eventRow = row;
  6992. this.eventAction = action;
  6993. }
  6994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6995. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6996. public ProductPhotoRow Row {
  6997. get {
  6998. return this.eventRow;
  6999. }
  7000. }
  7001. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7002. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7003. public global::System.Data.DataRowAction Action {
  7004. get {
  7005. return this.eventAction;
  7006. }
  7007. }
  7008. }
  7009. /// <summary>
  7010. ///Row event argument class
  7011. ///</summary>
  7012. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7013. public class ProductSaleRowChangeEvent : global::System.EventArgs {
  7014. private ProductSaleRow eventRow;
  7015. private global::System.Data.DataRowAction eventAction;
  7016. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7017. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7018. public ProductSaleRowChangeEvent(ProductSaleRow row, global::System.Data.DataRowAction action) {
  7019. this.eventRow = row;
  7020. this.eventAction = action;
  7021. }
  7022. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7023. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7024. public ProductSaleRow Row {
  7025. get {
  7026. return this.eventRow;
  7027. }
  7028. }
  7029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7031. public global::System.Data.DataRowAction Action {
  7032. get {
  7033. return this.eventAction;
  7034. }
  7035. }
  7036. }
  7037. /// <summary>
  7038. ///Row event argument class
  7039. ///</summary>
  7040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7041. public class sRowChangeEvent : global::System.EventArgs {
  7042. private sRow eventRow;
  7043. private global::System.Data.DataRowAction eventAction;
  7044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7046. public sRowChangeEvent(sRow row, global::System.Data.DataRowAction action) {
  7047. this.eventRow = row;
  7048. this.eventAction = action;
  7049. }
  7050. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7052. public sRow Row {
  7053. get {
  7054. return this.eventRow;
  7055. }
  7056. }
  7057. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7058. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7059. public global::System.Data.DataRowAction Action {
  7060. get {
  7061. return this.eventAction;
  7062. }
  7063. }
  7064. }
  7065. /// <summary>
  7066. ///Row event argument class
  7067. ///</summary>
  7068. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7069. public class ServiceRowChangeEvent : global::System.EventArgs {
  7070. private ServiceRow eventRow;
  7071. private global::System.Data.DataRowAction eventAction;
  7072. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7073. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7074. public ServiceRowChangeEvent(ServiceRow row, global::System.Data.DataRowAction action) {
  7075. this.eventRow = row;
  7076. this.eventAction = action;
  7077. }
  7078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7079. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7080. public ServiceRow Row {
  7081. get {
  7082. return this.eventRow;
  7083. }
  7084. }
  7085. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7086. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7087. public global::System.Data.DataRowAction Action {
  7088. get {
  7089. return this.eventAction;
  7090. }
  7091. }
  7092. }
  7093. /// <summary>
  7094. ///Row event argument class
  7095. ///</summary>
  7096. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7097. public class ServicePhotoRowChangeEvent : global::System.EventArgs {
  7098. private ServicePhotoRow eventRow;
  7099. private global::System.Data.DataRowAction eventAction;
  7100. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7101. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7102. public ServicePhotoRowChangeEvent(ServicePhotoRow row, global::System.Data.DataRowAction action) {
  7103. this.eventRow = row;
  7104. this.eventAction = action;
  7105. }
  7106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7108. public ServicePhotoRow Row {
  7109. get {
  7110. return this.eventRow;
  7111. }
  7112. }
  7113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7114. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7115. public global::System.Data.DataRowAction Action {
  7116. get {
  7117. return this.eventAction;
  7118. }
  7119. }
  7120. }
  7121. /// <summary>
  7122. ///Row event argument class
  7123. ///</summary>
  7124. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7125. public class TagRowChangeEvent : global::System.EventArgs {
  7126. private TagRow eventRow;
  7127. private global::System.Data.DataRowAction eventAction;
  7128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7129. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7130. public TagRowChangeEvent(TagRow row, global::System.Data.DataRowAction action) {
  7131. this.eventRow = row;
  7132. this.eventAction = action;
  7133. }
  7134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7135. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7136. public TagRow Row {
  7137. get {
  7138. return this.eventRow;
  7139. }
  7140. }
  7141. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7142. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7143. public global::System.Data.DataRowAction Action {
  7144. get {
  7145. return this.eventAction;
  7146. }
  7147. }
  7148. }
  7149. /// <summary>
  7150. ///Row event argument class
  7151. ///</summary>
  7152. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7153. public class TagOfClientRowChangeEvent : global::System.EventArgs {
  7154. private TagOfClientRow eventRow;
  7155. private global::System.Data.DataRowAction eventAction;
  7156. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7157. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7158. public TagOfClientRowChangeEvent(TagOfClientRow row, global::System.Data.DataRowAction action) {
  7159. this.eventRow = row;
  7160. this.eventAction = action;
  7161. }
  7162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7163. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7164. public TagOfClientRow Row {
  7165. get {
  7166. return this.eventRow;
  7167. }
  7168. }
  7169. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7170. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7171. public global::System.Data.DataRowAction Action {
  7172. get {
  7173. return this.eventAction;
  7174. }
  7175. }
  7176. }
  7177. }
  7178. }
  7179. namespace BBrovki1Z.BBrovkiZDataSetTableAdapters {
  7180. /// <summary>
  7181. ///Represents the connection and commands used to retrieve and save data.
  7182. ///</summary>
  7183. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7184. [global::System.ComponentModel.ToolboxItem(true)]
  7185. [global::System.ComponentModel.DataObjectAttribute(true)]
  7186. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7187. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7188. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7189. public partial class AttachedProductTableAdapter : global::System.ComponentModel.Component {
  7190. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7191. private global::System.Data.SqlClient.SqlConnection _connection;
  7192. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7193. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7194. private bool _clearBeforeFill;
  7195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7197. public AttachedProductTableAdapter() {
  7198. this.ClearBeforeFill = true;
  7199. }
  7200. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7201. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7202. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7203. get {
  7204. if ((this._adapter == null)) {
  7205. this.InitAdapter();
  7206. }
  7207. return this._adapter;
  7208. }
  7209. }
  7210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7212. internal global::System.Data.SqlClient.SqlConnection Connection {
  7213. get {
  7214. if ((this._connection == null)) {
  7215. this.InitConnection();
  7216. }
  7217. return this._connection;
  7218. }
  7219. set {
  7220. this._connection = value;
  7221. if ((this.Adapter.InsertCommand != null)) {
  7222. this.Adapter.InsertCommand.Connection = value;
  7223. }
  7224. if ((this.Adapter.DeleteCommand != null)) {
  7225. this.Adapter.DeleteCommand.Connection = value;
  7226. }
  7227. if ((this.Adapter.UpdateCommand != null)) {
  7228. this.Adapter.UpdateCommand.Connection = value;
  7229. }
  7230. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7231. if ((this.CommandCollection[i] != null)) {
  7232. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7233. }
  7234. }
  7235. }
  7236. }
  7237. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7238. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7239. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7240. get {
  7241. return this._transaction;
  7242. }
  7243. set {
  7244. this._transaction = value;
  7245. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7246. this.CommandCollection[i].Transaction = this._transaction;
  7247. }
  7248. if (((this.Adapter != null)
  7249. && (this.Adapter.DeleteCommand != null))) {
  7250. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7251. }
  7252. if (((this.Adapter != null)
  7253. && (this.Adapter.InsertCommand != null))) {
  7254. this.Adapter.InsertCommand.Transaction = this._transaction;
  7255. }
  7256. if (((this.Adapter != null)
  7257. && (this.Adapter.UpdateCommand != null))) {
  7258. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7259. }
  7260. }
  7261. }
  7262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7263. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7264. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7265. get {
  7266. if ((this._commandCollection == null)) {
  7267. this.InitCommandCollection();
  7268. }
  7269. return this._commandCollection;
  7270. }
  7271. }
  7272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7274. public bool ClearBeforeFill {
  7275. get {
  7276. return this._clearBeforeFill;
  7277. }
  7278. set {
  7279. this._clearBeforeFill = value;
  7280. }
  7281. }
  7282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7284. private void InitAdapter() {
  7285. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7286. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7287. tableMapping.SourceTable = "Table";
  7288. tableMapping.DataSetTable = "AttachedProduct";
  7289. tableMapping.ColumnMappings.Add("MainProductID", "MainProductID");
  7290. tableMapping.ColumnMappings.Add("AttachedProductID", "AttachedProductID");
  7291. this._adapter.TableMappings.Add(tableMapping);
  7292. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7293. this._adapter.DeleteCommand.Connection = this.Connection;
  7294. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[AttachedProduct] WHERE (([MainProductID] = @Original_MainProdu" +
  7295. "ctID) AND ([AttachedProductID] = @Original_AttachedProductID))";
  7296. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7297. 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, "", "", ""));
  7298. 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, "", "", ""));
  7299. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7300. this._adapter.InsertCommand.Connection = this.Connection;
  7301. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[AttachedProduct] ([MainProductID], [AttachedProductID]) VALUES (@MainProductID, @AttachedProductID);
  7302. SELECT MainProductID, AttachedProductID FROM AttachedProduct WHERE (AttachedProductID = @AttachedProductID) AND (MainProductID = @MainProductID)";
  7303. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7304. 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, "", "", ""));
  7305. 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, "", "", ""));
  7306. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7307. this._adapter.UpdateCommand.Connection = this.Connection;
  7308. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[AttachedProduct] SET [MainProductID] = @MainProductID, [AttachedProductID] = @AttachedProductID WHERE (([MainProductID] = @Original_MainProductID) AND ([AttachedProductID] = @Original_AttachedProductID));
  7309. SELECT MainProductID, AttachedProductID FROM AttachedProduct WHERE (AttachedProductID = @AttachedProductID) AND (MainProductID = @MainProductID)";
  7310. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7311. 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, "", "", ""));
  7312. 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, "", "", ""));
  7313. 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, "", "", ""));
  7314. 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, "", "", ""));
  7315. }
  7316. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7317. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7318. private void InitConnection() {
  7319. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7320. this._connection.ConnectionString = global::BBrovki1Z.Properties.Settings.Default.BBrovkiZConnectionString;
  7321. }
  7322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7323. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7324. private void InitCommandCollection() {
  7325. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7326. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7327. this._commandCollection[0].Connection = this.Connection;
  7328. this._commandCollection[0].CommandText = "SELECT MainProductID, AttachedProductID FROM dbo.AttachedProduct";
  7329. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7330. }
  7331. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7332. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7333. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7334. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7335. public virtual int Fill(BBrovkiZDataSet.AttachedProductDataTable dataTable) {
  7336. this.Adapter.SelectCommand = this.CommandCollection[0];
  7337. if ((this.ClearBeforeFill == true)) {
  7338. dataTable.Clear();
  7339. }
  7340. int returnValue = this.Adapter.Fill(dataTable);
  7341. return returnValue;
  7342. }
  7343. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7344. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7345. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7346. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7347. public virtual BBrovkiZDataSet.AttachedProductDataTable GetData() {
  7348. this.Adapter.SelectCommand = this.CommandCollection[0];
  7349. BBrovkiZDataSet.AttachedProductDataTable dataTable = new BBrovkiZDataSet.AttachedProductDataTable();
  7350. this.Adapter.Fill(dataTable);
  7351. return dataTable;
  7352. }
  7353. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7354. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7355. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7356. public virtual int Update(BBrovkiZDataSet.AttachedProductDataTable dataTable) {
  7357. return this.Adapter.Update(dataTable);
  7358. }
  7359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7360. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7361. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7362. public virtual int Update(BBrovkiZDataSet dataSet) {
  7363. return this.Adapter.Update(dataSet, "AttachedProduct");
  7364. }
  7365. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7366. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7367. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7368. public virtual int Update(global::System.Data.DataRow dataRow) {
  7369. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7370. dataRow});
  7371. }
  7372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7374. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7375. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7376. return this.Adapter.Update(dataRows);
  7377. }
  7378. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7379. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7380. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7381. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7382. public virtual int Delete(int Original_MainProductID, int Original_AttachedProductID) {
  7383. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_MainProductID));
  7384. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_AttachedProductID));
  7385. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7386. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7387. != global::System.Data.ConnectionState.Open)) {
  7388. this.Adapter.DeleteCommand.Connection.Open();
  7389. }
  7390. try {
  7391. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7392. return returnValue;
  7393. }
  7394. finally {
  7395. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7396. this.Adapter.DeleteCommand.Connection.Close();
  7397. }
  7398. }
  7399. }
  7400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7402. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7403. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7404. public virtual int Insert(int MainProductID, int AttachedProductID) {
  7405. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(MainProductID));
  7406. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(AttachedProductID));
  7407. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7408. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7409. != global::System.Data.ConnectionState.Open)) {
  7410. this.Adapter.InsertCommand.Connection.Open();
  7411. }
  7412. try {
  7413. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7414. return returnValue;
  7415. }
  7416. finally {
  7417. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7418. this.Adapter.InsertCommand.Connection.Close();
  7419. }
  7420. }
  7421. }
  7422. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7423. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7424. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7425. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7426. public virtual int Update(int MainProductID, int AttachedProductID, int Original_MainProductID, int Original_AttachedProductID) {
  7427. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(MainProductID));
  7428. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(AttachedProductID));
  7429. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_MainProductID));
  7430. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_AttachedProductID));
  7431. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7432. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7433. != global::System.Data.ConnectionState.Open)) {
  7434. this.Adapter.UpdateCommand.Connection.Open();
  7435. }
  7436. try {
  7437. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7438. return returnValue;
  7439. }
  7440. finally {
  7441. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7442. this.Adapter.UpdateCommand.Connection.Close();
  7443. }
  7444. }
  7445. }
  7446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7447. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7448. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7449. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7450. public virtual int Update(int Original_MainProductID, int Original_AttachedProductID) {
  7451. return this.Update(Original_MainProductID, Original_AttachedProductID, Original_MainProductID, Original_AttachedProductID);
  7452. }
  7453. }
  7454. /// <summary>
  7455. ///Represents the connection and commands used to retrieve and save data.
  7456. ///</summary>
  7457. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7458. [global::System.ComponentModel.ToolboxItem(true)]
  7459. [global::System.ComponentModel.DataObjectAttribute(true)]
  7460. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7461. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7462. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7463. public partial class cTableAdapter : global::System.ComponentModel.Component {
  7464. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7465. private global::System.Data.SqlClient.SqlConnection _connection;
  7466. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7467. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7468. private bool _clearBeforeFill;
  7469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7470. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7471. public cTableAdapter() {
  7472. this.ClearBeforeFill = true;
  7473. }
  7474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7476. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7477. get {
  7478. if ((this._adapter == null)) {
  7479. this.InitAdapter();
  7480. }
  7481. return this._adapter;
  7482. }
  7483. }
  7484. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7485. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7486. internal global::System.Data.SqlClient.SqlConnection Connection {
  7487. get {
  7488. if ((this._connection == null)) {
  7489. this.InitConnection();
  7490. }
  7491. return this._connection;
  7492. }
  7493. set {
  7494. this._connection = value;
  7495. if ((this.Adapter.InsertCommand != null)) {
  7496. this.Adapter.InsertCommand.Connection = value;
  7497. }
  7498. if ((this.Adapter.DeleteCommand != null)) {
  7499. this.Adapter.DeleteCommand.Connection = value;
  7500. }
  7501. if ((this.Adapter.UpdateCommand != null)) {
  7502. this.Adapter.UpdateCommand.Connection = value;
  7503. }
  7504. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7505. if ((this.CommandCollection[i] != null)) {
  7506. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7507. }
  7508. }
  7509. }
  7510. }
  7511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7512. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7513. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7514. get {
  7515. return this._transaction;
  7516. }
  7517. set {
  7518. this._transaction = value;
  7519. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7520. this.CommandCollection[i].Transaction = this._transaction;
  7521. }
  7522. if (((this.Adapter != null)
  7523. && (this.Adapter.DeleteCommand != null))) {
  7524. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7525. }
  7526. if (((this.Adapter != null)
  7527. && (this.Adapter.InsertCommand != null))) {
  7528. this.Adapter.InsertCommand.Transaction = this._transaction;
  7529. }
  7530. if (((this.Adapter != null)
  7531. && (this.Adapter.UpdateCommand != null))) {
  7532. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7533. }
  7534. }
  7535. }
  7536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7537. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7538. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7539. get {
  7540. if ((this._commandCollection == null)) {
  7541. this.InitCommandCollection();
  7542. }
  7543. return this._commandCollection;
  7544. }
  7545. }
  7546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7548. public bool ClearBeforeFill {
  7549. get {
  7550. return this._clearBeforeFill;
  7551. }
  7552. set {
  7553. this._clearBeforeFill = value;
  7554. }
  7555. }
  7556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7557. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7558. private void InitAdapter() {
  7559. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7560. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7561. tableMapping.SourceTable = "Table";
  7562. tableMapping.DataSetTable = "c";
  7563. tableMapping.ColumnMappings.Add("ID", "ID");
  7564. tableMapping.ColumnMappings.Add("FirstName", "FirstName");
  7565. tableMapping.ColumnMappings.Add("LastName", "LastName");
  7566. tableMapping.ColumnMappings.Add("Patronymic", "Patronymic");
  7567. tableMapping.ColumnMappings.Add("Birthday", "Birthday");
  7568. tableMapping.ColumnMappings.Add("RegistrationDate", "RegistrationDate");
  7569. tableMapping.ColumnMappings.Add("Email", "Email");
  7570. tableMapping.ColumnMappings.Add("Phone", "Phone");
  7571. tableMapping.ColumnMappings.Add("GenderCode", "GenderCode");
  7572. tableMapping.ColumnMappings.Add("PhotoPath", "PhotoPath");
  7573. this._adapter.TableMappings.Add(tableMapping);
  7574. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7575. this._adapter.DeleteCommand.Connection = this.Connection;
  7576. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[c] WHERE (([ID] = @Original_ID) AND ([FirstName] = @Original_FirstName) AND ([LastName] = @Original_LastName) AND ((@IsNull_Patronymic = 1 AND [Patronymic] IS NULL) OR ([Patronymic] = @Original_Patronymic)) AND ((@IsNull_Birthday = 1 AND [Birthday] IS NULL) OR ([Birthday] = @Original_Birthday)) AND ([RegistrationDate] = @Original_RegistrationDate) AND ((@IsNull_Email = 1 AND [Email] IS NULL) OR ([Email] = @Original_Email)) AND ([Phone] = @Original_Phone) AND ([GenderCode] = @Original_GenderCode) AND ((@IsNull_PhotoPath = 1 AND [PhotoPath] IS NULL) OR ([PhotoPath] = @Original_PhotoPath)))";
  7577. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7578. 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, "", "", ""));
  7579. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FirstName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FirstName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7580. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_LastName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7581. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Patronymic", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7582. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7583. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Birthday", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Birthday", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7584. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Birthday", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Birthday", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7585. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RegistrationDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RegistrationDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7586. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Email", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7587. 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, "", "", ""));
  7588. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Phone", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7589. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_GenderCode", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GenderCode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7590. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PhotoPath", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhotoPath", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7591. 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, "", "", ""));
  7592. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7593. this._adapter.InsertCommand.Connection = this.Connection;
  7594. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[c] ([FirstName], [LastName], [Patronymic], [Birthday], [RegistrationDate], [Email], [Phone], [GenderCode], [PhotoPath]) VALUES (@FirstName, @LastName, @Patronymic, @Birthday, @RegistrationDate, @Email, @Phone, @GenderCode, @PhotoPath);
  7595. SELECT ID, FirstName, LastName, Patronymic, Birthday, RegistrationDate, Email, Phone, GenderCode, PhotoPath FROM c WHERE (ID = SCOPE_IDENTITY())";
  7596. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7597. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FirstName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FirstName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7598. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@LastName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7599. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7600. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Birthday", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Birthday", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7601. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RegistrationDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RegistrationDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7602. 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, "", "", ""));
  7603. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Phone", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7604. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@GenderCode", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GenderCode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7605. 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, "", "", ""));
  7606. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7607. this._adapter.UpdateCommand.Connection = this.Connection;
  7608. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[c] SET [FirstName] = @FirstName, [LastName] = @LastName, [Patronymic] = @Patronymic, [Birthday] = @Birthday, [RegistrationDate] = @RegistrationDate, [Email] = @Email, [Phone] = @Phone, [GenderCode] = @GenderCode, [PhotoPath] = @PhotoPath WHERE (([ID] = @Original_ID) AND ([FirstName] = @Original_FirstName) AND ([LastName] = @Original_LastName) AND ((@IsNull_Patronymic = 1 AND [Patronymic] IS NULL) OR ([Patronymic] = @Original_Patronymic)) AND ((@IsNull_Birthday = 1 AND [Birthday] IS NULL) OR ([Birthday] = @Original_Birthday)) AND ([RegistrationDate] = @Original_RegistrationDate) AND ((@IsNull_Email = 1 AND [Email] IS NULL) OR ([Email] = @Original_Email)) AND ([Phone] = @Original_Phone) AND ([GenderCode] = @Original_GenderCode) AND ((@IsNull_PhotoPath = 1 AND [PhotoPath] IS NULL) OR ([PhotoPath] = @Original_PhotoPath)));
  7609. SELECT ID, FirstName, LastName, Patronymic, Birthday, RegistrationDate, Email, Phone, GenderCode, PhotoPath FROM c WHERE (ID = @ID)";
  7610. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7611. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FirstName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FirstName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7612. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@LastName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7613. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7614. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Birthday", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Birthday", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7615. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RegistrationDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RegistrationDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7616. 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, "", "", ""));
  7617. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Phone", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7618. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@GenderCode", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GenderCode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7619. 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, "", "", ""));
  7620. 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, "", "", ""));
  7621. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_FirstName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "FirstName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7622. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_LastName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LastName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7623. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Patronymic", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7624. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7625. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Birthday", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Birthday", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7626. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Birthday", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Birthday", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7627. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RegistrationDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RegistrationDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7628. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Email", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7629. 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, "", "", ""));
  7630. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Phone", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7631. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_GenderCode", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GenderCode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7632. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PhotoPath", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PhotoPath", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7633. 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, "", "", ""));
  7634. 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, "", "", ""));
  7635. }
  7636. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7637. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7638. private void InitConnection() {
  7639. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7640. this._connection.ConnectionString = global::BBrovki1Z.Properties.Settings.Default.BBrovkiZConnectionString;
  7641. }
  7642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7644. private void InitCommandCollection() {
  7645. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7646. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7647. this._commandCollection[0].Connection = this.Connection;
  7648. this._commandCollection[0].CommandText = "SELECT ID, FirstName, LastName, Patronymic, Birthday, RegistrationDate, Email, Ph" +
  7649. "one, GenderCode, PhotoPath FROM dbo.c";
  7650. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7651. }
  7652. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7653. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7654. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7655. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7656. public virtual int Fill(BBrovkiZDataSet.cDataTable dataTable) {
  7657. this.Adapter.SelectCommand = this.CommandCollection[0];
  7658. if ((this.ClearBeforeFill == true)) {
  7659. dataTable.Clear();
  7660. }
  7661. int returnValue = this.Adapter.Fill(dataTable);
  7662. return returnValue;
  7663. }
  7664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7666. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7667. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7668. public virtual BBrovkiZDataSet.cDataTable GetData() {
  7669. this.Adapter.SelectCommand = this.CommandCollection[0];
  7670. BBrovkiZDataSet.cDataTable dataTable = new BBrovkiZDataSet.cDataTable();
  7671. this.Adapter.Fill(dataTable);
  7672. return dataTable;
  7673. }
  7674. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7675. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7676. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7677. public virtual int Update(BBrovkiZDataSet.cDataTable dataTable) {
  7678. return this.Adapter.Update(dataTable);
  7679. }
  7680. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7681. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7682. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7683. public virtual int Update(BBrovkiZDataSet dataSet) {
  7684. return this.Adapter.Update(dataSet, "c");
  7685. }
  7686. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7687. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7688. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7689. public virtual int Update(global::System.Data.DataRow dataRow) {
  7690. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7691. dataRow});
  7692. }
  7693. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7694. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7695. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7696. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7697. return this.Adapter.Update(dataRows);
  7698. }
  7699. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7700. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7701. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7702. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7703. public virtual int Delete(int Original_ID, string Original_FirstName, string Original_LastName, string Original_Patronymic, global::System.Nullable<global::System.DateTime> Original_Birthday, System.DateTime Original_RegistrationDate, string Original_Email, string Original_Phone, string Original_GenderCode, string Original_PhotoPath) {
  7704. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  7705. if ((Original_FirstName == null)) {
  7706. throw new global::System.ArgumentNullException("Original_FirstName");
  7707. }
  7708. else {
  7709. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_FirstName));
  7710. }
  7711. if ((Original_LastName == null)) {
  7712. throw new global::System.ArgumentNullException("Original_LastName");
  7713. }
  7714. else {
  7715. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_LastName));
  7716. }
  7717. if ((Original_Patronymic == null)) {
  7718. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  7719. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  7720. }
  7721. else {
  7722. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  7723. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Patronymic));
  7724. }
  7725. if ((Original_Birthday.HasValue == true)) {
  7726. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  7727. this.Adapter.DeleteCommand.Parameters[6].Value = ((System.DateTime)(Original_Birthday.Value));
  7728. }
  7729. else {
  7730. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  7731. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  7732. }
  7733. this.Adapter.DeleteCommand.Parameters[7].Value = ((System.DateTime)(Original_RegistrationDate));
  7734. if ((Original_Email == null)) {
  7735. this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(1));
  7736. this.Adapter.DeleteCommand.Parameters[9].Value = global::System.DBNull.Value;
  7737. }
  7738. else {
  7739. this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(0));
  7740. this.Adapter.DeleteCommand.Parameters[9].Value = ((string)(Original_Email));
  7741. }
  7742. if ((Original_Phone == null)) {
  7743. throw new global::System.ArgumentNullException("Original_Phone");
  7744. }
  7745. else {
  7746. this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_Phone));
  7747. }
  7748. if ((Original_GenderCode == null)) {
  7749. throw new global::System.ArgumentNullException("Original_GenderCode");
  7750. }
  7751. else {
  7752. this.Adapter.DeleteCommand.Parameters[11].Value = ((string)(Original_GenderCode));
  7753. }
  7754. if ((Original_PhotoPath == null)) {
  7755. this.Adapter.DeleteCommand.Parameters[12].Value = ((object)(1));
  7756. this.Adapter.DeleteCommand.Parameters[13].Value = global::System.DBNull.Value;
  7757. }
  7758. else {
  7759. this.Adapter.DeleteCommand.Parameters[12].Value = ((object)(0));
  7760. this.Adapter.DeleteCommand.Parameters[13].Value = ((string)(Original_PhotoPath));
  7761. }
  7762. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7763. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7764. != global::System.Data.ConnectionState.Open)) {
  7765. this.Adapter.DeleteCommand.Connection.Open();
  7766. }
  7767. try {
  7768. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7769. return returnValue;
  7770. }
  7771. finally {
  7772. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7773. this.Adapter.DeleteCommand.Connection.Close();
  7774. }
  7775. }
  7776. }
  7777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7779. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7780. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7781. public virtual int Insert(string FirstName, string LastName, string Patronymic, global::System.Nullable<global::System.DateTime> Birthday, System.DateTime RegistrationDate, string Email, string Phone, string GenderCode, string PhotoPath) {
  7782. if ((FirstName == null)) {
  7783. throw new global::System.ArgumentNullException("FirstName");
  7784. }
  7785. else {
  7786. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(FirstName));
  7787. }
  7788. if ((LastName == null)) {
  7789. throw new global::System.ArgumentNullException("LastName");
  7790. }
  7791. else {
  7792. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(LastName));
  7793. }
  7794. if ((Patronymic == null)) {
  7795. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  7796. }
  7797. else {
  7798. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Patronymic));
  7799. }
  7800. if ((Birthday.HasValue == true)) {
  7801. this.Adapter.InsertCommand.Parameters[3].Value = ((System.DateTime)(Birthday.Value));
  7802. }
  7803. else {
  7804. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  7805. }
  7806. this.Adapter.InsertCommand.Parameters[4].Value = ((System.DateTime)(RegistrationDate));
  7807. if ((Email == null)) {
  7808. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  7809. }
  7810. else {
  7811. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Email));
  7812. }
  7813. if ((Phone == null)) {
  7814. throw new global::System.ArgumentNullException("Phone");
  7815. }
  7816. else {
  7817. this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Phone));
  7818. }
  7819. if ((GenderCode == null)) {
  7820. throw new global::System.ArgumentNullException("GenderCode");
  7821. }
  7822. else {
  7823. this.Adapter.InsertCommand.Parameters[7].Value = ((string)(GenderCode));
  7824. }
  7825. if ((PhotoPath == null)) {
  7826. this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
  7827. }
  7828. else {
  7829. this.Adapter.InsertCommand.Parameters[8].Value = ((string)(PhotoPath));
  7830. }
  7831. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7832. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7833. != global::System.Data.ConnectionState.Open)) {
  7834. this.Adapter.InsertCommand.Connection.Open();
  7835. }
  7836. try {
  7837. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7838. return returnValue;
  7839. }
  7840. finally {
  7841. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7842. this.Adapter.InsertCommand.Connection.Close();
  7843. }
  7844. }
  7845. }
  7846. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7847. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7848. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7849. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7850. public virtual int Update(
  7851. string FirstName,
  7852. string LastName,
  7853. string Patronymic,
  7854. global::System.Nullable<global::System.DateTime> Birthday,
  7855. System.DateTime RegistrationDate,
  7856. string Email,
  7857. string Phone,
  7858. string GenderCode,
  7859. string PhotoPath,
  7860. int Original_ID,
  7861. string Original_FirstName,
  7862. string Original_LastName,
  7863. string Original_Patronymic,
  7864. global::System.Nullable<global::System.DateTime> Original_Birthday,
  7865. System.DateTime Original_RegistrationDate,
  7866. string Original_Email,
  7867. string Original_Phone,
  7868. string Original_GenderCode,
  7869. string Original_PhotoPath,
  7870. int ID) {
  7871. if ((FirstName == null)) {
  7872. throw new global::System.ArgumentNullException("FirstName");
  7873. }
  7874. else {
  7875. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(FirstName));
  7876. }
  7877. if ((LastName == null)) {
  7878. throw new global::System.ArgumentNullException("LastName");
  7879. }
  7880. else {
  7881. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(LastName));
  7882. }
  7883. if ((Patronymic == null)) {
  7884. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  7885. }
  7886. else {
  7887. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Patronymic));
  7888. }
  7889. if ((Birthday.HasValue == true)) {
  7890. this.Adapter.UpdateCommand.Parameters[3].Value = ((System.DateTime)(Birthday.Value));
  7891. }
  7892. else {
  7893. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  7894. }
  7895. this.Adapter.UpdateCommand.Parameters[4].Value = ((System.DateTime)(RegistrationDate));
  7896. if ((Email == null)) {
  7897. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  7898. }
  7899. else {
  7900. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Email));
  7901. }
  7902. if ((Phone == null)) {
  7903. throw new global::System.ArgumentNullException("Phone");
  7904. }
  7905. else {
  7906. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Phone));
  7907. }
  7908. if ((GenderCode == null)) {
  7909. throw new global::System.ArgumentNullException("GenderCode");
  7910. }
  7911. else {
  7912. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(GenderCode));
  7913. }
  7914. if ((PhotoPath == null)) {
  7915. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  7916. }
  7917. else {
  7918. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(PhotoPath));
  7919. }
  7920. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_ID));
  7921. if ((Original_FirstName == null)) {
  7922. throw new global::System.ArgumentNullException("Original_FirstName");
  7923. }
  7924. else {
  7925. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_FirstName));
  7926. }
  7927. if ((Original_LastName == null)) {
  7928. throw new global::System.ArgumentNullException("Original_LastName");
  7929. }
  7930. else {
  7931. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_LastName));
  7932. }
  7933. if ((Original_Patronymic == null)) {
  7934. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  7935. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  7936. }
  7937. else {
  7938. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  7939. this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_Patronymic));
  7940. }
  7941. if ((Original_Birthday.HasValue == true)) {
  7942. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
  7943. this.Adapter.UpdateCommand.Parameters[15].Value = ((System.DateTime)(Original_Birthday.Value));
  7944. }
  7945. else {
  7946. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
  7947. this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
  7948. }
  7949. this.Adapter.UpdateCommand.Parameters[16].Value = ((System.DateTime)(Original_RegistrationDate));
  7950. if ((Original_Email == null)) {
  7951. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
  7952. this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
  7953. }
  7954. else {
  7955. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
  7956. this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_Email));
  7957. }
  7958. if ((Original_Phone == null)) {
  7959. throw new global::System.ArgumentNullException("Original_Phone");
  7960. }
  7961. else {
  7962. this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_Phone));
  7963. }
  7964. if ((Original_GenderCode == null)) {
  7965. throw new global::System.ArgumentNullException("Original_GenderCode");
  7966. }
  7967. else {
  7968. this.Adapter.UpdateCommand.Parameters[20].Value = ((string)(Original_GenderCode));
  7969. }
  7970. if ((Original_PhotoPath == null)) {
  7971. this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(1));
  7972. this.Adapter.UpdateCommand.Parameters[22].Value = global::System.DBNull.Value;
  7973. }
  7974. else {
  7975. this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(0));
  7976. this.Adapter.UpdateCommand.Parameters[22].Value = ((string)(Original_PhotoPath));
  7977. }
  7978. this.Adapter.UpdateCommand.Parameters[23].Value = ((int)(ID));
  7979. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7980. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7981. != global::System.Data.ConnectionState.Open)) {
  7982. this.Adapter.UpdateCommand.Connection.Open();
  7983. }
  7984. try {
  7985. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7986. return returnValue;
  7987. }
  7988. finally {
  7989. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7990. this.Adapter.UpdateCommand.Connection.Close();
  7991. }
  7992. }
  7993. }
  7994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7995. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7996. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7997. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7998. public virtual int Update(
  7999. string FirstName,
  8000. string LastName,
  8001. string Patronymic,
  8002. global::System.Nullable<global::System.DateTime> Birthday,
  8003. System.DateTime RegistrationDate,
  8004. string Email,
  8005. string Phone,
  8006. string GenderCode,
  8007. string PhotoPath,
  8008. int Original_ID,
  8009. string Original_FirstName,
  8010. string Original_LastName,
  8011. string Original_Patronymic,
  8012. global::System.Nullable<global::System.DateTime> Original_Birthday,
  8013. System.DateTime Original_RegistrationDate,
  8014. string Original_Email,
  8015. string Original_Phone,
  8016. string Original_GenderCode,
  8017. string Original_PhotoPath) {
  8018. return this.Update(FirstName, LastName, Patronymic, Birthday, RegistrationDate, Email, Phone, GenderCode, PhotoPath, Original_ID, Original_FirstName, Original_LastName, Original_Patronymic, Original_Birthday, Original_RegistrationDate, Original_Email, Original_Phone, Original_GenderCode, Original_PhotoPath, Original_ID);
  8019. }
  8020. }
  8021. /// <summary>
  8022. ///Represents the connection and commands used to retrieve and save data.
  8023. ///</summary>
  8024. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8025. [global::System.ComponentModel.ToolboxItem(true)]
  8026. [global::System.ComponentModel.DataObjectAttribute(true)]
  8027. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8028. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8029. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8030. public partial class ClientTableAdapter : global::System.ComponentModel.Component {
  8031. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8032. private global::System.Data.SqlClient.SqlConnection _connection;
  8033. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8034. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8035. private bool _clearBeforeFill;
  8036. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8037. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8038. public ClientTableAdapter() {
  8039. this.ClearBeforeFill = true;
  8040. }
  8041. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8042. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8043. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8044. get {
  8045. if ((this._adapter == null)) {
  8046. this.InitAdapter();
  8047. }
  8048. return this._adapter;
  8049. }
  8050. }
  8051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8053. internal global::System.Data.SqlClient.SqlConnection Connection {
  8054. get {
  8055. if ((this._connection == null)) {
  8056. this.InitConnection();
  8057. }
  8058. return this._connection;
  8059. }
  8060. set {
  8061. this._connection = value;
  8062. if ((this.Adapter.InsertCommand != null)) {
  8063. this.Adapter.InsertCommand.Connection = value;
  8064. }
  8065. if ((this.Adapter.DeleteCommand != null)) {
  8066. this.Adapter.DeleteCommand.Connection = value;
  8067. }
  8068. if ((this.Adapter.UpdateCommand != null)) {
  8069. this.Adapter.UpdateCommand.Connection = value;
  8070. }
  8071. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8072. if ((this.CommandCollection[i] != null)) {
  8073. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8074. }
  8075. }
  8076. }
  8077. }
  8078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8079. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8080. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8081. get {
  8082. return this._transaction;
  8083. }
  8084. set {
  8085. this._transaction = value;
  8086. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8087. this.CommandCollection[i].Transaction = this._transaction;
  8088. }
  8089. if (((this.Adapter != null)
  8090. && (this.Adapter.DeleteCommand != null))) {
  8091. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8092. }
  8093. if (((this.Adapter != null)
  8094. && (this.Adapter.InsertCommand != null))) {
  8095. this.Adapter.InsertCommand.Transaction = this._transaction;
  8096. }
  8097. if (((this.Adapter != null)
  8098. && (this.Adapter.UpdateCommand != null))) {
  8099. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8100. }
  8101. }
  8102. }
  8103. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8104. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8105. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8106. get {
  8107. if ((this._commandCollection == null)) {
  8108. this.InitCommandCollection();
  8109. }
  8110. return this._commandCollection;
  8111. }
  8112. }
  8113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8114. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8115. public bool ClearBeforeFill {
  8116. get {
  8117. return this._clearBeforeFill;
  8118. }
  8119. set {
  8120. this._clearBeforeFill = value;
  8121. }
  8122. }
  8123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8124. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8125. private void InitAdapter() {
  8126. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8127. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8128. tableMapping.SourceTable = "Table";
  8129. tableMapping.DataSetTable = "Client";
  8130. tableMapping.ColumnMappings.Add("ID", "ID");
  8131. tableMapping.ColumnMappings.Add("Фамилия", "Фамилия");
  8132. tableMapping.ColumnMappings.Add("Имя", "Имя");
  8133. tableMapping.ColumnMappings.Add("Отчество", "Отчество");
  8134. tableMapping.ColumnMappings.Add("Пол", "Пол");
  8135. tableMapping.ColumnMappings.Add("Телефон", "Телефон");
  8136. tableMapping.ColumnMappings.Add("Дата_рождения", "Дата_рождения");
  8137. tableMapping.ColumnMappings.Add("Email", "Email");
  8138. tableMapping.ColumnMappings.Add("Дата_регистрации", "Дата_регистрации");
  8139. this._adapter.TableMappings.Add(tableMapping);
  8140. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8141. this._adapter.DeleteCommand.Connection = this.Connection;
  8142. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Client] WHERE (([ID] = @Original_ID) AND ([Фамилия] = @Original_Фамилия) AND ([Имя] = @Original_Имя) AND ([Отчество] = @Original_Отчество) AND ([Пол] = @Original_Пол) AND ([Телефон] = @Original_Телефон) AND ([Дата_рождения] = @Original_Дата_рождения) AND ([Email] = @Original_Email) AND ([Дата_регистрации] = @Original_Дата_регистрации))";
  8143. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8144. 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, "", "", ""));
  8145. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Фамилия", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8146. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Имя", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Имя", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8147. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Отчество", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Отчество", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8148. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Пол", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пол", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8149. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Телефон", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Телефон", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8150. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Дата_рождения", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_рождения", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8151. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Email", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8152. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Дата_регистрации", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_регистрации", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8153. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8154. this._adapter.InsertCommand.Connection = this.Connection;
  8155. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Client] ([ID], [Фамилия], [Имя], [Отчество], [Пол], [Телефон], [Дата_рождения], [Email], [Дата_регистрации]) VALUES (@ID, @Фамилия, @Имя, @Отчество, @Пол, @Телефон, @Дата_рождения, @Email, @Дата_регистрации);
  8156. SELECT ID, Фамилия, Имя, Отчество, Пол, Телефон, Дата_рождения, Email, Дата_регистрации FROM Client WHERE (ID = @ID)";
  8157. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8158. 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, "", "", ""));
  8159. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Фамилия", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8160. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Имя", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Имя", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8161. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Отчество", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Отчество", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8162. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Пол", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пол", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8163. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Телефон", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Телефон", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8164. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дата_рождения", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_рождения", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8165. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Email", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8166. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дата_регистрации", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_регистрации", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8167. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8168. this._adapter.UpdateCommand.Connection = this.Connection;
  8169. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Client] SET [ID] = @ID, [Фамилия] = @Фамилия, [Имя] = @Имя, [Отчество] = @Отчество, [Пол] = @Пол, [Телефон] = @Телефон, [Дата_рождения] = @Дата_рождения, [Email] = @Email, [Дата_регистрации] = @Дата_регистрации WHERE (([ID] = @Original_ID) AND ([Фамилия] = @Original_Фамилия) AND ([Имя] = @Original_Имя) AND ([Отчество] = @Original_Отчество) AND ([Пол] = @Original_Пол) AND ([Телефон] = @Original_Телефон) AND ([Дата_рождения] = @Original_Дата_рождения) AND ([Email] = @Original_Email) AND ([Дата_регистрации] = @Original_Дата_регистрации));
  8170. SELECT ID, Фамилия, Имя, Отчество, Пол, Телефон, Дата_рождения, Email, Дата_регистрации FROM Client WHERE (ID = @ID)";
  8171. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8172. 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, "", "", ""));
  8173. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Фамилия", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8174. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Имя", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Имя", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8175. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Отчество", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Отчество", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8176. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Пол", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пол", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8177. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Телефон", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Телефон", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8178. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дата_рождения", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_рождения", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8179. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Email", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8180. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дата_регистрации", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_регистрации", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8181. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8182. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Фамилия", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8183. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Имя", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Имя", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8184. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Отчество", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Отчество", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8185. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Пол", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пол", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8186. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Телефон", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Телефон", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8187. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Дата_рождения", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_рождения", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8188. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Email", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8189. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Дата_регистрации", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_регистрации", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8190. }
  8191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8192. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8193. private void InitConnection() {
  8194. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8195. this._connection.ConnectionString = global::BBrovki1Z.Properties.Settings.Default.BBrovkiZConnectionString;
  8196. }
  8197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8198. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8199. private void InitCommandCollection() {
  8200. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8201. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8202. this._commandCollection[0].Connection = this.Connection;
  8203. this._commandCollection[0].CommandText = "SELECT ID, Фамилия, Имя, Отчество, Пол, Телефон, Дата_рождения, Email, Дата_регис" +
  8204. "трации FROM dbo.Client";
  8205. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8206. }
  8207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8208. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8209. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8210. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8211. public virtual int Fill(BBrovkiZDataSet.ClientDataTable dataTable) {
  8212. this.Adapter.SelectCommand = this.CommandCollection[0];
  8213. if ((this.ClearBeforeFill == true)) {
  8214. dataTable.Clear();
  8215. }
  8216. int returnValue = this.Adapter.Fill(dataTable);
  8217. return returnValue;
  8218. }
  8219. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8220. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8221. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8222. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8223. public virtual BBrovkiZDataSet.ClientDataTable GetData() {
  8224. this.Adapter.SelectCommand = this.CommandCollection[0];
  8225. BBrovkiZDataSet.ClientDataTable dataTable = new BBrovkiZDataSet.ClientDataTable();
  8226. this.Adapter.Fill(dataTable);
  8227. return dataTable;
  8228. }
  8229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8230. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8231. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8232. public virtual int Update(BBrovkiZDataSet.ClientDataTable dataTable) {
  8233. return this.Adapter.Update(dataTable);
  8234. }
  8235. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8236. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8237. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8238. public virtual int Update(BBrovkiZDataSet dataSet) {
  8239. return this.Adapter.Update(dataSet, "Client");
  8240. }
  8241. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8242. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8243. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8244. public virtual int Update(global::System.Data.DataRow dataRow) {
  8245. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8246. dataRow});
  8247. }
  8248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8249. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8250. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8251. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8252. return this.Adapter.Update(dataRows);
  8253. }
  8254. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8255. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8256. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8257. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8258. public virtual int Delete(int Original_ID, string Original_Фамилия, string Original_Имя, string Original_Отчество, string Original_Пол, string Original_Телефон, System.DateTime Original_Дата_рождения, string Original_Email, System.DateTime Original_Дата_регистрации) {
  8259. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  8260. if ((Original_Фамилия == null)) {
  8261. throw new global::System.ArgumentNullException("Original_Фамилия");
  8262. }
  8263. else {
  8264. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Фамилия));
  8265. }
  8266. if ((Original_Имя == null)) {
  8267. throw new global::System.ArgumentNullException("Original_Имя");
  8268. }
  8269. else {
  8270. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Имя));
  8271. }
  8272. if ((Original_Отчество == null)) {
  8273. throw new global::System.ArgumentNullException("Original_Отчество");
  8274. }
  8275. else {
  8276. this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_Отчество));
  8277. }
  8278. if ((Original_Пол == null)) {
  8279. throw new global::System.ArgumentNullException("Original_Пол");
  8280. }
  8281. else {
  8282. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Пол));
  8283. }
  8284. if ((Original_Телефон == null)) {
  8285. throw new global::System.ArgumentNullException("Original_Телефон");
  8286. }
  8287. else {
  8288. this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_Телефон));
  8289. }
  8290. this.Adapter.DeleteCommand.Parameters[6].Value = ((System.DateTime)(Original_Дата_рождения));
  8291. if ((Original_Email == null)) {
  8292. throw new global::System.ArgumentNullException("Original_Email");
  8293. }
  8294. else {
  8295. this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_Email));
  8296. }
  8297. this.Adapter.DeleteCommand.Parameters[8].Value = ((System.DateTime)(Original_Дата_регистрации));
  8298. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8299. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8300. != global::System.Data.ConnectionState.Open)) {
  8301. this.Adapter.DeleteCommand.Connection.Open();
  8302. }
  8303. try {
  8304. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8305. return returnValue;
  8306. }
  8307. finally {
  8308. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8309. this.Adapter.DeleteCommand.Connection.Close();
  8310. }
  8311. }
  8312. }
  8313. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8314. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8315. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8316. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8317. public virtual int Insert(int ID, string Фамилия, string Имя, string Отчество, string Пол, string Телефон, System.DateTime Дата_рождения, string Email, System.DateTime Дата_регистрации) {
  8318. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ID));
  8319. if ((Фамилия == null)) {
  8320. throw new global::System.ArgumentNullException("Фамилия");
  8321. }
  8322. else {
  8323. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Фамилия));
  8324. }
  8325. if ((Имя == null)) {
  8326. throw new global::System.ArgumentNullException("Имя");
  8327. }
  8328. else {
  8329. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Имя));
  8330. }
  8331. if ((Отчество == null)) {
  8332. throw new global::System.ArgumentNullException("Отчество");
  8333. }
  8334. else {
  8335. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Отчество));
  8336. }
  8337. if ((Пол == null)) {
  8338. throw new global::System.ArgumentNullException("Пол");
  8339. }
  8340. else {
  8341. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Пол));
  8342. }
  8343. if ((Телефон == null)) {
  8344. throw new global::System.ArgumentNullException("Телефон");
  8345. }
  8346. else {
  8347. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Телефон));
  8348. }
  8349. this.Adapter.InsertCommand.Parameters[6].Value = ((System.DateTime)(Дата_рождения));
  8350. if ((Email == null)) {
  8351. throw new global::System.ArgumentNullException("Email");
  8352. }
  8353. else {
  8354. this.Adapter.InsertCommand.Parameters[7].Value = ((string)(Email));
  8355. }
  8356. this.Adapter.InsertCommand.Parameters[8].Value = ((System.DateTime)(Дата_регистрации));
  8357. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8358. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8359. != global::System.Data.ConnectionState.Open)) {
  8360. this.Adapter.InsertCommand.Connection.Open();
  8361. }
  8362. try {
  8363. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8364. return returnValue;
  8365. }
  8366. finally {
  8367. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8368. this.Adapter.InsertCommand.Connection.Close();
  8369. }
  8370. }
  8371. }
  8372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8374. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8375. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8376. public virtual int Update(
  8377. int ID,
  8378. string Фамилия,
  8379. string Имя,
  8380. string Отчество,
  8381. string Пол,
  8382. string Телефон,
  8383. System.DateTime Дата_рождения,
  8384. string Email,
  8385. System.DateTime Дата_регистрации,
  8386. int Original_ID,
  8387. string Original_Фамилия,
  8388. string Original_Имя,
  8389. string Original_Отчество,
  8390. string Original_Пол,
  8391. string Original_Телефон,
  8392. System.DateTime Original_Дата_рождения,
  8393. string Original_Email,
  8394. System.DateTime Original_Дата_регистрации) {
  8395. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ID));
  8396. if ((Фамилия == null)) {
  8397. throw new global::System.ArgumentNullException("Фамилия");
  8398. }
  8399. else {
  8400. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Фамилия));
  8401. }
  8402. if ((Имя == null)) {
  8403. throw new global::System.ArgumentNullException("Имя");
  8404. }
  8405. else {
  8406. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Имя));
  8407. }
  8408. if ((Отчество == null)) {
  8409. throw new global::System.ArgumentNullException("Отчество");
  8410. }
  8411. else {
  8412. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Отчество));
  8413. }
  8414. if ((Пол == null)) {
  8415. throw new global::System.ArgumentNullException("Пол");
  8416. }
  8417. else {
  8418. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Пол));
  8419. }
  8420. if ((Телефон == null)) {
  8421. throw new global::System.ArgumentNullException("Телефон");
  8422. }
  8423. else {
  8424. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Телефон));
  8425. }
  8426. this.Adapter.UpdateCommand.Parameters[6].Value = ((System.DateTime)(Дата_рождения));
  8427. if ((Email == null)) {
  8428. throw new global::System.ArgumentNullException("Email");
  8429. }
  8430. else {
  8431. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Email));
  8432. }
  8433. this.Adapter.UpdateCommand.Parameters[8].Value = ((System.DateTime)(Дата_регистрации));
  8434. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_ID));
  8435. if ((Original_Фамилия == null)) {
  8436. throw new global::System.ArgumentNullException("Original_Фамилия");
  8437. }
  8438. else {
  8439. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_Фамилия));
  8440. }
  8441. if ((Original_Имя == null)) {
  8442. throw new global::System.ArgumentNullException("Original_Имя");
  8443. }
  8444. else {
  8445. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_Имя));
  8446. }
  8447. if ((Original_Отчество == null)) {
  8448. throw new global::System.ArgumentNullException("Original_Отчество");
  8449. }
  8450. else {
  8451. this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_Отчество));
  8452. }
  8453. if ((Original_Пол == null)) {
  8454. throw new global::System.ArgumentNullException("Original_Пол");
  8455. }
  8456. else {
  8457. this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_Пол));
  8458. }
  8459. if ((Original_Телефон == null)) {
  8460. throw new global::System.ArgumentNullException("Original_Телефон");
  8461. }
  8462. else {
  8463. this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_Телефон));
  8464. }
  8465. this.Adapter.UpdateCommand.Parameters[15].Value = ((System.DateTime)(Original_Дата_рождения));
  8466. if ((Original_Email == null)) {
  8467. throw new global::System.ArgumentNullException("Original_Email");
  8468. }
  8469. else {
  8470. this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_Email));
  8471. }
  8472. this.Adapter.UpdateCommand.Parameters[17].Value = ((System.DateTime)(Original_Дата_регистрации));
  8473. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8474. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8475. != global::System.Data.ConnectionState.Open)) {
  8476. this.Adapter.UpdateCommand.Connection.Open();
  8477. }
  8478. try {
  8479. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8480. return returnValue;
  8481. }
  8482. finally {
  8483. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8484. this.Adapter.UpdateCommand.Connection.Close();
  8485. }
  8486. }
  8487. }
  8488. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8489. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8490. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8491. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8492. public virtual int Update(
  8493. string Фамилия,
  8494. string Имя,
  8495. string Отчество,
  8496. string Пол,
  8497. string Телефон,
  8498. System.DateTime Дата_рождения,
  8499. string Email,
  8500. System.DateTime Дата_регистрации,
  8501. int Original_ID,
  8502. string Original_Фамилия,
  8503. string Original_Имя,
  8504. string Original_Отчество,
  8505. string Original_Пол,
  8506. string Original_Телефон,
  8507. System.DateTime Original_Дата_рождения,
  8508. string Original_Email,
  8509. System.DateTime Original_Дата_регистрации) {
  8510. return this.Update(Original_ID, Фамилия, Имя, Отчество, Пол, Телефон, Дата_рождения, Email, Дата_регистрации, Original_ID, Original_Фамилия, Original_Имя, Original_Отчество, Original_Пол, Original_Телефон, Original_Дата_рождения, Original_Email, Original_Дата_регистрации);
  8511. }
  8512. }
  8513. /// <summary>
  8514. ///Represents the connection and commands used to retrieve and save data.
  8515. ///</summary>
  8516. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8517. [global::System.ComponentModel.ToolboxItem(true)]
  8518. [global::System.ComponentModel.DataObjectAttribute(true)]
  8519. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8520. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8521. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8522. public partial class ClientServiseTableAdapter : global::System.ComponentModel.Component {
  8523. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8524. private global::System.Data.SqlClient.SqlConnection _connection;
  8525. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8526. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8527. private bool _clearBeforeFill;
  8528. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8529. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8530. public ClientServiseTableAdapter() {
  8531. this.ClearBeforeFill = true;
  8532. }
  8533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8535. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8536. get {
  8537. if ((this._adapter == null)) {
  8538. this.InitAdapter();
  8539. }
  8540. return this._adapter;
  8541. }
  8542. }
  8543. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8544. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8545. internal global::System.Data.SqlClient.SqlConnection Connection {
  8546. get {
  8547. if ((this._connection == null)) {
  8548. this.InitConnection();
  8549. }
  8550. return this._connection;
  8551. }
  8552. set {
  8553. this._connection = value;
  8554. if ((this.Adapter.InsertCommand != null)) {
  8555. this.Adapter.InsertCommand.Connection = value;
  8556. }
  8557. if ((this.Adapter.DeleteCommand != null)) {
  8558. this.Adapter.DeleteCommand.Connection = value;
  8559. }
  8560. if ((this.Adapter.UpdateCommand != null)) {
  8561. this.Adapter.UpdateCommand.Connection = value;
  8562. }
  8563. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8564. if ((this.CommandCollection[i] != null)) {
  8565. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8566. }
  8567. }
  8568. }
  8569. }
  8570. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8571. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8572. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8573. get {
  8574. return this._transaction;
  8575. }
  8576. set {
  8577. this._transaction = value;
  8578. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8579. this.CommandCollection[i].Transaction = this._transaction;
  8580. }
  8581. if (((this.Adapter != null)
  8582. && (this.Adapter.DeleteCommand != null))) {
  8583. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8584. }
  8585. if (((this.Adapter != null)
  8586. && (this.Adapter.InsertCommand != null))) {
  8587. this.Adapter.InsertCommand.Transaction = this._transaction;
  8588. }
  8589. if (((this.Adapter != null)
  8590. && (this.Adapter.UpdateCommand != null))) {
  8591. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8592. }
  8593. }
  8594. }
  8595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8596. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8597. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8598. get {
  8599. if ((this._commandCollection == null)) {
  8600. this.InitCommandCollection();
  8601. }
  8602. return this._commandCollection;
  8603. }
  8604. }
  8605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8607. public bool ClearBeforeFill {
  8608. get {
  8609. return this._clearBeforeFill;
  8610. }
  8611. set {
  8612. this._clearBeforeFill = value;
  8613. }
  8614. }
  8615. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8616. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8617. private void InitAdapter() {
  8618. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8619. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8620. tableMapping.SourceTable = "Table";
  8621. tableMapping.DataSetTable = "ClientServise";
  8622. tableMapping.ColumnMappings.Add("ID", "ID");
  8623. tableMapping.ColumnMappings.Add("Услуга", "Услуга");
  8624. tableMapping.ColumnMappings.Add("Начало_оказания_услуги", "Начало_оказания_услуги");
  8625. tableMapping.ColumnMappings.Add("Клиент", "Клиент");
  8626. this._adapter.TableMappings.Add(tableMapping);
  8627. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8628. this._adapter.DeleteCommand.Connection = this.Connection;
  8629. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ClientServise] WHERE (([ID] = @Original_ID) AND ([Услуга] = @O" +
  8630. "riginal_Услуга) AND ([Начало_оказания_услуги] = @Original_Начало_оказания_услуги" +
  8631. ") AND ([Клиент] = @Original_Клиент))";
  8632. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8633. 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, "", "", ""));
  8634. 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, "", "", ""));
  8635. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Начало_оказания_услуги", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Начало_оказания_услуги", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8636. 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, "", "", ""));
  8637. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8638. this._adapter.InsertCommand.Connection = this.Connection;
  8639. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ClientServise] ([ID], [Услуга], [Начало_оказания_услуги], [Кли" +
  8640. "ент]) VALUES (@ID, @Услуга, @Начало_оказания_услуги, @Клиент);\r\nSELECT ID, Услуг" +
  8641. "а, Начало_оказания_услуги, Клиент FROM ClientServise WHERE (ID = @ID)";
  8642. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8643. 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, "", "", ""));
  8644. 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, "", "", ""));
  8645. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Начало_оказания_услуги", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Начало_оказания_услуги", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8646. 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, "", "", ""));
  8647. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8648. this._adapter.UpdateCommand.Connection = this.Connection;
  8649. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ClientServise] SET [ID] = @ID, [Услуга] = @Услуга, [Начало_оказания_услуги] = @Начало_оказания_услуги, [Клиент] = @Клиент WHERE (([ID] = @Original_ID) AND ([Услуга] = @Original_Услуга) AND ([Начало_оказания_услуги] = @Original_Начало_оказания_услуги) AND ([Клиент] = @Original_Клиент));
  8650. SELECT ID, Услуга, Начало_оказания_услуги, Клиент FROM ClientServise WHERE (ID = @ID)";
  8651. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8652. 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, "", "", ""));
  8653. 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, "", "", ""));
  8654. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Начало_оказания_услуги", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Начало_оказания_услуги", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8655. 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, "", "", ""));
  8656. 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, "", "", ""));
  8657. 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, "", "", ""));
  8658. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Начало_оказания_услуги", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Начало_оказания_услуги", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8659. 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, "", "", ""));
  8660. }
  8661. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8662. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8663. private void InitConnection() {
  8664. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8665. this._connection.ConnectionString = global::BBrovki1Z.Properties.Settings.Default.BBrovkiZConnectionString;
  8666. }
  8667. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8668. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8669. private void InitCommandCollection() {
  8670. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8671. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8672. this._commandCollection[0].Connection = this.Connection;
  8673. this._commandCollection[0].CommandText = "SELECT ID, Услуга, Начало_оказания_услуги, Клиент FROM dbo.ClientServise";
  8674. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8675. }
  8676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8677. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8678. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8679. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8680. public virtual int Fill(BBrovkiZDataSet.ClientServiseDataTable dataTable) {
  8681. this.Adapter.SelectCommand = this.CommandCollection[0];
  8682. if ((this.ClearBeforeFill == true)) {
  8683. dataTable.Clear();
  8684. }
  8685. int returnValue = this.Adapter.Fill(dataTable);
  8686. return returnValue;
  8687. }
  8688. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8689. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8690. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8691. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8692. public virtual BBrovkiZDataSet.ClientServiseDataTable GetData() {
  8693. this.Adapter.SelectCommand = this.CommandCollection[0];
  8694. BBrovkiZDataSet.ClientServiseDataTable dataTable = new BBrovkiZDataSet.ClientServiseDataTable();
  8695. this.Adapter.Fill(dataTable);
  8696. return dataTable;
  8697. }
  8698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8699. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8700. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8701. public virtual int Update(BBrovkiZDataSet.ClientServiseDataTable dataTable) {
  8702. return this.Adapter.Update(dataTable);
  8703. }
  8704. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8705. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8706. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8707. public virtual int Update(BBrovkiZDataSet dataSet) {
  8708. return this.Adapter.Update(dataSet, "ClientServise");
  8709. }
  8710. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8711. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8712. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8713. public virtual int Update(global::System.Data.DataRow dataRow) {
  8714. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8715. dataRow});
  8716. }
  8717. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8718. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8719. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8720. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8721. return this.Adapter.Update(dataRows);
  8722. }
  8723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8724. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8725. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8726. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8727. public virtual int Delete(int Original_ID, string Original_Услуга, System.DateTime Original_Начало_оказания_услуги, string Original_Клиент) {
  8728. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  8729. if ((Original_Услуга == null)) {
  8730. throw new global::System.ArgumentNullException("Original_Услуга");
  8731. }
  8732. else {
  8733. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Услуга));
  8734. }
  8735. this.Adapter.DeleteCommand.Parameters[2].Value = ((System.DateTime)(Original_Начало_оказания_услуги));
  8736. if ((Original_Клиент == null)) {
  8737. throw new global::System.ArgumentNullException("Original_Клиент");
  8738. }
  8739. else {
  8740. this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_Клиент));
  8741. }
  8742. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8743. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8744. != global::System.Data.ConnectionState.Open)) {
  8745. this.Adapter.DeleteCommand.Connection.Open();
  8746. }
  8747. try {
  8748. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8749. return returnValue;
  8750. }
  8751. finally {
  8752. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8753. this.Adapter.DeleteCommand.Connection.Close();
  8754. }
  8755. }
  8756. }
  8757. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8758. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8759. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8760. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8761. public virtual int Insert(int ID, string Услуга, System.DateTime Начало_оказания_услуги, string Клиент) {
  8762. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ID));
  8763. if ((Услуга == null)) {
  8764. throw new global::System.ArgumentNullException("Услуга");
  8765. }
  8766. else {
  8767. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Услуга));
  8768. }
  8769. this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(Начало_оказания_услуги));
  8770. if ((Клиент == null)) {
  8771. throw new global::System.ArgumentNullException("Клиент");
  8772. }
  8773. else {
  8774. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Клиент));
  8775. }
  8776. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8777. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8778. != global::System.Data.ConnectionState.Open)) {
  8779. this.Adapter.InsertCommand.Connection.Open();
  8780. }
  8781. try {
  8782. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8783. return returnValue;
  8784. }
  8785. finally {
  8786. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8787. this.Adapter.InsertCommand.Connection.Close();
  8788. }
  8789. }
  8790. }
  8791. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8792. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8793. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8794. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8795. public virtual int Update(int ID, string Услуга, System.DateTime Начало_оказания_услуги, string Клиент, int Original_ID, string Original_Услуга, System.DateTime Original_Начало_оказания_услуги, string Original_Клиент) {
  8796. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ID));
  8797. if ((Услуга == null)) {
  8798. throw new global::System.ArgumentNullException("Услуга");
  8799. }
  8800. else {
  8801. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Услуга));
  8802. }
  8803. this.Adapter.UpdateCommand.Parameters[2].Value = ((System.DateTime)(Начало_оказания_услуги));
  8804. if ((Клиент == null)) {
  8805. throw new global::System.ArgumentNullException("Клиент");
  8806. }
  8807. else {
  8808. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Клиент));
  8809. }
  8810. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_ID));
  8811. if ((Original_Услуга == null)) {
  8812. throw new global::System.ArgumentNullException("Original_Услуга");
  8813. }
  8814. else {
  8815. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Услуга));
  8816. }
  8817. this.Adapter.UpdateCommand.Parameters[6].Value = ((System.DateTime)(Original_Начало_оказания_услуги));
  8818. if ((Original_Клиент == null)) {
  8819. throw new global::System.ArgumentNullException("Original_Клиент");
  8820. }
  8821. else {
  8822. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Клиент));
  8823. }
  8824. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8825. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8826. != global::System.Data.ConnectionState.Open)) {
  8827. this.Adapter.UpdateCommand.Connection.Open();
  8828. }
  8829. try {
  8830. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8831. return returnValue;
  8832. }
  8833. finally {
  8834. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8835. this.Adapter.UpdateCommand.Connection.Close();
  8836. }
  8837. }
  8838. }
  8839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8841. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8842. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8843. public virtual int Update(string Услуга, System.DateTime Начало_оказания_услуги, string Клиент, int Original_ID, string Original_Услуга, System.DateTime Original_Начало_оказания_услуги, string Original_Клиент) {
  8844. return this.Update(Original_ID, Услуга, Начало_оказания_услуги, Клиент, Original_ID, Original_Услуга, Original_Начало_оказания_услуги, Original_Клиент);
  8845. }
  8846. }
  8847. /// <summary>
  8848. ///Represents the connection and commands used to retrieve and save data.
  8849. ///</summary>
  8850. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8851. [global::System.ComponentModel.ToolboxItem(true)]
  8852. [global::System.ComponentModel.DataObjectAttribute(true)]
  8853. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8854. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8855. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8856. public partial class csTableAdapter : global::System.ComponentModel.Component {
  8857. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8858. private global::System.Data.SqlClient.SqlConnection _connection;
  8859. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8860. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8861. private bool _clearBeforeFill;
  8862. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8863. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8864. public csTableAdapter() {
  8865. this.ClearBeforeFill = true;
  8866. }
  8867. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8868. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8869. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8870. get {
  8871. if ((this._adapter == null)) {
  8872. this.InitAdapter();
  8873. }
  8874. return this._adapter;
  8875. }
  8876. }
  8877. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8878. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8879. internal global::System.Data.SqlClient.SqlConnection Connection {
  8880. get {
  8881. if ((this._connection == null)) {
  8882. this.InitConnection();
  8883. }
  8884. return this._connection;
  8885. }
  8886. set {
  8887. this._connection = value;
  8888. if ((this.Adapter.InsertCommand != null)) {
  8889. this.Adapter.InsertCommand.Connection = value;
  8890. }
  8891. if ((this.Adapter.DeleteCommand != null)) {
  8892. this.Adapter.DeleteCommand.Connection = value;
  8893. }
  8894. if ((this.Adapter.UpdateCommand != null)) {
  8895. this.Adapter.UpdateCommand.Connection = value;
  8896. }
  8897. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8898. if ((this.CommandCollection[i] != null)) {
  8899. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8900. }
  8901. }
  8902. }
  8903. }
  8904. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8905. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8906. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8907. get {
  8908. return this._transaction;
  8909. }
  8910. set {
  8911. this._transaction = value;
  8912. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8913. this.CommandCollection[i].Transaction = this._transaction;
  8914. }
  8915. if (((this.Adapter != null)
  8916. && (this.Adapter.DeleteCommand != null))) {
  8917. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8918. }
  8919. if (((this.Adapter != null)
  8920. && (this.Adapter.InsertCommand != null))) {
  8921. this.Adapter.InsertCommand.Transaction = this._transaction;
  8922. }
  8923. if (((this.Adapter != null)
  8924. && (this.Adapter.UpdateCommand != null))) {
  8925. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8926. }
  8927. }
  8928. }
  8929. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8930. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8931. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8932. get {
  8933. if ((this._commandCollection == null)) {
  8934. this.InitCommandCollection();
  8935. }
  8936. return this._commandCollection;
  8937. }
  8938. }
  8939. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8940. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8941. public bool ClearBeforeFill {
  8942. get {
  8943. return this._clearBeforeFill;
  8944. }
  8945. set {
  8946. this._clearBeforeFill = value;
  8947. }
  8948. }
  8949. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8950. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8951. private void InitAdapter() {
  8952. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8953. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8954. tableMapping.SourceTable = "Table";
  8955. tableMapping.DataSetTable = "cs";
  8956. tableMapping.ColumnMappings.Add("ID", "ID");
  8957. tableMapping.ColumnMappings.Add("ClientID", "ClientID");
  8958. tableMapping.ColumnMappings.Add("ServiceID", "ServiceID");
  8959. tableMapping.ColumnMappings.Add("StartTime", "StartTime");
  8960. tableMapping.ColumnMappings.Add("Comment", "Comment");
  8961. this._adapter.TableMappings.Add(tableMapping);
  8962. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8963. this._adapter.DeleteCommand.Connection = this.Connection;
  8964. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[cs] WHERE (([ID] = @Original_ID) AND ([ClientID] = @Original_C" +
  8965. "lientID) AND ([ServiceID] = @Original_ServiceID) AND ([StartTime] = @Original_St" +
  8966. "artTime))";
  8967. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8968. 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, "", "", ""));
  8969. 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, "", "", ""));
  8970. 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, "", "", ""));
  8971. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_StartTime", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StartTime", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8972. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8973. this._adapter.InsertCommand.Connection = this.Connection;
  8974. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[cs] ([ClientID], [ServiceID], [StartTime], [Comment]) VALUES (" +
  8975. "@ClientID, @ServiceID, @StartTime, @Comment);\r\nSELECT ID, ClientID, ServiceID, S" +
  8976. "tartTime, Comment FROM cs WHERE (ID = SCOPE_IDENTITY())";
  8977. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8978. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ClientID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ClientID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8979. 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, "", "", ""));
  8980. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StartTime", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StartTime", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8981. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Comment", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Comment", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8982. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8983. this._adapter.UpdateCommand.Connection = this.Connection;
  8984. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[cs] SET [ClientID] = @ClientID, [ServiceID] = @ServiceID, [StartTime] = @StartTime, [Comment] = @Comment WHERE (([ID] = @Original_ID) AND ([ClientID] = @Original_ClientID) AND ([ServiceID] = @Original_ServiceID) AND ([StartTime] = @Original_StartTime));
  8985. SELECT ID, ClientID, ServiceID, StartTime, Comment FROM cs WHERE (ID = @ID)";
  8986. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8987. 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, "", "", ""));
  8988. 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, "", "", ""));
  8989. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StartTime", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StartTime", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8990. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Comment", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Comment", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8991. 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, "", "", ""));
  8992. 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, "", "", ""));
  8993. 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, "", "", ""));
  8994. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_StartTime", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StartTime", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8995. 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, "", "", ""));
  8996. }
  8997. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8998. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8999. private void InitConnection() {
  9000. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9001. this._connection.ConnectionString = global::BBrovki1Z.Properties.Settings.Default.BBrovkiZConnectionString;
  9002. }
  9003. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9004. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9005. private void InitCommandCollection() {
  9006. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9007. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9008. this._commandCollection[0].Connection = this.Connection;
  9009. this._commandCollection[0].CommandText = "SELECT ID, ClientID, ServiceID, StartTime, Comment FROM dbo.cs";
  9010. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9011. }
  9012. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9013. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9014. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9015. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9016. public virtual int Fill(BBrovkiZDataSet.csDataTable dataTable) {
  9017. this.Adapter.SelectCommand = this.CommandCollection[0];
  9018. if ((this.ClearBeforeFill == true)) {
  9019. dataTable.Clear();
  9020. }
  9021. int returnValue = this.Adapter.Fill(dataTable);
  9022. return returnValue;
  9023. }
  9024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9025. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9026. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9027. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9028. public virtual BBrovkiZDataSet.csDataTable GetData() {
  9029. this.Adapter.SelectCommand = this.CommandCollection[0];
  9030. BBrovkiZDataSet.csDataTable dataTable = new BBrovkiZDataSet.csDataTable();
  9031. this.Adapter.Fill(dataTable);
  9032. return dataTable;
  9033. }
  9034. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9035. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9036. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9037. public virtual int Update(BBrovkiZDataSet.csDataTable dataTable) {
  9038. return this.Adapter.Update(dataTable);
  9039. }
  9040. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9041. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9042. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9043. public virtual int Update(BBrovkiZDataSet dataSet) {
  9044. return this.Adapter.Update(dataSet, "cs");
  9045. }
  9046. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9047. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9048. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9049. public virtual int Update(global::System.Data.DataRow dataRow) {
  9050. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9051. dataRow});
  9052. }
  9053. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9054. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9055. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9056. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9057. return this.Adapter.Update(dataRows);
  9058. }
  9059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9060. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9061. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9062. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9063. public virtual int Delete(int Original_ID, int Original_ClientID, int Original_ServiceID, System.DateTime Original_StartTime) {
  9064. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  9065. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ClientID));
  9066. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_ServiceID));
  9067. this.Adapter.DeleteCommand.Parameters[3].Value = ((System.DateTime)(Original_StartTime));
  9068. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9069. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9070. != global::System.Data.ConnectionState.Open)) {
  9071. this.Adapter.DeleteCommand.Connection.Open();
  9072. }
  9073. try {
  9074. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9075. return returnValue;
  9076. }
  9077. finally {
  9078. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9079. this.Adapter.DeleteCommand.Connection.Close();
  9080. }
  9081. }
  9082. }
  9083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9085. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9086. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9087. public virtual int Insert(int ClientID, int ServiceID, System.DateTime StartTime, string Comment) {
  9088. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ClientID));
  9089. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(ServiceID));
  9090. this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(StartTime));
  9091. if ((Comment == null)) {
  9092. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  9093. }
  9094. else {
  9095. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Comment));
  9096. }
  9097. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9098. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9099. != global::System.Data.ConnectionState.Open)) {
  9100. this.Adapter.InsertCommand.Connection.Open();
  9101. }
  9102. try {
  9103. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9104. return returnValue;
  9105. }
  9106. finally {
  9107. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9108. this.Adapter.InsertCommand.Connection.Close();
  9109. }
  9110. }
  9111. }
  9112. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9113. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9114. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9115. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9116. public virtual int Update(int ClientID, int ServiceID, System.DateTime StartTime, string Comment, int Original_ID, int Original_ClientID, int Original_ServiceID, System.DateTime Original_StartTime, int ID) {
  9117. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ClientID));
  9118. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(ServiceID));
  9119. this.Adapter.UpdateCommand.Parameters[2].Value = ((System.DateTime)(StartTime));
  9120. if ((Comment == null)) {
  9121. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  9122. }
  9123. else {
  9124. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Comment));
  9125. }
  9126. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_ID));
  9127. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_ClientID));
  9128. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ServiceID));
  9129. this.Adapter.UpdateCommand.Parameters[7].Value = ((System.DateTime)(Original_StartTime));
  9130. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(ID));
  9131. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9132. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9133. != global::System.Data.ConnectionState.Open)) {
  9134. this.Adapter.UpdateCommand.Connection.Open();
  9135. }
  9136. try {
  9137. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9138. return returnValue;
  9139. }
  9140. finally {
  9141. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9142. this.Adapter.UpdateCommand.Connection.Close();
  9143. }
  9144. }
  9145. }
  9146. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9147. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9148. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9149. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9150. public virtual int Update(int ClientID, int ServiceID, System.DateTime StartTime, string Comment, int Original_ID, int Original_ClientID, int Original_ServiceID, System.DateTime Original_StartTime) {
  9151. return this.Update(ClientID, ServiceID, StartTime, Comment, Original_ID, Original_ClientID, Original_ServiceID, Original_StartTime, Original_ID);
  9152. }
  9153. }
  9154. /// <summary>
  9155. ///Represents the connection and commands used to retrieve and save data.
  9156. ///</summary>
  9157. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9158. [global::System.ComponentModel.ToolboxItem(true)]
  9159. [global::System.ComponentModel.DataObjectAttribute(true)]
  9160. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9161. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9162. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9163. public partial class DocumentByServiceTableAdapter : global::System.ComponentModel.Component {
  9164. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9165. private global::System.Data.SqlClient.SqlConnection _connection;
  9166. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9167. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9168. private bool _clearBeforeFill;
  9169. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9170. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9171. public DocumentByServiceTableAdapter() {
  9172. this.ClearBeforeFill = true;
  9173. }
  9174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9175. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9176. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9177. get {
  9178. if ((this._adapter == null)) {
  9179. this.InitAdapter();
  9180. }
  9181. return this._adapter;
  9182. }
  9183. }
  9184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9186. internal global::System.Data.SqlClient.SqlConnection Connection {
  9187. get {
  9188. if ((this._connection == null)) {
  9189. this.InitConnection();
  9190. }
  9191. return this._connection;
  9192. }
  9193. set {
  9194. this._connection = value;
  9195. if ((this.Adapter.InsertCommand != null)) {
  9196. this.Adapter.InsertCommand.Connection = value;
  9197. }
  9198. if ((this.Adapter.DeleteCommand != null)) {
  9199. this.Adapter.DeleteCommand.Connection = value;
  9200. }
  9201. if ((this.Adapter.UpdateCommand != null)) {
  9202. this.Adapter.UpdateCommand.Connection = value;
  9203. }
  9204. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9205. if ((this.CommandCollection[i] != null)) {
  9206. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9207. }
  9208. }
  9209. }
  9210. }
  9211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9213. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9214. get {
  9215. return this._transaction;
  9216. }
  9217. set {
  9218. this._transaction = value;
  9219. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9220. this.CommandCollection[i].Transaction = this._transaction;
  9221. }
  9222. if (((this.Adapter != null)
  9223. && (this.Adapter.DeleteCommand != null))) {
  9224. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9225. }
  9226. if (((this.Adapter != null)
  9227. && (this.Adapter.InsertCommand != null))) {
  9228. this.Adapter.InsertCommand.Transaction = this._transaction;
  9229. }
  9230. if (((this.Adapter != null)
  9231. && (this.Adapter.UpdateCommand != null))) {
  9232. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9233. }
  9234. }
  9235. }
  9236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9237. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9238. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9239. get {
  9240. if ((this._commandCollection == null)) {
  9241. this.InitCommandCollection();
  9242. }
  9243. return this._commandCollection;
  9244. }
  9245. }
  9246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9247. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9248. public bool ClearBeforeFill {
  9249. get {
  9250. return this._clearBeforeFill;
  9251. }
  9252. set {
  9253. this._clearBeforeFill = value;
  9254. }
  9255. }
  9256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9258. private void InitAdapter() {
  9259. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9260. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9261. tableMapping.SourceTable = "Table";
  9262. tableMapping.DataSetTable = "DocumentByService";
  9263. tableMapping.ColumnMappings.Add("ID", "ID");
  9264. tableMapping.ColumnMappings.Add("ClientServiceID", "ClientServiceID");
  9265. tableMapping.ColumnMappings.Add("DocumentPath", "DocumentPath");
  9266. this._adapter.TableMappings.Add(tableMapping);
  9267. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9268. this._adapter.DeleteCommand.Connection = this.Connection;
  9269. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[DocumentByService] WHERE (([ID] = @Original_ID) AND ([ClientSe" +
  9270. "rviceID] = @Original_ClientServiceID) AND ([DocumentPath] = @Original_DocumentPa" +
  9271. "th))";
  9272. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9273. 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, "", "", ""));
  9274. 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, "", "", ""));
  9275. 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, "", "", ""));
  9276. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9277. this._adapter.InsertCommand.Connection = this.Connection;
  9278. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[DocumentByService] ([ClientServiceID], [DocumentPath]) VALUES " +
  9279. "(@ClientServiceID, @DocumentPath);\r\nSELECT ID, ClientServiceID, DocumentPath FRO" +
  9280. "M DocumentByService WHERE (ID = SCOPE_IDENTITY())";
  9281. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9282. 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, "", "", ""));
  9283. 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, "", "", ""));
  9284. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9285. this._adapter.UpdateCommand.Connection = this.Connection;
  9286. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[DocumentByService] SET [ClientServiceID] = @ClientServiceID, [DocumentPath] = @DocumentPath WHERE (([ID] = @Original_ID) AND ([ClientServiceID] = @Original_ClientServiceID) AND ([DocumentPath] = @Original_DocumentPath));
  9287. SELECT ID, ClientServiceID, DocumentPath FROM DocumentByService WHERE (ID = @ID)";
  9288. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9289. 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, "", "", ""));
  9290. 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, "", "", ""));
  9291. 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, "", "", ""));
  9292. 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, "", "", ""));
  9293. 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, "", "", ""));
  9294. 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, "", "", ""));
  9295. }
  9296. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9297. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9298. private void InitConnection() {
  9299. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9300. this._connection.ConnectionString = global::BBrovki1Z.Properties.Settings.Default.BBrovkiZConnectionString;
  9301. }
  9302. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9303. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9304. private void InitCommandCollection() {
  9305. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9306. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9307. this._commandCollection[0].Connection = this.Connection;
  9308. this._commandCollection[0].CommandText = "SELECT ID, ClientServiceID, DocumentPath FROM dbo.DocumentByService";
  9309. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9310. }
  9311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9312. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9313. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9314. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9315. public virtual int Fill(BBrovkiZDataSet.DocumentByServiceDataTable dataTable) {
  9316. this.Adapter.SelectCommand = this.CommandCollection[0];
  9317. if ((this.ClearBeforeFill == true)) {
  9318. dataTable.Clear();
  9319. }
  9320. int returnValue = this.Adapter.Fill(dataTable);
  9321. return returnValue;
  9322. }
  9323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9324. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9325. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9326. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9327. public virtual BBrovkiZDataSet.DocumentByServiceDataTable GetData() {
  9328. this.Adapter.SelectCommand = this.CommandCollection[0];
  9329. BBrovkiZDataSet.DocumentByServiceDataTable dataTable = new BBrovkiZDataSet.DocumentByServiceDataTable();
  9330. this.Adapter.Fill(dataTable);
  9331. return dataTable;
  9332. }
  9333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9334. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9335. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9336. public virtual int Update(BBrovkiZDataSet.DocumentByServiceDataTable dataTable) {
  9337. return this.Adapter.Update(dataTable);
  9338. }
  9339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9341. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9342. public virtual int Update(BBrovkiZDataSet dataSet) {
  9343. return this.Adapter.Update(dataSet, "DocumentByService");
  9344. }
  9345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9346. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9347. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9348. public virtual int Update(global::System.Data.DataRow dataRow) {
  9349. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9350. dataRow});
  9351. }
  9352. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9353. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9354. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9355. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9356. return this.Adapter.Update(dataRows);
  9357. }
  9358. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9359. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9360. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9361. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9362. public virtual int Delete(int Original_ID, int Original_ClientServiceID, string Original_DocumentPath) {
  9363. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  9364. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ClientServiceID));
  9365. if ((Original_DocumentPath == null)) {
  9366. throw new global::System.ArgumentNullException("Original_DocumentPath");
  9367. }
  9368. else {
  9369. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_DocumentPath));
  9370. }
  9371. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9372. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9373. != global::System.Data.ConnectionState.Open)) {
  9374. this.Adapter.DeleteCommand.Connection.Open();
  9375. }
  9376. try {
  9377. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9378. return returnValue;
  9379. }
  9380. finally {
  9381. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9382. this.Adapter.DeleteCommand.Connection.Close();
  9383. }
  9384. }
  9385. }
  9386. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9387. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9388. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9389. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9390. public virtual int Insert(int ClientServiceID, string DocumentPath) {
  9391. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ClientServiceID));
  9392. if ((DocumentPath == null)) {
  9393. throw new global::System.ArgumentNullException("DocumentPath");
  9394. }
  9395. else {
  9396. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(DocumentPath));
  9397. }
  9398. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9399. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9400. != global::System.Data.ConnectionState.Open)) {
  9401. this.Adapter.InsertCommand.Connection.Open();
  9402. }
  9403. try {
  9404. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9405. return returnValue;
  9406. }
  9407. finally {
  9408. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9409. this.Adapter.InsertCommand.Connection.Close();
  9410. }
  9411. }
  9412. }
  9413. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9414. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9415. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9416. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9417. public virtual int Update(int ClientServiceID, string DocumentPath, int Original_ID, int Original_ClientServiceID, string Original_DocumentPath, int ID) {
  9418. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ClientServiceID));
  9419. if ((DocumentPath == null)) {
  9420. throw new global::System.ArgumentNullException("DocumentPath");
  9421. }
  9422. else {
  9423. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(DocumentPath));
  9424. }
  9425. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  9426. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ClientServiceID));
  9427. if ((Original_DocumentPath == null)) {
  9428. throw new global::System.ArgumentNullException("Original_DocumentPath");
  9429. }
  9430. else {
  9431. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_DocumentPath));
  9432. }
  9433. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID));
  9434. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9435. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9436. != global::System.Data.ConnectionState.Open)) {
  9437. this.Adapter.UpdateCommand.Connection.Open();
  9438. }
  9439. try {
  9440. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9441. return returnValue;
  9442. }
  9443. finally {
  9444. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9445. this.Adapter.UpdateCommand.Connection.Close();
  9446. }
  9447. }
  9448. }
  9449. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9450. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9451. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9452. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9453. public virtual int Update(int ClientServiceID, string DocumentPath, int Original_ID, int Original_ClientServiceID, string Original_DocumentPath) {
  9454. return this.Update(ClientServiceID, DocumentPath, Original_ID, Original_ClientServiceID, Original_DocumentPath, Original_ID);
  9455. }
  9456. }
  9457. /// <summary>
  9458. ///Represents the connection and commands used to retrieve and save data.
  9459. ///</summary>
  9460. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9461. [global::System.ComponentModel.ToolboxItem(true)]
  9462. [global::System.ComponentModel.DataObjectAttribute(true)]
  9463. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9464. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9465. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9466. public partial class GenderTableAdapter : global::System.ComponentModel.Component {
  9467. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9468. private global::System.Data.SqlClient.SqlConnection _connection;
  9469. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9470. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9471. private bool _clearBeforeFill;
  9472. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9474. public GenderTableAdapter() {
  9475. this.ClearBeforeFill = true;
  9476. }
  9477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9479. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9480. get {
  9481. if ((this._adapter == null)) {
  9482. this.InitAdapter();
  9483. }
  9484. return this._adapter;
  9485. }
  9486. }
  9487. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9488. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9489. internal global::System.Data.SqlClient.SqlConnection Connection {
  9490. get {
  9491. if ((this._connection == null)) {
  9492. this.InitConnection();
  9493. }
  9494. return this._connection;
  9495. }
  9496. set {
  9497. this._connection = value;
  9498. if ((this.Adapter.InsertCommand != null)) {
  9499. this.Adapter.InsertCommand.Connection = value;
  9500. }
  9501. if ((this.Adapter.DeleteCommand != null)) {
  9502. this.Adapter.DeleteCommand.Connection = value;
  9503. }
  9504. if ((this.Adapter.UpdateCommand != null)) {
  9505. this.Adapter.UpdateCommand.Connection = value;
  9506. }
  9507. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9508. if ((this.CommandCollection[i] != null)) {
  9509. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9510. }
  9511. }
  9512. }
  9513. }
  9514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9515. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9516. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9517. get {
  9518. return this._transaction;
  9519. }
  9520. set {
  9521. this._transaction = value;
  9522. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9523. this.CommandCollection[i].Transaction = this._transaction;
  9524. }
  9525. if (((this.Adapter != null)
  9526. && (this.Adapter.DeleteCommand != null))) {
  9527. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9528. }
  9529. if (((this.Adapter != null)
  9530. && (this.Adapter.InsertCommand != null))) {
  9531. this.Adapter.InsertCommand.Transaction = this._transaction;
  9532. }
  9533. if (((this.Adapter != null)
  9534. && (this.Adapter.UpdateCommand != null))) {
  9535. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9536. }
  9537. }
  9538. }
  9539. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9540. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9541. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9542. get {
  9543. if ((this._commandCollection == null)) {
  9544. this.InitCommandCollection();
  9545. }
  9546. return this._commandCollection;
  9547. }
  9548. }
  9549. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9550. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9551. public bool ClearBeforeFill {
  9552. get {
  9553. return this._clearBeforeFill;
  9554. }
  9555. set {
  9556. this._clearBeforeFill = value;
  9557. }
  9558. }
  9559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9561. private void InitAdapter() {
  9562. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9563. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9564. tableMapping.SourceTable = "Table";
  9565. tableMapping.DataSetTable = "Gender";
  9566. tableMapping.ColumnMappings.Add("Code", "Code");
  9567. tableMapping.ColumnMappings.Add("Name", "Name");
  9568. this._adapter.TableMappings.Add(tableMapping);
  9569. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9570. this._adapter.DeleteCommand.Connection = this.Connection;
  9571. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Gender] WHERE (([Code] = @Original_Code) AND ((@IsNull_Name = " +
  9572. "1 AND [Name] IS NULL) OR ([Name] = @Original_Name)))";
  9573. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9574. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Code", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9575. 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, "", "", ""));
  9576. 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, "", "", ""));
  9577. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9578. this._adapter.InsertCommand.Connection = this.Connection;
  9579. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Gender] ([Code], [Name]) VALUES (@Code, @Name);\r\nSELECT Code, " +
  9580. "Name FROM Gender WHERE (Code = @Code)";
  9581. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9582. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Code", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9583. 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, "", "", ""));
  9584. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9585. this._adapter.UpdateCommand.Connection = this.Connection;
  9586. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Gender] SET [Code] = @Code, [Name] = @Name WHERE (([Code] = @Origin" +
  9587. "al_Code) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)" +
  9588. "));\r\nSELECT Code, Name FROM Gender WHERE (Code = @Code)";
  9589. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9590. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Code", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9591. 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, "", "", ""));
  9592. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Code", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9593. 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, "", "", ""));
  9594. 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, "", "", ""));
  9595. }
  9596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9597. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9598. private void InitConnection() {
  9599. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9600. this._connection.ConnectionString = global::BBrovki1Z.Properties.Settings.Default.BBrovkiZConnectionString;
  9601. }
  9602. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9603. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9604. private void InitCommandCollection() {
  9605. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9606. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9607. this._commandCollection[0].Connection = this.Connection;
  9608. this._commandCollection[0].CommandText = "SELECT Code, Name FROM dbo.Gender";
  9609. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9610. }
  9611. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9612. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9613. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9614. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9615. public virtual int Fill(BBrovkiZDataSet.GenderDataTable dataTable) {
  9616. this.Adapter.SelectCommand = this.CommandCollection[0];
  9617. if ((this.ClearBeforeFill == true)) {
  9618. dataTable.Clear();
  9619. }
  9620. int returnValue = this.Adapter.Fill(dataTable);
  9621. return returnValue;
  9622. }
  9623. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9625. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9626. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9627. public virtual BBrovkiZDataSet.GenderDataTable GetData() {
  9628. this.Adapter.SelectCommand = this.CommandCollection[0];
  9629. BBrovkiZDataSet.GenderDataTable dataTable = new BBrovkiZDataSet.GenderDataTable();
  9630. this.Adapter.Fill(dataTable);
  9631. return dataTable;
  9632. }
  9633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9635. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9636. public virtual int Update(BBrovkiZDataSet.GenderDataTable dataTable) {
  9637. return this.Adapter.Update(dataTable);
  9638. }
  9639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9641. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9642. public virtual int Update(BBrovkiZDataSet dataSet) {
  9643. return this.Adapter.Update(dataSet, "Gender");
  9644. }
  9645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9646. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9647. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9648. public virtual int Update(global::System.Data.DataRow dataRow) {
  9649. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9650. dataRow});
  9651. }
  9652. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9653. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9654. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9655. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9656. return this.Adapter.Update(dataRows);
  9657. }
  9658. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9659. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9660. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9661. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9662. public virtual int Delete(string Original_Code, string Original_Name) {
  9663. if ((Original_Code == null)) {
  9664. throw new global::System.ArgumentNullException("Original_Code");
  9665. }
  9666. else {
  9667. this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_Code));
  9668. }
  9669. if ((Original_Name == null)) {
  9670. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  9671. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  9672. }
  9673. else {
  9674. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  9675. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Name));
  9676. }
  9677. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9678. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9679. != global::System.Data.ConnectionState.Open)) {
  9680. this.Adapter.DeleteCommand.Connection.Open();
  9681. }
  9682. try {
  9683. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9684. return returnValue;
  9685. }
  9686. finally {
  9687. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9688. this.Adapter.DeleteCommand.Connection.Close();
  9689. }
  9690. }
  9691. }
  9692. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9693. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9694. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9695. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9696. public virtual int Insert(string Code, string Name) {
  9697. if ((Code == null)) {
  9698. throw new global::System.ArgumentNullException("Code");
  9699. }
  9700. else {
  9701. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Code));
  9702. }
  9703. if ((Name == null)) {
  9704. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  9705. }
  9706. else {
  9707. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Name));
  9708. }
  9709. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9710. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9711. != global::System.Data.ConnectionState.Open)) {
  9712. this.Adapter.InsertCommand.Connection.Open();
  9713. }
  9714. try {
  9715. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9716. return returnValue;
  9717. }
  9718. finally {
  9719. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9720. this.Adapter.InsertCommand.Connection.Close();
  9721. }
  9722. }
  9723. }
  9724. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9725. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9726. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9727. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9728. public virtual int Update(string Code, string Name, string Original_Code, string Original_Name) {
  9729. if ((Code == null)) {
  9730. throw new global::System.ArgumentNullException("Code");
  9731. }
  9732. else {
  9733. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Code));
  9734. }
  9735. if ((Name == null)) {
  9736. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  9737. }
  9738. else {
  9739. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Name));
  9740. }
  9741. if ((Original_Code == null)) {
  9742. throw new global::System.ArgumentNullException("Original_Code");
  9743. }
  9744. else {
  9745. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Original_Code));
  9746. }
  9747. if ((Original_Name == null)) {
  9748. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  9749. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  9750. }
  9751. else {
  9752. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  9753. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Name));
  9754. }
  9755. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9756. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9757. != global::System.Data.ConnectionState.Open)) {
  9758. this.Adapter.UpdateCommand.Connection.Open();
  9759. }
  9760. try {
  9761. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9762. return returnValue;
  9763. }
  9764. finally {
  9765. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9766. this.Adapter.UpdateCommand.Connection.Close();
  9767. }
  9768. }
  9769. }
  9770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9771. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9772. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9773. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9774. public virtual int Update(string Name, string Original_Code, string Original_Name) {
  9775. return this.Update(Original_Code, Name, Original_Code, Original_Name);
  9776. }
  9777. }
  9778. /// <summary>
  9779. ///Represents the connection and commands used to retrieve and save data.
  9780. ///</summary>
  9781. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9782. [global::System.ComponentModel.ToolboxItem(true)]
  9783. [global::System.ComponentModel.DataObjectAttribute(true)]
  9784. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9785. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9786. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9787. public partial class ManufacturerTableAdapter : global::System.ComponentModel.Component {
  9788. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9789. private global::System.Data.SqlClient.SqlConnection _connection;
  9790. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9791. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9792. private bool _clearBeforeFill;
  9793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9794. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9795. public ManufacturerTableAdapter() {
  9796. this.ClearBeforeFill = true;
  9797. }
  9798. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9799. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9800. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9801. get {
  9802. if ((this._adapter == null)) {
  9803. this.InitAdapter();
  9804. }
  9805. return this._adapter;
  9806. }
  9807. }
  9808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9810. internal global::System.Data.SqlClient.SqlConnection Connection {
  9811. get {
  9812. if ((this._connection == null)) {
  9813. this.InitConnection();
  9814. }
  9815. return this._connection;
  9816. }
  9817. set {
  9818. this._connection = value;
  9819. if ((this.Adapter.InsertCommand != null)) {
  9820. this.Adapter.InsertCommand.Connection = value;
  9821. }
  9822. if ((this.Adapter.DeleteCommand != null)) {
  9823. this.Adapter.DeleteCommand.Connection = value;
  9824. }
  9825. if ((this.Adapter.UpdateCommand != null)) {
  9826. this.Adapter.UpdateCommand.Connection = value;
  9827. }
  9828. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9829. if ((this.CommandCollection[i] != null)) {
  9830. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9831. }
  9832. }
  9833. }
  9834. }
  9835. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9836. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9837. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9838. get {
  9839. return this._transaction;
  9840. }
  9841. set {
  9842. this._transaction = value;
  9843. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9844. this.CommandCollection[i].Transaction = this._transaction;
  9845. }
  9846. if (((this.Adapter != null)
  9847. && (this.Adapter.DeleteCommand != null))) {
  9848. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9849. }
  9850. if (((this.Adapter != null)
  9851. && (this.Adapter.InsertCommand != null))) {
  9852. this.Adapter.InsertCommand.Transaction = this._transaction;
  9853. }
  9854. if (((this.Adapter != null)
  9855. && (this.Adapter.UpdateCommand != null))) {
  9856. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9857. }
  9858. }
  9859. }
  9860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9862. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9863. get {
  9864. if ((this._commandCollection == null)) {
  9865. this.InitCommandCollection();
  9866. }
  9867. return this._commandCollection;
  9868. }
  9869. }
  9870. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9871. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9872. public bool ClearBeforeFill {
  9873. get {
  9874. return this._clearBeforeFill;
  9875. }
  9876. set {
  9877. this._clearBeforeFill = value;
  9878. }
  9879. }
  9880. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9881. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9882. private void InitAdapter() {
  9883. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9884. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9885. tableMapping.SourceTable = "Table";
  9886. tableMapping.DataSetTable = "Manufacturer";
  9887. tableMapping.ColumnMappings.Add("ID", "ID");
  9888. tableMapping.ColumnMappings.Add("Name", "Name");
  9889. tableMapping.ColumnMappings.Add("StartDate", "StartDate");
  9890. this._adapter.TableMappings.Add(tableMapping);
  9891. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9892. this._adapter.DeleteCommand.Connection = this.Connection;
  9893. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Manufacturer] WHERE (([ID] = @Original_ID) AND ([Name] = @Orig" +
  9894. "inal_Name) AND ((@IsNull_StartDate = 1 AND [StartDate] IS NULL) OR ([StartDate] " +
  9895. "= @Original_StartDate)))";
  9896. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9897. 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, "", "", ""));
  9898. 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, "", "", ""));
  9899. 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, "", "", ""));
  9900. 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, "", "", ""));
  9901. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9902. this._adapter.InsertCommand.Connection = this.Connection;
  9903. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Manufacturer] ([Name], [StartDate]) VALUES (@Name, @StartDate)" +
  9904. ";\r\nSELECT ID, Name, StartDate FROM Manufacturer WHERE (ID = SCOPE_IDENTITY())";
  9905. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9906. 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, "", "", ""));
  9907. 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, "", "", ""));
  9908. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9909. this._adapter.UpdateCommand.Connection = this.Connection;
  9910. 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)));
  9911. SELECT ID, Name, StartDate FROM Manufacturer WHERE (ID = @ID)";
  9912. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9913. 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, "", "", ""));
  9914. 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, "", "", ""));
  9915. 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, "", "", ""));
  9916. 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, "", "", ""));
  9917. 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, "", "", ""));
  9918. 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, "", "", ""));
  9919. 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, "", "", ""));
  9920. }
  9921. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9922. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9923. private void InitConnection() {
  9924. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9925. this._connection.ConnectionString = global::BBrovki1Z.Properties.Settings.Default.BBrovkiZConnectionString;
  9926. }
  9927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9928. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9929. private void InitCommandCollection() {
  9930. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9931. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9932. this._commandCollection[0].Connection = this.Connection;
  9933. this._commandCollection[0].CommandText = "SELECT ID, Name, StartDate FROM dbo.Manufacturer";
  9934. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9935. }
  9936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9937. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9938. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9939. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9940. public virtual int Fill(BBrovkiZDataSet.ManufacturerDataTable dataTable) {
  9941. this.Adapter.SelectCommand = this.CommandCollection[0];
  9942. if ((this.ClearBeforeFill == true)) {
  9943. dataTable.Clear();
  9944. }
  9945. int returnValue = this.Adapter.Fill(dataTable);
  9946. return returnValue;
  9947. }
  9948. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9949. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9950. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9951. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9952. public virtual BBrovkiZDataSet.ManufacturerDataTable GetData() {
  9953. this.Adapter.SelectCommand = this.CommandCollection[0];
  9954. BBrovkiZDataSet.ManufacturerDataTable dataTable = new BBrovkiZDataSet.ManufacturerDataTable();
  9955. this.Adapter.Fill(dataTable);
  9956. return dataTable;
  9957. }
  9958. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9959. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9960. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9961. public virtual int Update(BBrovkiZDataSet.ManufacturerDataTable dataTable) {
  9962. return this.Adapter.Update(dataTable);
  9963. }
  9964. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9965. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9966. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9967. public virtual int Update(BBrovkiZDataSet dataSet) {
  9968. return this.Adapter.Update(dataSet, "Manufacturer");
  9969. }
  9970. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9971. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9972. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9973. public virtual int Update(global::System.Data.DataRow dataRow) {
  9974. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9975. dataRow});
  9976. }
  9977. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9978. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9979. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9980. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9981. return this.Adapter.Update(dataRows);
  9982. }
  9983. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9984. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9985. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9986. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9987. public virtual int Delete(int Original_ID, string Original_Name, global::System.Nullable<global::System.DateTime> Original_StartDate) {
  9988. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  9989. if ((Original_Name == null)) {
  9990. throw new global::System.ArgumentNullException("Original_Name");
  9991. }
  9992. else {
  9993. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Name));
  9994. }
  9995. if ((Original_StartDate.HasValue == true)) {
  9996. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
  9997. this.Adapter.DeleteCommand.Parameters[3].Value = ((System.DateTime)(Original_StartDate.Value));
  9998. }
  9999. else {
  10000. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
  10001. this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
  10002. }
  10003. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  10004. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10005. != global::System.Data.ConnectionState.Open)) {
  10006. this.Adapter.DeleteCommand.Connection.Open();
  10007. }
  10008. try {
  10009. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  10010. return returnValue;
  10011. }
  10012. finally {
  10013. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10014. this.Adapter.DeleteCommand.Connection.Close();
  10015. }
  10016. }
  10017. }
  10018. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10019. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10020. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10021. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  10022. public virtual int Insert(string Name, global::System.Nullable<global::System.DateTime> StartDate) {
  10023. if ((Name == null)) {
  10024. throw new global::System.ArgumentNullException("Name");
  10025. }
  10026. else {
  10027. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Name));
  10028. }
  10029. if ((StartDate.HasValue == true)) {
  10030. this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(StartDate.Value));
  10031. }
  10032. else {
  10033. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  10034. }
  10035. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  10036. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10037. != global::System.Data.ConnectionState.Open)) {
  10038. this.Adapter.InsertCommand.Connection.Open();
  10039. }
  10040. try {
  10041. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  10042. return returnValue;
  10043. }
  10044. finally {
  10045. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10046. this.Adapter.InsertCommand.Connection.Close();
  10047. }
  10048. }
  10049. }
  10050. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10052. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10053. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10054. 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) {
  10055. if ((Name == null)) {
  10056. throw new global::System.ArgumentNullException("Name");
  10057. }
  10058. else {
  10059. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Name));
  10060. }
  10061. if ((StartDate.HasValue == true)) {
  10062. this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(StartDate.Value));
  10063. }
  10064. else {
  10065. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  10066. }
  10067. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  10068. if ((Original_Name == null)) {
  10069. throw new global::System.ArgumentNullException("Original_Name");
  10070. }
  10071. else {
  10072. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Name));
  10073. }
  10074. if ((Original_StartDate.HasValue == true)) {
  10075. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  10076. this.Adapter.UpdateCommand.Parameters[5].Value = ((System.DateTime)(Original_StartDate.Value));
  10077. }
  10078. else {
  10079. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  10080. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  10081. }
  10082. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(ID));
  10083. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  10084. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10085. != global::System.Data.ConnectionState.Open)) {
  10086. this.Adapter.UpdateCommand.Connection.Open();
  10087. }
  10088. try {
  10089. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  10090. return returnValue;
  10091. }
  10092. finally {
  10093. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10094. this.Adapter.UpdateCommand.Connection.Close();
  10095. }
  10096. }
  10097. }
  10098. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10099. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10100. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10101. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10102. 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) {
  10103. return this.Update(Name, StartDate, Original_ID, Original_Name, Original_StartDate, Original_ID);
  10104. }
  10105. }
  10106. /// <summary>
  10107. ///Represents the connection and commands used to retrieve and save data.
  10108. ///</summary>
  10109. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10110. [global::System.ComponentModel.ToolboxItem(true)]
  10111. [global::System.ComponentModel.DataObjectAttribute(true)]
  10112. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  10113. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10114. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10115. public partial class ProductTableAdapter : global::System.ComponentModel.Component {
  10116. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  10117. private global::System.Data.SqlClient.SqlConnection _connection;
  10118. private global::System.Data.SqlClient.SqlTransaction _transaction;
  10119. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  10120. private bool _clearBeforeFill;
  10121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10123. public ProductTableAdapter() {
  10124. this.ClearBeforeFill = true;
  10125. }
  10126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10128. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  10129. get {
  10130. if ((this._adapter == null)) {
  10131. this.InitAdapter();
  10132. }
  10133. return this._adapter;
  10134. }
  10135. }
  10136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10137. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10138. internal global::System.Data.SqlClient.SqlConnection Connection {
  10139. get {
  10140. if ((this._connection == null)) {
  10141. this.InitConnection();
  10142. }
  10143. return this._connection;
  10144. }
  10145. set {
  10146. this._connection = value;
  10147. if ((this.Adapter.InsertCommand != null)) {
  10148. this.Adapter.InsertCommand.Connection = value;
  10149. }
  10150. if ((this.Adapter.DeleteCommand != null)) {
  10151. this.Adapter.DeleteCommand.Connection = value;
  10152. }
  10153. if ((this.Adapter.UpdateCommand != null)) {
  10154. this.Adapter.UpdateCommand.Connection = value;
  10155. }
  10156. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10157. if ((this.CommandCollection[i] != null)) {
  10158. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  10159. }
  10160. }
  10161. }
  10162. }
  10163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10164. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10165. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  10166. get {
  10167. return this._transaction;
  10168. }
  10169. set {
  10170. this._transaction = value;
  10171. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10172. this.CommandCollection[i].Transaction = this._transaction;
  10173. }
  10174. if (((this.Adapter != null)
  10175. && (this.Adapter.DeleteCommand != null))) {
  10176. this.Adapter.DeleteCommand.Transaction = this._transaction;
  10177. }
  10178. if (((this.Adapter != null)
  10179. && (this.Adapter.InsertCommand != null))) {
  10180. this.Adapter.InsertCommand.Transaction = this._transaction;
  10181. }
  10182. if (((this.Adapter != null)
  10183. && (this.Adapter.UpdateCommand != null))) {
  10184. this.Adapter.UpdateCommand.Transaction = this._transaction;
  10185. }
  10186. }
  10187. }
  10188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10190. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  10191. get {
  10192. if ((this._commandCollection == null)) {
  10193. this.InitCommandCollection();
  10194. }
  10195. return this._commandCollection;
  10196. }
  10197. }
  10198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10199. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10200. public bool ClearBeforeFill {
  10201. get {
  10202. return this._clearBeforeFill;
  10203. }
  10204. set {
  10205. this._clearBeforeFill = value;
  10206. }
  10207. }
  10208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10209. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10210. private void InitAdapter() {
  10211. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  10212. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  10213. tableMapping.SourceTable = "Table";
  10214. tableMapping.DataSetTable = "Product";
  10215. tableMapping.ColumnMappings.Add("ID", "ID");
  10216. tableMapping.ColumnMappings.Add("Title", "Title");
  10217. tableMapping.ColumnMappings.Add("Cost", "Cost");
  10218. tableMapping.ColumnMappings.Add("Description", "Description");
  10219. tableMapping.ColumnMappings.Add("MainImagePath", "MainImagePath");
  10220. tableMapping.ColumnMappings.Add("IsActive", "IsActive");
  10221. tableMapping.ColumnMappings.Add("ManufacturerID", "ManufacturerID");
  10222. this._adapter.TableMappings.Add(tableMapping);
  10223. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  10224. this._adapter.DeleteCommand.Connection = this.Connection;
  10225. 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)))";
  10226. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  10227. 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, "", "", ""));
  10228. 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, "", "", ""));
  10229. 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, "", "", ""));
  10230. 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, "", "", ""));
  10231. 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, "", "", ""));
  10232. 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, "", "", ""));
  10233. 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, "", "", ""));
  10234. 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, "", "", ""));
  10235. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  10236. this._adapter.InsertCommand.Connection = this.Connection;
  10237. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Product] ([Title], [Cost], [Description], [MainImagePath], [IsActive], [ManufacturerID]) VALUES (@Title, @Cost, @Description, @MainImagePath, @IsActive, @ManufacturerID);
  10238. SELECT ID, Title, Cost, Description, MainImagePath, IsActive, ManufacturerID FROM Product WHERE (ID = SCOPE_IDENTITY())";
  10239. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  10240. 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, "", "", ""));
  10241. 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, "", "", ""));
  10242. 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, "", "", ""));
  10243. 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, "", "", ""));
  10244. 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, "", "", ""));
  10245. 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, "", "", ""));
  10246. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  10247. this._adapter.UpdateCommand.Connection = this.Connection;
  10248. 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)));
  10249. SELECT ID, Title, Cost, Description, MainImagePath, IsActive, ManufacturerID FROM Product WHERE (ID = @ID)";
  10250. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  10251. 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, "", "", ""));
  10252. 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, "", "", ""));
  10253. 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, "", "", ""));
  10254. 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, "", "", ""));
  10255. 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, "", "", ""));
  10256. 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, "", "", ""));
  10257. 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, "", "", ""));
  10258. 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, "", "", ""));
  10259. 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, "", "", ""));
  10260. 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, "", "", ""));
  10261. 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, "", "", ""));
  10262. 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, "", "", ""));
  10263. 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, "", "", ""));
  10264. 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, "", "", ""));
  10265. 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, "", "", ""));
  10266. }
  10267. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10268. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10269. private void InitConnection() {
  10270. this._connection = new global::System.Data.SqlClient.SqlConnection();
  10271. this._connection.ConnectionString = global::BBrovki1Z.Properties.Settings.Default.BBrovkiZConnectionString;
  10272. }
  10273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10274. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10275. private void InitCommandCollection() {
  10276. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  10277. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  10278. this._commandCollection[0].Connection = this.Connection;
  10279. this._commandCollection[0].CommandText = "SELECT ID, Title, Cost, Description, MainImagePath, IsActive, ManufacturerID FROM" +
  10280. " dbo.Product";
  10281. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  10282. }
  10283. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10284. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10285. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10286. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  10287. public virtual int Fill(BBrovkiZDataSet.ProductDataTable dataTable) {
  10288. this.Adapter.SelectCommand = this.CommandCollection[0];
  10289. if ((this.ClearBeforeFill == true)) {
  10290. dataTable.Clear();
  10291. }
  10292. int returnValue = this.Adapter.Fill(dataTable);
  10293. return returnValue;
  10294. }
  10295. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10296. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10297. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10298. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  10299. public virtual BBrovkiZDataSet.ProductDataTable GetData() {
  10300. this.Adapter.SelectCommand = this.CommandCollection[0];
  10301. BBrovkiZDataSet.ProductDataTable dataTable = new BBrovkiZDataSet.ProductDataTable();
  10302. this.Adapter.Fill(dataTable);
  10303. return dataTable;
  10304. }
  10305. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10306. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10307. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10308. public virtual int Update(BBrovkiZDataSet.ProductDataTable dataTable) {
  10309. return this.Adapter.Update(dataTable);
  10310. }
  10311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10312. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10313. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10314. public virtual int Update(BBrovkiZDataSet dataSet) {
  10315. return this.Adapter.Update(dataSet, "Product");
  10316. }
  10317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10319. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10320. public virtual int Update(global::System.Data.DataRow dataRow) {
  10321. return this.Adapter.Update(new global::System.Data.DataRow[] {
  10322. dataRow});
  10323. }
  10324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10326. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10327. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  10328. return this.Adapter.Update(dataRows);
  10329. }
  10330. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10331. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10332. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10333. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  10334. 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) {
  10335. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  10336. if ((Original_Title == null)) {
  10337. throw new global::System.ArgumentNullException("Original_Title");
  10338. }
  10339. else {
  10340. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Title));
  10341. }
  10342. this.Adapter.DeleteCommand.Parameters[2].Value = ((decimal)(Original_Cost));
  10343. if ((Original_MainImagePath == null)) {
  10344. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  10345. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  10346. }
  10347. else {
  10348. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  10349. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_MainImagePath));
  10350. }
  10351. this.Adapter.DeleteCommand.Parameters[5].Value = ((bool)(Original_IsActive));
  10352. if ((Original_ManufacturerID.HasValue == true)) {
  10353. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0));
  10354. this.Adapter.DeleteCommand.Parameters[7].Value = ((int)(Original_ManufacturerID.Value));
  10355. }
  10356. else {
  10357. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1));
  10358. this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value;
  10359. }
  10360. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  10361. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10362. != global::System.Data.ConnectionState.Open)) {
  10363. this.Adapter.DeleteCommand.Connection.Open();
  10364. }
  10365. try {
  10366. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  10367. return returnValue;
  10368. }
  10369. finally {
  10370. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10371. this.Adapter.DeleteCommand.Connection.Close();
  10372. }
  10373. }
  10374. }
  10375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10377. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10378. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  10379. public virtual int Insert(string Title, decimal Cost, string Description, string MainImagePath, bool IsActive, global::System.Nullable<int> ManufacturerID) {
  10380. if ((Title == null)) {
  10381. throw new global::System.ArgumentNullException("Title");
  10382. }
  10383. else {
  10384. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  10385. }
  10386. this.Adapter.InsertCommand.Parameters[1].Value = ((decimal)(Cost));
  10387. if ((Description == null)) {
  10388. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  10389. }
  10390. else {
  10391. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Description));
  10392. }
  10393. if ((MainImagePath == null)) {
  10394. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  10395. }
  10396. else {
  10397. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(MainImagePath));
  10398. }
  10399. this.Adapter.InsertCommand.Parameters[4].Value = ((bool)(IsActive));
  10400. if ((ManufacturerID.HasValue == true)) {
  10401. this.Adapter.InsertCommand.Parameters[5].Value = ((int)(ManufacturerID.Value));
  10402. }
  10403. else {
  10404. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  10405. }
  10406. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  10407. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10408. != global::System.Data.ConnectionState.Open)) {
  10409. this.Adapter.InsertCommand.Connection.Open();
  10410. }
  10411. try {
  10412. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  10413. return returnValue;
  10414. }
  10415. finally {
  10416. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10417. this.Adapter.InsertCommand.Connection.Close();
  10418. }
  10419. }
  10420. }
  10421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10422. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10423. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10424. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10425. 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) {
  10426. if ((Title == null)) {
  10427. throw new global::System.ArgumentNullException("Title");
  10428. }
  10429. else {
  10430. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  10431. }
  10432. this.Adapter.UpdateCommand.Parameters[1].Value = ((decimal)(Cost));
  10433. if ((Description == null)) {
  10434. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  10435. }
  10436. else {
  10437. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Description));
  10438. }
  10439. if ((MainImagePath == null)) {
  10440. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  10441. }
  10442. else {
  10443. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(MainImagePath));
  10444. }
  10445. this.Adapter.UpdateCommand.Parameters[4].Value = ((bool)(IsActive));
  10446. if ((ManufacturerID.HasValue == true)) {
  10447. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ManufacturerID.Value));
  10448. }
  10449. else {
  10450. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  10451. }
  10452. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ID));
  10453. if ((Original_Title == null)) {
  10454. throw new global::System.ArgumentNullException("Original_Title");
  10455. }
  10456. else {
  10457. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Title));
  10458. }
  10459. this.Adapter.UpdateCommand.Parameters[8].Value = ((decimal)(Original_Cost));
  10460. if ((Original_MainImagePath == null)) {
  10461. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  10462. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  10463. }
  10464. else {
  10465. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  10466. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_MainImagePath));
  10467. }
  10468. this.Adapter.UpdateCommand.Parameters[11].Value = ((bool)(Original_IsActive));
  10469. if ((Original_ManufacturerID.HasValue == true)) {
  10470. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  10471. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Original_ManufacturerID.Value));
  10472. }
  10473. else {
  10474. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  10475. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  10476. }
  10477. this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(ID));
  10478. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  10479. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10480. != global::System.Data.ConnectionState.Open)) {
  10481. this.Adapter.UpdateCommand.Connection.Open();
  10482. }
  10483. try {
  10484. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  10485. return returnValue;
  10486. }
  10487. finally {
  10488. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10489. this.Adapter.UpdateCommand.Connection.Close();
  10490. }
  10491. }
  10492. }
  10493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10494. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10495. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10496. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10497. 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) {
  10498. return this.Update(Title, Cost, Description, MainImagePath, IsActive, ManufacturerID, Original_ID, Original_Title, Original_Cost, Original_MainImagePath, Original_IsActive, Original_ManufacturerID, Original_ID);
  10499. }
  10500. }
  10501. /// <summary>
  10502. ///Represents the connection and commands used to retrieve and save data.
  10503. ///</summary>
  10504. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10505. [global::System.ComponentModel.ToolboxItem(true)]
  10506. [global::System.ComponentModel.DataObjectAttribute(true)]
  10507. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  10508. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10509. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10510. public partial class ProductPhotoTableAdapter : global::System.ComponentModel.Component {
  10511. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  10512. private global::System.Data.SqlClient.SqlConnection _connection;
  10513. private global::System.Data.SqlClient.SqlTransaction _transaction;
  10514. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  10515. private bool _clearBeforeFill;
  10516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10517. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10518. public ProductPhotoTableAdapter() {
  10519. this.ClearBeforeFill = true;
  10520. }
  10521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10523. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  10524. get {
  10525. if ((this._adapter == null)) {
  10526. this.InitAdapter();
  10527. }
  10528. return this._adapter;
  10529. }
  10530. }
  10531. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10532. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10533. internal global::System.Data.SqlClient.SqlConnection Connection {
  10534. get {
  10535. if ((this._connection == null)) {
  10536. this.InitConnection();
  10537. }
  10538. return this._connection;
  10539. }
  10540. set {
  10541. this._connection = value;
  10542. if ((this.Adapter.InsertCommand != null)) {
  10543. this.Adapter.InsertCommand.Connection = value;
  10544. }
  10545. if ((this.Adapter.DeleteCommand != null)) {
  10546. this.Adapter.DeleteCommand.Connection = value;
  10547. }
  10548. if ((this.Adapter.UpdateCommand != null)) {
  10549. this.Adapter.UpdateCommand.Connection = value;
  10550. }
  10551. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10552. if ((this.CommandCollection[i] != null)) {
  10553. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  10554. }
  10555. }
  10556. }
  10557. }
  10558. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10559. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10560. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  10561. get {
  10562. return this._transaction;
  10563. }
  10564. set {
  10565. this._transaction = value;
  10566. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10567. this.CommandCollection[i].Transaction = this._transaction;
  10568. }
  10569. if (((this.Adapter != null)
  10570. && (this.Adapter.DeleteCommand != null))) {
  10571. this.Adapter.DeleteCommand.Transaction = this._transaction;
  10572. }
  10573. if (((this.Adapter != null)
  10574. && (this.Adapter.InsertCommand != null))) {
  10575. this.Adapter.InsertCommand.Transaction = this._transaction;
  10576. }
  10577. if (((this.Adapter != null)
  10578. && (this.Adapter.UpdateCommand != null))) {
  10579. this.Adapter.UpdateCommand.Transaction = this._transaction;
  10580. }
  10581. }
  10582. }
  10583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10585. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  10586. get {
  10587. if ((this._commandCollection == null)) {
  10588. this.InitCommandCollection();
  10589. }
  10590. return this._commandCollection;
  10591. }
  10592. }
  10593. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10594. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10595. public bool ClearBeforeFill {
  10596. get {
  10597. return this._clearBeforeFill;
  10598. }
  10599. set {
  10600. this._clearBeforeFill = value;
  10601. }
  10602. }
  10603. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10604. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10605. private void InitAdapter() {
  10606. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  10607. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  10608. tableMapping.SourceTable = "Table";
  10609. tableMapping.DataSetTable = "ProductPhoto";
  10610. tableMapping.ColumnMappings.Add("ID", "ID");
  10611. tableMapping.ColumnMappings.Add("ProductID", "ProductID");
  10612. tableMapping.ColumnMappings.Add("PhotoPath", "PhotoPath");
  10613. this._adapter.TableMappings.Add(tableMapping);
  10614. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  10615. this._adapter.DeleteCommand.Connection = this.Connection;
  10616. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ProductPhoto] WHERE (([ID] = @Original_ID) AND ([ProductID] = " +
  10617. "@Original_ProductID) AND ([PhotoPath] = @Original_PhotoPath))";
  10618. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  10619. 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, "", "", ""));
  10620. 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, "", "", ""));
  10621. 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, "", "", ""));
  10622. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  10623. this._adapter.InsertCommand.Connection = this.Connection;
  10624. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ProductPhoto] ([ProductID], [PhotoPath]) VALUES (@ProductID, @" +
  10625. "PhotoPath);\r\nSELECT ID, ProductID, PhotoPath FROM ProductPhoto WHERE (ID = SCOPE" +
  10626. "_IDENTITY())";
  10627. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  10628. 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, "", "", ""));
  10629. 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, "", "", ""));
  10630. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  10631. this._adapter.UpdateCommand.Connection = this.Connection;
  10632. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ProductPhoto] SET [ProductID] = @ProductID, [PhotoPath] = @PhotoPath WHERE (([ID] = @Original_ID) AND ([ProductID] = @Original_ProductID) AND ([PhotoPath] = @Original_PhotoPath));
  10633. SELECT ID, ProductID, PhotoPath FROM ProductPhoto WHERE (ID = @ID)";
  10634. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  10635. 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, "", "", ""));
  10636. 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, "", "", ""));
  10637. 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, "", "", ""));
  10638. 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, "", "", ""));
  10639. 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, "", "", ""));
  10640. 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, "", "", ""));
  10641. }
  10642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10644. private void InitConnection() {
  10645. this._connection = new global::System.Data.SqlClient.SqlConnection();
  10646. this._connection.ConnectionString = global::BBrovki1Z.Properties.Settings.Default.BBrovkiZConnectionString;
  10647. }
  10648. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10649. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10650. private void InitCommandCollection() {
  10651. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  10652. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  10653. this._commandCollection[0].Connection = this.Connection;
  10654. this._commandCollection[0].CommandText = "SELECT ID, ProductID, PhotoPath FROM dbo.ProductPhoto";
  10655. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  10656. }
  10657. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10658. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10659. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10660. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  10661. public virtual int Fill(BBrovkiZDataSet.ProductPhotoDataTable dataTable) {
  10662. this.Adapter.SelectCommand = this.CommandCollection[0];
  10663. if ((this.ClearBeforeFill == true)) {
  10664. dataTable.Clear();
  10665. }
  10666. int returnValue = this.Adapter.Fill(dataTable);
  10667. return returnValue;
  10668. }
  10669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10670. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10671. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10672. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  10673. public virtual BBrovkiZDataSet.ProductPhotoDataTable GetData() {
  10674. this.Adapter.SelectCommand = this.CommandCollection[0];
  10675. BBrovkiZDataSet.ProductPhotoDataTable dataTable = new BBrovkiZDataSet.ProductPhotoDataTable();
  10676. this.Adapter.Fill(dataTable);
  10677. return dataTable;
  10678. }
  10679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10680. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10681. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10682. public virtual int Update(BBrovkiZDataSet.ProductPhotoDataTable dataTable) {
  10683. return this.Adapter.Update(dataTable);
  10684. }
  10685. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10686. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10687. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10688. public virtual int Update(BBrovkiZDataSet dataSet) {
  10689. return this.Adapter.Update(dataSet, "ProductPhoto");
  10690. }
  10691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10692. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10693. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10694. public virtual int Update(global::System.Data.DataRow dataRow) {
  10695. return this.Adapter.Update(new global::System.Data.DataRow[] {
  10696. dataRow});
  10697. }
  10698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10699. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10700. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10701. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  10702. return this.Adapter.Update(dataRows);
  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.Delete, true)]
  10708. public virtual int Delete(int Original_ID, int Original_ProductID, string Original_PhotoPath) {
  10709. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  10710. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ProductID));
  10711. if ((Original_PhotoPath == null)) {
  10712. throw new global::System.ArgumentNullException("Original_PhotoPath");
  10713. }
  10714. else {
  10715. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_PhotoPath));
  10716. }
  10717. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  10718. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10719. != global::System.Data.ConnectionState.Open)) {
  10720. this.Adapter.DeleteCommand.Connection.Open();
  10721. }
  10722. try {
  10723. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  10724. return returnValue;
  10725. }
  10726. finally {
  10727. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10728. this.Adapter.DeleteCommand.Connection.Close();
  10729. }
  10730. }
  10731. }
  10732. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10733. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10734. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10735. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  10736. public virtual int Insert(int ProductID, string PhotoPath) {
  10737. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ProductID));
  10738. if ((PhotoPath == null)) {
  10739. throw new global::System.ArgumentNullException("PhotoPath");
  10740. }
  10741. else {
  10742. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(PhotoPath));
  10743. }
  10744. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  10745. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10746. != global::System.Data.ConnectionState.Open)) {
  10747. this.Adapter.InsertCommand.Connection.Open();
  10748. }
  10749. try {
  10750. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  10751. return returnValue;
  10752. }
  10753. finally {
  10754. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10755. this.Adapter.InsertCommand.Connection.Close();
  10756. }
  10757. }
  10758. }
  10759. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10760. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10761. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10762. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10763. public virtual int Update(int ProductID, string PhotoPath, int Original_ID, int Original_ProductID, string Original_PhotoPath, int ID) {
  10764. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ProductID));
  10765. if ((PhotoPath == null)) {
  10766. throw new global::System.ArgumentNullException("PhotoPath");
  10767. }
  10768. else {
  10769. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(PhotoPath));
  10770. }
  10771. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  10772. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ProductID));
  10773. if ((Original_PhotoPath == null)) {
  10774. throw new global::System.ArgumentNullException("Original_PhotoPath");
  10775. }
  10776. else {
  10777. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_PhotoPath));
  10778. }
  10779. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID));
  10780. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  10781. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10782. != global::System.Data.ConnectionState.Open)) {
  10783. this.Adapter.UpdateCommand.Connection.Open();
  10784. }
  10785. try {
  10786. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  10787. return returnValue;
  10788. }
  10789. finally {
  10790. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10791. this.Adapter.UpdateCommand.Connection.Close();
  10792. }
  10793. }
  10794. }
  10795. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10796. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10797. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10798. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10799. public virtual int Update(int ProductID, string PhotoPath, int Original_ID, int Original_ProductID, string Original_PhotoPath) {
  10800. return this.Update(ProductID, PhotoPath, Original_ID, Original_ProductID, Original_PhotoPath, Original_ID);
  10801. }
  10802. }
  10803. /// <summary>
  10804. ///Represents the connection and commands used to retrieve and save data.
  10805. ///</summary>
  10806. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10807. [global::System.ComponentModel.ToolboxItem(true)]
  10808. [global::System.ComponentModel.DataObjectAttribute(true)]
  10809. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  10810. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10811. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10812. public partial class ProductSaleTableAdapter : global::System.ComponentModel.Component {
  10813. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  10814. private global::System.Data.SqlClient.SqlConnection _connection;
  10815. private global::System.Data.SqlClient.SqlTransaction _transaction;
  10816. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  10817. private bool _clearBeforeFill;
  10818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10819. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10820. public ProductSaleTableAdapter() {
  10821. this.ClearBeforeFill = true;
  10822. }
  10823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10824. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10825. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  10826. get {
  10827. if ((this._adapter == null)) {
  10828. this.InitAdapter();
  10829. }
  10830. return this._adapter;
  10831. }
  10832. }
  10833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10835. internal global::System.Data.SqlClient.SqlConnection Connection {
  10836. get {
  10837. if ((this._connection == null)) {
  10838. this.InitConnection();
  10839. }
  10840. return this._connection;
  10841. }
  10842. set {
  10843. this._connection = value;
  10844. if ((this.Adapter.InsertCommand != null)) {
  10845. this.Adapter.InsertCommand.Connection = value;
  10846. }
  10847. if ((this.Adapter.DeleteCommand != null)) {
  10848. this.Adapter.DeleteCommand.Connection = value;
  10849. }
  10850. if ((this.Adapter.UpdateCommand != null)) {
  10851. this.Adapter.UpdateCommand.Connection = value;
  10852. }
  10853. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10854. if ((this.CommandCollection[i] != null)) {
  10855. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  10856. }
  10857. }
  10858. }
  10859. }
  10860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10862. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  10863. get {
  10864. return this._transaction;
  10865. }
  10866. set {
  10867. this._transaction = value;
  10868. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10869. this.CommandCollection[i].Transaction = this._transaction;
  10870. }
  10871. if (((this.Adapter != null)
  10872. && (this.Adapter.DeleteCommand != null))) {
  10873. this.Adapter.DeleteCommand.Transaction = this._transaction;
  10874. }
  10875. if (((this.Adapter != null)
  10876. && (this.Adapter.InsertCommand != null))) {
  10877. this.Adapter.InsertCommand.Transaction = this._transaction;
  10878. }
  10879. if (((this.Adapter != null)
  10880. && (this.Adapter.UpdateCommand != null))) {
  10881. this.Adapter.UpdateCommand.Transaction = this._transaction;
  10882. }
  10883. }
  10884. }
  10885. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10886. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10887. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  10888. get {
  10889. if ((this._commandCollection == null)) {
  10890. this.InitCommandCollection();
  10891. }
  10892. return this._commandCollection;
  10893. }
  10894. }
  10895. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10896. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10897. public bool ClearBeforeFill {
  10898. get {
  10899. return this._clearBeforeFill;
  10900. }
  10901. set {
  10902. this._clearBeforeFill = value;
  10903. }
  10904. }
  10905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10906. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10907. private void InitAdapter() {
  10908. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  10909. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  10910. tableMapping.SourceTable = "Table";
  10911. tableMapping.DataSetTable = "ProductSale";
  10912. tableMapping.ColumnMappings.Add("ID", "ID");
  10913. tableMapping.ColumnMappings.Add("SaleDate", "SaleDate");
  10914. tableMapping.ColumnMappings.Add("ProductID", "ProductID");
  10915. tableMapping.ColumnMappings.Add("Quantity", "Quantity");
  10916. tableMapping.ColumnMappings.Add("ClientServiceID", "ClientServiceID");
  10917. this._adapter.TableMappings.Add(tableMapping);
  10918. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  10919. this._adapter.DeleteCommand.Connection = this.Connection;
  10920. 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)))";
  10921. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  10922. 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, "", "", ""));
  10923. 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, "", "", ""));
  10924. 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, "", "", ""));
  10925. 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, "", "", ""));
  10926. 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, "", "", ""));
  10927. 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, "", "", ""));
  10928. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  10929. this._adapter.InsertCommand.Connection = this.Connection;
  10930. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ProductSale] ([SaleDate], [ProductID], [Quantity], [ClientServ" +
  10931. "iceID]) VALUES (@SaleDate, @ProductID, @Quantity, @ClientServiceID);\r\nSELECT ID," +
  10932. " SaleDate, ProductID, Quantity, ClientServiceID FROM ProductSale WHERE (ID = SCO" +
  10933. "PE_IDENTITY())";
  10934. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  10935. 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, "", "", ""));
  10936. 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, "", "", ""));
  10937. 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, "", "", ""));
  10938. 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, "", "", ""));
  10939. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  10940. this._adapter.UpdateCommand.Connection = this.Connection;
  10941. 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)));
  10942. SELECT ID, SaleDate, ProductID, Quantity, ClientServiceID FROM ProductSale WHERE (ID = @ID)";
  10943. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  10944. 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, "", "", ""));
  10945. 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, "", "", ""));
  10946. 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, "", "", ""));
  10947. 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, "", "", ""));
  10948. 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, "", "", ""));
  10949. 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, "", "", ""));
  10950. 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, "", "", ""));
  10951. 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, "", "", ""));
  10952. 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, "", "", ""));
  10953. 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, "", "", ""));
  10954. 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, "", "", ""));
  10955. }
  10956. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10957. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10958. private void InitConnection() {
  10959. this._connection = new global::System.Data.SqlClient.SqlConnection();
  10960. this._connection.ConnectionString = global::BBrovki1Z.Properties.Settings.Default.BBrovkiZConnectionString;
  10961. }
  10962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10963. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10964. private void InitCommandCollection() {
  10965. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  10966. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  10967. this._commandCollection[0].Connection = this.Connection;
  10968. this._commandCollection[0].CommandText = "SELECT ID, SaleDate, ProductID, Quantity, ClientServiceID FROM dbo.ProductSale";
  10969. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  10970. }
  10971. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10972. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10973. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10974. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  10975. public virtual int Fill(BBrovkiZDataSet.ProductSaleDataTable dataTable) {
  10976. this.Adapter.SelectCommand = this.CommandCollection[0];
  10977. if ((this.ClearBeforeFill == true)) {
  10978. dataTable.Clear();
  10979. }
  10980. int returnValue = this.Adapter.Fill(dataTable);
  10981. return returnValue;
  10982. }
  10983. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10984. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10985. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10986. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  10987. public virtual BBrovkiZDataSet.ProductSaleDataTable GetData() {
  10988. this.Adapter.SelectCommand = this.CommandCollection[0];
  10989. BBrovkiZDataSet.ProductSaleDataTable dataTable = new BBrovkiZDataSet.ProductSaleDataTable();
  10990. this.Adapter.Fill(dataTable);
  10991. return dataTable;
  10992. }
  10993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10994. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10995. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10996. public virtual int Update(BBrovkiZDataSet.ProductSaleDataTable dataTable) {
  10997. return this.Adapter.Update(dataTable);
  10998. }
  10999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11001. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11002. public virtual int Update(BBrovkiZDataSet dataSet) {
  11003. return this.Adapter.Update(dataSet, "ProductSale");
  11004. }
  11005. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11006. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11007. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11008. public virtual int Update(global::System.Data.DataRow dataRow) {
  11009. return this.Adapter.Update(new global::System.Data.DataRow[] {
  11010. dataRow});
  11011. }
  11012. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11013. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11014. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11015. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  11016. return this.Adapter.Update(dataRows);
  11017. }
  11018. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11019. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11020. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11021. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  11022. public virtual int Delete(int Original_ID, System.DateTime Original_SaleDate, int Original_ProductID, int Original_Quantity, global::System.Nullable<int> Original_ClientServiceID) {
  11023. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  11024. this.Adapter.DeleteCommand.Parameters[1].Value = ((System.DateTime)(Original_SaleDate));
  11025. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_ProductID));
  11026. this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_Quantity));
  11027. if ((Original_ClientServiceID.HasValue == true)) {
  11028. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
  11029. this.Adapter.DeleteCommand.Parameters[5].Value = ((int)(Original_ClientServiceID.Value));
  11030. }
  11031. else {
  11032. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
  11033. this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
  11034. }
  11035. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  11036. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11037. != global::System.Data.ConnectionState.Open)) {
  11038. this.Adapter.DeleteCommand.Connection.Open();
  11039. }
  11040. try {
  11041. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  11042. return returnValue;
  11043. }
  11044. finally {
  11045. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11046. this.Adapter.DeleteCommand.Connection.Close();
  11047. }
  11048. }
  11049. }
  11050. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11052. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11053. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  11054. public virtual int Insert(System.DateTime SaleDate, int ProductID, int Quantity, global::System.Nullable<int> ClientServiceID) {
  11055. this.Adapter.InsertCommand.Parameters[0].Value = ((System.DateTime)(SaleDate));
  11056. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(ProductID));
  11057. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Quantity));
  11058. if ((ClientServiceID.HasValue == true)) {
  11059. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(ClientServiceID.Value));
  11060. }
  11061. else {
  11062. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  11063. }
  11064. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  11065. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11066. != global::System.Data.ConnectionState.Open)) {
  11067. this.Adapter.InsertCommand.Connection.Open();
  11068. }
  11069. try {
  11070. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  11071. return returnValue;
  11072. }
  11073. finally {
  11074. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11075. this.Adapter.InsertCommand.Connection.Close();
  11076. }
  11077. }
  11078. }
  11079. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11080. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11081. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11082. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  11083. 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) {
  11084. this.Adapter.UpdateCommand.Parameters[0].Value = ((System.DateTime)(SaleDate));
  11085. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(ProductID));
  11086. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Quantity));
  11087. if ((ClientServiceID.HasValue == true)) {
  11088. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(ClientServiceID.Value));
  11089. }
  11090. else {
  11091. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  11092. }
  11093. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_ID));
  11094. this.Adapter.UpdateCommand.Parameters[5].Value = ((System.DateTime)(Original_SaleDate));
  11095. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ProductID));
  11096. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_Quantity));
  11097. if ((Original_ClientServiceID.HasValue == true)) {
  11098. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  11099. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_ClientServiceID.Value));
  11100. }
  11101. else {
  11102. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  11103. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  11104. }
  11105. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(ID));
  11106. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  11107. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11108. != global::System.Data.ConnectionState.Open)) {
  11109. this.Adapter.UpdateCommand.Connection.Open();
  11110. }
  11111. try {
  11112. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  11113. return returnValue;
  11114. }
  11115. finally {
  11116. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11117. this.Adapter.UpdateCommand.Connection.Close();
  11118. }
  11119. }
  11120. }
  11121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11123. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11124. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  11125. 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) {
  11126. return this.Update(SaleDate, ProductID, Quantity, ClientServiceID, Original_ID, Original_SaleDate, Original_ProductID, Original_Quantity, Original_ClientServiceID, Original_ID);
  11127. }
  11128. }
  11129. /// <summary>
  11130. ///Represents the connection and commands used to retrieve and save data.
  11131. ///</summary>
  11132. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  11133. [global::System.ComponentModel.ToolboxItem(true)]
  11134. [global::System.ComponentModel.DataObjectAttribute(true)]
  11135. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  11136. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  11137. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11138. public partial class sTableAdapter : global::System.ComponentModel.Component {
  11139. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  11140. private global::System.Data.SqlClient.SqlConnection _connection;
  11141. private global::System.Data.SqlClient.SqlTransaction _transaction;
  11142. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  11143. private bool _clearBeforeFill;
  11144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11146. public sTableAdapter() {
  11147. this.ClearBeforeFill = true;
  11148. }
  11149. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11150. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11151. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  11152. get {
  11153. if ((this._adapter == null)) {
  11154. this.InitAdapter();
  11155. }
  11156. return this._adapter;
  11157. }
  11158. }
  11159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11160. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11161. internal global::System.Data.SqlClient.SqlConnection Connection {
  11162. get {
  11163. if ((this._connection == null)) {
  11164. this.InitConnection();
  11165. }
  11166. return this._connection;
  11167. }
  11168. set {
  11169. this._connection = value;
  11170. if ((this.Adapter.InsertCommand != null)) {
  11171. this.Adapter.InsertCommand.Connection = value;
  11172. }
  11173. if ((this.Adapter.DeleteCommand != null)) {
  11174. this.Adapter.DeleteCommand.Connection = value;
  11175. }
  11176. if ((this.Adapter.UpdateCommand != null)) {
  11177. this.Adapter.UpdateCommand.Connection = value;
  11178. }
  11179. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  11180. if ((this.CommandCollection[i] != null)) {
  11181. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  11182. }
  11183. }
  11184. }
  11185. }
  11186. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11187. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11188. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  11189. get {
  11190. return this._transaction;
  11191. }
  11192. set {
  11193. this._transaction = value;
  11194. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  11195. this.CommandCollection[i].Transaction = this._transaction;
  11196. }
  11197. if (((this.Adapter != null)
  11198. && (this.Adapter.DeleteCommand != null))) {
  11199. this.Adapter.DeleteCommand.Transaction = this._transaction;
  11200. }
  11201. if (((this.Adapter != null)
  11202. && (this.Adapter.InsertCommand != null))) {
  11203. this.Adapter.InsertCommand.Transaction = this._transaction;
  11204. }
  11205. if (((this.Adapter != null)
  11206. && (this.Adapter.UpdateCommand != null))) {
  11207. this.Adapter.UpdateCommand.Transaction = this._transaction;
  11208. }
  11209. }
  11210. }
  11211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11213. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  11214. get {
  11215. if ((this._commandCollection == null)) {
  11216. this.InitCommandCollection();
  11217. }
  11218. return this._commandCollection;
  11219. }
  11220. }
  11221. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11222. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11223. public bool ClearBeforeFill {
  11224. get {
  11225. return this._clearBeforeFill;
  11226. }
  11227. set {
  11228. this._clearBeforeFill = value;
  11229. }
  11230. }
  11231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11233. private void InitAdapter() {
  11234. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  11235. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  11236. tableMapping.SourceTable = "Table";
  11237. tableMapping.DataSetTable = "s";
  11238. tableMapping.ColumnMappings.Add("ID", "ID");
  11239. tableMapping.ColumnMappings.Add("Title", "Title");
  11240. tableMapping.ColumnMappings.Add("Cost", "Cost");
  11241. tableMapping.ColumnMappings.Add("DurationInSeconds", "DurationInSeconds");
  11242. tableMapping.ColumnMappings.Add("Description", "Description");
  11243. tableMapping.ColumnMappings.Add("Discount", "Discount");
  11244. tableMapping.ColumnMappings.Add("MainImagePath", "MainImagePath");
  11245. this._adapter.TableMappings.Add(tableMapping);
  11246. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  11247. this._adapter.DeleteCommand.Connection = this.Connection;
  11248. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[s] WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ([Cost] = @Original_Cost) AND ([DurationInSeconds] = @Original_DurationInSeconds) AND ((@IsNull_Discount = 1 AND [Discount] IS NULL) OR ([Discount] = @Original_Discount)) AND ((@IsNull_MainImagePath = 1 AND [MainImagePath] IS NULL) OR ([MainImagePath] = @Original_MainImagePath)))";
  11249. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  11250. 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, "", "", ""));
  11251. 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, "", "", ""));
  11252. 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, "", "", ""));
  11253. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DurationInSeconds", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DurationInSeconds", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11254. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Discount", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Discount", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  11255. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Discount", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Discount", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11256. 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, "", "", ""));
  11257. 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, "", "", ""));
  11258. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  11259. this._adapter.InsertCommand.Connection = this.Connection;
  11260. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[s] ([Title], [Cost], [DurationInSeconds], [Description], [Discount], [MainImagePath]) VALUES (@Title, @Cost, @DurationInSeconds, @Description, @Discount, @MainImagePath);
  11261. SELECT ID, Title, Cost, DurationInSeconds, Description, Discount, MainImagePath FROM s WHERE (ID = SCOPE_IDENTITY())";
  11262. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  11263. 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, "", "", ""));
  11264. 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, "", "", ""));
  11265. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DurationInSeconds", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DurationInSeconds", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11266. 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, "", "", ""));
  11267. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Discount", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Discount", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11268. 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, "", "", ""));
  11269. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  11270. this._adapter.UpdateCommand.Connection = this.Connection;
  11271. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[s] SET [Title] = @Title, [Cost] = @Cost, [DurationInSeconds] = @DurationInSeconds, [Description] = @Description, [Discount] = @Discount, [MainImagePath] = @MainImagePath WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ([Cost] = @Original_Cost) AND ([DurationInSeconds] = @Original_DurationInSeconds) AND ((@IsNull_Discount = 1 AND [Discount] IS NULL) OR ([Discount] = @Original_Discount)) AND ((@IsNull_MainImagePath = 1 AND [MainImagePath] IS NULL) OR ([MainImagePath] = @Original_MainImagePath)));
  11272. SELECT ID, Title, Cost, DurationInSeconds, Description, Discount, MainImagePath FROM s WHERE (ID = @ID)";
  11273. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  11274. 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, "", "", ""));
  11275. 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, "", "", ""));
  11276. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DurationInSeconds", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DurationInSeconds", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11277. 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, "", "", ""));
  11278. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Discount", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Discount", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11279. 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, "", "", ""));
  11280. 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, "", "", ""));
  11281. 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, "", "", ""));
  11282. 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, "", "", ""));
  11283. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DurationInSeconds", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DurationInSeconds", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11284. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Discount", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Discount", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  11285. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Discount", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Discount", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11286. 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, "", "", ""));
  11287. 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, "", "", ""));
  11288. 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, "", "", ""));
  11289. }
  11290. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11291. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11292. private void InitConnection() {
  11293. this._connection = new global::System.Data.SqlClient.SqlConnection();
  11294. this._connection.ConnectionString = global::BBrovki1Z.Properties.Settings.Default.BBrovkiZConnectionString;
  11295. }
  11296. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11297. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11298. private void InitCommandCollection() {
  11299. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  11300. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  11301. this._commandCollection[0].Connection = this.Connection;
  11302. this._commandCollection[0].CommandText = "SELECT ID, Title, Cost, DurationInSeconds, Description, Discount, MainImagePath F" +
  11303. "ROM dbo.s";
  11304. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  11305. }
  11306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11307. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11308. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11309. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  11310. public virtual int Fill(BBrovkiZDataSet.sDataTable dataTable) {
  11311. this.Adapter.SelectCommand = this.CommandCollection[0];
  11312. if ((this.ClearBeforeFill == true)) {
  11313. dataTable.Clear();
  11314. }
  11315. int returnValue = this.Adapter.Fill(dataTable);
  11316. return returnValue;
  11317. }
  11318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11319. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11320. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11321. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  11322. public virtual BBrovkiZDataSet.sDataTable GetData() {
  11323. this.Adapter.SelectCommand = this.CommandCollection[0];
  11324. BBrovkiZDataSet.sDataTable dataTable = new BBrovkiZDataSet.sDataTable();
  11325. this.Adapter.Fill(dataTable);
  11326. return dataTable;
  11327. }
  11328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11329. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11330. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11331. public virtual int Update(BBrovkiZDataSet.sDataTable dataTable) {
  11332. return this.Adapter.Update(dataTable);
  11333. }
  11334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11336. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11337. public virtual int Update(BBrovkiZDataSet dataSet) {
  11338. return this.Adapter.Update(dataSet, "s");
  11339. }
  11340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11341. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11342. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11343. public virtual int Update(global::System.Data.DataRow dataRow) {
  11344. return this.Adapter.Update(new global::System.Data.DataRow[] {
  11345. dataRow});
  11346. }
  11347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11349. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11350. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  11351. return this.Adapter.Update(dataRows);
  11352. }
  11353. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11354. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11355. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11356. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  11357. public virtual int Delete(int Original_ID, string Original_Title, decimal Original_Cost, int Original_DurationInSeconds, global::System.Nullable<double> Original_Discount, string Original_MainImagePath) {
  11358. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  11359. if ((Original_Title == null)) {
  11360. throw new global::System.ArgumentNullException("Original_Title");
  11361. }
  11362. else {
  11363. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Title));
  11364. }
  11365. this.Adapter.DeleteCommand.Parameters[2].Value = ((decimal)(Original_Cost));
  11366. this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_DurationInSeconds));
  11367. if ((Original_Discount.HasValue == true)) {
  11368. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
  11369. this.Adapter.DeleteCommand.Parameters[5].Value = ((double)(Original_Discount.Value));
  11370. }
  11371. else {
  11372. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
  11373. this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
  11374. }
  11375. if ((Original_MainImagePath == null)) {
  11376. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1));
  11377. this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value;
  11378. }
  11379. else {
  11380. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0));
  11381. this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_MainImagePath));
  11382. }
  11383. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  11384. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11385. != global::System.Data.ConnectionState.Open)) {
  11386. this.Adapter.DeleteCommand.Connection.Open();
  11387. }
  11388. try {
  11389. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  11390. return returnValue;
  11391. }
  11392. finally {
  11393. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11394. this.Adapter.DeleteCommand.Connection.Close();
  11395. }
  11396. }
  11397. }
  11398. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11399. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11400. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11401. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  11402. public virtual int Insert(string Title, decimal Cost, int DurationInSeconds, string Description, global::System.Nullable<double> Discount, string MainImagePath) {
  11403. if ((Title == null)) {
  11404. throw new global::System.ArgumentNullException("Title");
  11405. }
  11406. else {
  11407. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  11408. }
  11409. this.Adapter.InsertCommand.Parameters[1].Value = ((decimal)(Cost));
  11410. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(DurationInSeconds));
  11411. if ((Description == null)) {
  11412. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  11413. }
  11414. else {
  11415. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Description));
  11416. }
  11417. if ((Discount.HasValue == true)) {
  11418. this.Adapter.InsertCommand.Parameters[4].Value = ((double)(Discount.Value));
  11419. }
  11420. else {
  11421. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  11422. }
  11423. if ((MainImagePath == null)) {
  11424. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  11425. }
  11426. else {
  11427. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(MainImagePath));
  11428. }
  11429. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  11430. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11431. != global::System.Data.ConnectionState.Open)) {
  11432. this.Adapter.InsertCommand.Connection.Open();
  11433. }
  11434. try {
  11435. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  11436. return returnValue;
  11437. }
  11438. finally {
  11439. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11440. this.Adapter.InsertCommand.Connection.Close();
  11441. }
  11442. }
  11443. }
  11444. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11445. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11446. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11447. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  11448. public virtual int Update(string Title, decimal Cost, int DurationInSeconds, string Description, global::System.Nullable<double> Discount, string MainImagePath, int Original_ID, string Original_Title, decimal Original_Cost, int Original_DurationInSeconds, global::System.Nullable<double> Original_Discount, string Original_MainImagePath, int ID) {
  11449. if ((Title == null)) {
  11450. throw new global::System.ArgumentNullException("Title");
  11451. }
  11452. else {
  11453. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  11454. }
  11455. this.Adapter.UpdateCommand.Parameters[1].Value = ((decimal)(Cost));
  11456. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(DurationInSeconds));
  11457. if ((Description == null)) {
  11458. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  11459. }
  11460. else {
  11461. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Description));
  11462. }
  11463. if ((Discount.HasValue == true)) {
  11464. this.Adapter.UpdateCommand.Parameters[4].Value = ((double)(Discount.Value));
  11465. }
  11466. else {
  11467. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  11468. }
  11469. if ((MainImagePath == null)) {
  11470. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  11471. }
  11472. else {
  11473. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(MainImagePath));
  11474. }
  11475. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ID));
  11476. if ((Original_Title == null)) {
  11477. throw new global::System.ArgumentNullException("Original_Title");
  11478. }
  11479. else {
  11480. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Title));
  11481. }
  11482. this.Adapter.UpdateCommand.Parameters[8].Value = ((decimal)(Original_Cost));
  11483. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_DurationInSeconds));
  11484. if ((Original_Discount.HasValue == true)) {
  11485. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  11486. this.Adapter.UpdateCommand.Parameters[11].Value = ((double)(Original_Discount.Value));
  11487. }
  11488. else {
  11489. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  11490. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  11491. }
  11492. if ((Original_MainImagePath == null)) {
  11493. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  11494. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  11495. }
  11496. else {
  11497. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  11498. this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_MainImagePath));
  11499. }
  11500. this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(ID));
  11501. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  11502. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11503. != global::System.Data.ConnectionState.Open)) {
  11504. this.Adapter.UpdateCommand.Connection.Open();
  11505. }
  11506. try {
  11507. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  11508. return returnValue;
  11509. }
  11510. finally {
  11511. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11512. this.Adapter.UpdateCommand.Connection.Close();
  11513. }
  11514. }
  11515. }
  11516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11517. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11518. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11519. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  11520. public virtual int Update(string Title, decimal Cost, int DurationInSeconds, string Description, global::System.Nullable<double> Discount, string MainImagePath, int Original_ID, string Original_Title, decimal Original_Cost, int Original_DurationInSeconds, global::System.Nullable<double> Original_Discount, string Original_MainImagePath) {
  11521. return this.Update(Title, Cost, DurationInSeconds, Description, Discount, MainImagePath, Original_ID, Original_Title, Original_Cost, Original_DurationInSeconds, Original_Discount, Original_MainImagePath, Original_ID);
  11522. }
  11523. }
  11524. /// <summary>
  11525. ///Represents the connection and commands used to retrieve and save data.
  11526. ///</summary>
  11527. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  11528. [global::System.ComponentModel.ToolboxItem(true)]
  11529. [global::System.ComponentModel.DataObjectAttribute(true)]
  11530. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  11531. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  11532. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11533. public partial class ServiceTableAdapter : global::System.ComponentModel.Component {
  11534. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  11535. private global::System.Data.SqlClient.SqlConnection _connection;
  11536. private global::System.Data.SqlClient.SqlTransaction _transaction;
  11537. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  11538. private bool _clearBeforeFill;
  11539. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11540. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11541. public ServiceTableAdapter() {
  11542. this.ClearBeforeFill = true;
  11543. }
  11544. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11545. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11546. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  11547. get {
  11548. if ((this._adapter == null)) {
  11549. this.InitAdapter();
  11550. }
  11551. return this._adapter;
  11552. }
  11553. }
  11554. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11555. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11556. internal global::System.Data.SqlClient.SqlConnection Connection {
  11557. get {
  11558. if ((this._connection == null)) {
  11559. this.InitConnection();
  11560. }
  11561. return this._connection;
  11562. }
  11563. set {
  11564. this._connection = value;
  11565. if ((this.Adapter.InsertCommand != null)) {
  11566. this.Adapter.InsertCommand.Connection = value;
  11567. }
  11568. if ((this.Adapter.DeleteCommand != null)) {
  11569. this.Adapter.DeleteCommand.Connection = value;
  11570. }
  11571. if ((this.Adapter.UpdateCommand != null)) {
  11572. this.Adapter.UpdateCommand.Connection = value;
  11573. }
  11574. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  11575. if ((this.CommandCollection[i] != null)) {
  11576. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  11577. }
  11578. }
  11579. }
  11580. }
  11581. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11582. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11583. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  11584. get {
  11585. return this._transaction;
  11586. }
  11587. set {
  11588. this._transaction = value;
  11589. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  11590. this.CommandCollection[i].Transaction = this._transaction;
  11591. }
  11592. if (((this.Adapter != null)
  11593. && (this.Adapter.DeleteCommand != null))) {
  11594. this.Adapter.DeleteCommand.Transaction = this._transaction;
  11595. }
  11596. if (((this.Adapter != null)
  11597. && (this.Adapter.InsertCommand != null))) {
  11598. this.Adapter.InsertCommand.Transaction = this._transaction;
  11599. }
  11600. if (((this.Adapter != null)
  11601. && (this.Adapter.UpdateCommand != null))) {
  11602. this.Adapter.UpdateCommand.Transaction = this._transaction;
  11603. }
  11604. }
  11605. }
  11606. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11607. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11608. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  11609. get {
  11610. if ((this._commandCollection == null)) {
  11611. this.InitCommandCollection();
  11612. }
  11613. return this._commandCollection;
  11614. }
  11615. }
  11616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11617. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11618. public bool ClearBeforeFill {
  11619. get {
  11620. return this._clearBeforeFill;
  11621. }
  11622. set {
  11623. this._clearBeforeFill = value;
  11624. }
  11625. }
  11626. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11627. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11628. private void InitAdapter() {
  11629. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  11630. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  11631. tableMapping.SourceTable = "Table";
  11632. tableMapping.DataSetTable = "Service";
  11633. tableMapping.ColumnMappings.Add("ID", "ID");
  11634. tableMapping.ColumnMappings.Add("Наименование_услуги", "Наименование_услуги");
  11635. tableMapping.ColumnMappings.Add("Главное_изображение", "Главное_изображение");
  11636. tableMapping.ColumnMappings.Add("Длительность", "Длительность");
  11637. tableMapping.ColumnMappings.Add("Стоимость", "Стоимость");
  11638. tableMapping.ColumnMappings.Add("Действующая_скидка", "Действующая_скидка");
  11639. this._adapter.TableMappings.Add(tableMapping);
  11640. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  11641. this._adapter.DeleteCommand.Connection = this.Connection;
  11642. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Service] WHERE (([ID] = @Original_ID) AND ([Наименование_услуги] = @Original_Наименование_услуги) AND ([Главное_изображение] = @Original_Главное_изображение) AND ([Длительность] = @Original_Длительность) AND ([Стоимость] = @Original_Стоимость) AND ([Действующая_скидка] = @Original_Действующая_скидка))";
  11643. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  11644. 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, "", "", ""));
  11645. 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, "", "", ""));
  11646. 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, "", "", ""));
  11647. 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, "", "", ""));
  11648. 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, "", "", ""));
  11649. 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, "", "", ""));
  11650. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  11651. this._adapter.InsertCommand.Connection = this.Connection;
  11652. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Service] ([ID], [Наименование_услуги], [Главное_изображение], [Длительность], [Стоимость], [Действующая_скидка]) VALUES (@ID, @Наименование_услуги, @Главное_изображение, @Длительность, @Стоимость, @Действующая_скидка);
  11653. SELECT ID, Наименование_услуги, Главное_изображение, Длительность, Стоимость, Действующая_скидка FROM Service WHERE (ID = @ID)";
  11654. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  11655. 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, "", "", ""));
  11656. 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, "", "", ""));
  11657. 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, "", "", ""));
  11658. 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, "", "", ""));
  11659. 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, "", "", ""));
  11660. 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, "", "", ""));
  11661. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  11662. this._adapter.UpdateCommand.Connection = this.Connection;
  11663. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Service] SET [ID] = @ID, [Наименование_услуги] = @Наименование_услуги, [Главное_изображение] = @Главное_изображение, [Длительность] = @Длительность, [Стоимость] = @Стоимость, [Действующая_скидка] = @Действующая_скидка WHERE (([ID] = @Original_ID) AND ([Наименование_услуги] = @Original_Наименование_услуги) AND ([Главное_изображение] = @Original_Главное_изображение) AND ([Длительность] = @Original_Длительность) AND ([Стоимость] = @Original_Стоимость) AND ([Действующая_скидка] = @Original_Действующая_скидка));
  11664. SELECT ID, Наименование_услуги, Главное_изображение, Длительность, Стоимость, Действующая_скидка FROM Service WHERE (ID = @ID)";
  11665. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  11666. 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, "", "", ""));
  11667. 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, "", "", ""));
  11668. 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, "", "", ""));
  11669. 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, "", "", ""));
  11670. 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, "", "", ""));
  11671. 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, "", "", ""));
  11672. 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, "", "", ""));
  11673. 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, "", "", ""));
  11674. 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, "", "", ""));
  11675. 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, "", "", ""));
  11676. 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, "", "", ""));
  11677. 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, "", "", ""));
  11678. }
  11679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11680. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11681. private void InitConnection() {
  11682. this._connection = new global::System.Data.SqlClient.SqlConnection();
  11683. this._connection.ConnectionString = global::BBrovki1Z.Properties.Settings.Default.BBrovkiZConnectionString;
  11684. }
  11685. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11686. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11687. private void InitCommandCollection() {
  11688. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  11689. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  11690. this._commandCollection[0].Connection = this.Connection;
  11691. this._commandCollection[0].CommandText = "SELECT ID, Наименование_услуги, Главное_изображение, Длительность, Стоимость, Дей" +
  11692. "ствующая_скидка FROM dbo.Service";
  11693. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  11694. }
  11695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11696. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11697. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11698. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  11699. public virtual int Fill(BBrovkiZDataSet.ServiceDataTable dataTable) {
  11700. this.Adapter.SelectCommand = this.CommandCollection[0];
  11701. if ((this.ClearBeforeFill == true)) {
  11702. dataTable.Clear();
  11703. }
  11704. int returnValue = this.Adapter.Fill(dataTable);
  11705. return returnValue;
  11706. }
  11707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11709. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11710. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  11711. public virtual BBrovkiZDataSet.ServiceDataTable GetData() {
  11712. this.Adapter.SelectCommand = this.CommandCollection[0];
  11713. BBrovkiZDataSet.ServiceDataTable dataTable = new BBrovkiZDataSet.ServiceDataTable();
  11714. this.Adapter.Fill(dataTable);
  11715. return dataTable;
  11716. }
  11717. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11718. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11719. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11720. public virtual int Update(BBrovkiZDataSet.ServiceDataTable dataTable) {
  11721. return this.Adapter.Update(dataTable);
  11722. }
  11723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11724. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11725. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11726. public virtual int Update(BBrovkiZDataSet dataSet) {
  11727. return this.Adapter.Update(dataSet, "Service");
  11728. }
  11729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11730. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11731. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11732. public virtual int Update(global::System.Data.DataRow dataRow) {
  11733. return this.Adapter.Update(new global::System.Data.DataRow[] {
  11734. dataRow});
  11735. }
  11736. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11737. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11738. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11739. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  11740. return this.Adapter.Update(dataRows);
  11741. }
  11742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11743. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11744. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11745. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  11746. public virtual int Delete(int Original_ID, string Original_Наименование_услуги, string Original_Главное_изображение, string Original_Длительность, decimal Original_Стоимость, string Original_Действующая_скидка) {
  11747. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  11748. if ((Original_Наименование_услуги == null)) {
  11749. throw new global::System.ArgumentNullException("Original_Наименование_услуги");
  11750. }
  11751. else {
  11752. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Наименование_услуги));
  11753. }
  11754. if ((Original_Главное_изображение == null)) {
  11755. throw new global::System.ArgumentNullException("Original_Главное_изображение");
  11756. }
  11757. else {
  11758. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Главное_изображение));
  11759. }
  11760. if ((Original_Длительность == null)) {
  11761. throw new global::System.ArgumentNullException("Original_Длительность");
  11762. }
  11763. else {
  11764. this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_Длительность));
  11765. }
  11766. this.Adapter.DeleteCommand.Parameters[4].Value = ((decimal)(Original_Стоимость));
  11767. if ((Original_Действующая_скидка == null)) {
  11768. throw new global::System.ArgumentNullException("Original_Действующая_скидка");
  11769. }
  11770. else {
  11771. this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_Действующая_скидка));
  11772. }
  11773. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  11774. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11775. != global::System.Data.ConnectionState.Open)) {
  11776. this.Adapter.DeleteCommand.Connection.Open();
  11777. }
  11778. try {
  11779. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  11780. return returnValue;
  11781. }
  11782. finally {
  11783. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11784. this.Adapter.DeleteCommand.Connection.Close();
  11785. }
  11786. }
  11787. }
  11788. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11789. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11790. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11791. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  11792. public virtual int Insert(int ID, string Наименование_услуги, string Главное_изображение, string Длительность, decimal Стоимость, string Действующая_скидка) {
  11793. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ID));
  11794. if ((Наименование_услуги == null)) {
  11795. throw new global::System.ArgumentNullException("Наименование_услуги");
  11796. }
  11797. else {
  11798. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Наименование_услуги));
  11799. }
  11800. if ((Главное_изображение == null)) {
  11801. throw new global::System.ArgumentNullException("Главное_изображение");
  11802. }
  11803. else {
  11804. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Главное_изображение));
  11805. }
  11806. if ((Длительность == null)) {
  11807. throw new global::System.ArgumentNullException("Длительность");
  11808. }
  11809. else {
  11810. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Длительность));
  11811. }
  11812. this.Adapter.InsertCommand.Parameters[4].Value = ((decimal)(Стоимость));
  11813. if ((Действующая_скидка == null)) {
  11814. throw new global::System.ArgumentNullException("Действующая_скидка");
  11815. }
  11816. else {
  11817. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Действующая_скидка));
  11818. }
  11819. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  11820. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11821. != global::System.Data.ConnectionState.Open)) {
  11822. this.Adapter.InsertCommand.Connection.Open();
  11823. }
  11824. try {
  11825. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  11826. return returnValue;
  11827. }
  11828. finally {
  11829. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11830. this.Adapter.InsertCommand.Connection.Close();
  11831. }
  11832. }
  11833. }
  11834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11835. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11836. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11837. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  11838. public virtual int Update(int ID, string Наименование_услуги, string Главное_изображение, string Длительность, decimal Стоимость, string Действующая_скидка, int Original_ID, string Original_Наименование_услуги, string Original_Главное_изображение, string Original_Длительность, decimal Original_Стоимость, string Original_Действующая_скидка) {
  11839. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ID));
  11840. if ((Наименование_услуги == null)) {
  11841. throw new global::System.ArgumentNullException("Наименование_услуги");
  11842. }
  11843. else {
  11844. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Наименование_услуги));
  11845. }
  11846. if ((Главное_изображение == null)) {
  11847. throw new global::System.ArgumentNullException("Главное_изображение");
  11848. }
  11849. else {
  11850. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Главное_изображение));
  11851. }
  11852. if ((Длительность == null)) {
  11853. throw new global::System.ArgumentNullException("Длительность");
  11854. }
  11855. else {
  11856. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Длительность));
  11857. }
  11858. this.Adapter.UpdateCommand.Parameters[4].Value = ((decimal)(Стоимость));
  11859. if ((Действующая_скидка == null)) {
  11860. throw new global::System.ArgumentNullException("Действующая_скидка");
  11861. }
  11862. else {
  11863. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Действующая_скидка));
  11864. }
  11865. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ID));
  11866. if ((Original_Наименование_услуги == null)) {
  11867. throw new global::System.ArgumentNullException("Original_Наименование_услуги");
  11868. }
  11869. else {
  11870. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Наименование_услуги));
  11871. }
  11872. if ((Original_Главное_изображение == null)) {
  11873. throw new global::System.ArgumentNullException("Original_Главное_изображение");
  11874. }
  11875. else {
  11876. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_Главное_изображение));
  11877. }
  11878. if ((Original_Длительность == null)) {
  11879. throw new global::System.ArgumentNullException("Original_Длительность");
  11880. }
  11881. else {
  11882. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_Длительность));
  11883. }
  11884. this.Adapter.UpdateCommand.Parameters[10].Value = ((decimal)(Original_Стоимость));
  11885. if ((Original_Действующая_скидка == null)) {
  11886. throw new global::System.ArgumentNullException("Original_Действующая_скидка");
  11887. }
  11888. else {
  11889. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_Действующая_скидка));
  11890. }
  11891. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  11892. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11893. != global::System.Data.ConnectionState.Open)) {
  11894. this.Adapter.UpdateCommand.Connection.Open();
  11895. }
  11896. try {
  11897. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  11898. return returnValue;
  11899. }
  11900. finally {
  11901. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11902. this.Adapter.UpdateCommand.Connection.Close();
  11903. }
  11904. }
  11905. }
  11906. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11907. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11908. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11909. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  11910. public virtual int Update(string Наименование_услуги, string Главное_изображение, string Длительность, decimal Стоимость, string Действующая_скидка, int Original_ID, string Original_Наименование_услуги, string Original_Главное_изображение, string Original_Длительность, decimal Original_Стоимость, string Original_Действующая_скидка) {
  11911. return this.Update(Original_ID, Наименование_услуги, Главное_изображение, Длительность, Стоимость, Действующая_скидка, Original_ID, Original_Наименование_услуги, Original_Главное_изображение, Original_Длительность, Original_Стоимость, Original_Действующая_скидка);
  11912. }
  11913. }
  11914. /// <summary>
  11915. ///Represents the connection and commands used to retrieve and save data.
  11916. ///</summary>
  11917. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  11918. [global::System.ComponentModel.ToolboxItem(true)]
  11919. [global::System.ComponentModel.DataObjectAttribute(true)]
  11920. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  11921. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  11922. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11923. public partial class ServicePhotoTableAdapter : global::System.ComponentModel.Component {
  11924. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  11925. private global::System.Data.SqlClient.SqlConnection _connection;
  11926. private global::System.Data.SqlClient.SqlTransaction _transaction;
  11927. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  11928. private bool _clearBeforeFill;
  11929. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11930. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11931. public ServicePhotoTableAdapter() {
  11932. this.ClearBeforeFill = true;
  11933. }
  11934. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11935. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11936. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  11937. get {
  11938. if ((this._adapter == null)) {
  11939. this.InitAdapter();
  11940. }
  11941. return this._adapter;
  11942. }
  11943. }
  11944. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11945. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11946. internal global::System.Data.SqlClient.SqlConnection Connection {
  11947. get {
  11948. if ((this._connection == null)) {
  11949. this.InitConnection();
  11950. }
  11951. return this._connection;
  11952. }
  11953. set {
  11954. this._connection = value;
  11955. if ((this.Adapter.InsertCommand != null)) {
  11956. this.Adapter.InsertCommand.Connection = value;
  11957. }
  11958. if ((this.Adapter.DeleteCommand != null)) {
  11959. this.Adapter.DeleteCommand.Connection = value;
  11960. }
  11961. if ((this.Adapter.UpdateCommand != null)) {
  11962. this.Adapter.UpdateCommand.Connection = value;
  11963. }
  11964. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  11965. if ((this.CommandCollection[i] != null)) {
  11966. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  11967. }
  11968. }
  11969. }
  11970. }
  11971. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11972. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11973. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  11974. get {
  11975. return this._transaction;
  11976. }
  11977. set {
  11978. this._transaction = value;
  11979. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  11980. this.CommandCollection[i].Transaction = this._transaction;
  11981. }
  11982. if (((this.Adapter != null)
  11983. && (this.Adapter.DeleteCommand != null))) {
  11984. this.Adapter.DeleteCommand.Transaction = this._transaction;
  11985. }
  11986. if (((this.Adapter != null)
  11987. && (this.Adapter.InsertCommand != null))) {
  11988. this.Adapter.InsertCommand.Transaction = this._transaction;
  11989. }
  11990. if (((this.Adapter != null)
  11991. && (this.Adapter.UpdateCommand != null))) {
  11992. this.Adapter.UpdateCommand.Transaction = this._transaction;
  11993. }
  11994. }
  11995. }
  11996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11997. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11998. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  11999. get {
  12000. if ((this._commandCollection == null)) {
  12001. this.InitCommandCollection();
  12002. }
  12003. return this._commandCollection;
  12004. }
  12005. }
  12006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12008. public bool ClearBeforeFill {
  12009. get {
  12010. return this._clearBeforeFill;
  12011. }
  12012. set {
  12013. this._clearBeforeFill = value;
  12014. }
  12015. }
  12016. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12017. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12018. private void InitAdapter() {
  12019. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  12020. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  12021. tableMapping.SourceTable = "Table";
  12022. tableMapping.DataSetTable = "ServicePhoto";
  12023. tableMapping.ColumnMappings.Add("ID", "ID");
  12024. tableMapping.ColumnMappings.Add("ServiceID", "ServiceID");
  12025. tableMapping.ColumnMappings.Add("PhotoPath", "PhotoPath");
  12026. this._adapter.TableMappings.Add(tableMapping);
  12027. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  12028. this._adapter.DeleteCommand.Connection = this.Connection;
  12029. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ServicePhoto] WHERE (([ID] = @Original_ID) AND ([ServiceID] = " +
  12030. "@Original_ServiceID) AND ([PhotoPath] = @Original_PhotoPath))";
  12031. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  12032. 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, "", "", ""));
  12033. 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, "", "", ""));
  12034. 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, "", "", ""));
  12035. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  12036. this._adapter.InsertCommand.Connection = this.Connection;
  12037. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ServicePhoto] ([ServiceID], [PhotoPath]) VALUES (@ServiceID, @" +
  12038. "PhotoPath);\r\nSELECT ID, ServiceID, PhotoPath FROM ServicePhoto WHERE (ID = SCOPE" +
  12039. "_IDENTITY())";
  12040. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  12041. 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, "", "", ""));
  12042. 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, "", "", ""));
  12043. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  12044. this._adapter.UpdateCommand.Connection = this.Connection;
  12045. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ServicePhoto] SET [ServiceID] = @ServiceID, [PhotoPath] = @PhotoPath WHERE (([ID] = @Original_ID) AND ([ServiceID] = @Original_ServiceID) AND ([PhotoPath] = @Original_PhotoPath));
  12046. SELECT ID, ServiceID, PhotoPath FROM ServicePhoto WHERE (ID = @ID)";
  12047. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  12048. 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, "", "", ""));
  12049. 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, "", "", ""));
  12050. 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, "", "", ""));
  12051. 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, "", "", ""));
  12052. 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, "", "", ""));
  12053. 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, "", "", ""));
  12054. }
  12055. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12056. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12057. private void InitConnection() {
  12058. this._connection = new global::System.Data.SqlClient.SqlConnection();
  12059. this._connection.ConnectionString = global::BBrovki1Z.Properties.Settings.Default.BBrovkiZConnectionString;
  12060. }
  12061. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12062. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12063. private void InitCommandCollection() {
  12064. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  12065. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  12066. this._commandCollection[0].Connection = this.Connection;
  12067. this._commandCollection[0].CommandText = "SELECT ID, ServiceID, PhotoPath FROM dbo.ServicePhoto";
  12068. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  12069. }
  12070. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12071. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12072. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12073. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  12074. public virtual int Fill(BBrovkiZDataSet.ServicePhotoDataTable dataTable) {
  12075. this.Adapter.SelectCommand = this.CommandCollection[0];
  12076. if ((this.ClearBeforeFill == true)) {
  12077. dataTable.Clear();
  12078. }
  12079. int returnValue = this.Adapter.Fill(dataTable);
  12080. return returnValue;
  12081. }
  12082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12084. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12085. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  12086. public virtual BBrovkiZDataSet.ServicePhotoDataTable GetData() {
  12087. this.Adapter.SelectCommand = this.CommandCollection[0];
  12088. BBrovkiZDataSet.ServicePhotoDataTable dataTable = new BBrovkiZDataSet.ServicePhotoDataTable();
  12089. this.Adapter.Fill(dataTable);
  12090. return dataTable;
  12091. }
  12092. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12093. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12094. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12095. public virtual int Update(BBrovkiZDataSet.ServicePhotoDataTable dataTable) {
  12096. return this.Adapter.Update(dataTable);
  12097. }
  12098. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12099. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12100. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12101. public virtual int Update(BBrovkiZDataSet dataSet) {
  12102. return this.Adapter.Update(dataSet, "ServicePhoto");
  12103. }
  12104. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12105. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12106. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12107. public virtual int Update(global::System.Data.DataRow dataRow) {
  12108. return this.Adapter.Update(new global::System.Data.DataRow[] {
  12109. dataRow});
  12110. }
  12111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12113. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12114. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  12115. return this.Adapter.Update(dataRows);
  12116. }
  12117. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12118. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12119. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12120. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  12121. public virtual int Delete(int Original_ID, int Original_ServiceID, string Original_PhotoPath) {
  12122. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  12123. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ServiceID));
  12124. if ((Original_PhotoPath == null)) {
  12125. throw new global::System.ArgumentNullException("Original_PhotoPath");
  12126. }
  12127. else {
  12128. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_PhotoPath));
  12129. }
  12130. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  12131. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  12132. != global::System.Data.ConnectionState.Open)) {
  12133. this.Adapter.DeleteCommand.Connection.Open();
  12134. }
  12135. try {
  12136. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  12137. return returnValue;
  12138. }
  12139. finally {
  12140. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  12141. this.Adapter.DeleteCommand.Connection.Close();
  12142. }
  12143. }
  12144. }
  12145. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12146. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12147. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12148. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  12149. public virtual int Insert(int ServiceID, string PhotoPath) {
  12150. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ServiceID));
  12151. if ((PhotoPath == null)) {
  12152. throw new global::System.ArgumentNullException("PhotoPath");
  12153. }
  12154. else {
  12155. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(PhotoPath));
  12156. }
  12157. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  12158. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  12159. != global::System.Data.ConnectionState.Open)) {
  12160. this.Adapter.InsertCommand.Connection.Open();
  12161. }
  12162. try {
  12163. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  12164. return returnValue;
  12165. }
  12166. finally {
  12167. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  12168. this.Adapter.InsertCommand.Connection.Close();
  12169. }
  12170. }
  12171. }
  12172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12174. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12175. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  12176. public virtual int Update(int ServiceID, string PhotoPath, int Original_ID, int Original_ServiceID, string Original_PhotoPath, int ID) {
  12177. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ServiceID));
  12178. if ((PhotoPath == null)) {
  12179. throw new global::System.ArgumentNullException("PhotoPath");
  12180. }
  12181. else {
  12182. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(PhotoPath));
  12183. }
  12184. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  12185. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ServiceID));
  12186. if ((Original_PhotoPath == null)) {
  12187. throw new global::System.ArgumentNullException("Original_PhotoPath");
  12188. }
  12189. else {
  12190. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_PhotoPath));
  12191. }
  12192. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID));
  12193. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  12194. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  12195. != global::System.Data.ConnectionState.Open)) {
  12196. this.Adapter.UpdateCommand.Connection.Open();
  12197. }
  12198. try {
  12199. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  12200. return returnValue;
  12201. }
  12202. finally {
  12203. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  12204. this.Adapter.UpdateCommand.Connection.Close();
  12205. }
  12206. }
  12207. }
  12208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12209. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12210. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12211. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  12212. public virtual int Update(int ServiceID, string PhotoPath, int Original_ID, int Original_ServiceID, string Original_PhotoPath) {
  12213. return this.Update(ServiceID, PhotoPath, Original_ID, Original_ServiceID, Original_PhotoPath, Original_ID);
  12214. }
  12215. }
  12216. /// <summary>
  12217. ///Represents the connection and commands used to retrieve and save data.
  12218. ///</summary>
  12219. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  12220. [global::System.ComponentModel.ToolboxItem(true)]
  12221. [global::System.ComponentModel.DataObjectAttribute(true)]
  12222. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  12223. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  12224. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12225. public partial class TagTableAdapter : global::System.ComponentModel.Component {
  12226. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  12227. private global::System.Data.SqlClient.SqlConnection _connection;
  12228. private global::System.Data.SqlClient.SqlTransaction _transaction;
  12229. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  12230. private bool _clearBeforeFill;
  12231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12233. public TagTableAdapter() {
  12234. this.ClearBeforeFill = true;
  12235. }
  12236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12237. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12238. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  12239. get {
  12240. if ((this._adapter == null)) {
  12241. this.InitAdapter();
  12242. }
  12243. return this._adapter;
  12244. }
  12245. }
  12246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12247. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12248. internal global::System.Data.SqlClient.SqlConnection Connection {
  12249. get {
  12250. if ((this._connection == null)) {
  12251. this.InitConnection();
  12252. }
  12253. return this._connection;
  12254. }
  12255. set {
  12256. this._connection = value;
  12257. if ((this.Adapter.InsertCommand != null)) {
  12258. this.Adapter.InsertCommand.Connection = value;
  12259. }
  12260. if ((this.Adapter.DeleteCommand != null)) {
  12261. this.Adapter.DeleteCommand.Connection = value;
  12262. }
  12263. if ((this.Adapter.UpdateCommand != null)) {
  12264. this.Adapter.UpdateCommand.Connection = value;
  12265. }
  12266. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  12267. if ((this.CommandCollection[i] != null)) {
  12268. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  12269. }
  12270. }
  12271. }
  12272. }
  12273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12274. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12275. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  12276. get {
  12277. return this._transaction;
  12278. }
  12279. set {
  12280. this._transaction = value;
  12281. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  12282. this.CommandCollection[i].Transaction = this._transaction;
  12283. }
  12284. if (((this.Adapter != null)
  12285. && (this.Adapter.DeleteCommand != null))) {
  12286. this.Adapter.DeleteCommand.Transaction = this._transaction;
  12287. }
  12288. if (((this.Adapter != null)
  12289. && (this.Adapter.InsertCommand != null))) {
  12290. this.Adapter.InsertCommand.Transaction = this._transaction;
  12291. }
  12292. if (((this.Adapter != null)
  12293. && (this.Adapter.UpdateCommand != null))) {
  12294. this.Adapter.UpdateCommand.Transaction = this._transaction;
  12295. }
  12296. }
  12297. }
  12298. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12299. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12300. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  12301. get {
  12302. if ((this._commandCollection == null)) {
  12303. this.InitCommandCollection();
  12304. }
  12305. return this._commandCollection;
  12306. }
  12307. }
  12308. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12309. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12310. public bool ClearBeforeFill {
  12311. get {
  12312. return this._clearBeforeFill;
  12313. }
  12314. set {
  12315. this._clearBeforeFill = value;
  12316. }
  12317. }
  12318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12319. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12320. private void InitAdapter() {
  12321. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  12322. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  12323. tableMapping.SourceTable = "Table";
  12324. tableMapping.DataSetTable = "Tag";
  12325. tableMapping.ColumnMappings.Add("ID", "ID");
  12326. tableMapping.ColumnMappings.Add("Title", "Title");
  12327. tableMapping.ColumnMappings.Add("Color", "Color");
  12328. this._adapter.TableMappings.Add(tableMapping);
  12329. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  12330. this._adapter.DeleteCommand.Connection = this.Connection;
  12331. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Tag] WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Tit" +
  12332. "le) AND ([Color] = @Original_Color))";
  12333. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  12334. 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, "", "", ""));
  12335. 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, "", "", ""));
  12336. 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, "", "", ""));
  12337. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  12338. this._adapter.InsertCommand.Connection = this.Connection;
  12339. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Tag] ([Title], [Color]) VALUES (@Title, @Color);\r\nSELECT ID, T" +
  12340. "itle, Color FROM Tag WHERE (ID = SCOPE_IDENTITY())";
  12341. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  12342. 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, "", "", ""));
  12343. 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, "", "", ""));
  12344. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  12345. this._adapter.UpdateCommand.Connection = this.Connection;
  12346. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Tag] SET [Title] = @Title, [Color] = @Color WHERE (([ID] = @Origina" +
  12347. "l_ID) AND ([Title] = @Original_Title) AND ([Color] = @Original_Color));\r\nSELECT " +
  12348. "ID, Title, Color FROM Tag WHERE (ID = @ID)";
  12349. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  12350. 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, "", "", ""));
  12351. 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, "", "", ""));
  12352. 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, "", "", ""));
  12353. 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, "", "", ""));
  12354. 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, "", "", ""));
  12355. 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, "", "", ""));
  12356. }
  12357. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12358. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12359. private void InitConnection() {
  12360. this._connection = new global::System.Data.SqlClient.SqlConnection();
  12361. this._connection.ConnectionString = global::BBrovki1Z.Properties.Settings.Default.BBrovkiZConnectionString;
  12362. }
  12363. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12364. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12365. private void InitCommandCollection() {
  12366. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  12367. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  12368. this._commandCollection[0].Connection = this.Connection;
  12369. this._commandCollection[0].CommandText = "SELECT ID, Title, Color FROM dbo.Tag";
  12370. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  12371. }
  12372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12374. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12375. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  12376. public virtual int Fill(BBrovkiZDataSet.TagDataTable dataTable) {
  12377. this.Adapter.SelectCommand = this.CommandCollection[0];
  12378. if ((this.ClearBeforeFill == true)) {
  12379. dataTable.Clear();
  12380. }
  12381. int returnValue = this.Adapter.Fill(dataTable);
  12382. return returnValue;
  12383. }
  12384. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12385. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12386. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12387. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  12388. public virtual BBrovkiZDataSet.TagDataTable GetData() {
  12389. this.Adapter.SelectCommand = this.CommandCollection[0];
  12390. BBrovkiZDataSet.TagDataTable dataTable = new BBrovkiZDataSet.TagDataTable();
  12391. this.Adapter.Fill(dataTable);
  12392. return dataTable;
  12393. }
  12394. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12395. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12396. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12397. public virtual int Update(BBrovkiZDataSet.TagDataTable dataTable) {
  12398. return this.Adapter.Update(dataTable);
  12399. }
  12400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12402. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12403. public virtual int Update(BBrovkiZDataSet dataSet) {
  12404. return this.Adapter.Update(dataSet, "Tag");
  12405. }
  12406. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12407. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12408. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12409. public virtual int Update(global::System.Data.DataRow dataRow) {
  12410. return this.Adapter.Update(new global::System.Data.DataRow[] {
  12411. dataRow});
  12412. }
  12413. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12414. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12415. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12416. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  12417. return this.Adapter.Update(dataRows);
  12418. }
  12419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12421. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12422. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  12423. public virtual int Delete(int Original_ID, string Original_Title, string Original_Color) {
  12424. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  12425. if ((Original_Title == null)) {
  12426. throw new global::System.ArgumentNullException("Original_Title");
  12427. }
  12428. else {
  12429. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Title));
  12430. }
  12431. if ((Original_Color == null)) {
  12432. throw new global::System.ArgumentNullException("Original_Color");
  12433. }
  12434. else {
  12435. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Color));
  12436. }
  12437. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  12438. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  12439. != global::System.Data.ConnectionState.Open)) {
  12440. this.Adapter.DeleteCommand.Connection.Open();
  12441. }
  12442. try {
  12443. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  12444. return returnValue;
  12445. }
  12446. finally {
  12447. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  12448. this.Adapter.DeleteCommand.Connection.Close();
  12449. }
  12450. }
  12451. }
  12452. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12453. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12454. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12455. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  12456. public virtual int Insert(string Title, string Color) {
  12457. if ((Title == null)) {
  12458. throw new global::System.ArgumentNullException("Title");
  12459. }
  12460. else {
  12461. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  12462. }
  12463. if ((Color == null)) {
  12464. throw new global::System.ArgumentNullException("Color");
  12465. }
  12466. else {
  12467. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Color));
  12468. }
  12469. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  12470. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  12471. != global::System.Data.ConnectionState.Open)) {
  12472. this.Adapter.InsertCommand.Connection.Open();
  12473. }
  12474. try {
  12475. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  12476. return returnValue;
  12477. }
  12478. finally {
  12479. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  12480. this.Adapter.InsertCommand.Connection.Close();
  12481. }
  12482. }
  12483. }
  12484. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12485. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12486. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12487. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  12488. public virtual int Update(string Title, string Color, int Original_ID, string Original_Title, string Original_Color, int ID) {
  12489. if ((Title == null)) {
  12490. throw new global::System.ArgumentNullException("Title");
  12491. }
  12492. else {
  12493. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  12494. }
  12495. if ((Color == null)) {
  12496. throw new global::System.ArgumentNullException("Color");
  12497. }
  12498. else {
  12499. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Color));
  12500. }
  12501. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  12502. if ((Original_Title == null)) {
  12503. throw new global::System.ArgumentNullException("Original_Title");
  12504. }
  12505. else {
  12506. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Title));
  12507. }
  12508. if ((Original_Color == null)) {
  12509. throw new global::System.ArgumentNullException("Original_Color");
  12510. }
  12511. else {
  12512. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Color));
  12513. }
  12514. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID));
  12515. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  12516. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  12517. != global::System.Data.ConnectionState.Open)) {
  12518. this.Adapter.UpdateCommand.Connection.Open();
  12519. }
  12520. try {
  12521. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  12522. return returnValue;
  12523. }
  12524. finally {
  12525. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  12526. this.Adapter.UpdateCommand.Connection.Close();
  12527. }
  12528. }
  12529. }
  12530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12532. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12533. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  12534. public virtual int Update(string Title, string Color, int Original_ID, string Original_Title, string Original_Color) {
  12535. return this.Update(Title, Color, Original_ID, Original_Title, Original_Color, Original_ID);
  12536. }
  12537. }
  12538. /// <summary>
  12539. ///Represents the connection and commands used to retrieve and save data.
  12540. ///</summary>
  12541. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  12542. [global::System.ComponentModel.ToolboxItem(true)]
  12543. [global::System.ComponentModel.DataObjectAttribute(true)]
  12544. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  12545. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  12546. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12547. public partial class TagOfClientTableAdapter : global::System.ComponentModel.Component {
  12548. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  12549. private global::System.Data.SqlClient.SqlConnection _connection;
  12550. private global::System.Data.SqlClient.SqlTransaction _transaction;
  12551. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  12552. private bool _clearBeforeFill;
  12553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12555. public TagOfClientTableAdapter() {
  12556. this.ClearBeforeFill = true;
  12557. }
  12558. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12559. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12560. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  12561. get {
  12562. if ((this._adapter == null)) {
  12563. this.InitAdapter();
  12564. }
  12565. return this._adapter;
  12566. }
  12567. }
  12568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12570. internal global::System.Data.SqlClient.SqlConnection Connection {
  12571. get {
  12572. if ((this._connection == null)) {
  12573. this.InitConnection();
  12574. }
  12575. return this._connection;
  12576. }
  12577. set {
  12578. this._connection = value;
  12579. if ((this.Adapter.InsertCommand != null)) {
  12580. this.Adapter.InsertCommand.Connection = value;
  12581. }
  12582. if ((this.Adapter.DeleteCommand != null)) {
  12583. this.Adapter.DeleteCommand.Connection = value;
  12584. }
  12585. if ((this.Adapter.UpdateCommand != null)) {
  12586. this.Adapter.UpdateCommand.Connection = value;
  12587. }
  12588. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  12589. if ((this.CommandCollection[i] != null)) {
  12590. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  12591. }
  12592. }
  12593. }
  12594. }
  12595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12596. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12597. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  12598. get {
  12599. return this._transaction;
  12600. }
  12601. set {
  12602. this._transaction = value;
  12603. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  12604. this.CommandCollection[i].Transaction = this._transaction;
  12605. }
  12606. if (((this.Adapter != null)
  12607. && (this.Adapter.DeleteCommand != null))) {
  12608. this.Adapter.DeleteCommand.Transaction = this._transaction;
  12609. }
  12610. if (((this.Adapter != null)
  12611. && (this.Adapter.InsertCommand != null))) {
  12612. this.Adapter.InsertCommand.Transaction = this._transaction;
  12613. }
  12614. if (((this.Adapter != null)
  12615. && (this.Adapter.UpdateCommand != null))) {
  12616. this.Adapter.UpdateCommand.Transaction = this._transaction;
  12617. }
  12618. }
  12619. }
  12620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12621. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12622. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  12623. get {
  12624. if ((this._commandCollection == null)) {
  12625. this.InitCommandCollection();
  12626. }
  12627. return this._commandCollection;
  12628. }
  12629. }
  12630. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12631. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12632. public bool ClearBeforeFill {
  12633. get {
  12634. return this._clearBeforeFill;
  12635. }
  12636. set {
  12637. this._clearBeforeFill = value;
  12638. }
  12639. }
  12640. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12641. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12642. private void InitAdapter() {
  12643. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  12644. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  12645. tableMapping.SourceTable = "Table";
  12646. tableMapping.DataSetTable = "TagOfClient";
  12647. tableMapping.ColumnMappings.Add("ClientID", "ClientID");
  12648. tableMapping.ColumnMappings.Add("TagID", "TagID");
  12649. this._adapter.TableMappings.Add(tableMapping);
  12650. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  12651. this._adapter.DeleteCommand.Connection = this.Connection;
  12652. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[TagOfClient] WHERE (([ClientID] = @Original_ClientID) AND ([Ta" +
  12653. "gID] = @Original_TagID))";
  12654. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  12655. 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, "", "", ""));
  12656. 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, "", "", ""));
  12657. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  12658. this._adapter.InsertCommand.Connection = this.Connection;
  12659. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[TagOfClient] ([ClientID], [TagID]) VALUES (@ClientID, @TagID);" +
  12660. "\r\nSELECT ClientID, TagID FROM TagOfClient WHERE (ClientID = @ClientID) AND (TagI" +
  12661. "D = @TagID)";
  12662. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  12663. 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, "", "", ""));
  12664. 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, "", "", ""));
  12665. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  12666. this._adapter.UpdateCommand.Connection = this.Connection;
  12667. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[TagOfClient] SET [ClientID] = @ClientID, [TagID] = @TagID WHERE (([" +
  12668. "ClientID] = @Original_ClientID) AND ([TagID] = @Original_TagID));\r\nSELECT Client" +
  12669. "ID, TagID FROM TagOfClient WHERE (ClientID = @ClientID) AND (TagID = @TagID)";
  12670. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  12671. 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, "", "", ""));
  12672. 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, "", "", ""));
  12673. 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, "", "", ""));
  12674. 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, "", "", ""));
  12675. }
  12676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12677. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12678. private void InitConnection() {
  12679. this._connection = new global::System.Data.SqlClient.SqlConnection();
  12680. this._connection.ConnectionString = global::BBrovki1Z.Properties.Settings.Default.BBrovkiZConnectionString;
  12681. }
  12682. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12683. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12684. private void InitCommandCollection() {
  12685. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  12686. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  12687. this._commandCollection[0].Connection = this.Connection;
  12688. this._commandCollection[0].CommandText = "SELECT ClientID, TagID FROM dbo.TagOfClient";
  12689. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  12690. }
  12691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12692. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12693. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12694. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  12695. public virtual int Fill(BBrovkiZDataSet.TagOfClientDataTable dataTable) {
  12696. this.Adapter.SelectCommand = this.CommandCollection[0];
  12697. if ((this.ClearBeforeFill == true)) {
  12698. dataTable.Clear();
  12699. }
  12700. int returnValue = this.Adapter.Fill(dataTable);
  12701. return returnValue;
  12702. }
  12703. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12704. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12705. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12706. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  12707. public virtual BBrovkiZDataSet.TagOfClientDataTable GetData() {
  12708. this.Adapter.SelectCommand = this.CommandCollection[0];
  12709. BBrovkiZDataSet.TagOfClientDataTable dataTable = new BBrovkiZDataSet.TagOfClientDataTable();
  12710. this.Adapter.Fill(dataTable);
  12711. return dataTable;
  12712. }
  12713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12715. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12716. public virtual int Update(BBrovkiZDataSet.TagOfClientDataTable dataTable) {
  12717. return this.Adapter.Update(dataTable);
  12718. }
  12719. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12720. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12721. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12722. public virtual int Update(BBrovkiZDataSet dataSet) {
  12723. return this.Adapter.Update(dataSet, "TagOfClient");
  12724. }
  12725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12726. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12727. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12728. public virtual int Update(global::System.Data.DataRow dataRow) {
  12729. return this.Adapter.Update(new global::System.Data.DataRow[] {
  12730. dataRow});
  12731. }
  12732. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12733. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12734. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12735. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  12736. return this.Adapter.Update(dataRows);
  12737. }
  12738. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12739. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12740. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12741. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  12742. public virtual int Delete(int Original_ClientID, int Original_TagID) {
  12743. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ClientID));
  12744. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_TagID));
  12745. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  12746. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  12747. != global::System.Data.ConnectionState.Open)) {
  12748. this.Adapter.DeleteCommand.Connection.Open();
  12749. }
  12750. try {
  12751. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  12752. return returnValue;
  12753. }
  12754. finally {
  12755. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  12756. this.Adapter.DeleteCommand.Connection.Close();
  12757. }
  12758. }
  12759. }
  12760. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12761. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12762. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12763. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  12764. public virtual int Insert(int ClientID, int TagID) {
  12765. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ClientID));
  12766. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(TagID));
  12767. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  12768. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  12769. != global::System.Data.ConnectionState.Open)) {
  12770. this.Adapter.InsertCommand.Connection.Open();
  12771. }
  12772. try {
  12773. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  12774. return returnValue;
  12775. }
  12776. finally {
  12777. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  12778. this.Adapter.InsertCommand.Connection.Close();
  12779. }
  12780. }
  12781. }
  12782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12783. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12784. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12785. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  12786. public virtual int Update(int ClientID, int TagID, int Original_ClientID, int Original_TagID) {
  12787. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ClientID));
  12788. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(TagID));
  12789. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ClientID));
  12790. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_TagID));
  12791. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  12792. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  12793. != global::System.Data.ConnectionState.Open)) {
  12794. this.Adapter.UpdateCommand.Connection.Open();
  12795. }
  12796. try {
  12797. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  12798. return returnValue;
  12799. }
  12800. finally {
  12801. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  12802. this.Adapter.UpdateCommand.Connection.Close();
  12803. }
  12804. }
  12805. }
  12806. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12807. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12808. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12809. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  12810. public virtual int Update(int Original_ClientID, int Original_TagID) {
  12811. return this.Update(Original_ClientID, Original_TagID, Original_ClientID, Original_TagID);
  12812. }
  12813. }
  12814. /// <summary>
  12815. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  12816. ///</summary>
  12817. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  12818. [global::System.ComponentModel.ToolboxItem(true)]
  12819. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  12820. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  12821. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  12822. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  12823. private UpdateOrderOption _updateOrder;
  12824. private AttachedProductTableAdapter _attachedProductTableAdapter;
  12825. private cTableAdapter _cTableAdapter;
  12826. private ClientTableAdapter _clientTableAdapter;
  12827. private ClientServiseTableAdapter _clientServiseTableAdapter;
  12828. private csTableAdapter _csTableAdapter;
  12829. private DocumentByServiceTableAdapter _documentByServiceTableAdapter;
  12830. private GenderTableAdapter _genderTableAdapter;
  12831. private ManufacturerTableAdapter _manufacturerTableAdapter;
  12832. private ProductTableAdapter _productTableAdapter;
  12833. private ProductPhotoTableAdapter _productPhotoTableAdapter;
  12834. private ProductSaleTableAdapter _productSaleTableAdapter;
  12835. private sTableAdapter _sTableAdapter;
  12836. private ServiceTableAdapter _serviceTableAdapter;
  12837. private ServicePhotoTableAdapter _servicePhotoTableAdapter;
  12838. private TagTableAdapter _tagTableAdapter;
  12839. private TagOfClientTableAdapter _tagOfClientTableAdapter;
  12840. private bool _backupDataSetBeforeUpdate;
  12841. private global::System.Data.IDbConnection _connection;
  12842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12844. public UpdateOrderOption UpdateOrder {
  12845. get {
  12846. return this._updateOrder;
  12847. }
  12848. set {
  12849. this._updateOrder = value;
  12850. }
  12851. }
  12852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12853. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12854. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  12855. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  12856. "a", "System.Drawing.Design.UITypeEditor")]
  12857. public AttachedProductTableAdapter AttachedProductTableAdapter {
  12858. get {
  12859. return this._attachedProductTableAdapter;
  12860. }
  12861. set {
  12862. this._attachedProductTableAdapter = value;
  12863. }
  12864. }
  12865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12867. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  12868. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  12869. "a", "System.Drawing.Design.UITypeEditor")]
  12870. public cTableAdapter cTableAdapter {
  12871. get {
  12872. return this._cTableAdapter;
  12873. }
  12874. set {
  12875. this._cTableAdapter = value;
  12876. }
  12877. }
  12878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12879. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12880. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  12881. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  12882. "a", "System.Drawing.Design.UITypeEditor")]
  12883. public ClientTableAdapter ClientTableAdapter {
  12884. get {
  12885. return this._clientTableAdapter;
  12886. }
  12887. set {
  12888. this._clientTableAdapter = value;
  12889. }
  12890. }
  12891. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12892. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12893. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  12894. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  12895. "a", "System.Drawing.Design.UITypeEditor")]
  12896. public ClientServiseTableAdapter ClientServiseTableAdapter {
  12897. get {
  12898. return this._clientServiseTableAdapter;
  12899. }
  12900. set {
  12901. this._clientServiseTableAdapter = value;
  12902. }
  12903. }
  12904. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12905. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12906. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  12907. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  12908. "a", "System.Drawing.Design.UITypeEditor")]
  12909. public csTableAdapter csTableAdapter {
  12910. get {
  12911. return this._csTableAdapter;
  12912. }
  12913. set {
  12914. this._csTableAdapter = value;
  12915. }
  12916. }
  12917. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12918. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12919. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  12920. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  12921. "a", "System.Drawing.Design.UITypeEditor")]
  12922. public DocumentByServiceTableAdapter DocumentByServiceTableAdapter {
  12923. get {
  12924. return this._documentByServiceTableAdapter;
  12925. }
  12926. set {
  12927. this._documentByServiceTableAdapter = value;
  12928. }
  12929. }
  12930. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12931. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12932. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  12933. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  12934. "a", "System.Drawing.Design.UITypeEditor")]
  12935. public GenderTableAdapter GenderTableAdapter {
  12936. get {
  12937. return this._genderTableAdapter;
  12938. }
  12939. set {
  12940. this._genderTableAdapter = value;
  12941. }
  12942. }
  12943. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12944. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12945. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  12946. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  12947. "a", "System.Drawing.Design.UITypeEditor")]
  12948. public ManufacturerTableAdapter ManufacturerTableAdapter {
  12949. get {
  12950. return this._manufacturerTableAdapter;
  12951. }
  12952. set {
  12953. this._manufacturerTableAdapter = value;
  12954. }
  12955. }
  12956. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12957. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12958. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  12959. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  12960. "a", "System.Drawing.Design.UITypeEditor")]
  12961. public ProductTableAdapter ProductTableAdapter {
  12962. get {
  12963. return this._productTableAdapter;
  12964. }
  12965. set {
  12966. this._productTableAdapter = value;
  12967. }
  12968. }
  12969. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12970. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12971. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  12972. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  12973. "a", "System.Drawing.Design.UITypeEditor")]
  12974. public ProductPhotoTableAdapter ProductPhotoTableAdapter {
  12975. get {
  12976. return this._productPhotoTableAdapter;
  12977. }
  12978. set {
  12979. this._productPhotoTableAdapter = value;
  12980. }
  12981. }
  12982. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12983. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12984. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  12985. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  12986. "a", "System.Drawing.Design.UITypeEditor")]
  12987. public ProductSaleTableAdapter ProductSaleTableAdapter {
  12988. get {
  12989. return this._productSaleTableAdapter;
  12990. }
  12991. set {
  12992. this._productSaleTableAdapter = value;
  12993. }
  12994. }
  12995. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12996. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12997. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  12998. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  12999. "a", "System.Drawing.Design.UITypeEditor")]
  13000. public sTableAdapter sTableAdapter {
  13001. get {
  13002. return this._sTableAdapter;
  13003. }
  13004. set {
  13005. this._sTableAdapter = value;
  13006. }
  13007. }
  13008. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13009. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13010. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  13011. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  13012. "a", "System.Drawing.Design.UITypeEditor")]
  13013. public ServiceTableAdapter ServiceTableAdapter {
  13014. get {
  13015. return this._serviceTableAdapter;
  13016. }
  13017. set {
  13018. this._serviceTableAdapter = value;
  13019. }
  13020. }
  13021. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13022. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13023. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  13024. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  13025. "a", "System.Drawing.Design.UITypeEditor")]
  13026. public ServicePhotoTableAdapter ServicePhotoTableAdapter {
  13027. get {
  13028. return this._servicePhotoTableAdapter;
  13029. }
  13030. set {
  13031. this._servicePhotoTableAdapter = value;
  13032. }
  13033. }
  13034. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13035. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13036. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  13037. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  13038. "a", "System.Drawing.Design.UITypeEditor")]
  13039. public TagTableAdapter TagTableAdapter {
  13040. get {
  13041. return this._tagTableAdapter;
  13042. }
  13043. set {
  13044. this._tagTableAdapter = value;
  13045. }
  13046. }
  13047. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13048. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13049. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  13050. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  13051. "a", "System.Drawing.Design.UITypeEditor")]
  13052. public TagOfClientTableAdapter TagOfClientTableAdapter {
  13053. get {
  13054. return this._tagOfClientTableAdapter;
  13055. }
  13056. set {
  13057. this._tagOfClientTableAdapter = value;
  13058. }
  13059. }
  13060. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13061. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13062. public bool BackupDataSetBeforeUpdate {
  13063. get {
  13064. return this._backupDataSetBeforeUpdate;
  13065. }
  13066. set {
  13067. this._backupDataSetBeforeUpdate = value;
  13068. }
  13069. }
  13070. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13071. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13072. [global::System.ComponentModel.Browsable(false)]
  13073. public global::System.Data.IDbConnection Connection {
  13074. get {
  13075. if ((this._connection != null)) {
  13076. return this._connection;
  13077. }
  13078. if (((this._attachedProductTableAdapter != null)
  13079. && (this._attachedProductTableAdapter.Connection != null))) {
  13080. return this._attachedProductTableAdapter.Connection;
  13081. }
  13082. if (((this._cTableAdapter != null)
  13083. && (this._cTableAdapter.Connection != null))) {
  13084. return this._cTableAdapter.Connection;
  13085. }
  13086. if (((this._clientTableAdapter != null)
  13087. && (this._clientTableAdapter.Connection != null))) {
  13088. return this._clientTableAdapter.Connection;
  13089. }
  13090. if (((this._clientServiseTableAdapter != null)
  13091. && (this._clientServiseTableAdapter.Connection != null))) {
  13092. return this._clientServiseTableAdapter.Connection;
  13093. }
  13094. if (((this._csTableAdapter != null)
  13095. && (this._csTableAdapter.Connection != null))) {
  13096. return this._csTableAdapter.Connection;
  13097. }
  13098. if (((this._documentByServiceTableAdapter != null)
  13099. && (this._documentByServiceTableAdapter.Connection != null))) {
  13100. return this._documentByServiceTableAdapter.Connection;
  13101. }
  13102. if (((this._genderTableAdapter != null)
  13103. && (this._genderTableAdapter.Connection != null))) {
  13104. return this._genderTableAdapter.Connection;
  13105. }
  13106. if (((this._manufacturerTableAdapter != null)
  13107. && (this._manufacturerTableAdapter.Connection != null))) {
  13108. return this._manufacturerTableAdapter.Connection;
  13109. }
  13110. if (((this._productTableAdapter != null)
  13111. && (this._productTableAdapter.Connection != null))) {
  13112. return this._productTableAdapter.Connection;
  13113. }
  13114. if (((this._productPhotoTableAdapter != null)
  13115. && (this._productPhotoTableAdapter.Connection != null))) {
  13116. return this._productPhotoTableAdapter.Connection;
  13117. }
  13118. if (((this._productSaleTableAdapter != null)
  13119. && (this._productSaleTableAdapter.Connection != null))) {
  13120. return this._productSaleTableAdapter.Connection;
  13121. }
  13122. if (((this._sTableAdapter != null)
  13123. && (this._sTableAdapter.Connection != null))) {
  13124. return this._sTableAdapter.Connection;
  13125. }
  13126. if (((this._serviceTableAdapter != null)
  13127. && (this._serviceTableAdapter.Connection != null))) {
  13128. return this._serviceTableAdapter.Connection;
  13129. }
  13130. if (((this._servicePhotoTableAdapter != null)
  13131. && (this._servicePhotoTableAdapter.Connection != null))) {
  13132. return this._servicePhotoTableAdapter.Connection;
  13133. }
  13134. if (((this._tagTableAdapter != null)
  13135. && (this._tagTableAdapter.Connection != null))) {
  13136. return this._tagTableAdapter.Connection;
  13137. }
  13138. if (((this._tagOfClientTableAdapter != null)
  13139. && (this._tagOfClientTableAdapter.Connection != null))) {
  13140. return this._tagOfClientTableAdapter.Connection;
  13141. }
  13142. return null;
  13143. }
  13144. set {
  13145. this._connection = value;
  13146. }
  13147. }
  13148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13150. [global::System.ComponentModel.Browsable(false)]
  13151. public int TableAdapterInstanceCount {
  13152. get {
  13153. int count = 0;
  13154. if ((this._attachedProductTableAdapter != null)) {
  13155. count = (count + 1);
  13156. }
  13157. if ((this._cTableAdapter != null)) {
  13158. count = (count + 1);
  13159. }
  13160. if ((this._clientTableAdapter != null)) {
  13161. count = (count + 1);
  13162. }
  13163. if ((this._clientServiseTableAdapter != null)) {
  13164. count = (count + 1);
  13165. }
  13166. if ((this._csTableAdapter != null)) {
  13167. count = (count + 1);
  13168. }
  13169. if ((this._documentByServiceTableAdapter != null)) {
  13170. count = (count + 1);
  13171. }
  13172. if ((this._genderTableAdapter != null)) {
  13173. count = (count + 1);
  13174. }
  13175. if ((this._manufacturerTableAdapter != null)) {
  13176. count = (count + 1);
  13177. }
  13178. if ((this._productTableAdapter != null)) {
  13179. count = (count + 1);
  13180. }
  13181. if ((this._productPhotoTableAdapter != null)) {
  13182. count = (count + 1);
  13183. }
  13184. if ((this._productSaleTableAdapter != null)) {
  13185. count = (count + 1);
  13186. }
  13187. if ((this._sTableAdapter != null)) {
  13188. count = (count + 1);
  13189. }
  13190. if ((this._serviceTableAdapter != null)) {
  13191. count = (count + 1);
  13192. }
  13193. if ((this._servicePhotoTableAdapter != null)) {
  13194. count = (count + 1);
  13195. }
  13196. if ((this._tagTableAdapter != null)) {
  13197. count = (count + 1);
  13198. }
  13199. if ((this._tagOfClientTableAdapter != null)) {
  13200. count = (count + 1);
  13201. }
  13202. return count;
  13203. }
  13204. }
  13205. /// <summary>
  13206. ///Update rows in top-down order.
  13207. ///</summary>
  13208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13209. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13210. private int UpdateUpdatedRows(BBrovkiZDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  13211. int result = 0;
  13212. if ((this._genderTableAdapter != null)) {
  13213. global::System.Data.DataRow[] updatedRows = dataSet.Gender.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13214. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13215. if (((updatedRows != null)
  13216. && (0 < updatedRows.Length))) {
  13217. result = (result + this._genderTableAdapter.Update(updatedRows));
  13218. allChangedRows.AddRange(updatedRows);
  13219. }
  13220. }
  13221. if ((this._cTableAdapter != null)) {
  13222. global::System.Data.DataRow[] updatedRows = dataSet.c.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13223. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13224. if (((updatedRows != null)
  13225. && (0 < updatedRows.Length))) {
  13226. result = (result + this._cTableAdapter.Update(updatedRows));
  13227. allChangedRows.AddRange(updatedRows);
  13228. }
  13229. }
  13230. if ((this._manufacturerTableAdapter != null)) {
  13231. global::System.Data.DataRow[] updatedRows = dataSet.Manufacturer.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13232. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13233. if (((updatedRows != null)
  13234. && (0 < updatedRows.Length))) {
  13235. result = (result + this._manufacturerTableAdapter.Update(updatedRows));
  13236. allChangedRows.AddRange(updatedRows);
  13237. }
  13238. }
  13239. if ((this._sTableAdapter != null)) {
  13240. global::System.Data.DataRow[] updatedRows = dataSet.s.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13241. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13242. if (((updatedRows != null)
  13243. && (0 < updatedRows.Length))) {
  13244. result = (result + this._sTableAdapter.Update(updatedRows));
  13245. allChangedRows.AddRange(updatedRows);
  13246. }
  13247. }
  13248. if ((this._csTableAdapter != null)) {
  13249. global::System.Data.DataRow[] updatedRows = dataSet.cs.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13250. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13251. if (((updatedRows != null)
  13252. && (0 < updatedRows.Length))) {
  13253. result = (result + this._csTableAdapter.Update(updatedRows));
  13254. allChangedRows.AddRange(updatedRows);
  13255. }
  13256. }
  13257. if ((this._productTableAdapter != null)) {
  13258. global::System.Data.DataRow[] updatedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13259. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13260. if (((updatedRows != null)
  13261. && (0 < updatedRows.Length))) {
  13262. result = (result + this._productTableAdapter.Update(updatedRows));
  13263. allChangedRows.AddRange(updatedRows);
  13264. }
  13265. }
  13266. if ((this._tagTableAdapter != null)) {
  13267. global::System.Data.DataRow[] updatedRows = dataSet.Tag.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13268. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13269. if (((updatedRows != null)
  13270. && (0 < updatedRows.Length))) {
  13271. result = (result + this._tagTableAdapter.Update(updatedRows));
  13272. allChangedRows.AddRange(updatedRows);
  13273. }
  13274. }
  13275. if ((this._attachedProductTableAdapter != null)) {
  13276. global::System.Data.DataRow[] updatedRows = dataSet.AttachedProduct.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13277. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13278. if (((updatedRows != null)
  13279. && (0 < updatedRows.Length))) {
  13280. result = (result + this._attachedProductTableAdapter.Update(updatedRows));
  13281. allChangedRows.AddRange(updatedRows);
  13282. }
  13283. }
  13284. if ((this._clientTableAdapter != null)) {
  13285. global::System.Data.DataRow[] updatedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13286. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13287. if (((updatedRows != null)
  13288. && (0 < updatedRows.Length))) {
  13289. result = (result + this._clientTableAdapter.Update(updatedRows));
  13290. allChangedRows.AddRange(updatedRows);
  13291. }
  13292. }
  13293. if ((this._clientServiseTableAdapter != null)) {
  13294. global::System.Data.DataRow[] updatedRows = dataSet.ClientServise.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13295. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13296. if (((updatedRows != null)
  13297. && (0 < updatedRows.Length))) {
  13298. result = (result + this._clientServiseTableAdapter.Update(updatedRows));
  13299. allChangedRows.AddRange(updatedRows);
  13300. }
  13301. }
  13302. if ((this._documentByServiceTableAdapter != null)) {
  13303. global::System.Data.DataRow[] updatedRows = dataSet.DocumentByService.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13304. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13305. if (((updatedRows != null)
  13306. && (0 < updatedRows.Length))) {
  13307. result = (result + this._documentByServiceTableAdapter.Update(updatedRows));
  13308. allChangedRows.AddRange(updatedRows);
  13309. }
  13310. }
  13311. if ((this._productPhotoTableAdapter != null)) {
  13312. global::System.Data.DataRow[] updatedRows = dataSet.ProductPhoto.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13313. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13314. if (((updatedRows != null)
  13315. && (0 < updatedRows.Length))) {
  13316. result = (result + this._productPhotoTableAdapter.Update(updatedRows));
  13317. allChangedRows.AddRange(updatedRows);
  13318. }
  13319. }
  13320. if ((this._productSaleTableAdapter != null)) {
  13321. global::System.Data.DataRow[] updatedRows = dataSet.ProductSale.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13322. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13323. if (((updatedRows != null)
  13324. && (0 < updatedRows.Length))) {
  13325. result = (result + this._productSaleTableAdapter.Update(updatedRows));
  13326. allChangedRows.AddRange(updatedRows);
  13327. }
  13328. }
  13329. if ((this._serviceTableAdapter != null)) {
  13330. global::System.Data.DataRow[] updatedRows = dataSet.Service.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13331. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13332. if (((updatedRows != null)
  13333. && (0 < updatedRows.Length))) {
  13334. result = (result + this._serviceTableAdapter.Update(updatedRows));
  13335. allChangedRows.AddRange(updatedRows);
  13336. }
  13337. }
  13338. if ((this._servicePhotoTableAdapter != null)) {
  13339. global::System.Data.DataRow[] updatedRows = dataSet.ServicePhoto.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13340. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13341. if (((updatedRows != null)
  13342. && (0 < updatedRows.Length))) {
  13343. result = (result + this._servicePhotoTableAdapter.Update(updatedRows));
  13344. allChangedRows.AddRange(updatedRows);
  13345. }
  13346. }
  13347. if ((this._tagOfClientTableAdapter != null)) {
  13348. global::System.Data.DataRow[] updatedRows = dataSet.TagOfClient.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  13349. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  13350. if (((updatedRows != null)
  13351. && (0 < updatedRows.Length))) {
  13352. result = (result + this._tagOfClientTableAdapter.Update(updatedRows));
  13353. allChangedRows.AddRange(updatedRows);
  13354. }
  13355. }
  13356. return result;
  13357. }
  13358. /// <summary>
  13359. ///Insert rows in top-down order.
  13360. ///</summary>
  13361. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13362. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13363. private int UpdateInsertedRows(BBrovkiZDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  13364. int result = 0;
  13365. if ((this._genderTableAdapter != null)) {
  13366. global::System.Data.DataRow[] addedRows = dataSet.Gender.Select(null, null, global::System.Data.DataViewRowState.Added);
  13367. if (((addedRows != null)
  13368. && (0 < addedRows.Length))) {
  13369. result = (result + this._genderTableAdapter.Update(addedRows));
  13370. allAddedRows.AddRange(addedRows);
  13371. }
  13372. }
  13373. if ((this._cTableAdapter != null)) {
  13374. global::System.Data.DataRow[] addedRows = dataSet.c.Select(null, null, global::System.Data.DataViewRowState.Added);
  13375. if (((addedRows != null)
  13376. && (0 < addedRows.Length))) {
  13377. result = (result + this._cTableAdapter.Update(addedRows));
  13378. allAddedRows.AddRange(addedRows);
  13379. }
  13380. }
  13381. if ((this._manufacturerTableAdapter != null)) {
  13382. global::System.Data.DataRow[] addedRows = dataSet.Manufacturer.Select(null, null, global::System.Data.DataViewRowState.Added);
  13383. if (((addedRows != null)
  13384. && (0 < addedRows.Length))) {
  13385. result = (result + this._manufacturerTableAdapter.Update(addedRows));
  13386. allAddedRows.AddRange(addedRows);
  13387. }
  13388. }
  13389. if ((this._sTableAdapter != null)) {
  13390. global::System.Data.DataRow[] addedRows = dataSet.s.Select(null, null, global::System.Data.DataViewRowState.Added);
  13391. if (((addedRows != null)
  13392. && (0 < addedRows.Length))) {
  13393. result = (result + this._sTableAdapter.Update(addedRows));
  13394. allAddedRows.AddRange(addedRows);
  13395. }
  13396. }
  13397. if ((this._csTableAdapter != null)) {
  13398. global::System.Data.DataRow[] addedRows = dataSet.cs.Select(null, null, global::System.Data.DataViewRowState.Added);
  13399. if (((addedRows != null)
  13400. && (0 < addedRows.Length))) {
  13401. result = (result + this._csTableAdapter.Update(addedRows));
  13402. allAddedRows.AddRange(addedRows);
  13403. }
  13404. }
  13405. if ((this._productTableAdapter != null)) {
  13406. global::System.Data.DataRow[] addedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.Added);
  13407. if (((addedRows != null)
  13408. && (0 < addedRows.Length))) {
  13409. result = (result + this._productTableAdapter.Update(addedRows));
  13410. allAddedRows.AddRange(addedRows);
  13411. }
  13412. }
  13413. if ((this._tagTableAdapter != null)) {
  13414. global::System.Data.DataRow[] addedRows = dataSet.Tag.Select(null, null, global::System.Data.DataViewRowState.Added);
  13415. if (((addedRows != null)
  13416. && (0 < addedRows.Length))) {
  13417. result = (result + this._tagTableAdapter.Update(addedRows));
  13418. allAddedRows.AddRange(addedRows);
  13419. }
  13420. }
  13421. if ((this._attachedProductTableAdapter != null)) {
  13422. global::System.Data.DataRow[] addedRows = dataSet.AttachedProduct.Select(null, null, global::System.Data.DataViewRowState.Added);
  13423. if (((addedRows != null)
  13424. && (0 < addedRows.Length))) {
  13425. result = (result + this._attachedProductTableAdapter.Update(addedRows));
  13426. allAddedRows.AddRange(addedRows);
  13427. }
  13428. }
  13429. if ((this._clientTableAdapter != null)) {
  13430. global::System.Data.DataRow[] addedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.Added);
  13431. if (((addedRows != null)
  13432. && (0 < addedRows.Length))) {
  13433. result = (result + this._clientTableAdapter.Update(addedRows));
  13434. allAddedRows.AddRange(addedRows);
  13435. }
  13436. }
  13437. if ((this._clientServiseTableAdapter != null)) {
  13438. global::System.Data.DataRow[] addedRows = dataSet.ClientServise.Select(null, null, global::System.Data.DataViewRowState.Added);
  13439. if (((addedRows != null)
  13440. && (0 < addedRows.Length))) {
  13441. result = (result + this._clientServiseTableAdapter.Update(addedRows));
  13442. allAddedRows.AddRange(addedRows);
  13443. }
  13444. }
  13445. if ((this._documentByServiceTableAdapter != null)) {
  13446. global::System.Data.DataRow[] addedRows = dataSet.DocumentByService.Select(null, null, global::System.Data.DataViewRowState.Added);
  13447. if (((addedRows != null)
  13448. && (0 < addedRows.Length))) {
  13449. result = (result + this._documentByServiceTableAdapter.Update(addedRows));
  13450. allAddedRows.AddRange(addedRows);
  13451. }
  13452. }
  13453. if ((this._productPhotoTableAdapter != null)) {
  13454. global::System.Data.DataRow[] addedRows = dataSet.ProductPhoto.Select(null, null, global::System.Data.DataViewRowState.Added);
  13455. if (((addedRows != null)
  13456. && (0 < addedRows.Length))) {
  13457. result = (result + this._productPhotoTableAdapter.Update(addedRows));
  13458. allAddedRows.AddRange(addedRows);
  13459. }
  13460. }
  13461. if ((this._productSaleTableAdapter != null)) {
  13462. global::System.Data.DataRow[] addedRows = dataSet.ProductSale.Select(null, null, global::System.Data.DataViewRowState.Added);
  13463. if (((addedRows != null)
  13464. && (0 < addedRows.Length))) {
  13465. result = (result + this._productSaleTableAdapter.Update(addedRows));
  13466. allAddedRows.AddRange(addedRows);
  13467. }
  13468. }
  13469. if ((this._serviceTableAdapter != null)) {
  13470. global::System.Data.DataRow[] addedRows = dataSet.Service.Select(null, null, global::System.Data.DataViewRowState.Added);
  13471. if (((addedRows != null)
  13472. && (0 < addedRows.Length))) {
  13473. result = (result + this._serviceTableAdapter.Update(addedRows));
  13474. allAddedRows.AddRange(addedRows);
  13475. }
  13476. }
  13477. if ((this._servicePhotoTableAdapter != null)) {
  13478. global::System.Data.DataRow[] addedRows = dataSet.ServicePhoto.Select(null, null, global::System.Data.DataViewRowState.Added);
  13479. if (((addedRows != null)
  13480. && (0 < addedRows.Length))) {
  13481. result = (result + this._servicePhotoTableAdapter.Update(addedRows));
  13482. allAddedRows.AddRange(addedRows);
  13483. }
  13484. }
  13485. if ((this._tagOfClientTableAdapter != null)) {
  13486. global::System.Data.DataRow[] addedRows = dataSet.TagOfClient.Select(null, null, global::System.Data.DataViewRowState.Added);
  13487. if (((addedRows != null)
  13488. && (0 < addedRows.Length))) {
  13489. result = (result + this._tagOfClientTableAdapter.Update(addedRows));
  13490. allAddedRows.AddRange(addedRows);
  13491. }
  13492. }
  13493. return result;
  13494. }
  13495. /// <summary>
  13496. ///Delete rows in bottom-up order.
  13497. ///</summary>
  13498. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13499. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13500. private int UpdateDeletedRows(BBrovkiZDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  13501. int result = 0;
  13502. if ((this._tagOfClientTableAdapter != null)) {
  13503. global::System.Data.DataRow[] deletedRows = dataSet.TagOfClient.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  13504. if (((deletedRows != null)
  13505. && (0 < deletedRows.Length))) {
  13506. result = (result + this._tagOfClientTableAdapter.Update(deletedRows));
  13507. allChangedRows.AddRange(deletedRows);
  13508. }
  13509. }
  13510. if ((this._servicePhotoTableAdapter != null)) {
  13511. global::System.Data.DataRow[] deletedRows = dataSet.ServicePhoto.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  13512. if (((deletedRows != null)
  13513. && (0 < deletedRows.Length))) {
  13514. result = (result + this._servicePhotoTableAdapter.Update(deletedRows));
  13515. allChangedRows.AddRange(deletedRows);
  13516. }
  13517. }
  13518. if ((this._serviceTableAdapter != null)) {
  13519. global::System.Data.DataRow[] deletedRows = dataSet.Service.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  13520. if (((deletedRows != null)
  13521. && (0 < deletedRows.Length))) {
  13522. result = (result + this._serviceTableAdapter.Update(deletedRows));
  13523. allChangedRows.AddRange(deletedRows);
  13524. }
  13525. }
  13526. if ((this._productSaleTableAdapter != null)) {
  13527. global::System.Data.DataRow[] deletedRows = dataSet.ProductSale.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  13528. if (((deletedRows != null)
  13529. && (0 < deletedRows.Length))) {
  13530. result = (result + this._productSaleTableAdapter.Update(deletedRows));
  13531. allChangedRows.AddRange(deletedRows);
  13532. }
  13533. }
  13534. if ((this._productPhotoTableAdapter != null)) {
  13535. global::System.Data.DataRow[] deletedRows = dataSet.ProductPhoto.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  13536. if (((deletedRows != null)
  13537. && (0 < deletedRows.Length))) {
  13538. result = (result + this._productPhotoTableAdapter.Update(deletedRows));
  13539. allChangedRows.AddRange(deletedRows);
  13540. }
  13541. }
  13542. if ((this._documentByServiceTableAdapter != null)) {
  13543. global::System.Data.DataRow[] deletedRows = dataSet.DocumentByService.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  13544. if (((deletedRows != null)
  13545. && (0 < deletedRows.Length))) {
  13546. result = (result + this._documentByServiceTableAdapter.Update(deletedRows));
  13547. allChangedRows.AddRange(deletedRows);
  13548. }
  13549. }
  13550. if ((this._clientServiseTableAdapter != null)) {
  13551. global::System.Data.DataRow[] deletedRows = dataSet.ClientServise.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  13552. if (((deletedRows != null)
  13553. && (0 < deletedRows.Length))) {
  13554. result = (result + this._clientServiseTableAdapter.Update(deletedRows));
  13555. allChangedRows.AddRange(deletedRows);
  13556. }
  13557. }
  13558. if ((this._clientTableAdapter != null)) {
  13559. global::System.Data.DataRow[] deletedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  13560. if (((deletedRows != null)
  13561. && (0 < deletedRows.Length))) {
  13562. result = (result + this._clientTableAdapter.Update(deletedRows));
  13563. allChangedRows.AddRange(deletedRows);
  13564. }
  13565. }
  13566. if ((this._attachedProductTableAdapter != null)) {
  13567. global::System.Data.DataRow[] deletedRows = dataSet.AttachedProduct.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  13568. if (((deletedRows != null)
  13569. && (0 < deletedRows.Length))) {
  13570. result = (result + this._attachedProductTableAdapter.Update(deletedRows));
  13571. allChangedRows.AddRange(deletedRows);
  13572. }
  13573. }
  13574. if ((this._tagTableAdapter != null)) {
  13575. global::System.Data.DataRow[] deletedRows = dataSet.Tag.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  13576. if (((deletedRows != null)
  13577. && (0 < deletedRows.Length))) {
  13578. result = (result + this._tagTableAdapter.Update(deletedRows));
  13579. allChangedRows.AddRange(deletedRows);
  13580. }
  13581. }
  13582. if ((this._productTableAdapter != null)) {
  13583. global::System.Data.DataRow[] deletedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  13584. if (((deletedRows != null)
  13585. && (0 < deletedRows.Length))) {
  13586. result = (result + this._productTableAdapter.Update(deletedRows));
  13587. allChangedRows.AddRange(deletedRows);
  13588. }
  13589. }
  13590. if ((this._csTableAdapter != null)) {
  13591. global::System.Data.DataRow[] deletedRows = dataSet.cs.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  13592. if (((deletedRows != null)
  13593. && (0 < deletedRows.Length))) {
  13594. result = (result + this._csTableAdapter.Update(deletedRows));
  13595. allChangedRows.AddRange(deletedRows);
  13596. }
  13597. }
  13598. if ((this._sTableAdapter != null)) {
  13599. global::System.Data.DataRow[] deletedRows = dataSet.s.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  13600. if (((deletedRows != null)
  13601. && (0 < deletedRows.Length))) {
  13602. result = (result + this._sTableAdapter.Update(deletedRows));
  13603. allChangedRows.AddRange(deletedRows);
  13604. }
  13605. }
  13606. if ((this._manufacturerTableAdapter != null)) {
  13607. global::System.Data.DataRow[] deletedRows = dataSet.Manufacturer.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  13608. if (((deletedRows != null)
  13609. && (0 < deletedRows.Length))) {
  13610. result = (result + this._manufacturerTableAdapter.Update(deletedRows));
  13611. allChangedRows.AddRange(deletedRows);
  13612. }
  13613. }
  13614. if ((this._cTableAdapter != null)) {
  13615. global::System.Data.DataRow[] deletedRows = dataSet.c.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  13616. if (((deletedRows != null)
  13617. && (0 < deletedRows.Length))) {
  13618. result = (result + this._cTableAdapter.Update(deletedRows));
  13619. allChangedRows.AddRange(deletedRows);
  13620. }
  13621. }
  13622. if ((this._genderTableAdapter != null)) {
  13623. global::System.Data.DataRow[] deletedRows = dataSet.Gender.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  13624. if (((deletedRows != null)
  13625. && (0 < deletedRows.Length))) {
  13626. result = (result + this._genderTableAdapter.Update(deletedRows));
  13627. allChangedRows.AddRange(deletedRows);
  13628. }
  13629. }
  13630. return result;
  13631. }
  13632. /// <summary>
  13633. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  13634. ///</summary>
  13635. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13636. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13637. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  13638. if (((updatedRows == null)
  13639. || (updatedRows.Length < 1))) {
  13640. return updatedRows;
  13641. }
  13642. if (((allAddedRows == null)
  13643. || (allAddedRows.Count < 1))) {
  13644. return updatedRows;
  13645. }
  13646. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  13647. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  13648. global::System.Data.DataRow row = updatedRows[i];
  13649. if ((allAddedRows.Contains(row) == false)) {
  13650. realUpdatedRows.Add(row);
  13651. }
  13652. }
  13653. return realUpdatedRows.ToArray();
  13654. }
  13655. /// <summary>
  13656. ///Update all changes to the dataset.
  13657. ///</summary>
  13658. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13659. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13660. public virtual int UpdateAll(BBrovkiZDataSet dataSet) {
  13661. if ((dataSet == null)) {
  13662. throw new global::System.ArgumentNullException("dataSet");
  13663. }
  13664. if ((dataSet.HasChanges() == false)) {
  13665. return 0;
  13666. }
  13667. if (((this._attachedProductTableAdapter != null)
  13668. && (this.MatchTableAdapterConnection(this._attachedProductTableAdapter.Connection) == false))) {
  13669. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  13670. "r, должны использовать одинаковую строку подключения.");
  13671. }
  13672. if (((this._cTableAdapter != null)
  13673. && (this.MatchTableAdapterConnection(this._cTableAdapter.Connection) == false))) {
  13674. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  13675. "r, должны использовать одинаковую строку подключения.");
  13676. }
  13677. if (((this._clientTableAdapter != null)
  13678. && (this.MatchTableAdapterConnection(this._clientTableAdapter.Connection) == false))) {
  13679. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  13680. "r, должны использовать одинаковую строку подключения.");
  13681. }
  13682. if (((this._clientServiseTableAdapter != null)
  13683. && (this.MatchTableAdapterConnection(this._clientServiseTableAdapter.Connection) == false))) {
  13684. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  13685. "r, должны использовать одинаковую строку подключения.");
  13686. }
  13687. if (((this._csTableAdapter != null)
  13688. && (this.MatchTableAdapterConnection(this._csTableAdapter.Connection) == false))) {
  13689. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  13690. "r, должны использовать одинаковую строку подключения.");
  13691. }
  13692. if (((this._documentByServiceTableAdapter != null)
  13693. && (this.MatchTableAdapterConnection(this._documentByServiceTableAdapter.Connection) == false))) {
  13694. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  13695. "r, должны использовать одинаковую строку подключения.");
  13696. }
  13697. if (((this._genderTableAdapter != null)
  13698. && (this.MatchTableAdapterConnection(this._genderTableAdapter.Connection) == false))) {
  13699. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  13700. "r, должны использовать одинаковую строку подключения.");
  13701. }
  13702. if (((this._manufacturerTableAdapter != null)
  13703. && (this.MatchTableAdapterConnection(this._manufacturerTableAdapter.Connection) == false))) {
  13704. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  13705. "r, должны использовать одинаковую строку подключения.");
  13706. }
  13707. if (((this._productTableAdapter != null)
  13708. && (this.MatchTableAdapterConnection(this._productTableAdapter.Connection) == false))) {
  13709. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  13710. "r, должны использовать одинаковую строку подключения.");
  13711. }
  13712. if (((this._productPhotoTableAdapter != null)
  13713. && (this.MatchTableAdapterConnection(this._productPhotoTableAdapter.Connection) == false))) {
  13714. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  13715. "r, должны использовать одинаковую строку подключения.");
  13716. }
  13717. if (((this._productSaleTableAdapter != null)
  13718. && (this.MatchTableAdapterConnection(this._productSaleTableAdapter.Connection) == false))) {
  13719. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  13720. "r, должны использовать одинаковую строку подключения.");
  13721. }
  13722. if (((this._sTableAdapter != null)
  13723. && (this.MatchTableAdapterConnection(this._sTableAdapter.Connection) == false))) {
  13724. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  13725. "r, должны использовать одинаковую строку подключения.");
  13726. }
  13727. if (((this._serviceTableAdapter != null)
  13728. && (this.MatchTableAdapterConnection(this._serviceTableAdapter.Connection) == false))) {
  13729. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  13730. "r, должны использовать одинаковую строку подключения.");
  13731. }
  13732. if (((this._servicePhotoTableAdapter != null)
  13733. && (this.MatchTableAdapterConnection(this._servicePhotoTableAdapter.Connection) == false))) {
  13734. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  13735. "r, должны использовать одинаковую строку подключения.");
  13736. }
  13737. if (((this._tagTableAdapter != null)
  13738. && (this.MatchTableAdapterConnection(this._tagTableAdapter.Connection) == false))) {
  13739. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  13740. "r, должны использовать одинаковую строку подключения.");
  13741. }
  13742. if (((this._tagOfClientTableAdapter != null)
  13743. && (this.MatchTableAdapterConnection(this._tagOfClientTableAdapter.Connection) == false))) {
  13744. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  13745. "r, должны использовать одинаковую строку подключения.");
  13746. }
  13747. global::System.Data.IDbConnection workConnection = this.Connection;
  13748. if ((workConnection == null)) {
  13749. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  13750. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  13751. }
  13752. bool workConnOpened = false;
  13753. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  13754. == global::System.Data.ConnectionState.Broken)) {
  13755. workConnection.Close();
  13756. }
  13757. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  13758. workConnection.Open();
  13759. workConnOpened = true;
  13760. }
  13761. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  13762. if ((workTransaction == null)) {
  13763. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  13764. "и или текущее состояние не позволяет начать транзакцию.");
  13765. }
  13766. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  13767. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  13768. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  13769. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  13770. int result = 0;
  13771. global::System.Data.DataSet backupDataSet = null;
  13772. if (this.BackupDataSetBeforeUpdate) {
  13773. backupDataSet = new global::System.Data.DataSet();
  13774. backupDataSet.Merge(dataSet);
  13775. }
  13776. try {
  13777. // ---- Prepare for update -----------
  13778. //
  13779. if ((this._attachedProductTableAdapter != null)) {
  13780. revertConnections.Add(this._attachedProductTableAdapter, this._attachedProductTableAdapter.Connection);
  13781. this._attachedProductTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  13782. this._attachedProductTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  13783. if (this._attachedProductTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  13784. this._attachedProductTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  13785. adaptersWithAcceptChangesDuringUpdate.Add(this._attachedProductTableAdapter.Adapter);
  13786. }
  13787. }
  13788. if ((this._cTableAdapter != null)) {
  13789. revertConnections.Add(this._cTableAdapter, this._cTableAdapter.Connection);
  13790. this._cTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  13791. this._cTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  13792. if (this._cTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  13793. this._cTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  13794. adaptersWithAcceptChangesDuringUpdate.Add(this._cTableAdapter.Adapter);
  13795. }
  13796. }
  13797. if ((this._clientTableAdapter != null)) {
  13798. revertConnections.Add(this._clientTableAdapter, this._clientTableAdapter.Connection);
  13799. this._clientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  13800. this._clientTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  13801. if (this._clientTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  13802. this._clientTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  13803. adaptersWithAcceptChangesDuringUpdate.Add(this._clientTableAdapter.Adapter);
  13804. }
  13805. }
  13806. if ((this._clientServiseTableAdapter != null)) {
  13807. revertConnections.Add(this._clientServiseTableAdapter, this._clientServiseTableAdapter.Connection);
  13808. this._clientServiseTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  13809. this._clientServiseTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  13810. if (this._clientServiseTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  13811. this._clientServiseTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  13812. adaptersWithAcceptChangesDuringUpdate.Add(this._clientServiseTableAdapter.Adapter);
  13813. }
  13814. }
  13815. if ((this._csTableAdapter != null)) {
  13816. revertConnections.Add(this._csTableAdapter, this._csTableAdapter.Connection);
  13817. this._csTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  13818. this._csTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  13819. if (this._csTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  13820. this._csTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  13821. adaptersWithAcceptChangesDuringUpdate.Add(this._csTableAdapter.Adapter);
  13822. }
  13823. }
  13824. if ((this._documentByServiceTableAdapter != null)) {
  13825. revertConnections.Add(this._documentByServiceTableAdapter, this._documentByServiceTableAdapter.Connection);
  13826. this._documentByServiceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  13827. this._documentByServiceTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  13828. if (this._documentByServiceTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  13829. this._documentByServiceTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  13830. adaptersWithAcceptChangesDuringUpdate.Add(this._documentByServiceTableAdapter.Adapter);
  13831. }
  13832. }
  13833. if ((this._genderTableAdapter != null)) {
  13834. revertConnections.Add(this._genderTableAdapter, this._genderTableAdapter.Connection);
  13835. this._genderTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  13836. this._genderTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  13837. if (this._genderTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  13838. this._genderTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  13839. adaptersWithAcceptChangesDuringUpdate.Add(this._genderTableAdapter.Adapter);
  13840. }
  13841. }
  13842. if ((this._manufacturerTableAdapter != null)) {
  13843. revertConnections.Add(this._manufacturerTableAdapter, this._manufacturerTableAdapter.Connection);
  13844. this._manufacturerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  13845. this._manufacturerTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  13846. if (this._manufacturerTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  13847. this._manufacturerTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  13848. adaptersWithAcceptChangesDuringUpdate.Add(this._manufacturerTableAdapter.Adapter);
  13849. }
  13850. }
  13851. if ((this._productTableAdapter != null)) {
  13852. revertConnections.Add(this._productTableAdapter, this._productTableAdapter.Connection);
  13853. this._productTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  13854. this._productTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  13855. if (this._productTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  13856. this._productTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  13857. adaptersWithAcceptChangesDuringUpdate.Add(this._productTableAdapter.Adapter);
  13858. }
  13859. }
  13860. if ((this._productPhotoTableAdapter != null)) {
  13861. revertConnections.Add(this._productPhotoTableAdapter, this._productPhotoTableAdapter.Connection);
  13862. this._productPhotoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  13863. this._productPhotoTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  13864. if (this._productPhotoTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  13865. this._productPhotoTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  13866. adaptersWithAcceptChangesDuringUpdate.Add(this._productPhotoTableAdapter.Adapter);
  13867. }
  13868. }
  13869. if ((this._productSaleTableAdapter != null)) {
  13870. revertConnections.Add(this._productSaleTableAdapter, this._productSaleTableAdapter.Connection);
  13871. this._productSaleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  13872. this._productSaleTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  13873. if (this._productSaleTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  13874. this._productSaleTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  13875. adaptersWithAcceptChangesDuringUpdate.Add(this._productSaleTableAdapter.Adapter);
  13876. }
  13877. }
  13878. if ((this._sTableAdapter != null)) {
  13879. revertConnections.Add(this._sTableAdapter, this._sTableAdapter.Connection);
  13880. this._sTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  13881. this._sTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  13882. if (this._sTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  13883. this._sTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  13884. adaptersWithAcceptChangesDuringUpdate.Add(this._sTableAdapter.Adapter);
  13885. }
  13886. }
  13887. if ((this._serviceTableAdapter != null)) {
  13888. revertConnections.Add(this._serviceTableAdapter, this._serviceTableAdapter.Connection);
  13889. this._serviceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  13890. this._serviceTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  13891. if (this._serviceTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  13892. this._serviceTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  13893. adaptersWithAcceptChangesDuringUpdate.Add(this._serviceTableAdapter.Adapter);
  13894. }
  13895. }
  13896. if ((this._servicePhotoTableAdapter != null)) {
  13897. revertConnections.Add(this._servicePhotoTableAdapter, this._servicePhotoTableAdapter.Connection);
  13898. this._servicePhotoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  13899. this._servicePhotoTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  13900. if (this._servicePhotoTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  13901. this._servicePhotoTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  13902. adaptersWithAcceptChangesDuringUpdate.Add(this._servicePhotoTableAdapter.Adapter);
  13903. }
  13904. }
  13905. if ((this._tagTableAdapter != null)) {
  13906. revertConnections.Add(this._tagTableAdapter, this._tagTableAdapter.Connection);
  13907. this._tagTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  13908. this._tagTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  13909. if (this._tagTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  13910. this._tagTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  13911. adaptersWithAcceptChangesDuringUpdate.Add(this._tagTableAdapter.Adapter);
  13912. }
  13913. }
  13914. if ((this._tagOfClientTableAdapter != null)) {
  13915. revertConnections.Add(this._tagOfClientTableAdapter, this._tagOfClientTableAdapter.Connection);
  13916. this._tagOfClientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  13917. this._tagOfClientTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  13918. if (this._tagOfClientTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  13919. this._tagOfClientTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  13920. adaptersWithAcceptChangesDuringUpdate.Add(this._tagOfClientTableAdapter.Adapter);
  13921. }
  13922. }
  13923. //
  13924. //---- Perform updates -----------
  13925. //
  13926. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  13927. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  13928. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  13929. }
  13930. else {
  13931. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  13932. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  13933. }
  13934. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  13935. //
  13936. //---- Commit updates -----------
  13937. //
  13938. workTransaction.Commit();
  13939. if ((0 < allAddedRows.Count)) {
  13940. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  13941. allAddedRows.CopyTo(rows);
  13942. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  13943. global::System.Data.DataRow row = rows[i];
  13944. row.AcceptChanges();
  13945. }
  13946. }
  13947. if ((0 < allChangedRows.Count)) {
  13948. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  13949. allChangedRows.CopyTo(rows);
  13950. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  13951. global::System.Data.DataRow row = rows[i];
  13952. row.AcceptChanges();
  13953. }
  13954. }
  13955. }
  13956. catch (global::System.Exception ex) {
  13957. workTransaction.Rollback();
  13958. // ---- Restore the dataset -----------
  13959. if (this.BackupDataSetBeforeUpdate) {
  13960. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  13961. dataSet.Clear();
  13962. dataSet.Merge(backupDataSet);
  13963. }
  13964. else {
  13965. if ((0 < allAddedRows.Count)) {
  13966. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  13967. allAddedRows.CopyTo(rows);
  13968. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  13969. global::System.Data.DataRow row = rows[i];
  13970. row.AcceptChanges();
  13971. row.SetAdded();
  13972. }
  13973. }
  13974. }
  13975. throw ex;
  13976. }
  13977. finally {
  13978. if (workConnOpened) {
  13979. workConnection.Close();
  13980. }
  13981. if ((this._attachedProductTableAdapter != null)) {
  13982. this._attachedProductTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._attachedProductTableAdapter]));
  13983. this._attachedProductTableAdapter.Transaction = null;
  13984. }
  13985. if ((this._cTableAdapter != null)) {
  13986. this._cTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._cTableAdapter]));
  13987. this._cTableAdapter.Transaction = null;
  13988. }
  13989. if ((this._clientTableAdapter != null)) {
  13990. this._clientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._clientTableAdapter]));
  13991. this._clientTableAdapter.Transaction = null;
  13992. }
  13993. if ((this._clientServiseTableAdapter != null)) {
  13994. this._clientServiseTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._clientServiseTableAdapter]));
  13995. this._clientServiseTableAdapter.Transaction = null;
  13996. }
  13997. if ((this._csTableAdapter != null)) {
  13998. this._csTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._csTableAdapter]));
  13999. this._csTableAdapter.Transaction = null;
  14000. }
  14001. if ((this._documentByServiceTableAdapter != null)) {
  14002. this._documentByServiceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._documentByServiceTableAdapter]));
  14003. this._documentByServiceTableAdapter.Transaction = null;
  14004. }
  14005. if ((this._genderTableAdapter != null)) {
  14006. this._genderTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._genderTableAdapter]));
  14007. this._genderTableAdapter.Transaction = null;
  14008. }
  14009. if ((this._manufacturerTableAdapter != null)) {
  14010. this._manufacturerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._manufacturerTableAdapter]));
  14011. this._manufacturerTableAdapter.Transaction = null;
  14012. }
  14013. if ((this._productTableAdapter != null)) {
  14014. this._productTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productTableAdapter]));
  14015. this._productTableAdapter.Transaction = null;
  14016. }
  14017. if ((this._productPhotoTableAdapter != null)) {
  14018. this._productPhotoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productPhotoTableAdapter]));
  14019. this._productPhotoTableAdapter.Transaction = null;
  14020. }
  14021. if ((this._productSaleTableAdapter != null)) {
  14022. this._productSaleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productSaleTableAdapter]));
  14023. this._productSaleTableAdapter.Transaction = null;
  14024. }
  14025. if ((this._sTableAdapter != null)) {
  14026. this._sTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._sTableAdapter]));
  14027. this._sTableAdapter.Transaction = null;
  14028. }
  14029. if ((this._serviceTableAdapter != null)) {
  14030. this._serviceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._serviceTableAdapter]));
  14031. this._serviceTableAdapter.Transaction = null;
  14032. }
  14033. if ((this._servicePhotoTableAdapter != null)) {
  14034. this._servicePhotoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._servicePhotoTableAdapter]));
  14035. this._servicePhotoTableAdapter.Transaction = null;
  14036. }
  14037. if ((this._tagTableAdapter != null)) {
  14038. this._tagTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tagTableAdapter]));
  14039. this._tagTableAdapter.Transaction = null;
  14040. }
  14041. if ((this._tagOfClientTableAdapter != null)) {
  14042. this._tagOfClientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tagOfClientTableAdapter]));
  14043. this._tagOfClientTableAdapter.Transaction = null;
  14044. }
  14045. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  14046. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  14047. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  14048. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  14049. global::System.Data.Common.DataAdapter adapter = adapters[i];
  14050. adapter.AcceptChangesDuringUpdate = true;
  14051. }
  14052. }
  14053. }
  14054. return result;
  14055. }
  14056. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14057. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14058. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  14059. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  14060. }
  14061. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14062. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14063. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  14064. if ((this._connection != null)) {
  14065. return true;
  14066. }
  14067. if (((this.Connection == null)
  14068. || (inputConnection == null))) {
  14069. return true;
  14070. }
  14071. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  14072. return true;
  14073. }
  14074. return false;
  14075. }
  14076. /// <summary>
  14077. ///Update Order Option
  14078. ///</summary>
  14079. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14080. public enum UpdateOrderOption {
  14081. InsertUpdateDelete = 0,
  14082. UpdateInsertDelete = 1,
  14083. }
  14084. /// <summary>
  14085. ///Used to sort self-referenced table's rows
  14086. ///</summary>
  14087. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14088. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  14089. private global::System.Data.DataRelation _relation;
  14090. private int _childFirst;
  14091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14093. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  14094. this._relation = relation;
  14095. if (childFirst) {
  14096. this._childFirst = -1;
  14097. }
  14098. else {
  14099. this._childFirst = 1;
  14100. }
  14101. }
  14102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14103. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14104. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  14105. global::System.Diagnostics.Debug.Assert((row != null));
  14106. global::System.Data.DataRow root = row;
  14107. distance = 0;
  14108. 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>();
  14109. traversedRows[row] = row;
  14110. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  14111. for (
  14112. ; ((parent != null)
  14113. && (traversedRows.ContainsKey(parent) == false));
  14114. ) {
  14115. distance = (distance + 1);
  14116. root = parent;
  14117. traversedRows[parent] = parent;
  14118. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  14119. }
  14120. if ((distance == 0)) {
  14121. traversedRows.Clear();
  14122. traversedRows[row] = row;
  14123. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  14124. for (
  14125. ; ((parent != null)
  14126. && (traversedRows.ContainsKey(parent) == false));
  14127. ) {
  14128. distance = (distance + 1);
  14129. root = parent;
  14130. traversedRows[parent] = parent;
  14131. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  14132. }
  14133. }
  14134. return root;
  14135. }
  14136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14137. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14138. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  14139. if (object.ReferenceEquals(row1, row2)) {
  14140. return 0;
  14141. }
  14142. if ((row1 == null)) {
  14143. return -1;
  14144. }
  14145. if ((row2 == null)) {
  14146. return 1;
  14147. }
  14148. int distance1 = 0;
  14149. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  14150. int distance2 = 0;
  14151. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  14152. if (object.ReferenceEquals(root1, root2)) {
  14153. return (this._childFirst * distance1.CompareTo(distance2));
  14154. }
  14155. else {
  14156. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  14157. && (root2.Table != null)));
  14158. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  14159. return -1;
  14160. }
  14161. else {
  14162. return 1;
  14163. }
  14164. }
  14165. }
  14166. }
  14167. }
  14168. }
  14169. #pragma warning restore 1591