DB_Кузьменко_V2DataSet.Designer.cs 761 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace Бархотные_брови {
  12. /// <summary>
  13. ///Represents a strongly typed in-memory cache of data.
  14. ///</summary>
  15. [global::System.Serializable()]
  16. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  17. [global::System.ComponentModel.ToolboxItem(true)]
  18. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")]
  19. [global::System.Xml.Serialization.XmlRootAttribute("DB_Кузьменко_V2DataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class DB_Кузьменко_V2DataSet : global::System.Data.DataSet {
  22. private AttachedProductDataTable tableAttachedProduct;
  23. private ClientDataTable tableClient;
  24. private ClientServiceDataTable tableClientService;
  25. private DocumentByServiceDataTable tableDocumentByService;
  26. private GenderDataTable tableGender;
  27. private ManufacturerDataTable tableManufacturer;
  28. private ProductDataTable tableProduct;
  29. private ProductPhotoDataTable tableProductPhoto;
  30. private ProductSaleDataTable tableProductSale;
  31. private ServiceDataTable tableService;
  32. private ServicePhotoDataTable tableServicePhoto;
  33. private TagDataTable tableTag;
  34. private TagOfClientDataTable tableTagOfClient;
  35. private global::System.Data.DataRelation relationFK_AttachedProduct_Product;
  36. private global::System.Data.DataRelation relationFK_AttachedProduct_Product1;
  37. private global::System.Data.DataRelation relationFK_Client_Gender;
  38. private global::System.Data.DataRelation relationFK_ClientService_Client;
  39. private global::System.Data.DataRelation relationFK_ClientService_service_b_import;
  40. private global::System.Data.DataRelation relationFK_DocumentByService_ClientService;
  41. private global::System.Data.DataRelation relationFK_Product_Manufacturer;
  42. private global::System.Data.DataRelation relationFK_ProductPhoto_Product;
  43. private global::System.Data.DataRelation relationFK_ProductSale_ClientService;
  44. private global::System.Data.DataRelation relationFK_ProductSale_Product;
  45. private global::System.Data.DataRelation relationFK_ServicePhoto_service_b_import;
  46. private global::System.Data.DataRelation relationFK_TagOfClient_Client;
  47. private global::System.Data.DataRelation relationFK_TagOfClient_Tag;
  48. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  49. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  50. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  51. public DB_Кузьменко_V2DataSet() {
  52. this.BeginInit();
  53. this.InitClass();
  54. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  55. base.Tables.CollectionChanged += schemaChangedHandler;
  56. base.Relations.CollectionChanged += schemaChangedHandler;
  57. this.EndInit();
  58. }
  59. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  60. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  61. protected DB_Кузьменко_V2DataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  62. base(info, context, false) {
  63. if ((this.IsBinarySerialized(info, context) == true)) {
  64. this.InitVars(false);
  65. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  66. this.Tables.CollectionChanged += schemaChangedHandler1;
  67. this.Relations.CollectionChanged += schemaChangedHandler1;
  68. return;
  69. }
  70. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  71. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  72. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  73. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  74. if ((ds.Tables["AttachedProduct"] != null)) {
  75. base.Tables.Add(new AttachedProductDataTable(ds.Tables["AttachedProduct"]));
  76. }
  77. if ((ds.Tables["Client"] != null)) {
  78. base.Tables.Add(new ClientDataTable(ds.Tables["Client"]));
  79. }
  80. if ((ds.Tables["ClientService"] != null)) {
  81. base.Tables.Add(new ClientServiceDataTable(ds.Tables["ClientService"]));
  82. }
  83. if ((ds.Tables["DocumentByService"] != null)) {
  84. base.Tables.Add(new DocumentByServiceDataTable(ds.Tables["DocumentByService"]));
  85. }
  86. if ((ds.Tables["Gender"] != null)) {
  87. base.Tables.Add(new GenderDataTable(ds.Tables["Gender"]));
  88. }
  89. if ((ds.Tables["Manufacturer"] != null)) {
  90. base.Tables.Add(new ManufacturerDataTable(ds.Tables["Manufacturer"]));
  91. }
  92. if ((ds.Tables["Product"] != null)) {
  93. base.Tables.Add(new ProductDataTable(ds.Tables["Product"]));
  94. }
  95. if ((ds.Tables["ProductPhoto"] != null)) {
  96. base.Tables.Add(new ProductPhotoDataTable(ds.Tables["ProductPhoto"]));
  97. }
  98. if ((ds.Tables["ProductSale"] != null)) {
  99. base.Tables.Add(new ProductSaleDataTable(ds.Tables["ProductSale"]));
  100. }
  101. if ((ds.Tables["Service"] != null)) {
  102. base.Tables.Add(new ServiceDataTable(ds.Tables["Service"]));
  103. }
  104. if ((ds.Tables["ServicePhoto"] != null)) {
  105. base.Tables.Add(new ServicePhotoDataTable(ds.Tables["ServicePhoto"]));
  106. }
  107. if ((ds.Tables["Tag"] != null)) {
  108. base.Tables.Add(new TagDataTable(ds.Tables["Tag"]));
  109. }
  110. if ((ds.Tables["TagOfClient"] != null)) {
  111. base.Tables.Add(new TagOfClientDataTable(ds.Tables["TagOfClient"]));
  112. }
  113. this.DataSetName = ds.DataSetName;
  114. this.Prefix = ds.Prefix;
  115. this.Namespace = ds.Namespace;
  116. this.Locale = ds.Locale;
  117. this.CaseSensitive = ds.CaseSensitive;
  118. this.EnforceConstraints = ds.EnforceConstraints;
  119. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  120. this.InitVars();
  121. }
  122. else {
  123. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  124. }
  125. this.GetSerializationData(info, context);
  126. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  127. base.Tables.CollectionChanged += schemaChangedHandler;
  128. this.Relations.CollectionChanged += schemaChangedHandler;
  129. }
  130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  131. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  132. [global::System.ComponentModel.Browsable(false)]
  133. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  134. public AttachedProductDataTable AttachedProduct {
  135. get {
  136. return this.tableAttachedProduct;
  137. }
  138. }
  139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  141. [global::System.ComponentModel.Browsable(false)]
  142. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  143. public ClientDataTable Client {
  144. get {
  145. return this.tableClient;
  146. }
  147. }
  148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  150. [global::System.ComponentModel.Browsable(false)]
  151. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  152. public ClientServiceDataTable ClientService {
  153. get {
  154. return this.tableClientService;
  155. }
  156. }
  157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  159. [global::System.ComponentModel.Browsable(false)]
  160. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  161. public DocumentByServiceDataTable DocumentByService {
  162. get {
  163. return this.tableDocumentByService;
  164. }
  165. }
  166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  167. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  168. [global::System.ComponentModel.Browsable(false)]
  169. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  170. public GenderDataTable Gender {
  171. get {
  172. return this.tableGender;
  173. }
  174. }
  175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  176. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  177. [global::System.ComponentModel.Browsable(false)]
  178. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  179. public ManufacturerDataTable Manufacturer {
  180. get {
  181. return this.tableManufacturer;
  182. }
  183. }
  184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  186. [global::System.ComponentModel.Browsable(false)]
  187. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  188. public ProductDataTable Product {
  189. get {
  190. return this.tableProduct;
  191. }
  192. }
  193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  194. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  195. [global::System.ComponentModel.Browsable(false)]
  196. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  197. public ProductPhotoDataTable ProductPhoto {
  198. get {
  199. return this.tableProductPhoto;
  200. }
  201. }
  202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  204. [global::System.ComponentModel.Browsable(false)]
  205. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  206. public ProductSaleDataTable ProductSale {
  207. get {
  208. return this.tableProductSale;
  209. }
  210. }
  211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  213. [global::System.ComponentModel.Browsable(false)]
  214. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  215. public ServiceDataTable Service {
  216. get {
  217. return this.tableService;
  218. }
  219. }
  220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  221. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  222. [global::System.ComponentModel.Browsable(false)]
  223. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  224. public ServicePhotoDataTable ServicePhoto {
  225. get {
  226. return this.tableServicePhoto;
  227. }
  228. }
  229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  230. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  231. [global::System.ComponentModel.Browsable(false)]
  232. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  233. public TagDataTable Tag {
  234. get {
  235. return this.tableTag;
  236. }
  237. }
  238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  239. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  240. [global::System.ComponentModel.Browsable(false)]
  241. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  242. public TagOfClientDataTable TagOfClient {
  243. get {
  244. return this.tableTagOfClient;
  245. }
  246. }
  247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  249. [global::System.ComponentModel.BrowsableAttribute(true)]
  250. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  251. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  252. get {
  253. return this._schemaSerializationMode;
  254. }
  255. set {
  256. this._schemaSerializationMode = value;
  257. }
  258. }
  259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  260. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  261. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  262. public new global::System.Data.DataTableCollection Tables {
  263. get {
  264. return base.Tables;
  265. }
  266. }
  267. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  268. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  269. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  270. public new global::System.Data.DataRelationCollection Relations {
  271. get {
  272. return base.Relations;
  273. }
  274. }
  275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  276. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  277. protected override void InitializeDerivedDataSet() {
  278. this.BeginInit();
  279. this.InitClass();
  280. this.EndInit();
  281. }
  282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  284. public override global::System.Data.DataSet Clone() {
  285. DB_Кузьменко_V2DataSet cln = ((DB_Кузьменко_V2DataSet)(base.Clone()));
  286. cln.InitVars();
  287. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  288. return cln;
  289. }
  290. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  291. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  292. protected override bool ShouldSerializeTables() {
  293. return false;
  294. }
  295. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  296. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  297. protected override bool ShouldSerializeRelations() {
  298. return false;
  299. }
  300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  301. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  302. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  303. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  304. this.Reset();
  305. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  306. ds.ReadXml(reader);
  307. if ((ds.Tables["AttachedProduct"] != null)) {
  308. base.Tables.Add(new AttachedProductDataTable(ds.Tables["AttachedProduct"]));
  309. }
  310. if ((ds.Tables["Client"] != null)) {
  311. base.Tables.Add(new ClientDataTable(ds.Tables["Client"]));
  312. }
  313. if ((ds.Tables["ClientService"] != null)) {
  314. base.Tables.Add(new ClientServiceDataTable(ds.Tables["ClientService"]));
  315. }
  316. if ((ds.Tables["DocumentByService"] != null)) {
  317. base.Tables.Add(new DocumentByServiceDataTable(ds.Tables["DocumentByService"]));
  318. }
  319. if ((ds.Tables["Gender"] != null)) {
  320. base.Tables.Add(new GenderDataTable(ds.Tables["Gender"]));
  321. }
  322. if ((ds.Tables["Manufacturer"] != null)) {
  323. base.Tables.Add(new ManufacturerDataTable(ds.Tables["Manufacturer"]));
  324. }
  325. if ((ds.Tables["Product"] != null)) {
  326. base.Tables.Add(new ProductDataTable(ds.Tables["Product"]));
  327. }
  328. if ((ds.Tables["ProductPhoto"] != null)) {
  329. base.Tables.Add(new ProductPhotoDataTable(ds.Tables["ProductPhoto"]));
  330. }
  331. if ((ds.Tables["ProductSale"] != null)) {
  332. base.Tables.Add(new ProductSaleDataTable(ds.Tables["ProductSale"]));
  333. }
  334. if ((ds.Tables["Service"] != null)) {
  335. base.Tables.Add(new ServiceDataTable(ds.Tables["Service"]));
  336. }
  337. if ((ds.Tables["ServicePhoto"] != null)) {
  338. base.Tables.Add(new ServicePhotoDataTable(ds.Tables["ServicePhoto"]));
  339. }
  340. if ((ds.Tables["Tag"] != null)) {
  341. base.Tables.Add(new TagDataTable(ds.Tables["Tag"]));
  342. }
  343. if ((ds.Tables["TagOfClient"] != null)) {
  344. base.Tables.Add(new TagOfClientDataTable(ds.Tables["TagOfClient"]));
  345. }
  346. this.DataSetName = ds.DataSetName;
  347. this.Prefix = ds.Prefix;
  348. this.Namespace = ds.Namespace;
  349. this.Locale = ds.Locale;
  350. this.CaseSensitive = ds.CaseSensitive;
  351. this.EnforceConstraints = ds.EnforceConstraints;
  352. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  353. this.InitVars();
  354. }
  355. else {
  356. this.ReadXml(reader);
  357. this.InitVars();
  358. }
  359. }
  360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  361. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  362. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  363. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  364. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  365. stream.Position = 0;
  366. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  367. }
  368. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  369. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  370. internal void InitVars() {
  371. this.InitVars(true);
  372. }
  373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  374. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  375. internal void InitVars(bool initTable) {
  376. this.tableAttachedProduct = ((AttachedProductDataTable)(base.Tables["AttachedProduct"]));
  377. if ((initTable == true)) {
  378. if ((this.tableAttachedProduct != null)) {
  379. this.tableAttachedProduct.InitVars();
  380. }
  381. }
  382. this.tableClient = ((ClientDataTable)(base.Tables["Client"]));
  383. if ((initTable == true)) {
  384. if ((this.tableClient != null)) {
  385. this.tableClient.InitVars();
  386. }
  387. }
  388. this.tableClientService = ((ClientServiceDataTable)(base.Tables["ClientService"]));
  389. if ((initTable == true)) {
  390. if ((this.tableClientService != null)) {
  391. this.tableClientService.InitVars();
  392. }
  393. }
  394. this.tableDocumentByService = ((DocumentByServiceDataTable)(base.Tables["DocumentByService"]));
  395. if ((initTable == true)) {
  396. if ((this.tableDocumentByService != null)) {
  397. this.tableDocumentByService.InitVars();
  398. }
  399. }
  400. this.tableGender = ((GenderDataTable)(base.Tables["Gender"]));
  401. if ((initTable == true)) {
  402. if ((this.tableGender != null)) {
  403. this.tableGender.InitVars();
  404. }
  405. }
  406. this.tableManufacturer = ((ManufacturerDataTable)(base.Tables["Manufacturer"]));
  407. if ((initTable == true)) {
  408. if ((this.tableManufacturer != null)) {
  409. this.tableManufacturer.InitVars();
  410. }
  411. }
  412. this.tableProduct = ((ProductDataTable)(base.Tables["Product"]));
  413. if ((initTable == true)) {
  414. if ((this.tableProduct != null)) {
  415. this.tableProduct.InitVars();
  416. }
  417. }
  418. this.tableProductPhoto = ((ProductPhotoDataTable)(base.Tables["ProductPhoto"]));
  419. if ((initTable == true)) {
  420. if ((this.tableProductPhoto != null)) {
  421. this.tableProductPhoto.InitVars();
  422. }
  423. }
  424. this.tableProductSale = ((ProductSaleDataTable)(base.Tables["ProductSale"]));
  425. if ((initTable == true)) {
  426. if ((this.tableProductSale != null)) {
  427. this.tableProductSale.InitVars();
  428. }
  429. }
  430. this.tableService = ((ServiceDataTable)(base.Tables["Service"]));
  431. if ((initTable == true)) {
  432. if ((this.tableService != null)) {
  433. this.tableService.InitVars();
  434. }
  435. }
  436. this.tableServicePhoto = ((ServicePhotoDataTable)(base.Tables["ServicePhoto"]));
  437. if ((initTable == true)) {
  438. if ((this.tableServicePhoto != null)) {
  439. this.tableServicePhoto.InitVars();
  440. }
  441. }
  442. this.tableTag = ((TagDataTable)(base.Tables["Tag"]));
  443. if ((initTable == true)) {
  444. if ((this.tableTag != null)) {
  445. this.tableTag.InitVars();
  446. }
  447. }
  448. this.tableTagOfClient = ((TagOfClientDataTable)(base.Tables["TagOfClient"]));
  449. if ((initTable == true)) {
  450. if ((this.tableTagOfClient != null)) {
  451. this.tableTagOfClient.InitVars();
  452. }
  453. }
  454. this.relationFK_AttachedProduct_Product = this.Relations["FK_AttachedProduct_Product"];
  455. this.relationFK_AttachedProduct_Product1 = this.Relations["FK_AttachedProduct_Product1"];
  456. this.relationFK_Client_Gender = this.Relations["FK_Client_Gender"];
  457. this.relationFK_ClientService_Client = this.Relations["FK_ClientService_Client"];
  458. this.relationFK_ClientService_service_b_import = this.Relations["FK_ClientService_service_b_import"];
  459. this.relationFK_DocumentByService_ClientService = this.Relations["FK_DocumentByService_ClientService"];
  460. this.relationFK_Product_Manufacturer = this.Relations["FK_Product_Manufacturer"];
  461. this.relationFK_ProductPhoto_Product = this.Relations["FK_ProductPhoto_Product"];
  462. this.relationFK_ProductSale_ClientService = this.Relations["FK_ProductSale_ClientService"];
  463. this.relationFK_ProductSale_Product = this.Relations["FK_ProductSale_Product"];
  464. this.relationFK_ServicePhoto_service_b_import = this.Relations["FK_ServicePhoto_service_b_import"];
  465. this.relationFK_TagOfClient_Client = this.Relations["FK_TagOfClient_Client"];
  466. this.relationFK_TagOfClient_Tag = this.Relations["FK_TagOfClient_Tag"];
  467. }
  468. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  469. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  470. private void InitClass() {
  471. this.DataSetName = "DB_Кузьменко_V2DataSet";
  472. this.Prefix = "";
  473. this.Namespace = "http://tempuri.org/DB_Кузьменко_V2DataSet.xsd";
  474. this.EnforceConstraints = true;
  475. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  476. this.tableAttachedProduct = new AttachedProductDataTable();
  477. base.Tables.Add(this.tableAttachedProduct);
  478. this.tableClient = new ClientDataTable();
  479. base.Tables.Add(this.tableClient);
  480. this.tableClientService = new ClientServiceDataTable();
  481. base.Tables.Add(this.tableClientService);
  482. this.tableDocumentByService = new DocumentByServiceDataTable();
  483. base.Tables.Add(this.tableDocumentByService);
  484. this.tableGender = new GenderDataTable();
  485. base.Tables.Add(this.tableGender);
  486. this.tableManufacturer = new ManufacturerDataTable();
  487. base.Tables.Add(this.tableManufacturer);
  488. this.tableProduct = new ProductDataTable();
  489. base.Tables.Add(this.tableProduct);
  490. this.tableProductPhoto = new ProductPhotoDataTable();
  491. base.Tables.Add(this.tableProductPhoto);
  492. this.tableProductSale = new ProductSaleDataTable();
  493. base.Tables.Add(this.tableProductSale);
  494. this.tableService = new ServiceDataTable();
  495. base.Tables.Add(this.tableService);
  496. this.tableServicePhoto = new ServicePhotoDataTable();
  497. base.Tables.Add(this.tableServicePhoto);
  498. this.tableTag = new TagDataTable();
  499. base.Tables.Add(this.tableTag);
  500. this.tableTagOfClient = new TagOfClientDataTable();
  501. base.Tables.Add(this.tableTagOfClient);
  502. this.relationFK_AttachedProduct_Product = new global::System.Data.DataRelation("FK_AttachedProduct_Product", new global::System.Data.DataColumn[] {
  503. this.tableProduct.IDColumn}, new global::System.Data.DataColumn[] {
  504. this.tableAttachedProduct.MainProductIDColumn}, false);
  505. this.Relations.Add(this.relationFK_AttachedProduct_Product);
  506. this.relationFK_AttachedProduct_Product1 = new global::System.Data.DataRelation("FK_AttachedProduct_Product1", new global::System.Data.DataColumn[] {
  507. this.tableProduct.IDColumn}, new global::System.Data.DataColumn[] {
  508. this.tableAttachedProduct.AttachedProductIDColumn}, false);
  509. this.Relations.Add(this.relationFK_AttachedProduct_Product1);
  510. this.relationFK_Client_Gender = new global::System.Data.DataRelation("FK_Client_Gender", new global::System.Data.DataColumn[] {
  511. this.tableGender.CodeColumn}, new global::System.Data.DataColumn[] {
  512. this.tableClient.GenderCodeColumn}, false);
  513. this.Relations.Add(this.relationFK_Client_Gender);
  514. this.relationFK_ClientService_Client = new global::System.Data.DataRelation("FK_ClientService_Client", new global::System.Data.DataColumn[] {
  515. this.tableClient.IDColumn}, new global::System.Data.DataColumn[] {
  516. this.tableClientService.ClientIDColumn}, false);
  517. this.Relations.Add(this.relationFK_ClientService_Client);
  518. this.relationFK_ClientService_service_b_import = new global::System.Data.DataRelation("FK_ClientService_service_b_import", new global::System.Data.DataColumn[] {
  519. this.tableService.IDColumn}, new global::System.Data.DataColumn[] {
  520. this.tableClientService.ServiceIDColumn}, false);
  521. this.Relations.Add(this.relationFK_ClientService_service_b_import);
  522. this.relationFK_DocumentByService_ClientService = new global::System.Data.DataRelation("FK_DocumentByService_ClientService", new global::System.Data.DataColumn[] {
  523. this.tableClientService.IDColumn}, new global::System.Data.DataColumn[] {
  524. this.tableDocumentByService.ClientServiceIDColumn}, false);
  525. this.Relations.Add(this.relationFK_DocumentByService_ClientService);
  526. this.relationFK_Product_Manufacturer = new global::System.Data.DataRelation("FK_Product_Manufacturer", new global::System.Data.DataColumn[] {
  527. this.tableManufacturer.IDColumn}, new global::System.Data.DataColumn[] {
  528. this.tableProduct.ManufacturerIDColumn}, false);
  529. this.Relations.Add(this.relationFK_Product_Manufacturer);
  530. this.relationFK_ProductPhoto_Product = new global::System.Data.DataRelation("FK_ProductPhoto_Product", new global::System.Data.DataColumn[] {
  531. this.tableProduct.IDColumn}, new global::System.Data.DataColumn[] {
  532. this.tableProductPhoto.ProductIDColumn}, false);
  533. this.Relations.Add(this.relationFK_ProductPhoto_Product);
  534. this.relationFK_ProductSale_ClientService = new global::System.Data.DataRelation("FK_ProductSale_ClientService", new global::System.Data.DataColumn[] {
  535. this.tableClientService.IDColumn}, new global::System.Data.DataColumn[] {
  536. this.tableProductSale.ClientServiceIDColumn}, false);
  537. this.Relations.Add(this.relationFK_ProductSale_ClientService);
  538. this.relationFK_ProductSale_Product = new global::System.Data.DataRelation("FK_ProductSale_Product", new global::System.Data.DataColumn[] {
  539. this.tableProduct.IDColumn}, new global::System.Data.DataColumn[] {
  540. this.tableProductSale.ProductIDColumn}, false);
  541. this.Relations.Add(this.relationFK_ProductSale_Product);
  542. this.relationFK_ServicePhoto_service_b_import = new global::System.Data.DataRelation("FK_ServicePhoto_service_b_import", new global::System.Data.DataColumn[] {
  543. this.tableService.IDColumn}, new global::System.Data.DataColumn[] {
  544. this.tableServicePhoto.ServiceIDColumn}, false);
  545. this.Relations.Add(this.relationFK_ServicePhoto_service_b_import);
  546. this.relationFK_TagOfClient_Client = new global::System.Data.DataRelation("FK_TagOfClient_Client", new global::System.Data.DataColumn[] {
  547. this.tableClient.IDColumn}, new global::System.Data.DataColumn[] {
  548. this.tableTagOfClient.ClientIDColumn}, false);
  549. this.Relations.Add(this.relationFK_TagOfClient_Client);
  550. this.relationFK_TagOfClient_Tag = new global::System.Data.DataRelation("FK_TagOfClient_Tag", new global::System.Data.DataColumn[] {
  551. this.tableTag.IDColumn}, new global::System.Data.DataColumn[] {
  552. this.tableTagOfClient.TagIDColumn}, false);
  553. this.Relations.Add(this.relationFK_TagOfClient_Tag);
  554. }
  555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  556. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  557. private bool ShouldSerializeAttachedProduct() {
  558. return false;
  559. }
  560. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  561. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  562. private bool ShouldSerializeClient() {
  563. return false;
  564. }
  565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  567. private bool ShouldSerializeClientService() {
  568. return false;
  569. }
  570. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  571. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  572. private bool ShouldSerializeDocumentByService() {
  573. return false;
  574. }
  575. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  576. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  577. private bool ShouldSerializeGender() {
  578. return false;
  579. }
  580. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  581. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  582. private bool ShouldSerializeManufacturer() {
  583. return false;
  584. }
  585. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  586. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  587. private bool ShouldSerializeProduct() {
  588. return false;
  589. }
  590. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  591. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  592. private bool ShouldSerializeProductPhoto() {
  593. return false;
  594. }
  595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  596. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  597. private bool ShouldSerializeProductSale() {
  598. return false;
  599. }
  600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  601. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  602. private bool ShouldSerializeService() {
  603. return false;
  604. }
  605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  607. private bool ShouldSerializeServicePhoto() {
  608. return false;
  609. }
  610. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  611. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  612. private bool ShouldSerializeTag() {
  613. return false;
  614. }
  615. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  616. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  617. private bool ShouldSerializeTagOfClient() {
  618. return false;
  619. }
  620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  621. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  622. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  623. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  624. this.InitVars();
  625. }
  626. }
  627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  629. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  630. DB_Кузьменко_V2DataSet ds = new DB_Кузьменко_V2DataSet();
  631. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  632. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  633. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  634. any.Namespace = ds.Namespace;
  635. sequence.Items.Add(any);
  636. type.Particle = sequence;
  637. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  638. if (xs.Contains(dsSchema.TargetNamespace)) {
  639. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  640. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  641. try {
  642. global::System.Xml.Schema.XmlSchema schema = null;
  643. dsSchema.Write(s1);
  644. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  645. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  646. s2.SetLength(0);
  647. schema.Write(s2);
  648. if ((s1.Length == s2.Length)) {
  649. s1.Position = 0;
  650. s2.Position = 0;
  651. for (; ((s1.Position != s1.Length)
  652. && (s1.ReadByte() == s2.ReadByte())); ) {
  653. ;
  654. }
  655. if ((s1.Position == s1.Length)) {
  656. return type;
  657. }
  658. }
  659. }
  660. }
  661. finally {
  662. if ((s1 != null)) {
  663. s1.Close();
  664. }
  665. if ((s2 != null)) {
  666. s2.Close();
  667. }
  668. }
  669. }
  670. xs.Add(dsSchema);
  671. return type;
  672. }
  673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  674. public delegate void AttachedProductRowChangeEventHandler(object sender, AttachedProductRowChangeEvent e);
  675. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  676. public delegate void ClientRowChangeEventHandler(object sender, ClientRowChangeEvent e);
  677. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  678. public delegate void ClientServiceRowChangeEventHandler(object sender, ClientServiceRowChangeEvent e);
  679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  680. public delegate void DocumentByServiceRowChangeEventHandler(object sender, DocumentByServiceRowChangeEvent e);
  681. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  682. public delegate void GenderRowChangeEventHandler(object sender, GenderRowChangeEvent e);
  683. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  684. public delegate void ManufacturerRowChangeEventHandler(object sender, ManufacturerRowChangeEvent e);
  685. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  686. public delegate void ProductRowChangeEventHandler(object sender, ProductRowChangeEvent e);
  687. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  688. public delegate void ProductPhotoRowChangeEventHandler(object sender, ProductPhotoRowChangeEvent e);
  689. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  690. public delegate void ProductSaleRowChangeEventHandler(object sender, ProductSaleRowChangeEvent e);
  691. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  692. public delegate void ServiceRowChangeEventHandler(object sender, ServiceRowChangeEvent e);
  693. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  694. public delegate void ServicePhotoRowChangeEventHandler(object sender, ServicePhotoRowChangeEvent e);
  695. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  696. public delegate void TagRowChangeEventHandler(object sender, TagRowChangeEvent e);
  697. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  698. public delegate void TagOfClientRowChangeEventHandler(object sender, TagOfClientRowChangeEvent e);
  699. /// <summary>
  700. ///Represents the strongly named DataTable class.
  701. ///</summary>
  702. [global::System.Serializable()]
  703. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  704. public partial class AttachedProductDataTable : global::System.Data.TypedTableBase<AttachedProductRow> {
  705. private global::System.Data.DataColumn columnMainProductID;
  706. private global::System.Data.DataColumn columnAttachedProductID;
  707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  709. public AttachedProductDataTable() {
  710. this.TableName = "AttachedProduct";
  711. this.BeginInit();
  712. this.InitClass();
  713. this.EndInit();
  714. }
  715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  717. internal AttachedProductDataTable(global::System.Data.DataTable table) {
  718. this.TableName = table.TableName;
  719. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  720. this.CaseSensitive = table.CaseSensitive;
  721. }
  722. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  723. this.Locale = table.Locale;
  724. }
  725. if ((table.Namespace != table.DataSet.Namespace)) {
  726. this.Namespace = table.Namespace;
  727. }
  728. this.Prefix = table.Prefix;
  729. this.MinimumCapacity = table.MinimumCapacity;
  730. }
  731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  732. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  733. protected AttachedProductDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  734. base(info, context) {
  735. this.InitVars();
  736. }
  737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  738. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  739. public global::System.Data.DataColumn MainProductIDColumn {
  740. get {
  741. return this.columnMainProductID;
  742. }
  743. }
  744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  746. public global::System.Data.DataColumn AttachedProductIDColumn {
  747. get {
  748. return this.columnAttachedProductID;
  749. }
  750. }
  751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  753. [global::System.ComponentModel.Browsable(false)]
  754. public int Count {
  755. get {
  756. return this.Rows.Count;
  757. }
  758. }
  759. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  760. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  761. public AttachedProductRow this[int index] {
  762. get {
  763. return ((AttachedProductRow)(this.Rows[index]));
  764. }
  765. }
  766. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  767. public event AttachedProductRowChangeEventHandler AttachedProductRowChanging;
  768. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  769. public event AttachedProductRowChangeEventHandler AttachedProductRowChanged;
  770. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  771. public event AttachedProductRowChangeEventHandler AttachedProductRowDeleting;
  772. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  773. public event AttachedProductRowChangeEventHandler AttachedProductRowDeleted;
  774. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  775. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  776. public void AddAttachedProductRow(AttachedProductRow row) {
  777. this.Rows.Add(row);
  778. }
  779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  781. public AttachedProductRow AddAttachedProductRow(ProductRow parentProductRowByFK_AttachedProduct_Product, ProductRow parentProductRowByFK_AttachedProduct_Product1) {
  782. AttachedProductRow rowAttachedProductRow = ((AttachedProductRow)(this.NewRow()));
  783. object[] columnValuesArray = new object[] {
  784. null,
  785. null};
  786. if ((parentProductRowByFK_AttachedProduct_Product != null)) {
  787. columnValuesArray[0] = parentProductRowByFK_AttachedProduct_Product[0];
  788. }
  789. if ((parentProductRowByFK_AttachedProduct_Product1 != null)) {
  790. columnValuesArray[1] = parentProductRowByFK_AttachedProduct_Product1[0];
  791. }
  792. rowAttachedProductRow.ItemArray = columnValuesArray;
  793. this.Rows.Add(rowAttachedProductRow);
  794. return rowAttachedProductRow;
  795. }
  796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  797. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  798. public AttachedProductRow FindByMainProductIDAttachedProductID(int MainProductID, int AttachedProductID) {
  799. return ((AttachedProductRow)(this.Rows.Find(new object[] {
  800. MainProductID,
  801. AttachedProductID})));
  802. }
  803. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  804. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  805. public override global::System.Data.DataTable Clone() {
  806. AttachedProductDataTable cln = ((AttachedProductDataTable)(base.Clone()));
  807. cln.InitVars();
  808. return cln;
  809. }
  810. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  811. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  812. protected override global::System.Data.DataTable CreateInstance() {
  813. return new AttachedProductDataTable();
  814. }
  815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  816. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  817. internal void InitVars() {
  818. this.columnMainProductID = base.Columns["MainProductID"];
  819. this.columnAttachedProductID = base.Columns["AttachedProductID"];
  820. }
  821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  822. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  823. private void InitClass() {
  824. this.columnMainProductID = new global::System.Data.DataColumn("MainProductID", typeof(int), null, global::System.Data.MappingType.Element);
  825. base.Columns.Add(this.columnMainProductID);
  826. this.columnAttachedProductID = new global::System.Data.DataColumn("AttachedProductID", typeof(int), null, global::System.Data.MappingType.Element);
  827. base.Columns.Add(this.columnAttachedProductID);
  828. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  829. this.columnMainProductID,
  830. this.columnAttachedProductID}, true));
  831. this.columnMainProductID.AllowDBNull = false;
  832. this.columnAttachedProductID.AllowDBNull = false;
  833. }
  834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  835. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  836. public AttachedProductRow NewAttachedProductRow() {
  837. return ((AttachedProductRow)(this.NewRow()));
  838. }
  839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  841. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  842. return new AttachedProductRow(builder);
  843. }
  844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  845. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  846. protected override global::System.Type GetRowType() {
  847. return typeof(AttachedProductRow);
  848. }
  849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  850. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  851. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  852. base.OnRowChanged(e);
  853. if ((this.AttachedProductRowChanged != null)) {
  854. this.AttachedProductRowChanged(this, new AttachedProductRowChangeEvent(((AttachedProductRow)(e.Row)), e.Action));
  855. }
  856. }
  857. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  858. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  859. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  860. base.OnRowChanging(e);
  861. if ((this.AttachedProductRowChanging != null)) {
  862. this.AttachedProductRowChanging(this, new AttachedProductRowChangeEvent(((AttachedProductRow)(e.Row)), e.Action));
  863. }
  864. }
  865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  867. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  868. base.OnRowDeleted(e);
  869. if ((this.AttachedProductRowDeleted != null)) {
  870. this.AttachedProductRowDeleted(this, new AttachedProductRowChangeEvent(((AttachedProductRow)(e.Row)), e.Action));
  871. }
  872. }
  873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  874. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  875. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  876. base.OnRowDeleting(e);
  877. if ((this.AttachedProductRowDeleting != null)) {
  878. this.AttachedProductRowDeleting(this, new AttachedProductRowChangeEvent(((AttachedProductRow)(e.Row)), e.Action));
  879. }
  880. }
  881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  883. public void RemoveAttachedProductRow(AttachedProductRow row) {
  884. this.Rows.Remove(row);
  885. }
  886. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  887. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  888. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  889. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  890. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  891. DB_Кузьменко_V2DataSet ds = new DB_Кузьменко_V2DataSet();
  892. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  893. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  894. any1.MinOccurs = new decimal(0);
  895. any1.MaxOccurs = decimal.MaxValue;
  896. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  897. sequence.Items.Add(any1);
  898. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  899. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  900. any2.MinOccurs = new decimal(1);
  901. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  902. sequence.Items.Add(any2);
  903. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  904. attribute1.Name = "namespace";
  905. attribute1.FixedValue = ds.Namespace;
  906. type.Attributes.Add(attribute1);
  907. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  908. attribute2.Name = "tableTypeName";
  909. attribute2.FixedValue = "AttachedProductDataTable";
  910. type.Attributes.Add(attribute2);
  911. type.Particle = sequence;
  912. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  913. if (xs.Contains(dsSchema.TargetNamespace)) {
  914. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  915. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  916. try {
  917. global::System.Xml.Schema.XmlSchema schema = null;
  918. dsSchema.Write(s1);
  919. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  920. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  921. s2.SetLength(0);
  922. schema.Write(s2);
  923. if ((s1.Length == s2.Length)) {
  924. s1.Position = 0;
  925. s2.Position = 0;
  926. for (; ((s1.Position != s1.Length)
  927. && (s1.ReadByte() == s2.ReadByte())); ) {
  928. ;
  929. }
  930. if ((s1.Position == s1.Length)) {
  931. return type;
  932. }
  933. }
  934. }
  935. }
  936. finally {
  937. if ((s1 != null)) {
  938. s1.Close();
  939. }
  940. if ((s2 != null)) {
  941. s2.Close();
  942. }
  943. }
  944. }
  945. xs.Add(dsSchema);
  946. return type;
  947. }
  948. }
  949. /// <summary>
  950. ///Represents the strongly named DataTable class.
  951. ///</summary>
  952. [global::System.Serializable()]
  953. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  954. public partial class ClientDataTable : global::System.Data.TypedTableBase<ClientRow> {
  955. private global::System.Data.DataColumn columnID;
  956. private global::System.Data.DataColumn columnFirstName;
  957. private global::System.Data.DataColumn columnLastName;
  958. private global::System.Data.DataColumn columnPatronymic;
  959. private global::System.Data.DataColumn columnBirthday;
  960. private global::System.Data.DataColumn columnRegistrationDate;
  961. private global::System.Data.DataColumn columnEmail;
  962. private global::System.Data.DataColumn columnPhone;
  963. private global::System.Data.DataColumn columnGenderCode;
  964. private global::System.Data.DataColumn columnPhotoPath;
  965. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  966. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  967. public ClientDataTable() {
  968. this.TableName = "Client";
  969. this.BeginInit();
  970. this.InitClass();
  971. this.EndInit();
  972. }
  973. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  974. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  975. internal ClientDataTable(global::System.Data.DataTable table) {
  976. this.TableName = table.TableName;
  977. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  978. this.CaseSensitive = table.CaseSensitive;
  979. }
  980. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  981. this.Locale = table.Locale;
  982. }
  983. if ((table.Namespace != table.DataSet.Namespace)) {
  984. this.Namespace = table.Namespace;
  985. }
  986. this.Prefix = table.Prefix;
  987. this.MinimumCapacity = table.MinimumCapacity;
  988. }
  989. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  990. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  991. protected ClientDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  992. base(info, context) {
  993. this.InitVars();
  994. }
  995. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  996. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  997. public global::System.Data.DataColumn IDColumn {
  998. get {
  999. return this.columnID;
  1000. }
  1001. }
  1002. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1003. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1004. public global::System.Data.DataColumn FirstNameColumn {
  1005. get {
  1006. return this.columnFirstName;
  1007. }
  1008. }
  1009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1011. public global::System.Data.DataColumn LastNameColumn {
  1012. get {
  1013. return this.columnLastName;
  1014. }
  1015. }
  1016. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1017. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1018. public global::System.Data.DataColumn PatronymicColumn {
  1019. get {
  1020. return this.columnPatronymic;
  1021. }
  1022. }
  1023. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1024. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1025. public global::System.Data.DataColumn BirthdayColumn {
  1026. get {
  1027. return this.columnBirthday;
  1028. }
  1029. }
  1030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1032. public global::System.Data.DataColumn RegistrationDateColumn {
  1033. get {
  1034. return this.columnRegistrationDate;
  1035. }
  1036. }
  1037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1038. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1039. public global::System.Data.DataColumn EmailColumn {
  1040. get {
  1041. return this.columnEmail;
  1042. }
  1043. }
  1044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1046. public global::System.Data.DataColumn PhoneColumn {
  1047. get {
  1048. return this.columnPhone;
  1049. }
  1050. }
  1051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1053. public global::System.Data.DataColumn GenderCodeColumn {
  1054. get {
  1055. return this.columnGenderCode;
  1056. }
  1057. }
  1058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1059. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1060. public global::System.Data.DataColumn PhotoPathColumn {
  1061. get {
  1062. return this.columnPhotoPath;
  1063. }
  1064. }
  1065. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1066. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1067. [global::System.ComponentModel.Browsable(false)]
  1068. public int Count {
  1069. get {
  1070. return this.Rows.Count;
  1071. }
  1072. }
  1073. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1074. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1075. public ClientRow this[int index] {
  1076. get {
  1077. return ((ClientRow)(this.Rows[index]));
  1078. }
  1079. }
  1080. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1081. public event ClientRowChangeEventHandler ClientRowChanging;
  1082. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1083. public event ClientRowChangeEventHandler ClientRowChanged;
  1084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1085. public event ClientRowChangeEventHandler ClientRowDeleting;
  1086. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1087. public event ClientRowChangeEventHandler ClientRowDeleted;
  1088. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1089. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1090. public void AddClientRow(ClientRow row) {
  1091. this.Rows.Add(row);
  1092. }
  1093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1094. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1095. public ClientRow AddClientRow(string FirstName, string LastName, string Patronymic, System.DateTime Birthday, System.DateTime RegistrationDate, string Email, string Phone, GenderRow parentGenderRowByFK_Client_Gender, string PhotoPath) {
  1096. ClientRow rowClientRow = ((ClientRow)(this.NewRow()));
  1097. object[] columnValuesArray = new object[] {
  1098. null,
  1099. FirstName,
  1100. LastName,
  1101. Patronymic,
  1102. Birthday,
  1103. RegistrationDate,
  1104. Email,
  1105. Phone,
  1106. null,
  1107. PhotoPath};
  1108. if ((parentGenderRowByFK_Client_Gender != null)) {
  1109. columnValuesArray[8] = parentGenderRowByFK_Client_Gender[0];
  1110. }
  1111. rowClientRow.ItemArray = columnValuesArray;
  1112. this.Rows.Add(rowClientRow);
  1113. return rowClientRow;
  1114. }
  1115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1116. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1117. public ClientRow FindByID(int ID) {
  1118. return ((ClientRow)(this.Rows.Find(new object[] {
  1119. ID})));
  1120. }
  1121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1123. public override global::System.Data.DataTable Clone() {
  1124. ClientDataTable cln = ((ClientDataTable)(base.Clone()));
  1125. cln.InitVars();
  1126. return cln;
  1127. }
  1128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1129. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1130. protected override global::System.Data.DataTable CreateInstance() {
  1131. return new ClientDataTable();
  1132. }
  1133. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1134. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1135. internal void InitVars() {
  1136. this.columnID = base.Columns["ID"];
  1137. this.columnFirstName = base.Columns["FirstName"];
  1138. this.columnLastName = base.Columns["LastName"];
  1139. this.columnPatronymic = base.Columns["Patronymic"];
  1140. this.columnBirthday = base.Columns["Birthday"];
  1141. this.columnRegistrationDate = base.Columns["RegistrationDate"];
  1142. this.columnEmail = base.Columns["Email"];
  1143. this.columnPhone = base.Columns["Phone"];
  1144. this.columnGenderCode = base.Columns["GenderCode"];
  1145. this.columnPhotoPath = base.Columns["PhotoPath"];
  1146. }
  1147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1149. private void InitClass() {
  1150. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  1151. base.Columns.Add(this.columnID);
  1152. this.columnFirstName = new global::System.Data.DataColumn("FirstName", typeof(string), null, global::System.Data.MappingType.Element);
  1153. base.Columns.Add(this.columnFirstName);
  1154. this.columnLastName = new global::System.Data.DataColumn("LastName", typeof(string), null, global::System.Data.MappingType.Element);
  1155. base.Columns.Add(this.columnLastName);
  1156. this.columnPatronymic = new global::System.Data.DataColumn("Patronymic", typeof(string), null, global::System.Data.MappingType.Element);
  1157. base.Columns.Add(this.columnPatronymic);
  1158. this.columnBirthday = new global::System.Data.DataColumn("Birthday", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1159. base.Columns.Add(this.columnBirthday);
  1160. this.columnRegistrationDate = new global::System.Data.DataColumn("RegistrationDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1161. base.Columns.Add(this.columnRegistrationDate);
  1162. this.columnEmail = new global::System.Data.DataColumn("Email", typeof(string), null, global::System.Data.MappingType.Element);
  1163. base.Columns.Add(this.columnEmail);
  1164. this.columnPhone = new global::System.Data.DataColumn("Phone", typeof(string), null, global::System.Data.MappingType.Element);
  1165. base.Columns.Add(this.columnPhone);
  1166. this.columnGenderCode = new global::System.Data.DataColumn("GenderCode", typeof(string), null, global::System.Data.MappingType.Element);
  1167. base.Columns.Add(this.columnGenderCode);
  1168. this.columnPhotoPath = new global::System.Data.DataColumn("PhotoPath", typeof(string), null, global::System.Data.MappingType.Element);
  1169. base.Columns.Add(this.columnPhotoPath);
  1170. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1171. this.columnID}, true));
  1172. this.columnID.AutoIncrement = true;
  1173. this.columnID.AutoIncrementSeed = -1;
  1174. this.columnID.AutoIncrementStep = -1;
  1175. this.columnID.AllowDBNull = false;
  1176. this.columnID.ReadOnly = true;
  1177. this.columnID.Unique = true;
  1178. this.columnFirstName.AllowDBNull = false;
  1179. this.columnFirstName.MaxLength = 50;
  1180. this.columnLastName.AllowDBNull = false;
  1181. this.columnLastName.MaxLength = 50;
  1182. this.columnPatronymic.MaxLength = 50;
  1183. this.columnRegistrationDate.AllowDBNull = false;
  1184. this.columnEmail.MaxLength = 255;
  1185. this.columnPhone.AllowDBNull = false;
  1186. this.columnPhone.MaxLength = 20;
  1187. this.columnGenderCode.MaxLength = 50;
  1188. this.columnPhotoPath.MaxLength = 1000;
  1189. }
  1190. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1191. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1192. public ClientRow NewClientRow() {
  1193. return ((ClientRow)(this.NewRow()));
  1194. }
  1195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1197. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1198. return new ClientRow(builder);
  1199. }
  1200. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1201. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1202. protected override global::System.Type GetRowType() {
  1203. return typeof(ClientRow);
  1204. }
  1205. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1206. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1207. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1208. base.OnRowChanged(e);
  1209. if ((this.ClientRowChanged != null)) {
  1210. this.ClientRowChanged(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  1211. }
  1212. }
  1213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1214. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1215. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1216. base.OnRowChanging(e);
  1217. if ((this.ClientRowChanging != null)) {
  1218. this.ClientRowChanging(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  1219. }
  1220. }
  1221. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1222. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1223. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1224. base.OnRowDeleted(e);
  1225. if ((this.ClientRowDeleted != null)) {
  1226. this.ClientRowDeleted(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  1227. }
  1228. }
  1229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1230. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1231. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1232. base.OnRowDeleting(e);
  1233. if ((this.ClientRowDeleting != null)) {
  1234. this.ClientRowDeleting(this, new ClientRowChangeEvent(((ClientRow)(e.Row)), e.Action));
  1235. }
  1236. }
  1237. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1238. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1239. public void RemoveClientRow(ClientRow row) {
  1240. this.Rows.Remove(row);
  1241. }
  1242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1243. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1244. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1245. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1246. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1247. DB_Кузьменко_V2DataSet ds = new DB_Кузьменко_V2DataSet();
  1248. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1249. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1250. any1.MinOccurs = new decimal(0);
  1251. any1.MaxOccurs = decimal.MaxValue;
  1252. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1253. sequence.Items.Add(any1);
  1254. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1255. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1256. any2.MinOccurs = new decimal(1);
  1257. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1258. sequence.Items.Add(any2);
  1259. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1260. attribute1.Name = "namespace";
  1261. attribute1.FixedValue = ds.Namespace;
  1262. type.Attributes.Add(attribute1);
  1263. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1264. attribute2.Name = "tableTypeName";
  1265. attribute2.FixedValue = "ClientDataTable";
  1266. type.Attributes.Add(attribute2);
  1267. type.Particle = sequence;
  1268. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1269. if (xs.Contains(dsSchema.TargetNamespace)) {
  1270. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1271. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1272. try {
  1273. global::System.Xml.Schema.XmlSchema schema = null;
  1274. dsSchema.Write(s1);
  1275. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1276. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1277. s2.SetLength(0);
  1278. schema.Write(s2);
  1279. if ((s1.Length == s2.Length)) {
  1280. s1.Position = 0;
  1281. s2.Position = 0;
  1282. for (; ((s1.Position != s1.Length)
  1283. && (s1.ReadByte() == s2.ReadByte())); ) {
  1284. ;
  1285. }
  1286. if ((s1.Position == s1.Length)) {
  1287. return type;
  1288. }
  1289. }
  1290. }
  1291. }
  1292. finally {
  1293. if ((s1 != null)) {
  1294. s1.Close();
  1295. }
  1296. if ((s2 != null)) {
  1297. s2.Close();
  1298. }
  1299. }
  1300. }
  1301. xs.Add(dsSchema);
  1302. return type;
  1303. }
  1304. }
  1305. /// <summary>
  1306. ///Represents the strongly named DataTable class.
  1307. ///</summary>
  1308. [global::System.Serializable()]
  1309. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1310. public partial class ClientServiceDataTable : global::System.Data.TypedTableBase<ClientServiceRow> {
  1311. private global::System.Data.DataColumn columnID;
  1312. private global::System.Data.DataColumn columnClientID;
  1313. private global::System.Data.DataColumn columnServiceID;
  1314. private global::System.Data.DataColumn columnStartTime;
  1315. private global::System.Data.DataColumn columnComment;
  1316. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1317. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1318. public ClientServiceDataTable() {
  1319. this.TableName = "ClientService";
  1320. this.BeginInit();
  1321. this.InitClass();
  1322. this.EndInit();
  1323. }
  1324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1326. internal ClientServiceDataTable(global::System.Data.DataTable table) {
  1327. this.TableName = table.TableName;
  1328. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1329. this.CaseSensitive = table.CaseSensitive;
  1330. }
  1331. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1332. this.Locale = table.Locale;
  1333. }
  1334. if ((table.Namespace != table.DataSet.Namespace)) {
  1335. this.Namespace = table.Namespace;
  1336. }
  1337. this.Prefix = table.Prefix;
  1338. this.MinimumCapacity = table.MinimumCapacity;
  1339. }
  1340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1341. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1342. protected ClientServiceDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1343. base(info, context) {
  1344. this.InitVars();
  1345. }
  1346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1347. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1348. public global::System.Data.DataColumn IDColumn {
  1349. get {
  1350. return this.columnID;
  1351. }
  1352. }
  1353. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1354. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1355. public global::System.Data.DataColumn ClientIDColumn {
  1356. get {
  1357. return this.columnClientID;
  1358. }
  1359. }
  1360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1361. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1362. public global::System.Data.DataColumn ServiceIDColumn {
  1363. get {
  1364. return this.columnServiceID;
  1365. }
  1366. }
  1367. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1368. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1369. public global::System.Data.DataColumn StartTimeColumn {
  1370. get {
  1371. return this.columnStartTime;
  1372. }
  1373. }
  1374. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1375. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1376. public global::System.Data.DataColumn CommentColumn {
  1377. get {
  1378. return this.columnComment;
  1379. }
  1380. }
  1381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1382. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1383. [global::System.ComponentModel.Browsable(false)]
  1384. public int Count {
  1385. get {
  1386. return this.Rows.Count;
  1387. }
  1388. }
  1389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1390. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1391. public ClientServiceRow this[int index] {
  1392. get {
  1393. return ((ClientServiceRow)(this.Rows[index]));
  1394. }
  1395. }
  1396. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1397. public event ClientServiceRowChangeEventHandler ClientServiceRowChanging;
  1398. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1399. public event ClientServiceRowChangeEventHandler ClientServiceRowChanged;
  1400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1401. public event ClientServiceRowChangeEventHandler ClientServiceRowDeleting;
  1402. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1403. public event ClientServiceRowChangeEventHandler ClientServiceRowDeleted;
  1404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1406. public void AddClientServiceRow(ClientServiceRow row) {
  1407. this.Rows.Add(row);
  1408. }
  1409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1411. public ClientServiceRow AddClientServiceRow(ClientRow parentClientRowByFK_ClientService_Client, ServiceRow parentServiceRowByFK_ClientService_service_b_import, System.DateTime StartTime, string Comment) {
  1412. ClientServiceRow rowClientServiceRow = ((ClientServiceRow)(this.NewRow()));
  1413. object[] columnValuesArray = new object[] {
  1414. null,
  1415. null,
  1416. null,
  1417. StartTime,
  1418. Comment};
  1419. if ((parentClientRowByFK_ClientService_Client != null)) {
  1420. columnValuesArray[1] = parentClientRowByFK_ClientService_Client[0];
  1421. }
  1422. if ((parentServiceRowByFK_ClientService_service_b_import != null)) {
  1423. columnValuesArray[2] = parentServiceRowByFK_ClientService_service_b_import[0];
  1424. }
  1425. rowClientServiceRow.ItemArray = columnValuesArray;
  1426. this.Rows.Add(rowClientServiceRow);
  1427. return rowClientServiceRow;
  1428. }
  1429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1431. public ClientServiceRow FindByID(int ID) {
  1432. return ((ClientServiceRow)(this.Rows.Find(new object[] {
  1433. ID})));
  1434. }
  1435. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1436. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1437. public override global::System.Data.DataTable Clone() {
  1438. ClientServiceDataTable cln = ((ClientServiceDataTable)(base.Clone()));
  1439. cln.InitVars();
  1440. return cln;
  1441. }
  1442. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1443. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1444. protected override global::System.Data.DataTable CreateInstance() {
  1445. return new ClientServiceDataTable();
  1446. }
  1447. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1448. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1449. internal void InitVars() {
  1450. this.columnID = base.Columns["ID"];
  1451. this.columnClientID = base.Columns["ClientID"];
  1452. this.columnServiceID = base.Columns["ServiceID"];
  1453. this.columnStartTime = base.Columns["StartTime"];
  1454. this.columnComment = base.Columns["Comment"];
  1455. }
  1456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1457. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1458. private void InitClass() {
  1459. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  1460. base.Columns.Add(this.columnID);
  1461. this.columnClientID = new global::System.Data.DataColumn("ClientID", typeof(int), null, global::System.Data.MappingType.Element);
  1462. base.Columns.Add(this.columnClientID);
  1463. this.columnServiceID = new global::System.Data.DataColumn("ServiceID", typeof(int), null, global::System.Data.MappingType.Element);
  1464. base.Columns.Add(this.columnServiceID);
  1465. this.columnStartTime = new global::System.Data.DataColumn("StartTime", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1466. base.Columns.Add(this.columnStartTime);
  1467. this.columnComment = new global::System.Data.DataColumn("Comment", typeof(string), null, global::System.Data.MappingType.Element);
  1468. base.Columns.Add(this.columnComment);
  1469. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1470. this.columnID}, true));
  1471. this.columnID.AutoIncrement = true;
  1472. this.columnID.AutoIncrementSeed = -1;
  1473. this.columnID.AutoIncrementStep = -1;
  1474. this.columnID.AllowDBNull = false;
  1475. this.columnID.ReadOnly = true;
  1476. this.columnID.Unique = true;
  1477. this.columnClientID.AllowDBNull = false;
  1478. this.columnServiceID.AllowDBNull = false;
  1479. this.columnStartTime.AllowDBNull = false;
  1480. this.columnComment.MaxLength = 2147483647;
  1481. }
  1482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1484. public ClientServiceRow NewClientServiceRow() {
  1485. return ((ClientServiceRow)(this.NewRow()));
  1486. }
  1487. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1488. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1489. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1490. return new ClientServiceRow(builder);
  1491. }
  1492. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1493. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1494. protected override global::System.Type GetRowType() {
  1495. return typeof(ClientServiceRow);
  1496. }
  1497. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1498. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1499. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1500. base.OnRowChanged(e);
  1501. if ((this.ClientServiceRowChanged != null)) {
  1502. this.ClientServiceRowChanged(this, new ClientServiceRowChangeEvent(((ClientServiceRow)(e.Row)), e.Action));
  1503. }
  1504. }
  1505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1507. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1508. base.OnRowChanging(e);
  1509. if ((this.ClientServiceRowChanging != null)) {
  1510. this.ClientServiceRowChanging(this, new ClientServiceRowChangeEvent(((ClientServiceRow)(e.Row)), e.Action));
  1511. }
  1512. }
  1513. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1514. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1515. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1516. base.OnRowDeleted(e);
  1517. if ((this.ClientServiceRowDeleted != null)) {
  1518. this.ClientServiceRowDeleted(this, new ClientServiceRowChangeEvent(((ClientServiceRow)(e.Row)), e.Action));
  1519. }
  1520. }
  1521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1523. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1524. base.OnRowDeleting(e);
  1525. if ((this.ClientServiceRowDeleting != null)) {
  1526. this.ClientServiceRowDeleting(this, new ClientServiceRowChangeEvent(((ClientServiceRow)(e.Row)), e.Action));
  1527. }
  1528. }
  1529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1530. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1531. public void RemoveClientServiceRow(ClientServiceRow row) {
  1532. this.Rows.Remove(row);
  1533. }
  1534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1535. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1536. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1537. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1538. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1539. DB_Кузьменко_V2DataSet ds = new DB_Кузьменко_V2DataSet();
  1540. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1541. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1542. any1.MinOccurs = new decimal(0);
  1543. any1.MaxOccurs = decimal.MaxValue;
  1544. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1545. sequence.Items.Add(any1);
  1546. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1547. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1548. any2.MinOccurs = new decimal(1);
  1549. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1550. sequence.Items.Add(any2);
  1551. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1552. attribute1.Name = "namespace";
  1553. attribute1.FixedValue = ds.Namespace;
  1554. type.Attributes.Add(attribute1);
  1555. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1556. attribute2.Name = "tableTypeName";
  1557. attribute2.FixedValue = "ClientServiceDataTable";
  1558. type.Attributes.Add(attribute2);
  1559. type.Particle = sequence;
  1560. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1561. if (xs.Contains(dsSchema.TargetNamespace)) {
  1562. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1563. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1564. try {
  1565. global::System.Xml.Schema.XmlSchema schema = null;
  1566. dsSchema.Write(s1);
  1567. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1568. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1569. s2.SetLength(0);
  1570. schema.Write(s2);
  1571. if ((s1.Length == s2.Length)) {
  1572. s1.Position = 0;
  1573. s2.Position = 0;
  1574. for (; ((s1.Position != s1.Length)
  1575. && (s1.ReadByte() == s2.ReadByte())); ) {
  1576. ;
  1577. }
  1578. if ((s1.Position == s1.Length)) {
  1579. return type;
  1580. }
  1581. }
  1582. }
  1583. }
  1584. finally {
  1585. if ((s1 != null)) {
  1586. s1.Close();
  1587. }
  1588. if ((s2 != null)) {
  1589. s2.Close();
  1590. }
  1591. }
  1592. }
  1593. xs.Add(dsSchema);
  1594. return type;
  1595. }
  1596. }
  1597. /// <summary>
  1598. ///Represents the strongly named DataTable class.
  1599. ///</summary>
  1600. [global::System.Serializable()]
  1601. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1602. public partial class DocumentByServiceDataTable : global::System.Data.TypedTableBase<DocumentByServiceRow> {
  1603. private global::System.Data.DataColumn columnID;
  1604. private global::System.Data.DataColumn columnClientServiceID;
  1605. private global::System.Data.DataColumn columnDocumentPath;
  1606. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1607. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1608. public DocumentByServiceDataTable() {
  1609. this.TableName = "DocumentByService";
  1610. this.BeginInit();
  1611. this.InitClass();
  1612. this.EndInit();
  1613. }
  1614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1615. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1616. internal DocumentByServiceDataTable(global::System.Data.DataTable table) {
  1617. this.TableName = table.TableName;
  1618. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1619. this.CaseSensitive = table.CaseSensitive;
  1620. }
  1621. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1622. this.Locale = table.Locale;
  1623. }
  1624. if ((table.Namespace != table.DataSet.Namespace)) {
  1625. this.Namespace = table.Namespace;
  1626. }
  1627. this.Prefix = table.Prefix;
  1628. this.MinimumCapacity = table.MinimumCapacity;
  1629. }
  1630. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1631. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1632. protected DocumentByServiceDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1633. base(info, context) {
  1634. this.InitVars();
  1635. }
  1636. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1637. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1638. public global::System.Data.DataColumn IDColumn {
  1639. get {
  1640. return this.columnID;
  1641. }
  1642. }
  1643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1644. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1645. public global::System.Data.DataColumn ClientServiceIDColumn {
  1646. get {
  1647. return this.columnClientServiceID;
  1648. }
  1649. }
  1650. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1651. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1652. public global::System.Data.DataColumn DocumentPathColumn {
  1653. get {
  1654. return this.columnDocumentPath;
  1655. }
  1656. }
  1657. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1658. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1659. [global::System.ComponentModel.Browsable(false)]
  1660. public int Count {
  1661. get {
  1662. return this.Rows.Count;
  1663. }
  1664. }
  1665. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1666. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1667. public DocumentByServiceRow this[int index] {
  1668. get {
  1669. return ((DocumentByServiceRow)(this.Rows[index]));
  1670. }
  1671. }
  1672. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1673. public event DocumentByServiceRowChangeEventHandler DocumentByServiceRowChanging;
  1674. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1675. public event DocumentByServiceRowChangeEventHandler DocumentByServiceRowChanged;
  1676. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1677. public event DocumentByServiceRowChangeEventHandler DocumentByServiceRowDeleting;
  1678. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1679. public event DocumentByServiceRowChangeEventHandler DocumentByServiceRowDeleted;
  1680. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1681. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1682. public void AddDocumentByServiceRow(DocumentByServiceRow row) {
  1683. this.Rows.Add(row);
  1684. }
  1685. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1686. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1687. public DocumentByServiceRow AddDocumentByServiceRow(ClientServiceRow parentClientServiceRowByFK_DocumentByService_ClientService, string DocumentPath) {
  1688. DocumentByServiceRow rowDocumentByServiceRow = ((DocumentByServiceRow)(this.NewRow()));
  1689. object[] columnValuesArray = new object[] {
  1690. null,
  1691. null,
  1692. DocumentPath};
  1693. if ((parentClientServiceRowByFK_DocumentByService_ClientService != null)) {
  1694. columnValuesArray[1] = parentClientServiceRowByFK_DocumentByService_ClientService[0];
  1695. }
  1696. rowDocumentByServiceRow.ItemArray = columnValuesArray;
  1697. this.Rows.Add(rowDocumentByServiceRow);
  1698. return rowDocumentByServiceRow;
  1699. }
  1700. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1701. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1702. public DocumentByServiceRow FindByID(int ID) {
  1703. return ((DocumentByServiceRow)(this.Rows.Find(new object[] {
  1704. ID})));
  1705. }
  1706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1708. public override global::System.Data.DataTable Clone() {
  1709. DocumentByServiceDataTable cln = ((DocumentByServiceDataTable)(base.Clone()));
  1710. cln.InitVars();
  1711. return cln;
  1712. }
  1713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1715. protected override global::System.Data.DataTable CreateInstance() {
  1716. return new DocumentByServiceDataTable();
  1717. }
  1718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1719. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1720. internal void InitVars() {
  1721. this.columnID = base.Columns["ID"];
  1722. this.columnClientServiceID = base.Columns["ClientServiceID"];
  1723. this.columnDocumentPath = base.Columns["DocumentPath"];
  1724. }
  1725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1726. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1727. private void InitClass() {
  1728. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  1729. base.Columns.Add(this.columnID);
  1730. this.columnClientServiceID = new global::System.Data.DataColumn("ClientServiceID", typeof(int), null, global::System.Data.MappingType.Element);
  1731. base.Columns.Add(this.columnClientServiceID);
  1732. this.columnDocumentPath = new global::System.Data.DataColumn("DocumentPath", typeof(string), null, global::System.Data.MappingType.Element);
  1733. base.Columns.Add(this.columnDocumentPath);
  1734. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1735. this.columnID}, true));
  1736. this.columnID.AutoIncrement = true;
  1737. this.columnID.AutoIncrementSeed = -1;
  1738. this.columnID.AutoIncrementStep = -1;
  1739. this.columnID.AllowDBNull = false;
  1740. this.columnID.ReadOnly = true;
  1741. this.columnID.Unique = true;
  1742. this.columnClientServiceID.AllowDBNull = false;
  1743. this.columnDocumentPath.AllowDBNull = false;
  1744. this.columnDocumentPath.MaxLength = 1000;
  1745. }
  1746. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1747. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1748. public DocumentByServiceRow NewDocumentByServiceRow() {
  1749. return ((DocumentByServiceRow)(this.NewRow()));
  1750. }
  1751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1753. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1754. return new DocumentByServiceRow(builder);
  1755. }
  1756. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1757. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1758. protected override global::System.Type GetRowType() {
  1759. return typeof(DocumentByServiceRow);
  1760. }
  1761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1763. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1764. base.OnRowChanged(e);
  1765. if ((this.DocumentByServiceRowChanged != null)) {
  1766. this.DocumentByServiceRowChanged(this, new DocumentByServiceRowChangeEvent(((DocumentByServiceRow)(e.Row)), e.Action));
  1767. }
  1768. }
  1769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1770. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1771. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1772. base.OnRowChanging(e);
  1773. if ((this.DocumentByServiceRowChanging != null)) {
  1774. this.DocumentByServiceRowChanging(this, new DocumentByServiceRowChangeEvent(((DocumentByServiceRow)(e.Row)), e.Action));
  1775. }
  1776. }
  1777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1779. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1780. base.OnRowDeleted(e);
  1781. if ((this.DocumentByServiceRowDeleted != null)) {
  1782. this.DocumentByServiceRowDeleted(this, new DocumentByServiceRowChangeEvent(((DocumentByServiceRow)(e.Row)), e.Action));
  1783. }
  1784. }
  1785. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1786. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1787. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1788. base.OnRowDeleting(e);
  1789. if ((this.DocumentByServiceRowDeleting != null)) {
  1790. this.DocumentByServiceRowDeleting(this, new DocumentByServiceRowChangeEvent(((DocumentByServiceRow)(e.Row)), e.Action));
  1791. }
  1792. }
  1793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1794. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1795. public void RemoveDocumentByServiceRow(DocumentByServiceRow row) {
  1796. this.Rows.Remove(row);
  1797. }
  1798. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1799. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1800. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1801. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1802. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1803. DB_Кузьменко_V2DataSet ds = new DB_Кузьменко_V2DataSet();
  1804. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1805. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1806. any1.MinOccurs = new decimal(0);
  1807. any1.MaxOccurs = decimal.MaxValue;
  1808. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1809. sequence.Items.Add(any1);
  1810. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1811. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1812. any2.MinOccurs = new decimal(1);
  1813. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1814. sequence.Items.Add(any2);
  1815. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1816. attribute1.Name = "namespace";
  1817. attribute1.FixedValue = ds.Namespace;
  1818. type.Attributes.Add(attribute1);
  1819. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1820. attribute2.Name = "tableTypeName";
  1821. attribute2.FixedValue = "DocumentByServiceDataTable";
  1822. type.Attributes.Add(attribute2);
  1823. type.Particle = sequence;
  1824. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1825. if (xs.Contains(dsSchema.TargetNamespace)) {
  1826. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1827. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1828. try {
  1829. global::System.Xml.Schema.XmlSchema schema = null;
  1830. dsSchema.Write(s1);
  1831. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1832. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1833. s2.SetLength(0);
  1834. schema.Write(s2);
  1835. if ((s1.Length == s2.Length)) {
  1836. s1.Position = 0;
  1837. s2.Position = 0;
  1838. for (; ((s1.Position != s1.Length)
  1839. && (s1.ReadByte() == s2.ReadByte())); ) {
  1840. ;
  1841. }
  1842. if ((s1.Position == s1.Length)) {
  1843. return type;
  1844. }
  1845. }
  1846. }
  1847. }
  1848. finally {
  1849. if ((s1 != null)) {
  1850. s1.Close();
  1851. }
  1852. if ((s2 != null)) {
  1853. s2.Close();
  1854. }
  1855. }
  1856. }
  1857. xs.Add(dsSchema);
  1858. return type;
  1859. }
  1860. }
  1861. /// <summary>
  1862. ///Represents the strongly named DataTable class.
  1863. ///</summary>
  1864. [global::System.Serializable()]
  1865. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1866. public partial class GenderDataTable : global::System.Data.TypedTableBase<GenderRow> {
  1867. private global::System.Data.DataColumn columnCode;
  1868. private global::System.Data.DataColumn columnName;
  1869. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1870. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1871. public GenderDataTable() {
  1872. this.TableName = "Gender";
  1873. this.BeginInit();
  1874. this.InitClass();
  1875. this.EndInit();
  1876. }
  1877. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1878. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1879. internal GenderDataTable(global::System.Data.DataTable table) {
  1880. this.TableName = table.TableName;
  1881. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1882. this.CaseSensitive = table.CaseSensitive;
  1883. }
  1884. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1885. this.Locale = table.Locale;
  1886. }
  1887. if ((table.Namespace != table.DataSet.Namespace)) {
  1888. this.Namespace = table.Namespace;
  1889. }
  1890. this.Prefix = table.Prefix;
  1891. this.MinimumCapacity = table.MinimumCapacity;
  1892. }
  1893. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1894. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1895. protected GenderDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1896. base(info, context) {
  1897. this.InitVars();
  1898. }
  1899. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1900. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1901. public global::System.Data.DataColumn CodeColumn {
  1902. get {
  1903. return this.columnCode;
  1904. }
  1905. }
  1906. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1907. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1908. public global::System.Data.DataColumn NameColumn {
  1909. get {
  1910. return this.columnName;
  1911. }
  1912. }
  1913. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1914. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1915. [global::System.ComponentModel.Browsable(false)]
  1916. public int Count {
  1917. get {
  1918. return this.Rows.Count;
  1919. }
  1920. }
  1921. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1922. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1923. public GenderRow this[int index] {
  1924. get {
  1925. return ((GenderRow)(this.Rows[index]));
  1926. }
  1927. }
  1928. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1929. public event GenderRowChangeEventHandler GenderRowChanging;
  1930. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1931. public event GenderRowChangeEventHandler GenderRowChanged;
  1932. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1933. public event GenderRowChangeEventHandler GenderRowDeleting;
  1934. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1935. public event GenderRowChangeEventHandler GenderRowDeleted;
  1936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1937. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1938. public void AddGenderRow(GenderRow row) {
  1939. this.Rows.Add(row);
  1940. }
  1941. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1942. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1943. public GenderRow AddGenderRow(string Code, string Name) {
  1944. GenderRow rowGenderRow = ((GenderRow)(this.NewRow()));
  1945. object[] columnValuesArray = new object[] {
  1946. Code,
  1947. Name};
  1948. rowGenderRow.ItemArray = columnValuesArray;
  1949. this.Rows.Add(rowGenderRow);
  1950. return rowGenderRow;
  1951. }
  1952. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1953. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1954. public GenderRow FindByCode(string Code) {
  1955. return ((GenderRow)(this.Rows.Find(new object[] {
  1956. Code})));
  1957. }
  1958. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1959. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1960. public override global::System.Data.DataTable Clone() {
  1961. GenderDataTable cln = ((GenderDataTable)(base.Clone()));
  1962. cln.InitVars();
  1963. return cln;
  1964. }
  1965. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1966. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1967. protected override global::System.Data.DataTable CreateInstance() {
  1968. return new GenderDataTable();
  1969. }
  1970. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1971. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1972. internal void InitVars() {
  1973. this.columnCode = base.Columns["Code"];
  1974. this.columnName = base.Columns["Name"];
  1975. }
  1976. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1977. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1978. private void InitClass() {
  1979. this.columnCode = new global::System.Data.DataColumn("Code", typeof(string), null, global::System.Data.MappingType.Element);
  1980. base.Columns.Add(this.columnCode);
  1981. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  1982. base.Columns.Add(this.columnName);
  1983. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1984. this.columnCode}, true));
  1985. this.columnCode.AllowDBNull = false;
  1986. this.columnCode.Unique = true;
  1987. this.columnCode.MaxLength = 50;
  1988. this.columnName.MaxLength = 10;
  1989. }
  1990. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1991. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1992. public GenderRow NewGenderRow() {
  1993. return ((GenderRow)(this.NewRow()));
  1994. }
  1995. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1996. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1997. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1998. return new GenderRow(builder);
  1999. }
  2000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2001. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2002. protected override global::System.Type GetRowType() {
  2003. return typeof(GenderRow);
  2004. }
  2005. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2006. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2007. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2008. base.OnRowChanged(e);
  2009. if ((this.GenderRowChanged != null)) {
  2010. this.GenderRowChanged(this, new GenderRowChangeEvent(((GenderRow)(e.Row)), e.Action));
  2011. }
  2012. }
  2013. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2014. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2015. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2016. base.OnRowChanging(e);
  2017. if ((this.GenderRowChanging != null)) {
  2018. this.GenderRowChanging(this, new GenderRowChangeEvent(((GenderRow)(e.Row)), e.Action));
  2019. }
  2020. }
  2021. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2022. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2023. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2024. base.OnRowDeleted(e);
  2025. if ((this.GenderRowDeleted != null)) {
  2026. this.GenderRowDeleted(this, new GenderRowChangeEvent(((GenderRow)(e.Row)), e.Action));
  2027. }
  2028. }
  2029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2031. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2032. base.OnRowDeleting(e);
  2033. if ((this.GenderRowDeleting != null)) {
  2034. this.GenderRowDeleting(this, new GenderRowChangeEvent(((GenderRow)(e.Row)), e.Action));
  2035. }
  2036. }
  2037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2038. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2039. public void RemoveGenderRow(GenderRow row) {
  2040. this.Rows.Remove(row);
  2041. }
  2042. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2043. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2044. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2045. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2046. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2047. DB_Кузьменко_V2DataSet ds = new DB_Кузьменко_V2DataSet();
  2048. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2049. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2050. any1.MinOccurs = new decimal(0);
  2051. any1.MaxOccurs = decimal.MaxValue;
  2052. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2053. sequence.Items.Add(any1);
  2054. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2055. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2056. any2.MinOccurs = new decimal(1);
  2057. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2058. sequence.Items.Add(any2);
  2059. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2060. attribute1.Name = "namespace";
  2061. attribute1.FixedValue = ds.Namespace;
  2062. type.Attributes.Add(attribute1);
  2063. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2064. attribute2.Name = "tableTypeName";
  2065. attribute2.FixedValue = "GenderDataTable";
  2066. type.Attributes.Add(attribute2);
  2067. type.Particle = sequence;
  2068. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2069. if (xs.Contains(dsSchema.TargetNamespace)) {
  2070. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2071. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2072. try {
  2073. global::System.Xml.Schema.XmlSchema schema = null;
  2074. dsSchema.Write(s1);
  2075. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2076. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2077. s2.SetLength(0);
  2078. schema.Write(s2);
  2079. if ((s1.Length == s2.Length)) {
  2080. s1.Position = 0;
  2081. s2.Position = 0;
  2082. for (; ((s1.Position != s1.Length)
  2083. && (s1.ReadByte() == s2.ReadByte())); ) {
  2084. ;
  2085. }
  2086. if ((s1.Position == s1.Length)) {
  2087. return type;
  2088. }
  2089. }
  2090. }
  2091. }
  2092. finally {
  2093. if ((s1 != null)) {
  2094. s1.Close();
  2095. }
  2096. if ((s2 != null)) {
  2097. s2.Close();
  2098. }
  2099. }
  2100. }
  2101. xs.Add(dsSchema);
  2102. return type;
  2103. }
  2104. }
  2105. /// <summary>
  2106. ///Represents the strongly named DataTable class.
  2107. ///</summary>
  2108. [global::System.Serializable()]
  2109. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2110. public partial class ManufacturerDataTable : global::System.Data.TypedTableBase<ManufacturerRow> {
  2111. private global::System.Data.DataColumn columnID;
  2112. private global::System.Data.DataColumn columnName;
  2113. private global::System.Data.DataColumn columnStartDate;
  2114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2115. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2116. public ManufacturerDataTable() {
  2117. this.TableName = "Manufacturer";
  2118. this.BeginInit();
  2119. this.InitClass();
  2120. this.EndInit();
  2121. }
  2122. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2123. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2124. internal ManufacturerDataTable(global::System.Data.DataTable table) {
  2125. this.TableName = table.TableName;
  2126. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2127. this.CaseSensitive = table.CaseSensitive;
  2128. }
  2129. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2130. this.Locale = table.Locale;
  2131. }
  2132. if ((table.Namespace != table.DataSet.Namespace)) {
  2133. this.Namespace = table.Namespace;
  2134. }
  2135. this.Prefix = table.Prefix;
  2136. this.MinimumCapacity = table.MinimumCapacity;
  2137. }
  2138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2139. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2140. protected ManufacturerDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2141. base(info, context) {
  2142. this.InitVars();
  2143. }
  2144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2146. public global::System.Data.DataColumn IDColumn {
  2147. get {
  2148. return this.columnID;
  2149. }
  2150. }
  2151. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2152. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2153. public global::System.Data.DataColumn NameColumn {
  2154. get {
  2155. return this.columnName;
  2156. }
  2157. }
  2158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2159. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2160. public global::System.Data.DataColumn StartDateColumn {
  2161. get {
  2162. return this.columnStartDate;
  2163. }
  2164. }
  2165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2167. [global::System.ComponentModel.Browsable(false)]
  2168. public int Count {
  2169. get {
  2170. return this.Rows.Count;
  2171. }
  2172. }
  2173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2175. public ManufacturerRow this[int index] {
  2176. get {
  2177. return ((ManufacturerRow)(this.Rows[index]));
  2178. }
  2179. }
  2180. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2181. public event ManufacturerRowChangeEventHandler ManufacturerRowChanging;
  2182. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2183. public event ManufacturerRowChangeEventHandler ManufacturerRowChanged;
  2184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2185. public event ManufacturerRowChangeEventHandler ManufacturerRowDeleting;
  2186. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2187. public event ManufacturerRowChangeEventHandler ManufacturerRowDeleted;
  2188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2190. public void AddManufacturerRow(ManufacturerRow row) {
  2191. this.Rows.Add(row);
  2192. }
  2193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2194. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2195. public ManufacturerRow AddManufacturerRow(string Name, System.DateTime StartDate) {
  2196. ManufacturerRow rowManufacturerRow = ((ManufacturerRow)(this.NewRow()));
  2197. object[] columnValuesArray = new object[] {
  2198. null,
  2199. Name,
  2200. StartDate};
  2201. rowManufacturerRow.ItemArray = columnValuesArray;
  2202. this.Rows.Add(rowManufacturerRow);
  2203. return rowManufacturerRow;
  2204. }
  2205. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2206. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2207. public ManufacturerRow FindByID(int ID) {
  2208. return ((ManufacturerRow)(this.Rows.Find(new object[] {
  2209. ID})));
  2210. }
  2211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2213. public override global::System.Data.DataTable Clone() {
  2214. ManufacturerDataTable cln = ((ManufacturerDataTable)(base.Clone()));
  2215. cln.InitVars();
  2216. return cln;
  2217. }
  2218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2219. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2220. protected override global::System.Data.DataTable CreateInstance() {
  2221. return new ManufacturerDataTable();
  2222. }
  2223. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2224. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2225. internal void InitVars() {
  2226. this.columnID = base.Columns["ID"];
  2227. this.columnName = base.Columns["Name"];
  2228. this.columnStartDate = base.Columns["StartDate"];
  2229. }
  2230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2232. private void InitClass() {
  2233. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  2234. base.Columns.Add(this.columnID);
  2235. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  2236. base.Columns.Add(this.columnName);
  2237. this.columnStartDate = new global::System.Data.DataColumn("StartDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  2238. base.Columns.Add(this.columnStartDate);
  2239. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2240. this.columnID}, true));
  2241. this.columnID.AutoIncrement = true;
  2242. this.columnID.AutoIncrementSeed = -1;
  2243. this.columnID.AutoIncrementStep = -1;
  2244. this.columnID.AllowDBNull = false;
  2245. this.columnID.ReadOnly = true;
  2246. this.columnID.Unique = true;
  2247. this.columnName.AllowDBNull = false;
  2248. this.columnName.MaxLength = 100;
  2249. }
  2250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2252. public ManufacturerRow NewManufacturerRow() {
  2253. return ((ManufacturerRow)(this.NewRow()));
  2254. }
  2255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2256. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2257. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2258. return new ManufacturerRow(builder);
  2259. }
  2260. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2261. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2262. protected override global::System.Type GetRowType() {
  2263. return typeof(ManufacturerRow);
  2264. }
  2265. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2266. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2267. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2268. base.OnRowChanged(e);
  2269. if ((this.ManufacturerRowChanged != null)) {
  2270. this.ManufacturerRowChanged(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  2271. }
  2272. }
  2273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2274. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2275. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2276. base.OnRowChanging(e);
  2277. if ((this.ManufacturerRowChanging != null)) {
  2278. this.ManufacturerRowChanging(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  2279. }
  2280. }
  2281. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2282. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2283. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2284. base.OnRowDeleted(e);
  2285. if ((this.ManufacturerRowDeleted != null)) {
  2286. this.ManufacturerRowDeleted(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  2287. }
  2288. }
  2289. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2290. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2291. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2292. base.OnRowDeleting(e);
  2293. if ((this.ManufacturerRowDeleting != null)) {
  2294. this.ManufacturerRowDeleting(this, new ManufacturerRowChangeEvent(((ManufacturerRow)(e.Row)), e.Action));
  2295. }
  2296. }
  2297. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2298. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2299. public void RemoveManufacturerRow(ManufacturerRow row) {
  2300. this.Rows.Remove(row);
  2301. }
  2302. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2303. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2304. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2305. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2306. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2307. DB_Кузьменко_V2DataSet ds = new DB_Кузьменко_V2DataSet();
  2308. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2309. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2310. any1.MinOccurs = new decimal(0);
  2311. any1.MaxOccurs = decimal.MaxValue;
  2312. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2313. sequence.Items.Add(any1);
  2314. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2315. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2316. any2.MinOccurs = new decimal(1);
  2317. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2318. sequence.Items.Add(any2);
  2319. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2320. attribute1.Name = "namespace";
  2321. attribute1.FixedValue = ds.Namespace;
  2322. type.Attributes.Add(attribute1);
  2323. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2324. attribute2.Name = "tableTypeName";
  2325. attribute2.FixedValue = "ManufacturerDataTable";
  2326. type.Attributes.Add(attribute2);
  2327. type.Particle = sequence;
  2328. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2329. if (xs.Contains(dsSchema.TargetNamespace)) {
  2330. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2331. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2332. try {
  2333. global::System.Xml.Schema.XmlSchema schema = null;
  2334. dsSchema.Write(s1);
  2335. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2336. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2337. s2.SetLength(0);
  2338. schema.Write(s2);
  2339. if ((s1.Length == s2.Length)) {
  2340. s1.Position = 0;
  2341. s2.Position = 0;
  2342. for (; ((s1.Position != s1.Length)
  2343. && (s1.ReadByte() == s2.ReadByte())); ) {
  2344. ;
  2345. }
  2346. if ((s1.Position == s1.Length)) {
  2347. return type;
  2348. }
  2349. }
  2350. }
  2351. }
  2352. finally {
  2353. if ((s1 != null)) {
  2354. s1.Close();
  2355. }
  2356. if ((s2 != null)) {
  2357. s2.Close();
  2358. }
  2359. }
  2360. }
  2361. xs.Add(dsSchema);
  2362. return type;
  2363. }
  2364. }
  2365. /// <summary>
  2366. ///Represents the strongly named DataTable class.
  2367. ///</summary>
  2368. [global::System.Serializable()]
  2369. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2370. public partial class ProductDataTable : global::System.Data.TypedTableBase<ProductRow> {
  2371. private global::System.Data.DataColumn columnID;
  2372. private global::System.Data.DataColumn columnTitle;
  2373. private global::System.Data.DataColumn columnCost;
  2374. private global::System.Data.DataColumn columnDescription;
  2375. private global::System.Data.DataColumn columnMainImagePath;
  2376. private global::System.Data.DataColumn columnIsActive;
  2377. private global::System.Data.DataColumn columnManufacturerID;
  2378. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2379. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2380. public ProductDataTable() {
  2381. this.TableName = "Product";
  2382. this.BeginInit();
  2383. this.InitClass();
  2384. this.EndInit();
  2385. }
  2386. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2387. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2388. internal ProductDataTable(global::System.Data.DataTable table) {
  2389. this.TableName = table.TableName;
  2390. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2391. this.CaseSensitive = table.CaseSensitive;
  2392. }
  2393. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2394. this.Locale = table.Locale;
  2395. }
  2396. if ((table.Namespace != table.DataSet.Namespace)) {
  2397. this.Namespace = table.Namespace;
  2398. }
  2399. this.Prefix = table.Prefix;
  2400. this.MinimumCapacity = table.MinimumCapacity;
  2401. }
  2402. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2403. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2404. protected ProductDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2405. base(info, context) {
  2406. this.InitVars();
  2407. }
  2408. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2409. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2410. public global::System.Data.DataColumn IDColumn {
  2411. get {
  2412. return this.columnID;
  2413. }
  2414. }
  2415. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2416. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2417. public global::System.Data.DataColumn TitleColumn {
  2418. get {
  2419. return this.columnTitle;
  2420. }
  2421. }
  2422. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2423. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2424. public global::System.Data.DataColumn CostColumn {
  2425. get {
  2426. return this.columnCost;
  2427. }
  2428. }
  2429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2431. public global::System.Data.DataColumn DescriptionColumn {
  2432. get {
  2433. return this.columnDescription;
  2434. }
  2435. }
  2436. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2437. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2438. public global::System.Data.DataColumn MainImagePathColumn {
  2439. get {
  2440. return this.columnMainImagePath;
  2441. }
  2442. }
  2443. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2444. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2445. public global::System.Data.DataColumn IsActiveColumn {
  2446. get {
  2447. return this.columnIsActive;
  2448. }
  2449. }
  2450. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2451. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2452. public global::System.Data.DataColumn ManufacturerIDColumn {
  2453. get {
  2454. return this.columnManufacturerID;
  2455. }
  2456. }
  2457. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2458. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2459. [global::System.ComponentModel.Browsable(false)]
  2460. public int Count {
  2461. get {
  2462. return this.Rows.Count;
  2463. }
  2464. }
  2465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2466. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2467. public ProductRow this[int index] {
  2468. get {
  2469. return ((ProductRow)(this.Rows[index]));
  2470. }
  2471. }
  2472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2473. public event ProductRowChangeEventHandler ProductRowChanging;
  2474. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2475. public event ProductRowChangeEventHandler ProductRowChanged;
  2476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2477. public event ProductRowChangeEventHandler ProductRowDeleting;
  2478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2479. public event ProductRowChangeEventHandler ProductRowDeleted;
  2480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2482. public void AddProductRow(ProductRow row) {
  2483. this.Rows.Add(row);
  2484. }
  2485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2486. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2487. public ProductRow AddProductRow(string Title, decimal Cost, string Description, string MainImagePath, bool IsActive, ManufacturerRow parentManufacturerRowByFK_Product_Manufacturer) {
  2488. ProductRow rowProductRow = ((ProductRow)(this.NewRow()));
  2489. object[] columnValuesArray = new object[] {
  2490. null,
  2491. Title,
  2492. Cost,
  2493. Description,
  2494. MainImagePath,
  2495. IsActive,
  2496. null};
  2497. if ((parentManufacturerRowByFK_Product_Manufacturer != null)) {
  2498. columnValuesArray[6] = parentManufacturerRowByFK_Product_Manufacturer[0];
  2499. }
  2500. rowProductRow.ItemArray = columnValuesArray;
  2501. this.Rows.Add(rowProductRow);
  2502. return rowProductRow;
  2503. }
  2504. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2505. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2506. public ProductRow FindByID(int ID) {
  2507. return ((ProductRow)(this.Rows.Find(new object[] {
  2508. ID})));
  2509. }
  2510. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2511. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2512. public override global::System.Data.DataTable Clone() {
  2513. ProductDataTable cln = ((ProductDataTable)(base.Clone()));
  2514. cln.InitVars();
  2515. return cln;
  2516. }
  2517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2518. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2519. protected override global::System.Data.DataTable CreateInstance() {
  2520. return new ProductDataTable();
  2521. }
  2522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2524. internal void InitVars() {
  2525. this.columnID = base.Columns["ID"];
  2526. this.columnTitle = base.Columns["Title"];
  2527. this.columnCost = base.Columns["Cost"];
  2528. this.columnDescription = base.Columns["Description"];
  2529. this.columnMainImagePath = base.Columns["MainImagePath"];
  2530. this.columnIsActive = base.Columns["IsActive"];
  2531. this.columnManufacturerID = base.Columns["ManufacturerID"];
  2532. }
  2533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2535. private void InitClass() {
  2536. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  2537. base.Columns.Add(this.columnID);
  2538. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  2539. base.Columns.Add(this.columnTitle);
  2540. this.columnCost = new global::System.Data.DataColumn("Cost", typeof(decimal), null, global::System.Data.MappingType.Element);
  2541. base.Columns.Add(this.columnCost);
  2542. this.columnDescription = new global::System.Data.DataColumn("Description", typeof(string), null, global::System.Data.MappingType.Element);
  2543. base.Columns.Add(this.columnDescription);
  2544. this.columnMainImagePath = new global::System.Data.DataColumn("MainImagePath", typeof(string), null, global::System.Data.MappingType.Element);
  2545. base.Columns.Add(this.columnMainImagePath);
  2546. this.columnIsActive = new global::System.Data.DataColumn("IsActive", typeof(bool), null, global::System.Data.MappingType.Element);
  2547. base.Columns.Add(this.columnIsActive);
  2548. this.columnManufacturerID = new global::System.Data.DataColumn("ManufacturerID", typeof(int), null, global::System.Data.MappingType.Element);
  2549. base.Columns.Add(this.columnManufacturerID);
  2550. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2551. this.columnID}, true));
  2552. this.columnID.AutoIncrement = true;
  2553. this.columnID.AutoIncrementSeed = -1;
  2554. this.columnID.AutoIncrementStep = -1;
  2555. this.columnID.AllowDBNull = false;
  2556. this.columnID.ReadOnly = true;
  2557. this.columnID.Unique = true;
  2558. this.columnTitle.AllowDBNull = false;
  2559. this.columnTitle.MaxLength = 100;
  2560. this.columnCost.AllowDBNull = false;
  2561. this.columnDescription.MaxLength = 2147483647;
  2562. this.columnMainImagePath.MaxLength = 1000;
  2563. this.columnIsActive.AllowDBNull = false;
  2564. }
  2565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2567. public ProductRow NewProductRow() {
  2568. return ((ProductRow)(this.NewRow()));
  2569. }
  2570. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2571. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2572. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2573. return new ProductRow(builder);
  2574. }
  2575. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2576. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2577. protected override global::System.Type GetRowType() {
  2578. return typeof(ProductRow);
  2579. }
  2580. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2581. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2582. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2583. base.OnRowChanged(e);
  2584. if ((this.ProductRowChanged != null)) {
  2585. this.ProductRowChanged(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2586. }
  2587. }
  2588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2589. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2590. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2591. base.OnRowChanging(e);
  2592. if ((this.ProductRowChanging != null)) {
  2593. this.ProductRowChanging(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2594. }
  2595. }
  2596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2597. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2598. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2599. base.OnRowDeleted(e);
  2600. if ((this.ProductRowDeleted != null)) {
  2601. this.ProductRowDeleted(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2602. }
  2603. }
  2604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2606. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2607. base.OnRowDeleting(e);
  2608. if ((this.ProductRowDeleting != null)) {
  2609. this.ProductRowDeleting(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2610. }
  2611. }
  2612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2614. public void RemoveProductRow(ProductRow row) {
  2615. this.Rows.Remove(row);
  2616. }
  2617. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2618. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2619. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2620. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2621. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2622. DB_Кузьменко_V2DataSet ds = new DB_Кузьменко_V2DataSet();
  2623. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2624. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2625. any1.MinOccurs = new decimal(0);
  2626. any1.MaxOccurs = decimal.MaxValue;
  2627. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2628. sequence.Items.Add(any1);
  2629. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2630. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2631. any2.MinOccurs = new decimal(1);
  2632. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2633. sequence.Items.Add(any2);
  2634. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2635. attribute1.Name = "namespace";
  2636. attribute1.FixedValue = ds.Namespace;
  2637. type.Attributes.Add(attribute1);
  2638. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2639. attribute2.Name = "tableTypeName";
  2640. attribute2.FixedValue = "ProductDataTable";
  2641. type.Attributes.Add(attribute2);
  2642. type.Particle = sequence;
  2643. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2644. if (xs.Contains(dsSchema.TargetNamespace)) {
  2645. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2646. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2647. try {
  2648. global::System.Xml.Schema.XmlSchema schema = null;
  2649. dsSchema.Write(s1);
  2650. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2651. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2652. s2.SetLength(0);
  2653. schema.Write(s2);
  2654. if ((s1.Length == s2.Length)) {
  2655. s1.Position = 0;
  2656. s2.Position = 0;
  2657. for (; ((s1.Position != s1.Length)
  2658. && (s1.ReadByte() == s2.ReadByte())); ) {
  2659. ;
  2660. }
  2661. if ((s1.Position == s1.Length)) {
  2662. return type;
  2663. }
  2664. }
  2665. }
  2666. }
  2667. finally {
  2668. if ((s1 != null)) {
  2669. s1.Close();
  2670. }
  2671. if ((s2 != null)) {
  2672. s2.Close();
  2673. }
  2674. }
  2675. }
  2676. xs.Add(dsSchema);
  2677. return type;
  2678. }
  2679. }
  2680. /// <summary>
  2681. ///Represents the strongly named DataTable class.
  2682. ///</summary>
  2683. [global::System.Serializable()]
  2684. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2685. public partial class ProductPhotoDataTable : global::System.Data.TypedTableBase<ProductPhotoRow> {
  2686. private global::System.Data.DataColumn columnID;
  2687. private global::System.Data.DataColumn columnProductID;
  2688. private global::System.Data.DataColumn columnPhotoPath;
  2689. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2690. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2691. public ProductPhotoDataTable() {
  2692. this.TableName = "ProductPhoto";
  2693. this.BeginInit();
  2694. this.InitClass();
  2695. this.EndInit();
  2696. }
  2697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2698. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2699. internal ProductPhotoDataTable(global::System.Data.DataTable table) {
  2700. this.TableName = table.TableName;
  2701. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2702. this.CaseSensitive = table.CaseSensitive;
  2703. }
  2704. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2705. this.Locale = table.Locale;
  2706. }
  2707. if ((table.Namespace != table.DataSet.Namespace)) {
  2708. this.Namespace = table.Namespace;
  2709. }
  2710. this.Prefix = table.Prefix;
  2711. this.MinimumCapacity = table.MinimumCapacity;
  2712. }
  2713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2715. protected ProductPhotoDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2716. base(info, context) {
  2717. this.InitVars();
  2718. }
  2719. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2720. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2721. public global::System.Data.DataColumn IDColumn {
  2722. get {
  2723. return this.columnID;
  2724. }
  2725. }
  2726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2728. public global::System.Data.DataColumn ProductIDColumn {
  2729. get {
  2730. return this.columnProductID;
  2731. }
  2732. }
  2733. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2734. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2735. public global::System.Data.DataColumn PhotoPathColumn {
  2736. get {
  2737. return this.columnPhotoPath;
  2738. }
  2739. }
  2740. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2741. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2742. [global::System.ComponentModel.Browsable(false)]
  2743. public int Count {
  2744. get {
  2745. return this.Rows.Count;
  2746. }
  2747. }
  2748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2750. public ProductPhotoRow this[int index] {
  2751. get {
  2752. return ((ProductPhotoRow)(this.Rows[index]));
  2753. }
  2754. }
  2755. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2756. public event ProductPhotoRowChangeEventHandler ProductPhotoRowChanging;
  2757. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2758. public event ProductPhotoRowChangeEventHandler ProductPhotoRowChanged;
  2759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2760. public event ProductPhotoRowChangeEventHandler ProductPhotoRowDeleting;
  2761. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2762. public event ProductPhotoRowChangeEventHandler ProductPhotoRowDeleted;
  2763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2764. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2765. public void AddProductPhotoRow(ProductPhotoRow row) {
  2766. this.Rows.Add(row);
  2767. }
  2768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2770. public ProductPhotoRow AddProductPhotoRow(ProductRow parentProductRowByFK_ProductPhoto_Product, string PhotoPath) {
  2771. ProductPhotoRow rowProductPhotoRow = ((ProductPhotoRow)(this.NewRow()));
  2772. object[] columnValuesArray = new object[] {
  2773. null,
  2774. null,
  2775. PhotoPath};
  2776. if ((parentProductRowByFK_ProductPhoto_Product != null)) {
  2777. columnValuesArray[1] = parentProductRowByFK_ProductPhoto_Product[0];
  2778. }
  2779. rowProductPhotoRow.ItemArray = columnValuesArray;
  2780. this.Rows.Add(rowProductPhotoRow);
  2781. return rowProductPhotoRow;
  2782. }
  2783. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2784. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2785. public ProductPhotoRow FindByID(int ID) {
  2786. return ((ProductPhotoRow)(this.Rows.Find(new object[] {
  2787. ID})));
  2788. }
  2789. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2790. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2791. public override global::System.Data.DataTable Clone() {
  2792. ProductPhotoDataTable cln = ((ProductPhotoDataTable)(base.Clone()));
  2793. cln.InitVars();
  2794. return cln;
  2795. }
  2796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2797. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2798. protected override global::System.Data.DataTable CreateInstance() {
  2799. return new ProductPhotoDataTable();
  2800. }
  2801. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2802. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2803. internal void InitVars() {
  2804. this.columnID = base.Columns["ID"];
  2805. this.columnProductID = base.Columns["ProductID"];
  2806. this.columnPhotoPath = base.Columns["PhotoPath"];
  2807. }
  2808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2810. private void InitClass() {
  2811. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  2812. base.Columns.Add(this.columnID);
  2813. this.columnProductID = new global::System.Data.DataColumn("ProductID", typeof(int), null, global::System.Data.MappingType.Element);
  2814. base.Columns.Add(this.columnProductID);
  2815. this.columnPhotoPath = new global::System.Data.DataColumn("PhotoPath", typeof(string), null, global::System.Data.MappingType.Element);
  2816. base.Columns.Add(this.columnPhotoPath);
  2817. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2818. this.columnID}, true));
  2819. this.columnID.AutoIncrement = true;
  2820. this.columnID.AutoIncrementSeed = -1;
  2821. this.columnID.AutoIncrementStep = -1;
  2822. this.columnID.AllowDBNull = false;
  2823. this.columnID.ReadOnly = true;
  2824. this.columnID.Unique = true;
  2825. this.columnProductID.AllowDBNull = false;
  2826. this.columnPhotoPath.AllowDBNull = false;
  2827. this.columnPhotoPath.MaxLength = 1000;
  2828. }
  2829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2830. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2831. public ProductPhotoRow NewProductPhotoRow() {
  2832. return ((ProductPhotoRow)(this.NewRow()));
  2833. }
  2834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2835. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2836. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2837. return new ProductPhotoRow(builder);
  2838. }
  2839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2841. protected override global::System.Type GetRowType() {
  2842. return typeof(ProductPhotoRow);
  2843. }
  2844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2845. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2846. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2847. base.OnRowChanged(e);
  2848. if ((this.ProductPhotoRowChanged != null)) {
  2849. this.ProductPhotoRowChanged(this, new ProductPhotoRowChangeEvent(((ProductPhotoRow)(e.Row)), e.Action));
  2850. }
  2851. }
  2852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2853. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2854. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2855. base.OnRowChanging(e);
  2856. if ((this.ProductPhotoRowChanging != null)) {
  2857. this.ProductPhotoRowChanging(this, new ProductPhotoRowChangeEvent(((ProductPhotoRow)(e.Row)), e.Action));
  2858. }
  2859. }
  2860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2862. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2863. base.OnRowDeleted(e);
  2864. if ((this.ProductPhotoRowDeleted != null)) {
  2865. this.ProductPhotoRowDeleted(this, new ProductPhotoRowChangeEvent(((ProductPhotoRow)(e.Row)), e.Action));
  2866. }
  2867. }
  2868. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2869. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2870. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2871. base.OnRowDeleting(e);
  2872. if ((this.ProductPhotoRowDeleting != null)) {
  2873. this.ProductPhotoRowDeleting(this, new ProductPhotoRowChangeEvent(((ProductPhotoRow)(e.Row)), e.Action));
  2874. }
  2875. }
  2876. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2877. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2878. public void RemoveProductPhotoRow(ProductPhotoRow row) {
  2879. this.Rows.Remove(row);
  2880. }
  2881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2883. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2884. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2885. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2886. DB_Кузьменко_V2DataSet ds = new DB_Кузьменко_V2DataSet();
  2887. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2888. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2889. any1.MinOccurs = new decimal(0);
  2890. any1.MaxOccurs = decimal.MaxValue;
  2891. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2892. sequence.Items.Add(any1);
  2893. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2894. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2895. any2.MinOccurs = new decimal(1);
  2896. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2897. sequence.Items.Add(any2);
  2898. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2899. attribute1.Name = "namespace";
  2900. attribute1.FixedValue = ds.Namespace;
  2901. type.Attributes.Add(attribute1);
  2902. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2903. attribute2.Name = "tableTypeName";
  2904. attribute2.FixedValue = "ProductPhotoDataTable";
  2905. type.Attributes.Add(attribute2);
  2906. type.Particle = sequence;
  2907. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2908. if (xs.Contains(dsSchema.TargetNamespace)) {
  2909. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2910. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2911. try {
  2912. global::System.Xml.Schema.XmlSchema schema = null;
  2913. dsSchema.Write(s1);
  2914. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2915. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2916. s2.SetLength(0);
  2917. schema.Write(s2);
  2918. if ((s1.Length == s2.Length)) {
  2919. s1.Position = 0;
  2920. s2.Position = 0;
  2921. for (; ((s1.Position != s1.Length)
  2922. && (s1.ReadByte() == s2.ReadByte())); ) {
  2923. ;
  2924. }
  2925. if ((s1.Position == s1.Length)) {
  2926. return type;
  2927. }
  2928. }
  2929. }
  2930. }
  2931. finally {
  2932. if ((s1 != null)) {
  2933. s1.Close();
  2934. }
  2935. if ((s2 != null)) {
  2936. s2.Close();
  2937. }
  2938. }
  2939. }
  2940. xs.Add(dsSchema);
  2941. return type;
  2942. }
  2943. }
  2944. /// <summary>
  2945. ///Represents the strongly named DataTable class.
  2946. ///</summary>
  2947. [global::System.Serializable()]
  2948. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2949. public partial class ProductSaleDataTable : global::System.Data.TypedTableBase<ProductSaleRow> {
  2950. private global::System.Data.DataColumn columnID;
  2951. private global::System.Data.DataColumn columnSaleDate;
  2952. private global::System.Data.DataColumn columnProductID;
  2953. private global::System.Data.DataColumn columnQuantity;
  2954. private global::System.Data.DataColumn columnClientServiceID;
  2955. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2956. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2957. public ProductSaleDataTable() {
  2958. this.TableName = "ProductSale";
  2959. this.BeginInit();
  2960. this.InitClass();
  2961. this.EndInit();
  2962. }
  2963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2965. internal ProductSaleDataTable(global::System.Data.DataTable table) {
  2966. this.TableName = table.TableName;
  2967. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2968. this.CaseSensitive = table.CaseSensitive;
  2969. }
  2970. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2971. this.Locale = table.Locale;
  2972. }
  2973. if ((table.Namespace != table.DataSet.Namespace)) {
  2974. this.Namespace = table.Namespace;
  2975. }
  2976. this.Prefix = table.Prefix;
  2977. this.MinimumCapacity = table.MinimumCapacity;
  2978. }
  2979. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2980. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2981. protected ProductSaleDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2982. base(info, context) {
  2983. this.InitVars();
  2984. }
  2985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2986. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2987. public global::System.Data.DataColumn IDColumn {
  2988. get {
  2989. return this.columnID;
  2990. }
  2991. }
  2992. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2993. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2994. public global::System.Data.DataColumn SaleDateColumn {
  2995. get {
  2996. return this.columnSaleDate;
  2997. }
  2998. }
  2999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3001. public global::System.Data.DataColumn ProductIDColumn {
  3002. get {
  3003. return this.columnProductID;
  3004. }
  3005. }
  3006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3008. public global::System.Data.DataColumn QuantityColumn {
  3009. get {
  3010. return this.columnQuantity;
  3011. }
  3012. }
  3013. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3014. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3015. public global::System.Data.DataColumn ClientServiceIDColumn {
  3016. get {
  3017. return this.columnClientServiceID;
  3018. }
  3019. }
  3020. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3021. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3022. [global::System.ComponentModel.Browsable(false)]
  3023. public int Count {
  3024. get {
  3025. return this.Rows.Count;
  3026. }
  3027. }
  3028. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3029. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3030. public ProductSaleRow this[int index] {
  3031. get {
  3032. return ((ProductSaleRow)(this.Rows[index]));
  3033. }
  3034. }
  3035. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3036. public event ProductSaleRowChangeEventHandler ProductSaleRowChanging;
  3037. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3038. public event ProductSaleRowChangeEventHandler ProductSaleRowChanged;
  3039. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3040. public event ProductSaleRowChangeEventHandler ProductSaleRowDeleting;
  3041. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3042. public event ProductSaleRowChangeEventHandler ProductSaleRowDeleted;
  3043. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3044. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3045. public void AddProductSaleRow(ProductSaleRow row) {
  3046. this.Rows.Add(row);
  3047. }
  3048. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3049. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3050. public ProductSaleRow AddProductSaleRow(System.DateTime SaleDate, ProductRow parentProductRowByFK_ProductSale_Product, int Quantity, ClientServiceRow parentClientServiceRowByFK_ProductSale_ClientService) {
  3051. ProductSaleRow rowProductSaleRow = ((ProductSaleRow)(this.NewRow()));
  3052. object[] columnValuesArray = new object[] {
  3053. null,
  3054. SaleDate,
  3055. null,
  3056. Quantity,
  3057. null};
  3058. if ((parentProductRowByFK_ProductSale_Product != null)) {
  3059. columnValuesArray[2] = parentProductRowByFK_ProductSale_Product[0];
  3060. }
  3061. if ((parentClientServiceRowByFK_ProductSale_ClientService != null)) {
  3062. columnValuesArray[4] = parentClientServiceRowByFK_ProductSale_ClientService[0];
  3063. }
  3064. rowProductSaleRow.ItemArray = columnValuesArray;
  3065. this.Rows.Add(rowProductSaleRow);
  3066. return rowProductSaleRow;
  3067. }
  3068. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3069. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3070. public ProductSaleRow FindByID(int ID) {
  3071. return ((ProductSaleRow)(this.Rows.Find(new object[] {
  3072. ID})));
  3073. }
  3074. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3075. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3076. public override global::System.Data.DataTable Clone() {
  3077. ProductSaleDataTable cln = ((ProductSaleDataTable)(base.Clone()));
  3078. cln.InitVars();
  3079. return cln;
  3080. }
  3081. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3082. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3083. protected override global::System.Data.DataTable CreateInstance() {
  3084. return new ProductSaleDataTable();
  3085. }
  3086. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3087. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3088. internal void InitVars() {
  3089. this.columnID = base.Columns["ID"];
  3090. this.columnSaleDate = base.Columns["SaleDate"];
  3091. this.columnProductID = base.Columns["ProductID"];
  3092. this.columnQuantity = base.Columns["Quantity"];
  3093. this.columnClientServiceID = base.Columns["ClientServiceID"];
  3094. }
  3095. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3096. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3097. private void InitClass() {
  3098. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3099. base.Columns.Add(this.columnID);
  3100. this.columnSaleDate = new global::System.Data.DataColumn("SaleDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  3101. base.Columns.Add(this.columnSaleDate);
  3102. this.columnProductID = new global::System.Data.DataColumn("ProductID", typeof(int), null, global::System.Data.MappingType.Element);
  3103. base.Columns.Add(this.columnProductID);
  3104. this.columnQuantity = new global::System.Data.DataColumn("Quantity", typeof(int), null, global::System.Data.MappingType.Element);
  3105. base.Columns.Add(this.columnQuantity);
  3106. this.columnClientServiceID = new global::System.Data.DataColumn("ClientServiceID", typeof(int), null, global::System.Data.MappingType.Element);
  3107. base.Columns.Add(this.columnClientServiceID);
  3108. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3109. this.columnID}, true));
  3110. this.columnID.AutoIncrement = true;
  3111. this.columnID.AutoIncrementSeed = -1;
  3112. this.columnID.AutoIncrementStep = -1;
  3113. this.columnID.AllowDBNull = false;
  3114. this.columnID.ReadOnly = true;
  3115. this.columnID.Unique = true;
  3116. this.columnSaleDate.AllowDBNull = false;
  3117. this.columnProductID.AllowDBNull = false;
  3118. this.columnQuantity.AllowDBNull = false;
  3119. }
  3120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3121. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3122. public ProductSaleRow NewProductSaleRow() {
  3123. return ((ProductSaleRow)(this.NewRow()));
  3124. }
  3125. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3126. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3127. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3128. return new ProductSaleRow(builder);
  3129. }
  3130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3131. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3132. protected override global::System.Type GetRowType() {
  3133. return typeof(ProductSaleRow);
  3134. }
  3135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3136. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3137. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3138. base.OnRowChanged(e);
  3139. if ((this.ProductSaleRowChanged != null)) {
  3140. this.ProductSaleRowChanged(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  3141. }
  3142. }
  3143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3144. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3145. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3146. base.OnRowChanging(e);
  3147. if ((this.ProductSaleRowChanging != null)) {
  3148. this.ProductSaleRowChanging(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  3149. }
  3150. }
  3151. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3152. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3153. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3154. base.OnRowDeleted(e);
  3155. if ((this.ProductSaleRowDeleted != null)) {
  3156. this.ProductSaleRowDeleted(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  3157. }
  3158. }
  3159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3160. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3161. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3162. base.OnRowDeleting(e);
  3163. if ((this.ProductSaleRowDeleting != null)) {
  3164. this.ProductSaleRowDeleting(this, new ProductSaleRowChangeEvent(((ProductSaleRow)(e.Row)), e.Action));
  3165. }
  3166. }
  3167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3169. public void RemoveProductSaleRow(ProductSaleRow row) {
  3170. this.Rows.Remove(row);
  3171. }
  3172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3174. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3175. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3176. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3177. DB_Кузьменко_V2DataSet ds = new DB_Кузьменко_V2DataSet();
  3178. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3179. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3180. any1.MinOccurs = new decimal(0);
  3181. any1.MaxOccurs = decimal.MaxValue;
  3182. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3183. sequence.Items.Add(any1);
  3184. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3185. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3186. any2.MinOccurs = new decimal(1);
  3187. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3188. sequence.Items.Add(any2);
  3189. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3190. attribute1.Name = "namespace";
  3191. attribute1.FixedValue = ds.Namespace;
  3192. type.Attributes.Add(attribute1);
  3193. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3194. attribute2.Name = "tableTypeName";
  3195. attribute2.FixedValue = "ProductSaleDataTable";
  3196. type.Attributes.Add(attribute2);
  3197. type.Particle = sequence;
  3198. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3199. if (xs.Contains(dsSchema.TargetNamespace)) {
  3200. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3201. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3202. try {
  3203. global::System.Xml.Schema.XmlSchema schema = null;
  3204. dsSchema.Write(s1);
  3205. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3206. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3207. s2.SetLength(0);
  3208. schema.Write(s2);
  3209. if ((s1.Length == s2.Length)) {
  3210. s1.Position = 0;
  3211. s2.Position = 0;
  3212. for (; ((s1.Position != s1.Length)
  3213. && (s1.ReadByte() == s2.ReadByte())); ) {
  3214. ;
  3215. }
  3216. if ((s1.Position == s1.Length)) {
  3217. return type;
  3218. }
  3219. }
  3220. }
  3221. }
  3222. finally {
  3223. if ((s1 != null)) {
  3224. s1.Close();
  3225. }
  3226. if ((s2 != null)) {
  3227. s2.Close();
  3228. }
  3229. }
  3230. }
  3231. xs.Add(dsSchema);
  3232. return type;
  3233. }
  3234. }
  3235. /// <summary>
  3236. ///Represents the strongly named DataTable class.
  3237. ///</summary>
  3238. [global::System.Serializable()]
  3239. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3240. public partial class ServiceDataTable : global::System.Data.TypedTableBase<ServiceRow> {
  3241. private global::System.Data.DataColumn columnID;
  3242. private global::System.Data.DataColumn columnTitle;
  3243. private global::System.Data.DataColumn columnCost;
  3244. private global::System.Data.DataColumn columnDurationInSeconds;
  3245. private global::System.Data.DataColumn columnDescritpion;
  3246. private global::System.Data.DataColumn columnDiscount;
  3247. private global::System.Data.DataColumn columnMainImagePath;
  3248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3249. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3250. public ServiceDataTable() {
  3251. this.TableName = "Service";
  3252. this.BeginInit();
  3253. this.InitClass();
  3254. this.EndInit();
  3255. }
  3256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3258. internal ServiceDataTable(global::System.Data.DataTable table) {
  3259. this.TableName = table.TableName;
  3260. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3261. this.CaseSensitive = table.CaseSensitive;
  3262. }
  3263. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3264. this.Locale = table.Locale;
  3265. }
  3266. if ((table.Namespace != table.DataSet.Namespace)) {
  3267. this.Namespace = table.Namespace;
  3268. }
  3269. this.Prefix = table.Prefix;
  3270. this.MinimumCapacity = table.MinimumCapacity;
  3271. }
  3272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3274. protected ServiceDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3275. base(info, context) {
  3276. this.InitVars();
  3277. }
  3278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3279. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3280. public global::System.Data.DataColumn IDColumn {
  3281. get {
  3282. return this.columnID;
  3283. }
  3284. }
  3285. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3286. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3287. public global::System.Data.DataColumn TitleColumn {
  3288. get {
  3289. return this.columnTitle;
  3290. }
  3291. }
  3292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3293. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3294. public global::System.Data.DataColumn CostColumn {
  3295. get {
  3296. return this.columnCost;
  3297. }
  3298. }
  3299. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3300. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3301. public global::System.Data.DataColumn DurationInSecondsColumn {
  3302. get {
  3303. return this.columnDurationInSeconds;
  3304. }
  3305. }
  3306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3307. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3308. public global::System.Data.DataColumn DescritpionColumn {
  3309. get {
  3310. return this.columnDescritpion;
  3311. }
  3312. }
  3313. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3314. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3315. public global::System.Data.DataColumn DiscountColumn {
  3316. get {
  3317. return this.columnDiscount;
  3318. }
  3319. }
  3320. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3321. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3322. public global::System.Data.DataColumn MainImagePathColumn {
  3323. get {
  3324. return this.columnMainImagePath;
  3325. }
  3326. }
  3327. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3328. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3329. [global::System.ComponentModel.Browsable(false)]
  3330. public int Count {
  3331. get {
  3332. return this.Rows.Count;
  3333. }
  3334. }
  3335. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3336. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3337. public ServiceRow this[int index] {
  3338. get {
  3339. return ((ServiceRow)(this.Rows[index]));
  3340. }
  3341. }
  3342. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3343. public event ServiceRowChangeEventHandler ServiceRowChanging;
  3344. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3345. public event ServiceRowChangeEventHandler ServiceRowChanged;
  3346. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3347. public event ServiceRowChangeEventHandler ServiceRowDeleting;
  3348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3349. public event ServiceRowChangeEventHandler ServiceRowDeleted;
  3350. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3351. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3352. public void AddServiceRow(ServiceRow row) {
  3353. this.Rows.Add(row);
  3354. }
  3355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3357. public ServiceRow AddServiceRow(string Title, string Cost, string DurationInSeconds, string Descritpion, string Discount, string MainImagePath) {
  3358. ServiceRow rowServiceRow = ((ServiceRow)(this.NewRow()));
  3359. object[] columnValuesArray = new object[] {
  3360. null,
  3361. Title,
  3362. Cost,
  3363. DurationInSeconds,
  3364. Descritpion,
  3365. Discount,
  3366. MainImagePath};
  3367. rowServiceRow.ItemArray = columnValuesArray;
  3368. this.Rows.Add(rowServiceRow);
  3369. return rowServiceRow;
  3370. }
  3371. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3372. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3373. public ServiceRow FindByID(int ID) {
  3374. return ((ServiceRow)(this.Rows.Find(new object[] {
  3375. ID})));
  3376. }
  3377. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3378. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3379. public override global::System.Data.DataTable Clone() {
  3380. ServiceDataTable cln = ((ServiceDataTable)(base.Clone()));
  3381. cln.InitVars();
  3382. return cln;
  3383. }
  3384. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3385. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3386. protected override global::System.Data.DataTable CreateInstance() {
  3387. return new ServiceDataTable();
  3388. }
  3389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3390. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3391. internal void InitVars() {
  3392. this.columnID = base.Columns["ID"];
  3393. this.columnTitle = base.Columns["Title"];
  3394. this.columnCost = base.Columns["Cost"];
  3395. this.columnDurationInSeconds = base.Columns["DurationInSeconds"];
  3396. this.columnDescritpion = base.Columns["Descritpion"];
  3397. this.columnDiscount = base.Columns["Discount"];
  3398. this.columnMainImagePath = base.Columns["MainImagePath"];
  3399. }
  3400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3402. private void InitClass() {
  3403. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3404. base.Columns.Add(this.columnID);
  3405. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  3406. base.Columns.Add(this.columnTitle);
  3407. this.columnCost = new global::System.Data.DataColumn("Cost", typeof(string), null, global::System.Data.MappingType.Element);
  3408. base.Columns.Add(this.columnCost);
  3409. this.columnDurationInSeconds = new global::System.Data.DataColumn("DurationInSeconds", typeof(string), null, global::System.Data.MappingType.Element);
  3410. base.Columns.Add(this.columnDurationInSeconds);
  3411. this.columnDescritpion = new global::System.Data.DataColumn("Descritpion", typeof(string), null, global::System.Data.MappingType.Element);
  3412. base.Columns.Add(this.columnDescritpion);
  3413. this.columnDiscount = new global::System.Data.DataColumn("Discount", typeof(string), null, global::System.Data.MappingType.Element);
  3414. base.Columns.Add(this.columnDiscount);
  3415. this.columnMainImagePath = new global::System.Data.DataColumn("MainImagePath", typeof(string), null, global::System.Data.MappingType.Element);
  3416. base.Columns.Add(this.columnMainImagePath);
  3417. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3418. this.columnID}, true));
  3419. this.columnID.AutoIncrement = true;
  3420. this.columnID.AutoIncrementSeed = -1;
  3421. this.columnID.AutoIncrementStep = -1;
  3422. this.columnID.AllowDBNull = false;
  3423. this.columnID.ReadOnly = true;
  3424. this.columnID.Unique = true;
  3425. this.columnTitle.AllowDBNull = false;
  3426. this.columnTitle.MaxLength = 100;
  3427. this.columnCost.AllowDBNull = false;
  3428. this.columnCost.MaxLength = 50;
  3429. this.columnDurationInSeconds.AllowDBNull = false;
  3430. this.columnDurationInSeconds.MaxLength = 50;
  3431. this.columnDescritpion.MaxLength = 2147483647;
  3432. this.columnDiscount.MaxLength = 50;
  3433. this.columnMainImagePath.MaxLength = 1000;
  3434. }
  3435. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3436. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3437. public ServiceRow NewServiceRow() {
  3438. return ((ServiceRow)(this.NewRow()));
  3439. }
  3440. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3441. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3442. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3443. return new ServiceRow(builder);
  3444. }
  3445. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3446. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3447. protected override global::System.Type GetRowType() {
  3448. return typeof(ServiceRow);
  3449. }
  3450. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3451. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3452. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3453. base.OnRowChanged(e);
  3454. if ((this.ServiceRowChanged != null)) {
  3455. this.ServiceRowChanged(this, new ServiceRowChangeEvent(((ServiceRow)(e.Row)), e.Action));
  3456. }
  3457. }
  3458. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3459. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3460. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3461. base.OnRowChanging(e);
  3462. if ((this.ServiceRowChanging != null)) {
  3463. this.ServiceRowChanging(this, new ServiceRowChangeEvent(((ServiceRow)(e.Row)), e.Action));
  3464. }
  3465. }
  3466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3468. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3469. base.OnRowDeleted(e);
  3470. if ((this.ServiceRowDeleted != null)) {
  3471. this.ServiceRowDeleted(this, new ServiceRowChangeEvent(((ServiceRow)(e.Row)), e.Action));
  3472. }
  3473. }
  3474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3476. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3477. base.OnRowDeleting(e);
  3478. if ((this.ServiceRowDeleting != null)) {
  3479. this.ServiceRowDeleting(this, new ServiceRowChangeEvent(((ServiceRow)(e.Row)), e.Action));
  3480. }
  3481. }
  3482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3484. public void RemoveServiceRow(ServiceRow row) {
  3485. this.Rows.Remove(row);
  3486. }
  3487. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3488. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3489. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3490. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3491. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3492. DB_Кузьменко_V2DataSet ds = new DB_Кузьменко_V2DataSet();
  3493. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3494. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3495. any1.MinOccurs = new decimal(0);
  3496. any1.MaxOccurs = decimal.MaxValue;
  3497. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3498. sequence.Items.Add(any1);
  3499. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3500. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3501. any2.MinOccurs = new decimal(1);
  3502. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3503. sequence.Items.Add(any2);
  3504. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3505. attribute1.Name = "namespace";
  3506. attribute1.FixedValue = ds.Namespace;
  3507. type.Attributes.Add(attribute1);
  3508. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3509. attribute2.Name = "tableTypeName";
  3510. attribute2.FixedValue = "ServiceDataTable";
  3511. type.Attributes.Add(attribute2);
  3512. type.Particle = sequence;
  3513. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3514. if (xs.Contains(dsSchema.TargetNamespace)) {
  3515. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3516. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3517. try {
  3518. global::System.Xml.Schema.XmlSchema schema = null;
  3519. dsSchema.Write(s1);
  3520. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3521. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3522. s2.SetLength(0);
  3523. schema.Write(s2);
  3524. if ((s1.Length == s2.Length)) {
  3525. s1.Position = 0;
  3526. s2.Position = 0;
  3527. for (; ((s1.Position != s1.Length)
  3528. && (s1.ReadByte() == s2.ReadByte())); ) {
  3529. ;
  3530. }
  3531. if ((s1.Position == s1.Length)) {
  3532. return type;
  3533. }
  3534. }
  3535. }
  3536. }
  3537. finally {
  3538. if ((s1 != null)) {
  3539. s1.Close();
  3540. }
  3541. if ((s2 != null)) {
  3542. s2.Close();
  3543. }
  3544. }
  3545. }
  3546. xs.Add(dsSchema);
  3547. return type;
  3548. }
  3549. }
  3550. /// <summary>
  3551. ///Represents the strongly named DataTable class.
  3552. ///</summary>
  3553. [global::System.Serializable()]
  3554. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3555. public partial class ServicePhotoDataTable : global::System.Data.TypedTableBase<ServicePhotoRow> {
  3556. private global::System.Data.DataColumn columnID;
  3557. private global::System.Data.DataColumn columnServiceID;
  3558. private global::System.Data.DataColumn columnPhotoPath;
  3559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3561. public ServicePhotoDataTable() {
  3562. this.TableName = "ServicePhoto";
  3563. this.BeginInit();
  3564. this.InitClass();
  3565. this.EndInit();
  3566. }
  3567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3569. internal ServicePhotoDataTable(global::System.Data.DataTable table) {
  3570. this.TableName = table.TableName;
  3571. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3572. this.CaseSensitive = table.CaseSensitive;
  3573. }
  3574. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3575. this.Locale = table.Locale;
  3576. }
  3577. if ((table.Namespace != table.DataSet.Namespace)) {
  3578. this.Namespace = table.Namespace;
  3579. }
  3580. this.Prefix = table.Prefix;
  3581. this.MinimumCapacity = table.MinimumCapacity;
  3582. }
  3583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3585. protected ServicePhotoDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3586. base(info, context) {
  3587. this.InitVars();
  3588. }
  3589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3590. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3591. public global::System.Data.DataColumn IDColumn {
  3592. get {
  3593. return this.columnID;
  3594. }
  3595. }
  3596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3597. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3598. public global::System.Data.DataColumn ServiceIDColumn {
  3599. get {
  3600. return this.columnServiceID;
  3601. }
  3602. }
  3603. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3604. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3605. public global::System.Data.DataColumn PhotoPathColumn {
  3606. get {
  3607. return this.columnPhotoPath;
  3608. }
  3609. }
  3610. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3611. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3612. [global::System.ComponentModel.Browsable(false)]
  3613. public int Count {
  3614. get {
  3615. return this.Rows.Count;
  3616. }
  3617. }
  3618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3619. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3620. public ServicePhotoRow this[int index] {
  3621. get {
  3622. return ((ServicePhotoRow)(this.Rows[index]));
  3623. }
  3624. }
  3625. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3626. public event ServicePhotoRowChangeEventHandler ServicePhotoRowChanging;
  3627. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3628. public event ServicePhotoRowChangeEventHandler ServicePhotoRowChanged;
  3629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3630. public event ServicePhotoRowChangeEventHandler ServicePhotoRowDeleting;
  3631. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3632. public event ServicePhotoRowChangeEventHandler ServicePhotoRowDeleted;
  3633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3635. public void AddServicePhotoRow(ServicePhotoRow row) {
  3636. this.Rows.Add(row);
  3637. }
  3638. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3639. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3640. public ServicePhotoRow AddServicePhotoRow(ServiceRow parentServiceRowByFK_ServicePhoto_service_b_import, string PhotoPath) {
  3641. ServicePhotoRow rowServicePhotoRow = ((ServicePhotoRow)(this.NewRow()));
  3642. object[] columnValuesArray = new object[] {
  3643. null,
  3644. null,
  3645. PhotoPath};
  3646. if ((parentServiceRowByFK_ServicePhoto_service_b_import != null)) {
  3647. columnValuesArray[1] = parentServiceRowByFK_ServicePhoto_service_b_import[0];
  3648. }
  3649. rowServicePhotoRow.ItemArray = columnValuesArray;
  3650. this.Rows.Add(rowServicePhotoRow);
  3651. return rowServicePhotoRow;
  3652. }
  3653. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3654. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3655. public ServicePhotoRow FindByID(int ID) {
  3656. return ((ServicePhotoRow)(this.Rows.Find(new object[] {
  3657. ID})));
  3658. }
  3659. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3660. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3661. public override global::System.Data.DataTable Clone() {
  3662. ServicePhotoDataTable cln = ((ServicePhotoDataTable)(base.Clone()));
  3663. cln.InitVars();
  3664. return cln;
  3665. }
  3666. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3667. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3668. protected override global::System.Data.DataTable CreateInstance() {
  3669. return new ServicePhotoDataTable();
  3670. }
  3671. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3672. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3673. internal void InitVars() {
  3674. this.columnID = base.Columns["ID"];
  3675. this.columnServiceID = base.Columns["ServiceID"];
  3676. this.columnPhotoPath = base.Columns["PhotoPath"];
  3677. }
  3678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3680. private void InitClass() {
  3681. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3682. base.Columns.Add(this.columnID);
  3683. this.columnServiceID = new global::System.Data.DataColumn("ServiceID", typeof(int), null, global::System.Data.MappingType.Element);
  3684. base.Columns.Add(this.columnServiceID);
  3685. this.columnPhotoPath = new global::System.Data.DataColumn("PhotoPath", typeof(string), null, global::System.Data.MappingType.Element);
  3686. base.Columns.Add(this.columnPhotoPath);
  3687. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3688. this.columnID}, true));
  3689. this.columnID.AutoIncrement = true;
  3690. this.columnID.AutoIncrementSeed = -1;
  3691. this.columnID.AutoIncrementStep = -1;
  3692. this.columnID.AllowDBNull = false;
  3693. this.columnID.ReadOnly = true;
  3694. this.columnID.Unique = true;
  3695. this.columnServiceID.AllowDBNull = false;
  3696. this.columnPhotoPath.MaxLength = 1000;
  3697. }
  3698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3699. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3700. public ServicePhotoRow NewServicePhotoRow() {
  3701. return ((ServicePhotoRow)(this.NewRow()));
  3702. }
  3703. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3704. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3705. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3706. return new ServicePhotoRow(builder);
  3707. }
  3708. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3709. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3710. protected override global::System.Type GetRowType() {
  3711. return typeof(ServicePhotoRow);
  3712. }
  3713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3715. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3716. base.OnRowChanged(e);
  3717. if ((this.ServicePhotoRowChanged != null)) {
  3718. this.ServicePhotoRowChanged(this, new ServicePhotoRowChangeEvent(((ServicePhotoRow)(e.Row)), e.Action));
  3719. }
  3720. }
  3721. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3722. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3723. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3724. base.OnRowChanging(e);
  3725. if ((this.ServicePhotoRowChanging != null)) {
  3726. this.ServicePhotoRowChanging(this, new ServicePhotoRowChangeEvent(((ServicePhotoRow)(e.Row)), e.Action));
  3727. }
  3728. }
  3729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3730. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3731. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3732. base.OnRowDeleted(e);
  3733. if ((this.ServicePhotoRowDeleted != null)) {
  3734. this.ServicePhotoRowDeleted(this, new ServicePhotoRowChangeEvent(((ServicePhotoRow)(e.Row)), e.Action));
  3735. }
  3736. }
  3737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3738. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3739. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3740. base.OnRowDeleting(e);
  3741. if ((this.ServicePhotoRowDeleting != null)) {
  3742. this.ServicePhotoRowDeleting(this, new ServicePhotoRowChangeEvent(((ServicePhotoRow)(e.Row)), e.Action));
  3743. }
  3744. }
  3745. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3746. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3747. public void RemoveServicePhotoRow(ServicePhotoRow row) {
  3748. this.Rows.Remove(row);
  3749. }
  3750. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3751. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3752. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3753. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3754. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3755. DB_Кузьменко_V2DataSet ds = new DB_Кузьменко_V2DataSet();
  3756. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3757. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3758. any1.MinOccurs = new decimal(0);
  3759. any1.MaxOccurs = decimal.MaxValue;
  3760. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3761. sequence.Items.Add(any1);
  3762. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3763. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3764. any2.MinOccurs = new decimal(1);
  3765. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3766. sequence.Items.Add(any2);
  3767. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3768. attribute1.Name = "namespace";
  3769. attribute1.FixedValue = ds.Namespace;
  3770. type.Attributes.Add(attribute1);
  3771. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3772. attribute2.Name = "tableTypeName";
  3773. attribute2.FixedValue = "ServicePhotoDataTable";
  3774. type.Attributes.Add(attribute2);
  3775. type.Particle = sequence;
  3776. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3777. if (xs.Contains(dsSchema.TargetNamespace)) {
  3778. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3779. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3780. try {
  3781. global::System.Xml.Schema.XmlSchema schema = null;
  3782. dsSchema.Write(s1);
  3783. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3784. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3785. s2.SetLength(0);
  3786. schema.Write(s2);
  3787. if ((s1.Length == s2.Length)) {
  3788. s1.Position = 0;
  3789. s2.Position = 0;
  3790. for (; ((s1.Position != s1.Length)
  3791. && (s1.ReadByte() == s2.ReadByte())); ) {
  3792. ;
  3793. }
  3794. if ((s1.Position == s1.Length)) {
  3795. return type;
  3796. }
  3797. }
  3798. }
  3799. }
  3800. finally {
  3801. if ((s1 != null)) {
  3802. s1.Close();
  3803. }
  3804. if ((s2 != null)) {
  3805. s2.Close();
  3806. }
  3807. }
  3808. }
  3809. xs.Add(dsSchema);
  3810. return type;
  3811. }
  3812. }
  3813. /// <summary>
  3814. ///Represents the strongly named DataTable class.
  3815. ///</summary>
  3816. [global::System.Serializable()]
  3817. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3818. public partial class TagDataTable : global::System.Data.TypedTableBase<TagRow> {
  3819. private global::System.Data.DataColumn columnID;
  3820. private global::System.Data.DataColumn columnTitle;
  3821. private global::System.Data.DataColumn columnColor;
  3822. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3823. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3824. public TagDataTable() {
  3825. this.TableName = "Tag";
  3826. this.BeginInit();
  3827. this.InitClass();
  3828. this.EndInit();
  3829. }
  3830. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3831. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3832. internal TagDataTable(global::System.Data.DataTable table) {
  3833. this.TableName = table.TableName;
  3834. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3835. this.CaseSensitive = table.CaseSensitive;
  3836. }
  3837. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3838. this.Locale = table.Locale;
  3839. }
  3840. if ((table.Namespace != table.DataSet.Namespace)) {
  3841. this.Namespace = table.Namespace;
  3842. }
  3843. this.Prefix = table.Prefix;
  3844. this.MinimumCapacity = table.MinimumCapacity;
  3845. }
  3846. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3847. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3848. protected TagDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3849. base(info, context) {
  3850. this.InitVars();
  3851. }
  3852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3853. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3854. public global::System.Data.DataColumn IDColumn {
  3855. get {
  3856. return this.columnID;
  3857. }
  3858. }
  3859. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3860. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3861. public global::System.Data.DataColumn TitleColumn {
  3862. get {
  3863. return this.columnTitle;
  3864. }
  3865. }
  3866. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3867. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3868. public global::System.Data.DataColumn ColorColumn {
  3869. get {
  3870. return this.columnColor;
  3871. }
  3872. }
  3873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3874. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3875. [global::System.ComponentModel.Browsable(false)]
  3876. public int Count {
  3877. get {
  3878. return this.Rows.Count;
  3879. }
  3880. }
  3881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3883. public TagRow this[int index] {
  3884. get {
  3885. return ((TagRow)(this.Rows[index]));
  3886. }
  3887. }
  3888. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3889. public event TagRowChangeEventHandler TagRowChanging;
  3890. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3891. public event TagRowChangeEventHandler TagRowChanged;
  3892. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3893. public event TagRowChangeEventHandler TagRowDeleting;
  3894. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3895. public event TagRowChangeEventHandler TagRowDeleted;
  3896. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3897. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3898. public void AddTagRow(TagRow row) {
  3899. this.Rows.Add(row);
  3900. }
  3901. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3902. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3903. public TagRow AddTagRow(string Title, string Color) {
  3904. TagRow rowTagRow = ((TagRow)(this.NewRow()));
  3905. object[] columnValuesArray = new object[] {
  3906. null,
  3907. Title,
  3908. Color};
  3909. rowTagRow.ItemArray = columnValuesArray;
  3910. this.Rows.Add(rowTagRow);
  3911. return rowTagRow;
  3912. }
  3913. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3914. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3915. public TagRow FindByID(int ID) {
  3916. return ((TagRow)(this.Rows.Find(new object[] {
  3917. ID})));
  3918. }
  3919. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3920. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3921. public override global::System.Data.DataTable Clone() {
  3922. TagDataTable cln = ((TagDataTable)(base.Clone()));
  3923. cln.InitVars();
  3924. return cln;
  3925. }
  3926. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3927. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3928. protected override global::System.Data.DataTable CreateInstance() {
  3929. return new TagDataTable();
  3930. }
  3931. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3932. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3933. internal void InitVars() {
  3934. this.columnID = base.Columns["ID"];
  3935. this.columnTitle = base.Columns["Title"];
  3936. this.columnColor = base.Columns["Color"];
  3937. }
  3938. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3939. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3940. private void InitClass() {
  3941. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  3942. base.Columns.Add(this.columnID);
  3943. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  3944. base.Columns.Add(this.columnTitle);
  3945. this.columnColor = new global::System.Data.DataColumn("Color", typeof(string), null, global::System.Data.MappingType.Element);
  3946. base.Columns.Add(this.columnColor);
  3947. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3948. this.columnID}, true));
  3949. this.columnID.AutoIncrement = true;
  3950. this.columnID.AutoIncrementSeed = -1;
  3951. this.columnID.AutoIncrementStep = -1;
  3952. this.columnID.AllowDBNull = false;
  3953. this.columnID.ReadOnly = true;
  3954. this.columnID.Unique = true;
  3955. this.columnTitle.AllowDBNull = false;
  3956. this.columnTitle.MaxLength = 30;
  3957. this.columnColor.AllowDBNull = false;
  3958. this.columnColor.MaxLength = 6;
  3959. }
  3960. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3961. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3962. public TagRow NewTagRow() {
  3963. return ((TagRow)(this.NewRow()));
  3964. }
  3965. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3966. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3967. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3968. return new TagRow(builder);
  3969. }
  3970. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3971. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3972. protected override global::System.Type GetRowType() {
  3973. return typeof(TagRow);
  3974. }
  3975. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3976. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3977. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3978. base.OnRowChanged(e);
  3979. if ((this.TagRowChanged != null)) {
  3980. this.TagRowChanged(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  3981. }
  3982. }
  3983. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3984. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3985. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3986. base.OnRowChanging(e);
  3987. if ((this.TagRowChanging != null)) {
  3988. this.TagRowChanging(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  3989. }
  3990. }
  3991. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3992. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3993. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3994. base.OnRowDeleted(e);
  3995. if ((this.TagRowDeleted != null)) {
  3996. this.TagRowDeleted(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  3997. }
  3998. }
  3999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4001. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  4002. base.OnRowDeleting(e);
  4003. if ((this.TagRowDeleting != null)) {
  4004. this.TagRowDeleting(this, new TagRowChangeEvent(((TagRow)(e.Row)), e.Action));
  4005. }
  4006. }
  4007. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4008. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4009. public void RemoveTagRow(TagRow row) {
  4010. this.Rows.Remove(row);
  4011. }
  4012. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4013. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4014. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  4015. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  4016. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  4017. DB_Кузьменко_V2DataSet ds = new DB_Кузьменко_V2DataSet();
  4018. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  4019. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  4020. any1.MinOccurs = new decimal(0);
  4021. any1.MaxOccurs = decimal.MaxValue;
  4022. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4023. sequence.Items.Add(any1);
  4024. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  4025. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  4026. any2.MinOccurs = new decimal(1);
  4027. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4028. sequence.Items.Add(any2);
  4029. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4030. attribute1.Name = "namespace";
  4031. attribute1.FixedValue = ds.Namespace;
  4032. type.Attributes.Add(attribute1);
  4033. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4034. attribute2.Name = "tableTypeName";
  4035. attribute2.FixedValue = "TagDataTable";
  4036. type.Attributes.Add(attribute2);
  4037. type.Particle = sequence;
  4038. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  4039. if (xs.Contains(dsSchema.TargetNamespace)) {
  4040. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  4041. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  4042. try {
  4043. global::System.Xml.Schema.XmlSchema schema = null;
  4044. dsSchema.Write(s1);
  4045. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  4046. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  4047. s2.SetLength(0);
  4048. schema.Write(s2);
  4049. if ((s1.Length == s2.Length)) {
  4050. s1.Position = 0;
  4051. s2.Position = 0;
  4052. for (; ((s1.Position != s1.Length)
  4053. && (s1.ReadByte() == s2.ReadByte())); ) {
  4054. ;
  4055. }
  4056. if ((s1.Position == s1.Length)) {
  4057. return type;
  4058. }
  4059. }
  4060. }
  4061. }
  4062. finally {
  4063. if ((s1 != null)) {
  4064. s1.Close();
  4065. }
  4066. if ((s2 != null)) {
  4067. s2.Close();
  4068. }
  4069. }
  4070. }
  4071. xs.Add(dsSchema);
  4072. return type;
  4073. }
  4074. }
  4075. /// <summary>
  4076. ///Represents the strongly named DataTable class.
  4077. ///</summary>
  4078. [global::System.Serializable()]
  4079. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  4080. public partial class TagOfClientDataTable : global::System.Data.TypedTableBase<TagOfClientRow> {
  4081. private global::System.Data.DataColumn columnClientID;
  4082. private global::System.Data.DataColumn columnTagID;
  4083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4085. public TagOfClientDataTable() {
  4086. this.TableName = "TagOfClient";
  4087. this.BeginInit();
  4088. this.InitClass();
  4089. this.EndInit();
  4090. }
  4091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4093. internal TagOfClientDataTable(global::System.Data.DataTable table) {
  4094. this.TableName = table.TableName;
  4095. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  4096. this.CaseSensitive = table.CaseSensitive;
  4097. }
  4098. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  4099. this.Locale = table.Locale;
  4100. }
  4101. if ((table.Namespace != table.DataSet.Namespace)) {
  4102. this.Namespace = table.Namespace;
  4103. }
  4104. this.Prefix = table.Prefix;
  4105. this.MinimumCapacity = table.MinimumCapacity;
  4106. }
  4107. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4108. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4109. protected TagOfClientDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  4110. base(info, context) {
  4111. this.InitVars();
  4112. }
  4113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4114. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4115. public global::System.Data.DataColumn ClientIDColumn {
  4116. get {
  4117. return this.columnClientID;
  4118. }
  4119. }
  4120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4121. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4122. public global::System.Data.DataColumn TagIDColumn {
  4123. get {
  4124. return this.columnTagID;
  4125. }
  4126. }
  4127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4128. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4129. [global::System.ComponentModel.Browsable(false)]
  4130. public int Count {
  4131. get {
  4132. return this.Rows.Count;
  4133. }
  4134. }
  4135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4136. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4137. public TagOfClientRow this[int index] {
  4138. get {
  4139. return ((TagOfClientRow)(this.Rows[index]));
  4140. }
  4141. }
  4142. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4143. public event TagOfClientRowChangeEventHandler TagOfClientRowChanging;
  4144. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4145. public event TagOfClientRowChangeEventHandler TagOfClientRowChanged;
  4146. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4147. public event TagOfClientRowChangeEventHandler TagOfClientRowDeleting;
  4148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4149. public event TagOfClientRowChangeEventHandler TagOfClientRowDeleted;
  4150. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4151. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4152. public void AddTagOfClientRow(TagOfClientRow row) {
  4153. this.Rows.Add(row);
  4154. }
  4155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4156. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4157. public TagOfClientRow AddTagOfClientRow(ClientRow parentClientRowByFK_TagOfClient_Client, TagRow parentTagRowByFK_TagOfClient_Tag) {
  4158. TagOfClientRow rowTagOfClientRow = ((TagOfClientRow)(this.NewRow()));
  4159. object[] columnValuesArray = new object[] {
  4160. null,
  4161. null};
  4162. if ((parentClientRowByFK_TagOfClient_Client != null)) {
  4163. columnValuesArray[0] = parentClientRowByFK_TagOfClient_Client[0];
  4164. }
  4165. if ((parentTagRowByFK_TagOfClient_Tag != null)) {
  4166. columnValuesArray[1] = parentTagRowByFK_TagOfClient_Tag[0];
  4167. }
  4168. rowTagOfClientRow.ItemArray = columnValuesArray;
  4169. this.Rows.Add(rowTagOfClientRow);
  4170. return rowTagOfClientRow;
  4171. }
  4172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4174. public TagOfClientRow FindByClientIDTagID(int ClientID, int TagID) {
  4175. return ((TagOfClientRow)(this.Rows.Find(new object[] {
  4176. ClientID,
  4177. TagID})));
  4178. }
  4179. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4180. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4181. public override global::System.Data.DataTable Clone() {
  4182. TagOfClientDataTable cln = ((TagOfClientDataTable)(base.Clone()));
  4183. cln.InitVars();
  4184. return cln;
  4185. }
  4186. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4187. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4188. protected override global::System.Data.DataTable CreateInstance() {
  4189. return new TagOfClientDataTable();
  4190. }
  4191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4192. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4193. internal void InitVars() {
  4194. this.columnClientID = base.Columns["ClientID"];
  4195. this.columnTagID = base.Columns["TagID"];
  4196. }
  4197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4198. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4199. private void InitClass() {
  4200. this.columnClientID = new global::System.Data.DataColumn("ClientID", typeof(int), null, global::System.Data.MappingType.Element);
  4201. base.Columns.Add(this.columnClientID);
  4202. this.columnTagID = new global::System.Data.DataColumn("TagID", typeof(int), null, global::System.Data.MappingType.Element);
  4203. base.Columns.Add(this.columnTagID);
  4204. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  4205. this.columnClientID,
  4206. this.columnTagID}, true));
  4207. this.columnClientID.AllowDBNull = false;
  4208. this.columnTagID.AllowDBNull = false;
  4209. }
  4210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4212. public TagOfClientRow NewTagOfClientRow() {
  4213. return ((TagOfClientRow)(this.NewRow()));
  4214. }
  4215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4216. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4217. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  4218. return new TagOfClientRow(builder);
  4219. }
  4220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4221. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4222. protected override global::System.Type GetRowType() {
  4223. return typeof(TagOfClientRow);
  4224. }
  4225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4227. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  4228. base.OnRowChanged(e);
  4229. if ((this.TagOfClientRowChanged != null)) {
  4230. this.TagOfClientRowChanged(this, new TagOfClientRowChangeEvent(((TagOfClientRow)(e.Row)), e.Action));
  4231. }
  4232. }
  4233. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4234. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4235. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  4236. base.OnRowChanging(e);
  4237. if ((this.TagOfClientRowChanging != null)) {
  4238. this.TagOfClientRowChanging(this, new TagOfClientRowChangeEvent(((TagOfClientRow)(e.Row)), e.Action));
  4239. }
  4240. }
  4241. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4242. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4243. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  4244. base.OnRowDeleted(e);
  4245. if ((this.TagOfClientRowDeleted != null)) {
  4246. this.TagOfClientRowDeleted(this, new TagOfClientRowChangeEvent(((TagOfClientRow)(e.Row)), e.Action));
  4247. }
  4248. }
  4249. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4250. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4251. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  4252. base.OnRowDeleting(e);
  4253. if ((this.TagOfClientRowDeleting != null)) {
  4254. this.TagOfClientRowDeleting(this, new TagOfClientRowChangeEvent(((TagOfClientRow)(e.Row)), e.Action));
  4255. }
  4256. }
  4257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4258. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4259. public void RemoveTagOfClientRow(TagOfClientRow row) {
  4260. this.Rows.Remove(row);
  4261. }
  4262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4263. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4264. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  4265. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  4266. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  4267. DB_Кузьменко_V2DataSet ds = new DB_Кузьменко_V2DataSet();
  4268. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  4269. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  4270. any1.MinOccurs = new decimal(0);
  4271. any1.MaxOccurs = decimal.MaxValue;
  4272. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4273. sequence.Items.Add(any1);
  4274. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  4275. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  4276. any2.MinOccurs = new decimal(1);
  4277. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4278. sequence.Items.Add(any2);
  4279. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4280. attribute1.Name = "namespace";
  4281. attribute1.FixedValue = ds.Namespace;
  4282. type.Attributes.Add(attribute1);
  4283. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4284. attribute2.Name = "tableTypeName";
  4285. attribute2.FixedValue = "TagOfClientDataTable";
  4286. type.Attributes.Add(attribute2);
  4287. type.Particle = sequence;
  4288. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  4289. if (xs.Contains(dsSchema.TargetNamespace)) {
  4290. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  4291. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  4292. try {
  4293. global::System.Xml.Schema.XmlSchema schema = null;
  4294. dsSchema.Write(s1);
  4295. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  4296. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  4297. s2.SetLength(0);
  4298. schema.Write(s2);
  4299. if ((s1.Length == s2.Length)) {
  4300. s1.Position = 0;
  4301. s2.Position = 0;
  4302. for (; ((s1.Position != s1.Length)
  4303. && (s1.ReadByte() == s2.ReadByte())); ) {
  4304. ;
  4305. }
  4306. if ((s1.Position == s1.Length)) {
  4307. return type;
  4308. }
  4309. }
  4310. }
  4311. }
  4312. finally {
  4313. if ((s1 != null)) {
  4314. s1.Close();
  4315. }
  4316. if ((s2 != null)) {
  4317. s2.Close();
  4318. }
  4319. }
  4320. }
  4321. xs.Add(dsSchema);
  4322. return type;
  4323. }
  4324. }
  4325. /// <summary>
  4326. ///Represents strongly named DataRow class.
  4327. ///</summary>
  4328. public partial class AttachedProductRow : global::System.Data.DataRow {
  4329. private AttachedProductDataTable tableAttachedProduct;
  4330. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4331. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4332. internal AttachedProductRow(global::System.Data.DataRowBuilder rb) :
  4333. base(rb) {
  4334. this.tableAttachedProduct = ((AttachedProductDataTable)(this.Table));
  4335. }
  4336. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4337. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4338. public int MainProductID {
  4339. get {
  4340. return ((int)(this[this.tableAttachedProduct.MainProductIDColumn]));
  4341. }
  4342. set {
  4343. this[this.tableAttachedProduct.MainProductIDColumn] = value;
  4344. }
  4345. }
  4346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4347. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4348. public int AttachedProductID {
  4349. get {
  4350. return ((int)(this[this.tableAttachedProduct.AttachedProductIDColumn]));
  4351. }
  4352. set {
  4353. this[this.tableAttachedProduct.AttachedProductIDColumn] = value;
  4354. }
  4355. }
  4356. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4357. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4358. public ProductRow ProductRowByFK_AttachedProduct_Product {
  4359. get {
  4360. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_AttachedProduct_Product"])));
  4361. }
  4362. set {
  4363. this.SetParentRow(value, this.Table.ParentRelations["FK_AttachedProduct_Product"]);
  4364. }
  4365. }
  4366. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4367. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4368. public ProductRow ProductRowByFK_AttachedProduct_Product1 {
  4369. get {
  4370. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_AttachedProduct_Product1"])));
  4371. }
  4372. set {
  4373. this.SetParentRow(value, this.Table.ParentRelations["FK_AttachedProduct_Product1"]);
  4374. }
  4375. }
  4376. }
  4377. /// <summary>
  4378. ///Represents strongly named DataRow class.
  4379. ///</summary>
  4380. public partial class ClientRow : global::System.Data.DataRow {
  4381. private ClientDataTable tableClient;
  4382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4383. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4384. internal ClientRow(global::System.Data.DataRowBuilder rb) :
  4385. base(rb) {
  4386. this.tableClient = ((ClientDataTable)(this.Table));
  4387. }
  4388. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4389. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4390. public int ID {
  4391. get {
  4392. return ((int)(this[this.tableClient.IDColumn]));
  4393. }
  4394. set {
  4395. this[this.tableClient.IDColumn] = value;
  4396. }
  4397. }
  4398. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4399. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4400. public string FirstName {
  4401. get {
  4402. return ((string)(this[this.tableClient.FirstNameColumn]));
  4403. }
  4404. set {
  4405. this[this.tableClient.FirstNameColumn] = value;
  4406. }
  4407. }
  4408. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4409. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4410. public string LastName {
  4411. get {
  4412. return ((string)(this[this.tableClient.LastNameColumn]));
  4413. }
  4414. set {
  4415. this[this.tableClient.LastNameColumn] = value;
  4416. }
  4417. }
  4418. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4419. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4420. public string Patronymic {
  4421. get {
  4422. try {
  4423. return ((string)(this[this.tableClient.PatronymicColumn]));
  4424. }
  4425. catch (global::System.InvalidCastException e) {
  4426. throw new global::System.Data.StrongTypingException("Значение для столбца \'Patronymic\' в таблице \'Client\' равно DBNull.", e);
  4427. }
  4428. }
  4429. set {
  4430. this[this.tableClient.PatronymicColumn] = value;
  4431. }
  4432. }
  4433. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4434. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4435. public System.DateTime Birthday {
  4436. get {
  4437. try {
  4438. return ((global::System.DateTime)(this[this.tableClient.BirthdayColumn]));
  4439. }
  4440. catch (global::System.InvalidCastException e) {
  4441. throw new global::System.Data.StrongTypingException("Значение для столбца \'Birthday\' в таблице \'Client\' равно DBNull.", e);
  4442. }
  4443. }
  4444. set {
  4445. this[this.tableClient.BirthdayColumn] = value;
  4446. }
  4447. }
  4448. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4449. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4450. public System.DateTime RegistrationDate {
  4451. get {
  4452. return ((global::System.DateTime)(this[this.tableClient.RegistrationDateColumn]));
  4453. }
  4454. set {
  4455. this[this.tableClient.RegistrationDateColumn] = value;
  4456. }
  4457. }
  4458. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4459. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4460. public string Email {
  4461. get {
  4462. try {
  4463. return ((string)(this[this.tableClient.EmailColumn]));
  4464. }
  4465. catch (global::System.InvalidCastException e) {
  4466. throw new global::System.Data.StrongTypingException("Значение для столбца \'Email\' в таблице \'Client\' равно DBNull.", e);
  4467. }
  4468. }
  4469. set {
  4470. this[this.tableClient.EmailColumn] = value;
  4471. }
  4472. }
  4473. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4474. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4475. public string Phone {
  4476. get {
  4477. return ((string)(this[this.tableClient.PhoneColumn]));
  4478. }
  4479. set {
  4480. this[this.tableClient.PhoneColumn] = value;
  4481. }
  4482. }
  4483. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4484. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4485. public string GenderCode {
  4486. get {
  4487. try {
  4488. return ((string)(this[this.tableClient.GenderCodeColumn]));
  4489. }
  4490. catch (global::System.InvalidCastException e) {
  4491. throw new global::System.Data.StrongTypingException("Значение для столбца \'GenderCode\' в таблице \'Client\' равно DBNull.", e);
  4492. }
  4493. }
  4494. set {
  4495. this[this.tableClient.GenderCodeColumn] = value;
  4496. }
  4497. }
  4498. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4499. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4500. public string PhotoPath {
  4501. get {
  4502. try {
  4503. return ((string)(this[this.tableClient.PhotoPathColumn]));
  4504. }
  4505. catch (global::System.InvalidCastException e) {
  4506. throw new global::System.Data.StrongTypingException("Значение для столбца \'PhotoPath\' в таблице \'Client\' равно DBNull.", e);
  4507. }
  4508. }
  4509. set {
  4510. this[this.tableClient.PhotoPathColumn] = value;
  4511. }
  4512. }
  4513. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4514. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4515. public GenderRow GenderRow {
  4516. get {
  4517. return ((GenderRow)(this.GetParentRow(this.Table.ParentRelations["FK_Client_Gender"])));
  4518. }
  4519. set {
  4520. this.SetParentRow(value, this.Table.ParentRelations["FK_Client_Gender"]);
  4521. }
  4522. }
  4523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4524. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4525. public bool IsPatronymicNull() {
  4526. return this.IsNull(this.tableClient.PatronymicColumn);
  4527. }
  4528. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4529. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4530. public void SetPatronymicNull() {
  4531. this[this.tableClient.PatronymicColumn] = global::System.Convert.DBNull;
  4532. }
  4533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4535. public bool IsBirthdayNull() {
  4536. return this.IsNull(this.tableClient.BirthdayColumn);
  4537. }
  4538. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4539. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4540. public void SetBirthdayNull() {
  4541. this[this.tableClient.BirthdayColumn] = global::System.Convert.DBNull;
  4542. }
  4543. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4544. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4545. public bool IsEmailNull() {
  4546. return this.IsNull(this.tableClient.EmailColumn);
  4547. }
  4548. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4549. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4550. public void SetEmailNull() {
  4551. this[this.tableClient.EmailColumn] = global::System.Convert.DBNull;
  4552. }
  4553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4555. public bool IsGenderCodeNull() {
  4556. return this.IsNull(this.tableClient.GenderCodeColumn);
  4557. }
  4558. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4559. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4560. public void SetGenderCodeNull() {
  4561. this[this.tableClient.GenderCodeColumn] = global::System.Convert.DBNull;
  4562. }
  4563. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4564. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4565. public bool IsPhotoPathNull() {
  4566. return this.IsNull(this.tableClient.PhotoPathColumn);
  4567. }
  4568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4570. public void SetPhotoPathNull() {
  4571. this[this.tableClient.PhotoPathColumn] = global::System.Convert.DBNull;
  4572. }
  4573. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4574. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4575. public ClientServiceRow[] GetClientServiceRows() {
  4576. if ((this.Table.ChildRelations["FK_ClientService_Client"] == null)) {
  4577. return new ClientServiceRow[0];
  4578. }
  4579. else {
  4580. return ((ClientServiceRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ClientService_Client"])));
  4581. }
  4582. }
  4583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4585. public TagOfClientRow[] GetTagOfClientRows() {
  4586. if ((this.Table.ChildRelations["FK_TagOfClient_Client"] == null)) {
  4587. return new TagOfClientRow[0];
  4588. }
  4589. else {
  4590. return ((TagOfClientRow[])(base.GetChildRows(this.Table.ChildRelations["FK_TagOfClient_Client"])));
  4591. }
  4592. }
  4593. }
  4594. /// <summary>
  4595. ///Represents strongly named DataRow class.
  4596. ///</summary>
  4597. public partial class ClientServiceRow : global::System.Data.DataRow {
  4598. private ClientServiceDataTable tableClientService;
  4599. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4600. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4601. internal ClientServiceRow(global::System.Data.DataRowBuilder rb) :
  4602. base(rb) {
  4603. this.tableClientService = ((ClientServiceDataTable)(this.Table));
  4604. }
  4605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4607. public int ID {
  4608. get {
  4609. return ((int)(this[this.tableClientService.IDColumn]));
  4610. }
  4611. set {
  4612. this[this.tableClientService.IDColumn] = value;
  4613. }
  4614. }
  4615. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4616. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4617. public int ClientID {
  4618. get {
  4619. return ((int)(this[this.tableClientService.ClientIDColumn]));
  4620. }
  4621. set {
  4622. this[this.tableClientService.ClientIDColumn] = value;
  4623. }
  4624. }
  4625. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4626. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4627. public int ServiceID {
  4628. get {
  4629. return ((int)(this[this.tableClientService.ServiceIDColumn]));
  4630. }
  4631. set {
  4632. this[this.tableClientService.ServiceIDColumn] = value;
  4633. }
  4634. }
  4635. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4636. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4637. public System.DateTime StartTime {
  4638. get {
  4639. return ((global::System.DateTime)(this[this.tableClientService.StartTimeColumn]));
  4640. }
  4641. set {
  4642. this[this.tableClientService.StartTimeColumn] = value;
  4643. }
  4644. }
  4645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4646. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4647. public string Comment {
  4648. get {
  4649. try {
  4650. return ((string)(this[this.tableClientService.CommentColumn]));
  4651. }
  4652. catch (global::System.InvalidCastException e) {
  4653. throw new global::System.Data.StrongTypingException("Значение для столбца \'Comment\' в таблице \'ClientService\' равно DBNull.", e);
  4654. }
  4655. }
  4656. set {
  4657. this[this.tableClientService.CommentColumn] = value;
  4658. }
  4659. }
  4660. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4661. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4662. public ClientRow ClientRow {
  4663. get {
  4664. return ((ClientRow)(this.GetParentRow(this.Table.ParentRelations["FK_ClientService_Client"])));
  4665. }
  4666. set {
  4667. this.SetParentRow(value, this.Table.ParentRelations["FK_ClientService_Client"]);
  4668. }
  4669. }
  4670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4671. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4672. public ServiceRow ServiceRow {
  4673. get {
  4674. return ((ServiceRow)(this.GetParentRow(this.Table.ParentRelations["FK_ClientService_service_b_import"])));
  4675. }
  4676. set {
  4677. this.SetParentRow(value, this.Table.ParentRelations["FK_ClientService_service_b_import"]);
  4678. }
  4679. }
  4680. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4681. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4682. public bool IsCommentNull() {
  4683. return this.IsNull(this.tableClientService.CommentColumn);
  4684. }
  4685. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4686. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4687. public void SetCommentNull() {
  4688. this[this.tableClientService.CommentColumn] = global::System.Convert.DBNull;
  4689. }
  4690. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4691. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4692. public DocumentByServiceRow[] GetDocumentByServiceRows() {
  4693. if ((this.Table.ChildRelations["FK_DocumentByService_ClientService"] == null)) {
  4694. return new DocumentByServiceRow[0];
  4695. }
  4696. else {
  4697. return ((DocumentByServiceRow[])(base.GetChildRows(this.Table.ChildRelations["FK_DocumentByService_ClientService"])));
  4698. }
  4699. }
  4700. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4701. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4702. public ProductSaleRow[] GetProductSaleRows() {
  4703. if ((this.Table.ChildRelations["FK_ProductSale_ClientService"] == null)) {
  4704. return new ProductSaleRow[0];
  4705. }
  4706. else {
  4707. return ((ProductSaleRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductSale_ClientService"])));
  4708. }
  4709. }
  4710. }
  4711. /// <summary>
  4712. ///Represents strongly named DataRow class.
  4713. ///</summary>
  4714. public partial class DocumentByServiceRow : global::System.Data.DataRow {
  4715. private DocumentByServiceDataTable tableDocumentByService;
  4716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4717. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4718. internal DocumentByServiceRow(global::System.Data.DataRowBuilder rb) :
  4719. base(rb) {
  4720. this.tableDocumentByService = ((DocumentByServiceDataTable)(this.Table));
  4721. }
  4722. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4723. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4724. public int ID {
  4725. get {
  4726. return ((int)(this[this.tableDocumentByService.IDColumn]));
  4727. }
  4728. set {
  4729. this[this.tableDocumentByService.IDColumn] = value;
  4730. }
  4731. }
  4732. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4733. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4734. public int ClientServiceID {
  4735. get {
  4736. return ((int)(this[this.tableDocumentByService.ClientServiceIDColumn]));
  4737. }
  4738. set {
  4739. this[this.tableDocumentByService.ClientServiceIDColumn] = value;
  4740. }
  4741. }
  4742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4743. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4744. public string DocumentPath {
  4745. get {
  4746. return ((string)(this[this.tableDocumentByService.DocumentPathColumn]));
  4747. }
  4748. set {
  4749. this[this.tableDocumentByService.DocumentPathColumn] = value;
  4750. }
  4751. }
  4752. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4753. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4754. public ClientServiceRow ClientServiceRow {
  4755. get {
  4756. return ((ClientServiceRow)(this.GetParentRow(this.Table.ParentRelations["FK_DocumentByService_ClientService"])));
  4757. }
  4758. set {
  4759. this.SetParentRow(value, this.Table.ParentRelations["FK_DocumentByService_ClientService"]);
  4760. }
  4761. }
  4762. }
  4763. /// <summary>
  4764. ///Represents strongly named DataRow class.
  4765. ///</summary>
  4766. public partial class GenderRow : global::System.Data.DataRow {
  4767. private GenderDataTable tableGender;
  4768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4770. internal GenderRow(global::System.Data.DataRowBuilder rb) :
  4771. base(rb) {
  4772. this.tableGender = ((GenderDataTable)(this.Table));
  4773. }
  4774. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4775. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4776. public string Code {
  4777. get {
  4778. return ((string)(this[this.tableGender.CodeColumn]));
  4779. }
  4780. set {
  4781. this[this.tableGender.CodeColumn] = value;
  4782. }
  4783. }
  4784. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4785. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4786. public string Name {
  4787. get {
  4788. try {
  4789. return ((string)(this[this.tableGender.NameColumn]));
  4790. }
  4791. catch (global::System.InvalidCastException e) {
  4792. throw new global::System.Data.StrongTypingException("Значение для столбца \'Name\' в таблице \'Gender\' равно DBNull.", e);
  4793. }
  4794. }
  4795. set {
  4796. this[this.tableGender.NameColumn] = value;
  4797. }
  4798. }
  4799. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4800. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4801. public bool IsNameNull() {
  4802. return this.IsNull(this.tableGender.NameColumn);
  4803. }
  4804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4806. public void SetNameNull() {
  4807. this[this.tableGender.NameColumn] = global::System.Convert.DBNull;
  4808. }
  4809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4810. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4811. public ClientRow[] GetClientRows() {
  4812. if ((this.Table.ChildRelations["FK_Client_Gender"] == null)) {
  4813. return new ClientRow[0];
  4814. }
  4815. else {
  4816. return ((ClientRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Client_Gender"])));
  4817. }
  4818. }
  4819. }
  4820. /// <summary>
  4821. ///Represents strongly named DataRow class.
  4822. ///</summary>
  4823. public partial class ManufacturerRow : global::System.Data.DataRow {
  4824. private ManufacturerDataTable tableManufacturer;
  4825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4826. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4827. internal ManufacturerRow(global::System.Data.DataRowBuilder rb) :
  4828. base(rb) {
  4829. this.tableManufacturer = ((ManufacturerDataTable)(this.Table));
  4830. }
  4831. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4832. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4833. public int ID {
  4834. get {
  4835. return ((int)(this[this.tableManufacturer.IDColumn]));
  4836. }
  4837. set {
  4838. this[this.tableManufacturer.IDColumn] = value;
  4839. }
  4840. }
  4841. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4842. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4843. public string Name {
  4844. get {
  4845. return ((string)(this[this.tableManufacturer.NameColumn]));
  4846. }
  4847. set {
  4848. this[this.tableManufacturer.NameColumn] = value;
  4849. }
  4850. }
  4851. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4852. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4853. public System.DateTime StartDate {
  4854. get {
  4855. try {
  4856. return ((global::System.DateTime)(this[this.tableManufacturer.StartDateColumn]));
  4857. }
  4858. catch (global::System.InvalidCastException e) {
  4859. throw new global::System.Data.StrongTypingException("Значение для столбца \'StartDate\' в таблице \'Manufacturer\' равно DBNull.", e);
  4860. }
  4861. }
  4862. set {
  4863. this[this.tableManufacturer.StartDateColumn] = value;
  4864. }
  4865. }
  4866. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4867. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4868. public bool IsStartDateNull() {
  4869. return this.IsNull(this.tableManufacturer.StartDateColumn);
  4870. }
  4871. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4872. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4873. public void SetStartDateNull() {
  4874. this[this.tableManufacturer.StartDateColumn] = global::System.Convert.DBNull;
  4875. }
  4876. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4877. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4878. public ProductRow[] GetProductRows() {
  4879. if ((this.Table.ChildRelations["FK_Product_Manufacturer"] == null)) {
  4880. return new ProductRow[0];
  4881. }
  4882. else {
  4883. return ((ProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Product_Manufacturer"])));
  4884. }
  4885. }
  4886. }
  4887. /// <summary>
  4888. ///Represents strongly named DataRow class.
  4889. ///</summary>
  4890. public partial class ProductRow : global::System.Data.DataRow {
  4891. private ProductDataTable tableProduct;
  4892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4894. internal ProductRow(global::System.Data.DataRowBuilder rb) :
  4895. base(rb) {
  4896. this.tableProduct = ((ProductDataTable)(this.Table));
  4897. }
  4898. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4899. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4900. public int ID {
  4901. get {
  4902. return ((int)(this[this.tableProduct.IDColumn]));
  4903. }
  4904. set {
  4905. this[this.tableProduct.IDColumn] = value;
  4906. }
  4907. }
  4908. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4909. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4910. public string Title {
  4911. get {
  4912. return ((string)(this[this.tableProduct.TitleColumn]));
  4913. }
  4914. set {
  4915. this[this.tableProduct.TitleColumn] = value;
  4916. }
  4917. }
  4918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4919. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4920. public decimal Cost {
  4921. get {
  4922. return ((decimal)(this[this.tableProduct.CostColumn]));
  4923. }
  4924. set {
  4925. this[this.tableProduct.CostColumn] = value;
  4926. }
  4927. }
  4928. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4929. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4930. public string Description {
  4931. get {
  4932. try {
  4933. return ((string)(this[this.tableProduct.DescriptionColumn]));
  4934. }
  4935. catch (global::System.InvalidCastException e) {
  4936. throw new global::System.Data.StrongTypingException("Значение для столбца \'Description\' в таблице \'Product\' равно DBNull.", e);
  4937. }
  4938. }
  4939. set {
  4940. this[this.tableProduct.DescriptionColumn] = value;
  4941. }
  4942. }
  4943. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4944. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4945. public string MainImagePath {
  4946. get {
  4947. try {
  4948. return ((string)(this[this.tableProduct.MainImagePathColumn]));
  4949. }
  4950. catch (global::System.InvalidCastException e) {
  4951. throw new global::System.Data.StrongTypingException("Значение для столбца \'MainImagePath\' в таблице \'Product\' равно DBNull.", e);
  4952. }
  4953. }
  4954. set {
  4955. this[this.tableProduct.MainImagePathColumn] = value;
  4956. }
  4957. }
  4958. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4959. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4960. public bool IsActive {
  4961. get {
  4962. return ((bool)(this[this.tableProduct.IsActiveColumn]));
  4963. }
  4964. set {
  4965. this[this.tableProduct.IsActiveColumn] = value;
  4966. }
  4967. }
  4968. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4969. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4970. public int ManufacturerID {
  4971. get {
  4972. try {
  4973. return ((int)(this[this.tableProduct.ManufacturerIDColumn]));
  4974. }
  4975. catch (global::System.InvalidCastException e) {
  4976. throw new global::System.Data.StrongTypingException("Значение для столбца \'ManufacturerID\' в таблице \'Product\' равно DBNull.", e);
  4977. }
  4978. }
  4979. set {
  4980. this[this.tableProduct.ManufacturerIDColumn] = value;
  4981. }
  4982. }
  4983. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4984. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4985. public ManufacturerRow ManufacturerRow {
  4986. get {
  4987. return ((ManufacturerRow)(this.GetParentRow(this.Table.ParentRelations["FK_Product_Manufacturer"])));
  4988. }
  4989. set {
  4990. this.SetParentRow(value, this.Table.ParentRelations["FK_Product_Manufacturer"]);
  4991. }
  4992. }
  4993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4994. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4995. public bool IsDescriptionNull() {
  4996. return this.IsNull(this.tableProduct.DescriptionColumn);
  4997. }
  4998. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4999. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5000. public void SetDescriptionNull() {
  5001. this[this.tableProduct.DescriptionColumn] = global::System.Convert.DBNull;
  5002. }
  5003. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5004. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5005. public bool IsMainImagePathNull() {
  5006. return this.IsNull(this.tableProduct.MainImagePathColumn);
  5007. }
  5008. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5009. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5010. public void SetMainImagePathNull() {
  5011. this[this.tableProduct.MainImagePathColumn] = global::System.Convert.DBNull;
  5012. }
  5013. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5014. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5015. public bool IsManufacturerIDNull() {
  5016. return this.IsNull(this.tableProduct.ManufacturerIDColumn);
  5017. }
  5018. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5019. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5020. public void SetManufacturerIDNull() {
  5021. this[this.tableProduct.ManufacturerIDColumn] = global::System.Convert.DBNull;
  5022. }
  5023. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5024. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5025. public AttachedProductRow[] GetAttachedProductRowsByFK_AttachedProduct_Product() {
  5026. if ((this.Table.ChildRelations["FK_AttachedProduct_Product"] == null)) {
  5027. return new AttachedProductRow[0];
  5028. }
  5029. else {
  5030. return ((AttachedProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK_AttachedProduct_Product"])));
  5031. }
  5032. }
  5033. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5034. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5035. public AttachedProductRow[] GetAttachedProductRowsByFK_AttachedProduct_Product1() {
  5036. if ((this.Table.ChildRelations["FK_AttachedProduct_Product1"] == null)) {
  5037. return new AttachedProductRow[0];
  5038. }
  5039. else {
  5040. return ((AttachedProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK_AttachedProduct_Product1"])));
  5041. }
  5042. }
  5043. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5044. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5045. public ProductPhotoRow[] GetProductPhotoRows() {
  5046. if ((this.Table.ChildRelations["FK_ProductPhoto_Product"] == null)) {
  5047. return new ProductPhotoRow[0];
  5048. }
  5049. else {
  5050. return ((ProductPhotoRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductPhoto_Product"])));
  5051. }
  5052. }
  5053. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5054. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5055. public ProductSaleRow[] GetProductSaleRows() {
  5056. if ((this.Table.ChildRelations["FK_ProductSale_Product"] == null)) {
  5057. return new ProductSaleRow[0];
  5058. }
  5059. else {
  5060. return ((ProductSaleRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductSale_Product"])));
  5061. }
  5062. }
  5063. }
  5064. /// <summary>
  5065. ///Represents strongly named DataRow class.
  5066. ///</summary>
  5067. public partial class ProductPhotoRow : global::System.Data.DataRow {
  5068. private ProductPhotoDataTable tableProductPhoto;
  5069. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5070. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5071. internal ProductPhotoRow(global::System.Data.DataRowBuilder rb) :
  5072. base(rb) {
  5073. this.tableProductPhoto = ((ProductPhotoDataTable)(this.Table));
  5074. }
  5075. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5076. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5077. public int ID {
  5078. get {
  5079. return ((int)(this[this.tableProductPhoto.IDColumn]));
  5080. }
  5081. set {
  5082. this[this.tableProductPhoto.IDColumn] = value;
  5083. }
  5084. }
  5085. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5086. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5087. public int ProductID {
  5088. get {
  5089. return ((int)(this[this.tableProductPhoto.ProductIDColumn]));
  5090. }
  5091. set {
  5092. this[this.tableProductPhoto.ProductIDColumn] = value;
  5093. }
  5094. }
  5095. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5096. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5097. public string PhotoPath {
  5098. get {
  5099. return ((string)(this[this.tableProductPhoto.PhotoPathColumn]));
  5100. }
  5101. set {
  5102. this[this.tableProductPhoto.PhotoPathColumn] = value;
  5103. }
  5104. }
  5105. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5106. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5107. public ProductRow ProductRow {
  5108. get {
  5109. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_ProductPhoto_Product"])));
  5110. }
  5111. set {
  5112. this.SetParentRow(value, this.Table.ParentRelations["FK_ProductPhoto_Product"]);
  5113. }
  5114. }
  5115. }
  5116. /// <summary>
  5117. ///Represents strongly named DataRow class.
  5118. ///</summary>
  5119. public partial class ProductSaleRow : global::System.Data.DataRow {
  5120. private ProductSaleDataTable tableProductSale;
  5121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5123. internal ProductSaleRow(global::System.Data.DataRowBuilder rb) :
  5124. base(rb) {
  5125. this.tableProductSale = ((ProductSaleDataTable)(this.Table));
  5126. }
  5127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5128. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5129. public int ID {
  5130. get {
  5131. return ((int)(this[this.tableProductSale.IDColumn]));
  5132. }
  5133. set {
  5134. this[this.tableProductSale.IDColumn] = value;
  5135. }
  5136. }
  5137. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5138. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5139. public System.DateTime SaleDate {
  5140. get {
  5141. return ((global::System.DateTime)(this[this.tableProductSale.SaleDateColumn]));
  5142. }
  5143. set {
  5144. this[this.tableProductSale.SaleDateColumn] = value;
  5145. }
  5146. }
  5147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5149. public int ProductID {
  5150. get {
  5151. return ((int)(this[this.tableProductSale.ProductIDColumn]));
  5152. }
  5153. set {
  5154. this[this.tableProductSale.ProductIDColumn] = value;
  5155. }
  5156. }
  5157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5159. public int Quantity {
  5160. get {
  5161. return ((int)(this[this.tableProductSale.QuantityColumn]));
  5162. }
  5163. set {
  5164. this[this.tableProductSale.QuantityColumn] = value;
  5165. }
  5166. }
  5167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5169. public int ClientServiceID {
  5170. get {
  5171. try {
  5172. return ((int)(this[this.tableProductSale.ClientServiceIDColumn]));
  5173. }
  5174. catch (global::System.InvalidCastException e) {
  5175. throw new global::System.Data.StrongTypingException("Значение для столбца \'ClientServiceID\' в таблице \'ProductSale\' равно DBNull.", e);
  5176. }
  5177. }
  5178. set {
  5179. this[this.tableProductSale.ClientServiceIDColumn] = value;
  5180. }
  5181. }
  5182. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5183. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5184. public ClientServiceRow ClientServiceRow {
  5185. get {
  5186. return ((ClientServiceRow)(this.GetParentRow(this.Table.ParentRelations["FK_ProductSale_ClientService"])));
  5187. }
  5188. set {
  5189. this.SetParentRow(value, this.Table.ParentRelations["FK_ProductSale_ClientService"]);
  5190. }
  5191. }
  5192. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5193. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5194. public ProductRow ProductRow {
  5195. get {
  5196. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_ProductSale_Product"])));
  5197. }
  5198. set {
  5199. this.SetParentRow(value, this.Table.ParentRelations["FK_ProductSale_Product"]);
  5200. }
  5201. }
  5202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5204. public bool IsClientServiceIDNull() {
  5205. return this.IsNull(this.tableProductSale.ClientServiceIDColumn);
  5206. }
  5207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5208. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5209. public void SetClientServiceIDNull() {
  5210. this[this.tableProductSale.ClientServiceIDColumn] = global::System.Convert.DBNull;
  5211. }
  5212. }
  5213. /// <summary>
  5214. ///Represents strongly named DataRow class.
  5215. ///</summary>
  5216. public partial class ServiceRow : global::System.Data.DataRow {
  5217. private ServiceDataTable tableService;
  5218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5219. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5220. internal ServiceRow(global::System.Data.DataRowBuilder rb) :
  5221. base(rb) {
  5222. this.tableService = ((ServiceDataTable)(this.Table));
  5223. }
  5224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5225. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5226. public int ID {
  5227. get {
  5228. return ((int)(this[this.tableService.IDColumn]));
  5229. }
  5230. set {
  5231. this[this.tableService.IDColumn] = value;
  5232. }
  5233. }
  5234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5235. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5236. public string Title {
  5237. get {
  5238. return ((string)(this[this.tableService.TitleColumn]));
  5239. }
  5240. set {
  5241. this[this.tableService.TitleColumn] = value;
  5242. }
  5243. }
  5244. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5245. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5246. public string Cost {
  5247. get {
  5248. return ((string)(this[this.tableService.CostColumn]));
  5249. }
  5250. set {
  5251. this[this.tableService.CostColumn] = value;
  5252. }
  5253. }
  5254. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5255. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5256. public string DurationInSeconds {
  5257. get {
  5258. return ((string)(this[this.tableService.DurationInSecondsColumn]));
  5259. }
  5260. set {
  5261. this[this.tableService.DurationInSecondsColumn] = value;
  5262. }
  5263. }
  5264. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5265. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5266. public string Descritpion {
  5267. get {
  5268. try {
  5269. return ((string)(this[this.tableService.DescritpionColumn]));
  5270. }
  5271. catch (global::System.InvalidCastException e) {
  5272. throw new global::System.Data.StrongTypingException("Значение для столбца \'Descritpion\' в таблице \'Service\' равно DBNull.", e);
  5273. }
  5274. }
  5275. set {
  5276. this[this.tableService.DescritpionColumn] = value;
  5277. }
  5278. }
  5279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5280. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5281. public string Discount {
  5282. get {
  5283. try {
  5284. return ((string)(this[this.tableService.DiscountColumn]));
  5285. }
  5286. catch (global::System.InvalidCastException e) {
  5287. throw new global::System.Data.StrongTypingException("Значение для столбца \'Discount\' в таблице \'Service\' равно DBNull.", e);
  5288. }
  5289. }
  5290. set {
  5291. this[this.tableService.DiscountColumn] = value;
  5292. }
  5293. }
  5294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5296. public string MainImagePath {
  5297. get {
  5298. try {
  5299. return ((string)(this[this.tableService.MainImagePathColumn]));
  5300. }
  5301. catch (global::System.InvalidCastException e) {
  5302. throw new global::System.Data.StrongTypingException("Значение для столбца \'MainImagePath\' в таблице \'Service\' равно DBNull.", e);
  5303. }
  5304. }
  5305. set {
  5306. this[this.tableService.MainImagePathColumn] = value;
  5307. }
  5308. }
  5309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5310. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5311. public bool IsDescritpionNull() {
  5312. return this.IsNull(this.tableService.DescritpionColumn);
  5313. }
  5314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5315. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5316. public void SetDescritpionNull() {
  5317. this[this.tableService.DescritpionColumn] = global::System.Convert.DBNull;
  5318. }
  5319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5320. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5321. public bool IsDiscountNull() {
  5322. return this.IsNull(this.tableService.DiscountColumn);
  5323. }
  5324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5326. public void SetDiscountNull() {
  5327. this[this.tableService.DiscountColumn] = global::System.Convert.DBNull;
  5328. }
  5329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5331. public bool IsMainImagePathNull() {
  5332. return this.IsNull(this.tableService.MainImagePathColumn);
  5333. }
  5334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5336. public void SetMainImagePathNull() {
  5337. this[this.tableService.MainImagePathColumn] = global::System.Convert.DBNull;
  5338. }
  5339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5341. public ClientServiceRow[] GetClientServiceRows() {
  5342. if ((this.Table.ChildRelations["FK_ClientService_service_b_import"] == null)) {
  5343. return new ClientServiceRow[0];
  5344. }
  5345. else {
  5346. return ((ClientServiceRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ClientService_service_b_import"])));
  5347. }
  5348. }
  5349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5351. public ServicePhotoRow[] GetServicePhotoRows() {
  5352. if ((this.Table.ChildRelations["FK_ServicePhoto_service_b_import"] == null)) {
  5353. return new ServicePhotoRow[0];
  5354. }
  5355. else {
  5356. return ((ServicePhotoRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ServicePhoto_service_b_import"])));
  5357. }
  5358. }
  5359. }
  5360. /// <summary>
  5361. ///Represents strongly named DataRow class.
  5362. ///</summary>
  5363. public partial class ServicePhotoRow : global::System.Data.DataRow {
  5364. private ServicePhotoDataTable tableServicePhoto;
  5365. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5366. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5367. internal ServicePhotoRow(global::System.Data.DataRowBuilder rb) :
  5368. base(rb) {
  5369. this.tableServicePhoto = ((ServicePhotoDataTable)(this.Table));
  5370. }
  5371. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5372. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5373. public int ID {
  5374. get {
  5375. return ((int)(this[this.tableServicePhoto.IDColumn]));
  5376. }
  5377. set {
  5378. this[this.tableServicePhoto.IDColumn] = value;
  5379. }
  5380. }
  5381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5382. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5383. public int ServiceID {
  5384. get {
  5385. return ((int)(this[this.tableServicePhoto.ServiceIDColumn]));
  5386. }
  5387. set {
  5388. this[this.tableServicePhoto.ServiceIDColumn] = value;
  5389. }
  5390. }
  5391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5392. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5393. public string PhotoPath {
  5394. get {
  5395. try {
  5396. return ((string)(this[this.tableServicePhoto.PhotoPathColumn]));
  5397. }
  5398. catch (global::System.InvalidCastException e) {
  5399. throw new global::System.Data.StrongTypingException("Значение для столбца \'PhotoPath\' в таблице \'ServicePhoto\' равно DBNull.", e);
  5400. }
  5401. }
  5402. set {
  5403. this[this.tableServicePhoto.PhotoPathColumn] = value;
  5404. }
  5405. }
  5406. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5407. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5408. public ServiceRow ServiceRow {
  5409. get {
  5410. return ((ServiceRow)(this.GetParentRow(this.Table.ParentRelations["FK_ServicePhoto_service_b_import"])));
  5411. }
  5412. set {
  5413. this.SetParentRow(value, this.Table.ParentRelations["FK_ServicePhoto_service_b_import"]);
  5414. }
  5415. }
  5416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5418. public bool IsPhotoPathNull() {
  5419. return this.IsNull(this.tableServicePhoto.PhotoPathColumn);
  5420. }
  5421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5422. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5423. public void SetPhotoPathNull() {
  5424. this[this.tableServicePhoto.PhotoPathColumn] = global::System.Convert.DBNull;
  5425. }
  5426. }
  5427. /// <summary>
  5428. ///Represents strongly named DataRow class.
  5429. ///</summary>
  5430. public partial class TagRow : global::System.Data.DataRow {
  5431. private TagDataTable tableTag;
  5432. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5433. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5434. internal TagRow(global::System.Data.DataRowBuilder rb) :
  5435. base(rb) {
  5436. this.tableTag = ((TagDataTable)(this.Table));
  5437. }
  5438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5439. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5440. public int ID {
  5441. get {
  5442. return ((int)(this[this.tableTag.IDColumn]));
  5443. }
  5444. set {
  5445. this[this.tableTag.IDColumn] = value;
  5446. }
  5447. }
  5448. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5449. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5450. public string Title {
  5451. get {
  5452. return ((string)(this[this.tableTag.TitleColumn]));
  5453. }
  5454. set {
  5455. this[this.tableTag.TitleColumn] = value;
  5456. }
  5457. }
  5458. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5459. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5460. public string Color {
  5461. get {
  5462. return ((string)(this[this.tableTag.ColorColumn]));
  5463. }
  5464. set {
  5465. this[this.tableTag.ColorColumn] = value;
  5466. }
  5467. }
  5468. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5469. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5470. public TagOfClientRow[] GetTagOfClientRows() {
  5471. if ((this.Table.ChildRelations["FK_TagOfClient_Tag"] == null)) {
  5472. return new TagOfClientRow[0];
  5473. }
  5474. else {
  5475. return ((TagOfClientRow[])(base.GetChildRows(this.Table.ChildRelations["FK_TagOfClient_Tag"])));
  5476. }
  5477. }
  5478. }
  5479. /// <summary>
  5480. ///Represents strongly named DataRow class.
  5481. ///</summary>
  5482. public partial class TagOfClientRow : global::System.Data.DataRow {
  5483. private TagOfClientDataTable tableTagOfClient;
  5484. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5485. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5486. internal TagOfClientRow(global::System.Data.DataRowBuilder rb) :
  5487. base(rb) {
  5488. this.tableTagOfClient = ((TagOfClientDataTable)(this.Table));
  5489. }
  5490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5492. public int ClientID {
  5493. get {
  5494. return ((int)(this[this.tableTagOfClient.ClientIDColumn]));
  5495. }
  5496. set {
  5497. this[this.tableTagOfClient.ClientIDColumn] = value;
  5498. }
  5499. }
  5500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5502. public int TagID {
  5503. get {
  5504. return ((int)(this[this.tableTagOfClient.TagIDColumn]));
  5505. }
  5506. set {
  5507. this[this.tableTagOfClient.TagIDColumn] = value;
  5508. }
  5509. }
  5510. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5511. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5512. public ClientRow ClientRow {
  5513. get {
  5514. return ((ClientRow)(this.GetParentRow(this.Table.ParentRelations["FK_TagOfClient_Client"])));
  5515. }
  5516. set {
  5517. this.SetParentRow(value, this.Table.ParentRelations["FK_TagOfClient_Client"]);
  5518. }
  5519. }
  5520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5521. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5522. public TagRow TagRow {
  5523. get {
  5524. return ((TagRow)(this.GetParentRow(this.Table.ParentRelations["FK_TagOfClient_Tag"])));
  5525. }
  5526. set {
  5527. this.SetParentRow(value, this.Table.ParentRelations["FK_TagOfClient_Tag"]);
  5528. }
  5529. }
  5530. }
  5531. /// <summary>
  5532. ///Row event argument class
  5533. ///</summary>
  5534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5535. public class AttachedProductRowChangeEvent : global::System.EventArgs {
  5536. private AttachedProductRow eventRow;
  5537. private global::System.Data.DataRowAction eventAction;
  5538. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5539. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5540. public AttachedProductRowChangeEvent(AttachedProductRow row, global::System.Data.DataRowAction action) {
  5541. this.eventRow = row;
  5542. this.eventAction = action;
  5543. }
  5544. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5545. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5546. public AttachedProductRow Row {
  5547. get {
  5548. return this.eventRow;
  5549. }
  5550. }
  5551. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5552. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5553. public global::System.Data.DataRowAction Action {
  5554. get {
  5555. return this.eventAction;
  5556. }
  5557. }
  5558. }
  5559. /// <summary>
  5560. ///Row event argument class
  5561. ///</summary>
  5562. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5563. public class ClientRowChangeEvent : global::System.EventArgs {
  5564. private ClientRow eventRow;
  5565. private global::System.Data.DataRowAction eventAction;
  5566. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5567. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5568. public ClientRowChangeEvent(ClientRow row, global::System.Data.DataRowAction action) {
  5569. this.eventRow = row;
  5570. this.eventAction = action;
  5571. }
  5572. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5573. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5574. public ClientRow Row {
  5575. get {
  5576. return this.eventRow;
  5577. }
  5578. }
  5579. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5580. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5581. public global::System.Data.DataRowAction Action {
  5582. get {
  5583. return this.eventAction;
  5584. }
  5585. }
  5586. }
  5587. /// <summary>
  5588. ///Row event argument class
  5589. ///</summary>
  5590. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5591. public class ClientServiceRowChangeEvent : global::System.EventArgs {
  5592. private ClientServiceRow eventRow;
  5593. private global::System.Data.DataRowAction eventAction;
  5594. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5595. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5596. public ClientServiceRowChangeEvent(ClientServiceRow row, global::System.Data.DataRowAction action) {
  5597. this.eventRow = row;
  5598. this.eventAction = action;
  5599. }
  5600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5601. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5602. public ClientServiceRow Row {
  5603. get {
  5604. return this.eventRow;
  5605. }
  5606. }
  5607. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5608. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5609. public global::System.Data.DataRowAction Action {
  5610. get {
  5611. return this.eventAction;
  5612. }
  5613. }
  5614. }
  5615. /// <summary>
  5616. ///Row event argument class
  5617. ///</summary>
  5618. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5619. public class DocumentByServiceRowChangeEvent : global::System.EventArgs {
  5620. private DocumentByServiceRow eventRow;
  5621. private global::System.Data.DataRowAction eventAction;
  5622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5623. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5624. public DocumentByServiceRowChangeEvent(DocumentByServiceRow row, global::System.Data.DataRowAction action) {
  5625. this.eventRow = row;
  5626. this.eventAction = action;
  5627. }
  5628. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5630. public DocumentByServiceRow Row {
  5631. get {
  5632. return this.eventRow;
  5633. }
  5634. }
  5635. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5636. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5637. public global::System.Data.DataRowAction Action {
  5638. get {
  5639. return this.eventAction;
  5640. }
  5641. }
  5642. }
  5643. /// <summary>
  5644. ///Row event argument class
  5645. ///</summary>
  5646. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5647. public class GenderRowChangeEvent : global::System.EventArgs {
  5648. private GenderRow eventRow;
  5649. private global::System.Data.DataRowAction eventAction;
  5650. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5651. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5652. public GenderRowChangeEvent(GenderRow row, global::System.Data.DataRowAction action) {
  5653. this.eventRow = row;
  5654. this.eventAction = action;
  5655. }
  5656. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5657. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5658. public GenderRow Row {
  5659. get {
  5660. return this.eventRow;
  5661. }
  5662. }
  5663. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5664. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5665. public global::System.Data.DataRowAction Action {
  5666. get {
  5667. return this.eventAction;
  5668. }
  5669. }
  5670. }
  5671. /// <summary>
  5672. ///Row event argument class
  5673. ///</summary>
  5674. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5675. public class ManufacturerRowChangeEvent : global::System.EventArgs {
  5676. private ManufacturerRow eventRow;
  5677. private global::System.Data.DataRowAction eventAction;
  5678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5680. public ManufacturerRowChangeEvent(ManufacturerRow row, global::System.Data.DataRowAction action) {
  5681. this.eventRow = row;
  5682. this.eventAction = action;
  5683. }
  5684. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5685. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5686. public ManufacturerRow Row {
  5687. get {
  5688. return this.eventRow;
  5689. }
  5690. }
  5691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5692. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5693. public global::System.Data.DataRowAction Action {
  5694. get {
  5695. return this.eventAction;
  5696. }
  5697. }
  5698. }
  5699. /// <summary>
  5700. ///Row event argument class
  5701. ///</summary>
  5702. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5703. public class ProductRowChangeEvent : global::System.EventArgs {
  5704. private ProductRow eventRow;
  5705. private global::System.Data.DataRowAction eventAction;
  5706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5708. public ProductRowChangeEvent(ProductRow row, global::System.Data.DataRowAction action) {
  5709. this.eventRow = row;
  5710. this.eventAction = action;
  5711. }
  5712. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5713. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5714. public ProductRow Row {
  5715. get {
  5716. return this.eventRow;
  5717. }
  5718. }
  5719. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5720. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5721. public global::System.Data.DataRowAction Action {
  5722. get {
  5723. return this.eventAction;
  5724. }
  5725. }
  5726. }
  5727. /// <summary>
  5728. ///Row event argument class
  5729. ///</summary>
  5730. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5731. public class ProductPhotoRowChangeEvent : global::System.EventArgs {
  5732. private ProductPhotoRow eventRow;
  5733. private global::System.Data.DataRowAction eventAction;
  5734. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5736. public ProductPhotoRowChangeEvent(ProductPhotoRow row, global::System.Data.DataRowAction action) {
  5737. this.eventRow = row;
  5738. this.eventAction = action;
  5739. }
  5740. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5741. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5742. public ProductPhotoRow Row {
  5743. get {
  5744. return this.eventRow;
  5745. }
  5746. }
  5747. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5748. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5749. public global::System.Data.DataRowAction Action {
  5750. get {
  5751. return this.eventAction;
  5752. }
  5753. }
  5754. }
  5755. /// <summary>
  5756. ///Row event argument class
  5757. ///</summary>
  5758. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5759. public class ProductSaleRowChangeEvent : global::System.EventArgs {
  5760. private ProductSaleRow eventRow;
  5761. private global::System.Data.DataRowAction eventAction;
  5762. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5763. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5764. public ProductSaleRowChangeEvent(ProductSaleRow row, global::System.Data.DataRowAction action) {
  5765. this.eventRow = row;
  5766. this.eventAction = action;
  5767. }
  5768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5770. public ProductSaleRow Row {
  5771. get {
  5772. return this.eventRow;
  5773. }
  5774. }
  5775. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5776. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5777. public global::System.Data.DataRowAction Action {
  5778. get {
  5779. return this.eventAction;
  5780. }
  5781. }
  5782. }
  5783. /// <summary>
  5784. ///Row event argument class
  5785. ///</summary>
  5786. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5787. public class ServiceRowChangeEvent : global::System.EventArgs {
  5788. private ServiceRow eventRow;
  5789. private global::System.Data.DataRowAction eventAction;
  5790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5792. public ServiceRowChangeEvent(ServiceRow row, global::System.Data.DataRowAction action) {
  5793. this.eventRow = row;
  5794. this.eventAction = action;
  5795. }
  5796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5797. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5798. public ServiceRow Row {
  5799. get {
  5800. return this.eventRow;
  5801. }
  5802. }
  5803. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5804. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5805. public global::System.Data.DataRowAction Action {
  5806. get {
  5807. return this.eventAction;
  5808. }
  5809. }
  5810. }
  5811. /// <summary>
  5812. ///Row event argument class
  5813. ///</summary>
  5814. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5815. public class ServicePhotoRowChangeEvent : global::System.EventArgs {
  5816. private ServicePhotoRow eventRow;
  5817. private global::System.Data.DataRowAction eventAction;
  5818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5819. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5820. public ServicePhotoRowChangeEvent(ServicePhotoRow row, global::System.Data.DataRowAction action) {
  5821. this.eventRow = row;
  5822. this.eventAction = action;
  5823. }
  5824. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5825. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5826. public ServicePhotoRow Row {
  5827. get {
  5828. return this.eventRow;
  5829. }
  5830. }
  5831. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5832. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5833. public global::System.Data.DataRowAction Action {
  5834. get {
  5835. return this.eventAction;
  5836. }
  5837. }
  5838. }
  5839. /// <summary>
  5840. ///Row event argument class
  5841. ///</summary>
  5842. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5843. public class TagRowChangeEvent : global::System.EventArgs {
  5844. private TagRow eventRow;
  5845. private global::System.Data.DataRowAction eventAction;
  5846. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5847. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5848. public TagRowChangeEvent(TagRow row, global::System.Data.DataRowAction action) {
  5849. this.eventRow = row;
  5850. this.eventAction = action;
  5851. }
  5852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5853. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5854. public TagRow Row {
  5855. get {
  5856. return this.eventRow;
  5857. }
  5858. }
  5859. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5860. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5861. public global::System.Data.DataRowAction Action {
  5862. get {
  5863. return this.eventAction;
  5864. }
  5865. }
  5866. }
  5867. /// <summary>
  5868. ///Row event argument class
  5869. ///</summary>
  5870. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5871. public class TagOfClientRowChangeEvent : global::System.EventArgs {
  5872. private TagOfClientRow eventRow;
  5873. private global::System.Data.DataRowAction eventAction;
  5874. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5875. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5876. public TagOfClientRowChangeEvent(TagOfClientRow row, global::System.Data.DataRowAction action) {
  5877. this.eventRow = row;
  5878. this.eventAction = action;
  5879. }
  5880. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5881. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5882. public TagOfClientRow Row {
  5883. get {
  5884. return this.eventRow;
  5885. }
  5886. }
  5887. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5888. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5889. public global::System.Data.DataRowAction Action {
  5890. get {
  5891. return this.eventAction;
  5892. }
  5893. }
  5894. }
  5895. }
  5896. }
  5897. namespace Бархотные_брови.DB_Кузьменко_V2DataSetTableAdapters {
  5898. /// <summary>
  5899. ///Represents the connection and commands used to retrieve and save data.
  5900. ///</summary>
  5901. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5902. [global::System.ComponentModel.ToolboxItem(true)]
  5903. [global::System.ComponentModel.DataObjectAttribute(true)]
  5904. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5905. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5906. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5907. public partial class AttachedProductTableAdapter : global::System.ComponentModel.Component {
  5908. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5909. private global::System.Data.SqlClient.SqlConnection _connection;
  5910. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5911. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5912. private bool _clearBeforeFill;
  5913. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5914. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5915. public AttachedProductTableAdapter() {
  5916. this.ClearBeforeFill = true;
  5917. }
  5918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5919. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5920. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5921. get {
  5922. if ((this._adapter == null)) {
  5923. this.InitAdapter();
  5924. }
  5925. return this._adapter;
  5926. }
  5927. }
  5928. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5929. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5930. internal global::System.Data.SqlClient.SqlConnection Connection {
  5931. get {
  5932. if ((this._connection == null)) {
  5933. this.InitConnection();
  5934. }
  5935. return this._connection;
  5936. }
  5937. set {
  5938. this._connection = value;
  5939. if ((this.Adapter.InsertCommand != null)) {
  5940. this.Adapter.InsertCommand.Connection = value;
  5941. }
  5942. if ((this.Adapter.DeleteCommand != null)) {
  5943. this.Adapter.DeleteCommand.Connection = value;
  5944. }
  5945. if ((this.Adapter.UpdateCommand != null)) {
  5946. this.Adapter.UpdateCommand.Connection = value;
  5947. }
  5948. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5949. if ((this.CommandCollection[i] != null)) {
  5950. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5951. }
  5952. }
  5953. }
  5954. }
  5955. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5956. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5957. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5958. get {
  5959. return this._transaction;
  5960. }
  5961. set {
  5962. this._transaction = value;
  5963. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5964. this.CommandCollection[i].Transaction = this._transaction;
  5965. }
  5966. if (((this.Adapter != null)
  5967. && (this.Adapter.DeleteCommand != null))) {
  5968. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5969. }
  5970. if (((this.Adapter != null)
  5971. && (this.Adapter.InsertCommand != null))) {
  5972. this.Adapter.InsertCommand.Transaction = this._transaction;
  5973. }
  5974. if (((this.Adapter != null)
  5975. && (this.Adapter.UpdateCommand != null))) {
  5976. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5977. }
  5978. }
  5979. }
  5980. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5981. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5982. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5983. get {
  5984. if ((this._commandCollection == null)) {
  5985. this.InitCommandCollection();
  5986. }
  5987. return this._commandCollection;
  5988. }
  5989. }
  5990. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5991. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5992. public bool ClearBeforeFill {
  5993. get {
  5994. return this._clearBeforeFill;
  5995. }
  5996. set {
  5997. this._clearBeforeFill = value;
  5998. }
  5999. }
  6000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6001. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6002. private void InitAdapter() {
  6003. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6004. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6005. tableMapping.SourceTable = "Table";
  6006. tableMapping.DataSetTable = "AttachedProduct";
  6007. tableMapping.ColumnMappings.Add("MainProductID", "MainProductID");
  6008. tableMapping.ColumnMappings.Add("AttachedProductID", "AttachedProductID");
  6009. this._adapter.TableMappings.Add(tableMapping);
  6010. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6011. this._adapter.DeleteCommand.Connection = this.Connection;
  6012. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[AttachedProduct] WHERE (([MainProductID] = @Original_MainProdu" +
  6013. "ctID) AND ([AttachedProductID] = @Original_AttachedProductID))";
  6014. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6015. 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, "", "", ""));
  6016. 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, "", "", ""));
  6017. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6018. this._adapter.InsertCommand.Connection = this.Connection;
  6019. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[AttachedProduct] ([MainProductID], [AttachedProductID]) VALUES (@MainProductID, @AttachedProductID);
  6020. SELECT MainProductID, AttachedProductID FROM AttachedProduct WHERE (AttachedProductID = @AttachedProductID) AND (MainProductID = @MainProductID)";
  6021. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6022. 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, "", "", ""));
  6023. 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, "", "", ""));
  6024. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6025. this._adapter.UpdateCommand.Connection = this.Connection;
  6026. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[AttachedProduct] SET [MainProductID] = @MainProductID, [AttachedProductID] = @AttachedProductID WHERE (([MainProductID] = @Original_MainProductID) AND ([AttachedProductID] = @Original_AttachedProductID));
  6027. SELECT MainProductID, AttachedProductID FROM AttachedProduct WHERE (AttachedProductID = @AttachedProductID) AND (MainProductID = @MainProductID)";
  6028. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6029. 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, "", "", ""));
  6030. 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, "", "", ""));
  6031. 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, "", "", ""));
  6032. 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, "", "", ""));
  6033. }
  6034. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6035. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6036. private void InitConnection() {
  6037. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6038. this._connection.ConnectionString = global::Бархотные_брови.Properties.Settings.Default.DB_Кузьменко_V2ConnectionString;
  6039. }
  6040. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6041. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6042. private void InitCommandCollection() {
  6043. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6044. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6045. this._commandCollection[0].Connection = this.Connection;
  6046. this._commandCollection[0].CommandText = "SELECT MainProductID, AttachedProductID FROM dbo.AttachedProduct";
  6047. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6048. }
  6049. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6050. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6051. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6052. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6053. public virtual int Fill(DB_Кузьменко_V2DataSet.AttachedProductDataTable dataTable) {
  6054. this.Adapter.SelectCommand = this.CommandCollection[0];
  6055. if ((this.ClearBeforeFill == true)) {
  6056. dataTable.Clear();
  6057. }
  6058. int returnValue = this.Adapter.Fill(dataTable);
  6059. return returnValue;
  6060. }
  6061. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6062. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6063. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6064. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6065. public virtual DB_Кузьменко_V2DataSet.AttachedProductDataTable GetData() {
  6066. this.Adapter.SelectCommand = this.CommandCollection[0];
  6067. DB_Кузьменко_V2DataSet.AttachedProductDataTable dataTable = new DB_Кузьменко_V2DataSet.AttachedProductDataTable();
  6068. this.Adapter.Fill(dataTable);
  6069. return dataTable;
  6070. }
  6071. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6072. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6073. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6074. public virtual int Update(DB_Кузьменко_V2DataSet.AttachedProductDataTable dataTable) {
  6075. return this.Adapter.Update(dataTable);
  6076. }
  6077. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6078. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6079. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6080. public virtual int Update(DB_Кузьменко_V2DataSet dataSet) {
  6081. return this.Adapter.Update(dataSet, "AttachedProduct");
  6082. }
  6083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6085. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6086. public virtual int Update(global::System.Data.DataRow dataRow) {
  6087. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6088. dataRow});
  6089. }
  6090. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6091. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6092. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6093. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6094. return this.Adapter.Update(dataRows);
  6095. }
  6096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6097. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6098. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6099. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6100. public virtual int Delete(int Original_MainProductID, int Original_AttachedProductID) {
  6101. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_MainProductID));
  6102. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_AttachedProductID));
  6103. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6104. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6105. != global::System.Data.ConnectionState.Open)) {
  6106. this.Adapter.DeleteCommand.Connection.Open();
  6107. }
  6108. try {
  6109. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6110. return returnValue;
  6111. }
  6112. finally {
  6113. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6114. this.Adapter.DeleteCommand.Connection.Close();
  6115. }
  6116. }
  6117. }
  6118. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6119. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6120. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6121. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6122. public virtual int Insert(int MainProductID, int AttachedProductID) {
  6123. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(MainProductID));
  6124. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(AttachedProductID));
  6125. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6126. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6127. != global::System.Data.ConnectionState.Open)) {
  6128. this.Adapter.InsertCommand.Connection.Open();
  6129. }
  6130. try {
  6131. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6132. return returnValue;
  6133. }
  6134. finally {
  6135. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6136. this.Adapter.InsertCommand.Connection.Close();
  6137. }
  6138. }
  6139. }
  6140. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6141. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6142. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6143. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6144. public virtual int Update(int MainProductID, int AttachedProductID, int Original_MainProductID, int Original_AttachedProductID) {
  6145. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(MainProductID));
  6146. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(AttachedProductID));
  6147. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_MainProductID));
  6148. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_AttachedProductID));
  6149. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6150. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6151. != global::System.Data.ConnectionState.Open)) {
  6152. this.Adapter.UpdateCommand.Connection.Open();
  6153. }
  6154. try {
  6155. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6156. return returnValue;
  6157. }
  6158. finally {
  6159. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6160. this.Adapter.UpdateCommand.Connection.Close();
  6161. }
  6162. }
  6163. }
  6164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6165. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6166. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6167. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6168. public virtual int Update(int Original_MainProductID, int Original_AttachedProductID) {
  6169. return this.Update(Original_MainProductID, Original_AttachedProductID, Original_MainProductID, Original_AttachedProductID);
  6170. }
  6171. }
  6172. /// <summary>
  6173. ///Represents the connection and commands used to retrieve and save data.
  6174. ///</summary>
  6175. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6176. [global::System.ComponentModel.ToolboxItem(true)]
  6177. [global::System.ComponentModel.DataObjectAttribute(true)]
  6178. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6179. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6180. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6181. public partial class ClientTableAdapter : global::System.ComponentModel.Component {
  6182. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6183. private global::System.Data.SqlClient.SqlConnection _connection;
  6184. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6185. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6186. private bool _clearBeforeFill;
  6187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6188. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6189. public ClientTableAdapter() {
  6190. this.ClearBeforeFill = true;
  6191. }
  6192. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6193. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6194. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6195. get {
  6196. if ((this._adapter == null)) {
  6197. this.InitAdapter();
  6198. }
  6199. return this._adapter;
  6200. }
  6201. }
  6202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6204. internal global::System.Data.SqlClient.SqlConnection Connection {
  6205. get {
  6206. if ((this._connection == null)) {
  6207. this.InitConnection();
  6208. }
  6209. return this._connection;
  6210. }
  6211. set {
  6212. this._connection = value;
  6213. if ((this.Adapter.InsertCommand != null)) {
  6214. this.Adapter.InsertCommand.Connection = value;
  6215. }
  6216. if ((this.Adapter.DeleteCommand != null)) {
  6217. this.Adapter.DeleteCommand.Connection = value;
  6218. }
  6219. if ((this.Adapter.UpdateCommand != null)) {
  6220. this.Adapter.UpdateCommand.Connection = value;
  6221. }
  6222. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6223. if ((this.CommandCollection[i] != null)) {
  6224. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6225. }
  6226. }
  6227. }
  6228. }
  6229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6230. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6231. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6232. get {
  6233. return this._transaction;
  6234. }
  6235. set {
  6236. this._transaction = value;
  6237. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6238. this.CommandCollection[i].Transaction = this._transaction;
  6239. }
  6240. if (((this.Adapter != null)
  6241. && (this.Adapter.DeleteCommand != null))) {
  6242. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6243. }
  6244. if (((this.Adapter != null)
  6245. && (this.Adapter.InsertCommand != null))) {
  6246. this.Adapter.InsertCommand.Transaction = this._transaction;
  6247. }
  6248. if (((this.Adapter != null)
  6249. && (this.Adapter.UpdateCommand != null))) {
  6250. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6251. }
  6252. }
  6253. }
  6254. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6255. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6256. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6257. get {
  6258. if ((this._commandCollection == null)) {
  6259. this.InitCommandCollection();
  6260. }
  6261. return this._commandCollection;
  6262. }
  6263. }
  6264. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6265. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6266. public bool ClearBeforeFill {
  6267. get {
  6268. return this._clearBeforeFill;
  6269. }
  6270. set {
  6271. this._clearBeforeFill = value;
  6272. }
  6273. }
  6274. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6275. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6276. private void InitAdapter() {
  6277. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6278. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6279. tableMapping.SourceTable = "Table";
  6280. tableMapping.DataSetTable = "Client";
  6281. tableMapping.ColumnMappings.Add("ID", "ID");
  6282. tableMapping.ColumnMappings.Add("FirstName", "FirstName");
  6283. tableMapping.ColumnMappings.Add("LastName", "LastName");
  6284. tableMapping.ColumnMappings.Add("Patronymic", "Patronymic");
  6285. tableMapping.ColumnMappings.Add("Birthday", "Birthday");
  6286. tableMapping.ColumnMappings.Add("RegistrationDate", "RegistrationDate");
  6287. tableMapping.ColumnMappings.Add("Email", "Email");
  6288. tableMapping.ColumnMappings.Add("Phone", "Phone");
  6289. tableMapping.ColumnMappings.Add("GenderCode", "GenderCode");
  6290. tableMapping.ColumnMappings.Add("PhotoPath", "PhotoPath");
  6291. this._adapter.TableMappings.Add(tableMapping);
  6292. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6293. this._adapter.DeleteCommand.Connection = this.Connection;
  6294. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Client] WHERE (([ID] = @Original_ID) AND ([FirstName] = @Original_FirstName) AND ([LastName] = @Original_LastName) AND ((@IsNull_Patronymic = 1 AND [Patronymic] IS NULL) OR ([Patronymic] = @Original_Patronymic)) AND ((@IsNull_Birthday = 1 AND [Birthday] IS NULL) OR ([Birthday] = @Original_Birthday)) AND ([RegistrationDate] = @Original_RegistrationDate) AND ((@IsNull_Email = 1 AND [Email] IS NULL) OR ([Email] = @Original_Email)) AND ([Phone] = @Original_Phone) AND ((@IsNull_GenderCode = 1 AND [GenderCode] IS NULL) OR ([GenderCode] = @Original_GenderCode)) AND ((@IsNull_PhotoPath = 1 AND [PhotoPath] IS NULL) OR ([PhotoPath] = @Original_PhotoPath)))";
  6295. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6296. 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, "", "", ""));
  6297. 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, "", "", ""));
  6298. 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, "", "", ""));
  6299. 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, "", "", ""));
  6300. 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, "", "", ""));
  6301. 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, "", "", ""));
  6302. 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, "", "", ""));
  6303. 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, "", "", ""));
  6304. 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, "", "", ""));
  6305. 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, "", "", ""));
  6306. 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, "", "", ""));
  6307. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_GenderCode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GenderCode", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6308. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_GenderCode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GenderCode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6309. 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, "", "", ""));
  6310. 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, "", "", ""));
  6311. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6312. this._adapter.InsertCommand.Connection = this.Connection;
  6313. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Client] ([FirstName], [LastName], [Patronymic], [Birthday], [RegistrationDate], [Email], [Phone], [GenderCode], [PhotoPath]) VALUES (@FirstName, @LastName, @Patronymic, @Birthday, @RegistrationDate, @Email, @Phone, @GenderCode, @PhotoPath);
  6314. SELECT ID, FirstName, LastName, Patronymic, Birthday, RegistrationDate, Email, Phone, GenderCode, PhotoPath FROM Client WHERE (ID = SCOPE_IDENTITY())";
  6315. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6316. 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, "", "", ""));
  6317. 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, "", "", ""));
  6318. 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, "", "", ""));
  6319. 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, "", "", ""));
  6320. 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, "", "", ""));
  6321. 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, "", "", ""));
  6322. 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, "", "", ""));
  6323. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@GenderCode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GenderCode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6324. 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, "", "", ""));
  6325. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6326. this._adapter.UpdateCommand.Connection = this.Connection;
  6327. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Client] SET [FirstName] = @FirstName, [LastName] = @LastName, [Patronymic] = @Patronymic, [Birthday] = @Birthday, [RegistrationDate] = @RegistrationDate, [Email] = @Email, [Phone] = @Phone, [GenderCode] = @GenderCode, [PhotoPath] = @PhotoPath WHERE (([ID] = @Original_ID) AND ([FirstName] = @Original_FirstName) AND ([LastName] = @Original_LastName) AND ((@IsNull_Patronymic = 1 AND [Patronymic] IS NULL) OR ([Patronymic] = @Original_Patronymic)) AND ((@IsNull_Birthday = 1 AND [Birthday] IS NULL) OR ([Birthday] = @Original_Birthday)) AND ([RegistrationDate] = @Original_RegistrationDate) AND ((@IsNull_Email = 1 AND [Email] IS NULL) OR ([Email] = @Original_Email)) AND ([Phone] = @Original_Phone) AND ((@IsNull_GenderCode = 1 AND [GenderCode] IS NULL) OR ([GenderCode] = @Original_GenderCode)) AND ((@IsNull_PhotoPath = 1 AND [PhotoPath] IS NULL) OR ([PhotoPath] = @Original_PhotoPath)));
  6328. SELECT ID, FirstName, LastName, Patronymic, Birthday, RegistrationDate, Email, Phone, GenderCode, PhotoPath FROM Client WHERE (ID = @ID)";
  6329. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6330. 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, "", "", ""));
  6331. 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, "", "", ""));
  6332. 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, "", "", ""));
  6333. 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, "", "", ""));
  6334. 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, "", "", ""));
  6335. 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, "", "", ""));
  6336. 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, "", "", ""));
  6337. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@GenderCode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GenderCode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6338. 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, "", "", ""));
  6339. 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, "", "", ""));
  6340. 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, "", "", ""));
  6341. 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, "", "", ""));
  6342. 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, "", "", ""));
  6343. 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, "", "", ""));
  6344. 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, "", "", ""));
  6345. 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, "", "", ""));
  6346. 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, "", "", ""));
  6347. 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, "", "", ""));
  6348. 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, "", "", ""));
  6349. 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, "", "", ""));
  6350. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_GenderCode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GenderCode", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6351. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_GenderCode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GenderCode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6352. 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, "", "", ""));
  6353. 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, "", "", ""));
  6354. 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, "", "", ""));
  6355. }
  6356. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6357. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6358. private void InitConnection() {
  6359. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6360. this._connection.ConnectionString = global::Бархотные_брови.Properties.Settings.Default.DB_Кузьменко_V2ConnectionString;
  6361. }
  6362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6363. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6364. private void InitCommandCollection() {
  6365. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6366. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6367. this._commandCollection[0].Connection = this.Connection;
  6368. this._commandCollection[0].CommandText = "SELECT ID, FirstName, LastName, Patronymic, Birthday, RegistrationDate, Email, Ph" +
  6369. "one, GenderCode, PhotoPath FROM dbo.Client";
  6370. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6371. }
  6372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6374. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6375. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6376. public virtual int Fill(DB_Кузьменко_V2DataSet.ClientDataTable dataTable) {
  6377. this.Adapter.SelectCommand = this.CommandCollection[0];
  6378. if ((this.ClearBeforeFill == true)) {
  6379. dataTable.Clear();
  6380. }
  6381. int returnValue = this.Adapter.Fill(dataTable);
  6382. return returnValue;
  6383. }
  6384. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6385. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6386. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6387. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6388. public virtual DB_Кузьменко_V2DataSet.ClientDataTable GetData() {
  6389. this.Adapter.SelectCommand = this.CommandCollection[0];
  6390. DB_Кузьменко_V2DataSet.ClientDataTable dataTable = new DB_Кузьменко_V2DataSet.ClientDataTable();
  6391. this.Adapter.Fill(dataTable);
  6392. return dataTable;
  6393. }
  6394. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6395. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6396. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6397. public virtual int Update(DB_Кузьменко_V2DataSet.ClientDataTable dataTable) {
  6398. return this.Adapter.Update(dataTable);
  6399. }
  6400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6402. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6403. public virtual int Update(DB_Кузьменко_V2DataSet dataSet) {
  6404. return this.Adapter.Update(dataSet, "Client");
  6405. }
  6406. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6407. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6408. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6409. public virtual int Update(global::System.Data.DataRow dataRow) {
  6410. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6411. dataRow});
  6412. }
  6413. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6414. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6415. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6416. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6417. return this.Adapter.Update(dataRows);
  6418. }
  6419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6421. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6422. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6423. 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) {
  6424. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  6425. if ((Original_FirstName == null)) {
  6426. throw new global::System.ArgumentNullException("Original_FirstName");
  6427. }
  6428. else {
  6429. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_FirstName));
  6430. }
  6431. if ((Original_LastName == null)) {
  6432. throw new global::System.ArgumentNullException("Original_LastName");
  6433. }
  6434. else {
  6435. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_LastName));
  6436. }
  6437. if ((Original_Patronymic == null)) {
  6438. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  6439. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  6440. }
  6441. else {
  6442. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  6443. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Patronymic));
  6444. }
  6445. if ((Original_Birthday.HasValue == true)) {
  6446. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  6447. this.Adapter.DeleteCommand.Parameters[6].Value = ((System.DateTime)(Original_Birthday.Value));
  6448. }
  6449. else {
  6450. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  6451. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  6452. }
  6453. this.Adapter.DeleteCommand.Parameters[7].Value = ((System.DateTime)(Original_RegistrationDate));
  6454. if ((Original_Email == null)) {
  6455. this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(1));
  6456. this.Adapter.DeleteCommand.Parameters[9].Value = global::System.DBNull.Value;
  6457. }
  6458. else {
  6459. this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(0));
  6460. this.Adapter.DeleteCommand.Parameters[9].Value = ((string)(Original_Email));
  6461. }
  6462. if ((Original_Phone == null)) {
  6463. throw new global::System.ArgumentNullException("Original_Phone");
  6464. }
  6465. else {
  6466. this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_Phone));
  6467. }
  6468. if ((Original_GenderCode == null)) {
  6469. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  6470. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  6471. }
  6472. else {
  6473. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  6474. this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_GenderCode));
  6475. }
  6476. if ((Original_PhotoPath == null)) {
  6477. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
  6478. this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
  6479. }
  6480. else {
  6481. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
  6482. this.Adapter.DeleteCommand.Parameters[14].Value = ((string)(Original_PhotoPath));
  6483. }
  6484. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6485. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6486. != global::System.Data.ConnectionState.Open)) {
  6487. this.Adapter.DeleteCommand.Connection.Open();
  6488. }
  6489. try {
  6490. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6491. return returnValue;
  6492. }
  6493. finally {
  6494. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6495. this.Adapter.DeleteCommand.Connection.Close();
  6496. }
  6497. }
  6498. }
  6499. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6500. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6501. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6502. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6503. 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) {
  6504. if ((FirstName == null)) {
  6505. throw new global::System.ArgumentNullException("FirstName");
  6506. }
  6507. else {
  6508. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(FirstName));
  6509. }
  6510. if ((LastName == null)) {
  6511. throw new global::System.ArgumentNullException("LastName");
  6512. }
  6513. else {
  6514. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(LastName));
  6515. }
  6516. if ((Patronymic == null)) {
  6517. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  6518. }
  6519. else {
  6520. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Patronymic));
  6521. }
  6522. if ((Birthday.HasValue == true)) {
  6523. this.Adapter.InsertCommand.Parameters[3].Value = ((System.DateTime)(Birthday.Value));
  6524. }
  6525. else {
  6526. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  6527. }
  6528. this.Adapter.InsertCommand.Parameters[4].Value = ((System.DateTime)(RegistrationDate));
  6529. if ((Email == null)) {
  6530. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  6531. }
  6532. else {
  6533. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Email));
  6534. }
  6535. if ((Phone == null)) {
  6536. throw new global::System.ArgumentNullException("Phone");
  6537. }
  6538. else {
  6539. this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Phone));
  6540. }
  6541. if ((GenderCode == null)) {
  6542. this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
  6543. }
  6544. else {
  6545. this.Adapter.InsertCommand.Parameters[7].Value = ((string)(GenderCode));
  6546. }
  6547. if ((PhotoPath == null)) {
  6548. this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
  6549. }
  6550. else {
  6551. this.Adapter.InsertCommand.Parameters[8].Value = ((string)(PhotoPath));
  6552. }
  6553. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6554. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6555. != global::System.Data.ConnectionState.Open)) {
  6556. this.Adapter.InsertCommand.Connection.Open();
  6557. }
  6558. try {
  6559. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6560. return returnValue;
  6561. }
  6562. finally {
  6563. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6564. this.Adapter.InsertCommand.Connection.Close();
  6565. }
  6566. }
  6567. }
  6568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6570. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6571. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6572. public virtual int Update(
  6573. string FirstName,
  6574. string LastName,
  6575. string Patronymic,
  6576. global::System.Nullable<global::System.DateTime> Birthday,
  6577. System.DateTime RegistrationDate,
  6578. string Email,
  6579. string Phone,
  6580. string GenderCode,
  6581. string PhotoPath,
  6582. int Original_ID,
  6583. string Original_FirstName,
  6584. string Original_LastName,
  6585. string Original_Patronymic,
  6586. global::System.Nullable<global::System.DateTime> Original_Birthday,
  6587. System.DateTime Original_RegistrationDate,
  6588. string Original_Email,
  6589. string Original_Phone,
  6590. string Original_GenderCode,
  6591. string Original_PhotoPath,
  6592. int ID) {
  6593. if ((FirstName == null)) {
  6594. throw new global::System.ArgumentNullException("FirstName");
  6595. }
  6596. else {
  6597. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(FirstName));
  6598. }
  6599. if ((LastName == null)) {
  6600. throw new global::System.ArgumentNullException("LastName");
  6601. }
  6602. else {
  6603. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(LastName));
  6604. }
  6605. if ((Patronymic == null)) {
  6606. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  6607. }
  6608. else {
  6609. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Patronymic));
  6610. }
  6611. if ((Birthday.HasValue == true)) {
  6612. this.Adapter.UpdateCommand.Parameters[3].Value = ((System.DateTime)(Birthday.Value));
  6613. }
  6614. else {
  6615. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  6616. }
  6617. this.Adapter.UpdateCommand.Parameters[4].Value = ((System.DateTime)(RegistrationDate));
  6618. if ((Email == null)) {
  6619. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  6620. }
  6621. else {
  6622. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Email));
  6623. }
  6624. if ((Phone == null)) {
  6625. throw new global::System.ArgumentNullException("Phone");
  6626. }
  6627. else {
  6628. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Phone));
  6629. }
  6630. if ((GenderCode == null)) {
  6631. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  6632. }
  6633. else {
  6634. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(GenderCode));
  6635. }
  6636. if ((PhotoPath == null)) {
  6637. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  6638. }
  6639. else {
  6640. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(PhotoPath));
  6641. }
  6642. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_ID));
  6643. if ((Original_FirstName == null)) {
  6644. throw new global::System.ArgumentNullException("Original_FirstName");
  6645. }
  6646. else {
  6647. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_FirstName));
  6648. }
  6649. if ((Original_LastName == null)) {
  6650. throw new global::System.ArgumentNullException("Original_LastName");
  6651. }
  6652. else {
  6653. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_LastName));
  6654. }
  6655. if ((Original_Patronymic == null)) {
  6656. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  6657. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  6658. }
  6659. else {
  6660. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  6661. this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_Patronymic));
  6662. }
  6663. if ((Original_Birthday.HasValue == true)) {
  6664. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
  6665. this.Adapter.UpdateCommand.Parameters[15].Value = ((System.DateTime)(Original_Birthday.Value));
  6666. }
  6667. else {
  6668. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
  6669. this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
  6670. }
  6671. this.Adapter.UpdateCommand.Parameters[16].Value = ((System.DateTime)(Original_RegistrationDate));
  6672. if ((Original_Email == null)) {
  6673. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
  6674. this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
  6675. }
  6676. else {
  6677. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
  6678. this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_Email));
  6679. }
  6680. if ((Original_Phone == null)) {
  6681. throw new global::System.ArgumentNullException("Original_Phone");
  6682. }
  6683. else {
  6684. this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_Phone));
  6685. }
  6686. if ((Original_GenderCode == null)) {
  6687. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
  6688. this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
  6689. }
  6690. else {
  6691. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
  6692. this.Adapter.UpdateCommand.Parameters[21].Value = ((string)(Original_GenderCode));
  6693. }
  6694. if ((Original_PhotoPath == null)) {
  6695. this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1));
  6696. this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value;
  6697. }
  6698. else {
  6699. this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0));
  6700. this.Adapter.UpdateCommand.Parameters[23].Value = ((string)(Original_PhotoPath));
  6701. }
  6702. this.Adapter.UpdateCommand.Parameters[24].Value = ((int)(ID));
  6703. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6704. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6705. != global::System.Data.ConnectionState.Open)) {
  6706. this.Adapter.UpdateCommand.Connection.Open();
  6707. }
  6708. try {
  6709. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6710. return returnValue;
  6711. }
  6712. finally {
  6713. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6714. this.Adapter.UpdateCommand.Connection.Close();
  6715. }
  6716. }
  6717. }
  6718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6719. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6720. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6721. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6722. public virtual int Update(
  6723. string FirstName,
  6724. string LastName,
  6725. string Patronymic,
  6726. global::System.Nullable<global::System.DateTime> Birthday,
  6727. System.DateTime RegistrationDate,
  6728. string Email,
  6729. string Phone,
  6730. string GenderCode,
  6731. string PhotoPath,
  6732. int Original_ID,
  6733. string Original_FirstName,
  6734. string Original_LastName,
  6735. string Original_Patronymic,
  6736. global::System.Nullable<global::System.DateTime> Original_Birthday,
  6737. System.DateTime Original_RegistrationDate,
  6738. string Original_Email,
  6739. string Original_Phone,
  6740. string Original_GenderCode,
  6741. string Original_PhotoPath) {
  6742. 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);
  6743. }
  6744. }
  6745. /// <summary>
  6746. ///Represents the connection and commands used to retrieve and save data.
  6747. ///</summary>
  6748. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6749. [global::System.ComponentModel.ToolboxItem(true)]
  6750. [global::System.ComponentModel.DataObjectAttribute(true)]
  6751. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6752. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6753. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6754. public partial class ClientServiceTableAdapter : global::System.ComponentModel.Component {
  6755. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6756. private global::System.Data.SqlClient.SqlConnection _connection;
  6757. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6758. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6759. private bool _clearBeforeFill;
  6760. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6761. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6762. public ClientServiceTableAdapter() {
  6763. this.ClearBeforeFill = true;
  6764. }
  6765. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6766. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6767. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6768. get {
  6769. if ((this._adapter == null)) {
  6770. this.InitAdapter();
  6771. }
  6772. return this._adapter;
  6773. }
  6774. }
  6775. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6776. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6777. internal global::System.Data.SqlClient.SqlConnection Connection {
  6778. get {
  6779. if ((this._connection == null)) {
  6780. this.InitConnection();
  6781. }
  6782. return this._connection;
  6783. }
  6784. set {
  6785. this._connection = value;
  6786. if ((this.Adapter.InsertCommand != null)) {
  6787. this.Adapter.InsertCommand.Connection = value;
  6788. }
  6789. if ((this.Adapter.DeleteCommand != null)) {
  6790. this.Adapter.DeleteCommand.Connection = value;
  6791. }
  6792. if ((this.Adapter.UpdateCommand != null)) {
  6793. this.Adapter.UpdateCommand.Connection = value;
  6794. }
  6795. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6796. if ((this.CommandCollection[i] != null)) {
  6797. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6798. }
  6799. }
  6800. }
  6801. }
  6802. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6803. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6804. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6805. get {
  6806. return this._transaction;
  6807. }
  6808. set {
  6809. this._transaction = value;
  6810. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6811. this.CommandCollection[i].Transaction = this._transaction;
  6812. }
  6813. if (((this.Adapter != null)
  6814. && (this.Adapter.DeleteCommand != null))) {
  6815. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6816. }
  6817. if (((this.Adapter != null)
  6818. && (this.Adapter.InsertCommand != null))) {
  6819. this.Adapter.InsertCommand.Transaction = this._transaction;
  6820. }
  6821. if (((this.Adapter != null)
  6822. && (this.Adapter.UpdateCommand != null))) {
  6823. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6824. }
  6825. }
  6826. }
  6827. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6828. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6829. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6830. get {
  6831. if ((this._commandCollection == null)) {
  6832. this.InitCommandCollection();
  6833. }
  6834. return this._commandCollection;
  6835. }
  6836. }
  6837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6839. public bool ClearBeforeFill {
  6840. get {
  6841. return this._clearBeforeFill;
  6842. }
  6843. set {
  6844. this._clearBeforeFill = value;
  6845. }
  6846. }
  6847. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6848. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6849. private void InitAdapter() {
  6850. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6851. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6852. tableMapping.SourceTable = "Table";
  6853. tableMapping.DataSetTable = "ClientService";
  6854. tableMapping.ColumnMappings.Add("ID", "ID");
  6855. tableMapping.ColumnMappings.Add("ClientID", "ClientID");
  6856. tableMapping.ColumnMappings.Add("ServiceID", "ServiceID");
  6857. tableMapping.ColumnMappings.Add("StartTime", "StartTime");
  6858. tableMapping.ColumnMappings.Add("Comment", "Comment");
  6859. this._adapter.TableMappings.Add(tableMapping);
  6860. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6861. this._adapter.DeleteCommand.Connection = this.Connection;
  6862. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ClientService] WHERE (([ID] = @Original_ID) AND ([ClientID] = " +
  6863. "@Original_ClientID) AND ([ServiceID] = @Original_ServiceID) AND ([StartTime] = @" +
  6864. "Original_StartTime))";
  6865. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6866. 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, "", "", ""));
  6867. 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, "", "", ""));
  6868. 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, "", "", ""));
  6869. 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, "", "", ""));
  6870. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6871. this._adapter.InsertCommand.Connection = this.Connection;
  6872. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ClientService] ([ClientID], [ServiceID], [StartTime], [Comment" +
  6873. "]) VALUES (@ClientID, @ServiceID, @StartTime, @Comment);\r\nSELECT ID, ClientID, S" +
  6874. "erviceID, StartTime, Comment FROM ClientService WHERE (ID = SCOPE_IDENTITY())";
  6875. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6876. 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, "", "", ""));
  6877. 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, "", "", ""));
  6878. 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, "", "", ""));
  6879. 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, "", "", ""));
  6880. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6881. this._adapter.UpdateCommand.Connection = this.Connection;
  6882. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ClientService] SET [ClientID] = @ClientID, [ServiceID] = @ServiceID, [StartTime] = @StartTime, [Comment] = @Comment WHERE (([ID] = @Original_ID) AND ([ClientID] = @Original_ClientID) AND ([ServiceID] = @Original_ServiceID) AND ([StartTime] = @Original_StartTime));
  6883. SELECT ID, ClientID, ServiceID, StartTime, Comment FROM ClientService WHERE (ID = @ID)";
  6884. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6885. 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, "", "", ""));
  6886. 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, "", "", ""));
  6887. 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, "", "", ""));
  6888. 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, "", "", ""));
  6889. 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, "", "", ""));
  6890. 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, "", "", ""));
  6891. 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, "", "", ""));
  6892. 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, "", "", ""));
  6893. 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, "", "", ""));
  6894. }
  6895. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6896. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6897. private void InitConnection() {
  6898. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6899. this._connection.ConnectionString = global::Бархотные_брови.Properties.Settings.Default.DB_Кузьменко_V2ConnectionString;
  6900. }
  6901. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6902. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6903. private void InitCommandCollection() {
  6904. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6905. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6906. this._commandCollection[0].Connection = this.Connection;
  6907. this._commandCollection[0].CommandText = "SELECT ID, ClientID, ServiceID, StartTime, Comment FROM dbo.ClientService";
  6908. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6909. }
  6910. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6911. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6912. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6913. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6914. public virtual int Fill(DB_Кузьменко_V2DataSet.ClientServiceDataTable dataTable) {
  6915. this.Adapter.SelectCommand = this.CommandCollection[0];
  6916. if ((this.ClearBeforeFill == true)) {
  6917. dataTable.Clear();
  6918. }
  6919. int returnValue = this.Adapter.Fill(dataTable);
  6920. return returnValue;
  6921. }
  6922. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6923. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6924. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6925. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6926. public virtual DB_Кузьменко_V2DataSet.ClientServiceDataTable GetData() {
  6927. this.Adapter.SelectCommand = this.CommandCollection[0];
  6928. DB_Кузьменко_V2DataSet.ClientServiceDataTable dataTable = new DB_Кузьменко_V2DataSet.ClientServiceDataTable();
  6929. this.Adapter.Fill(dataTable);
  6930. return dataTable;
  6931. }
  6932. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6933. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6934. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6935. public virtual int Update(DB_Кузьменко_V2DataSet.ClientServiceDataTable dataTable) {
  6936. return this.Adapter.Update(dataTable);
  6937. }
  6938. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6939. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6940. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6941. public virtual int Update(DB_Кузьменко_V2DataSet dataSet) {
  6942. return this.Adapter.Update(dataSet, "ClientService");
  6943. }
  6944. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6945. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6946. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6947. public virtual int Update(global::System.Data.DataRow dataRow) {
  6948. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6949. dataRow});
  6950. }
  6951. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6952. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6953. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6954. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6955. return this.Adapter.Update(dataRows);
  6956. }
  6957. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6958. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6959. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6960. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6961. public virtual int Delete(int Original_ID, int Original_ClientID, int Original_ServiceID, System.DateTime Original_StartTime) {
  6962. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  6963. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ClientID));
  6964. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_ServiceID));
  6965. this.Adapter.DeleteCommand.Parameters[3].Value = ((System.DateTime)(Original_StartTime));
  6966. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6967. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6968. != global::System.Data.ConnectionState.Open)) {
  6969. this.Adapter.DeleteCommand.Connection.Open();
  6970. }
  6971. try {
  6972. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6973. return returnValue;
  6974. }
  6975. finally {
  6976. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6977. this.Adapter.DeleteCommand.Connection.Close();
  6978. }
  6979. }
  6980. }
  6981. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6982. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6983. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6984. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6985. public virtual int Insert(int ClientID, int ServiceID, System.DateTime StartTime, string Comment) {
  6986. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ClientID));
  6987. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(ServiceID));
  6988. this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(StartTime));
  6989. if ((Comment == null)) {
  6990. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  6991. }
  6992. else {
  6993. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Comment));
  6994. }
  6995. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6996. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6997. != global::System.Data.ConnectionState.Open)) {
  6998. this.Adapter.InsertCommand.Connection.Open();
  6999. }
  7000. try {
  7001. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7002. return returnValue;
  7003. }
  7004. finally {
  7005. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7006. this.Adapter.InsertCommand.Connection.Close();
  7007. }
  7008. }
  7009. }
  7010. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7011. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7012. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7013. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7014. 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) {
  7015. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ClientID));
  7016. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(ServiceID));
  7017. this.Adapter.UpdateCommand.Parameters[2].Value = ((System.DateTime)(StartTime));
  7018. if ((Comment == null)) {
  7019. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  7020. }
  7021. else {
  7022. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Comment));
  7023. }
  7024. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_ID));
  7025. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_ClientID));
  7026. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ServiceID));
  7027. this.Adapter.UpdateCommand.Parameters[7].Value = ((System.DateTime)(Original_StartTime));
  7028. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(ID));
  7029. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7030. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7031. != global::System.Data.ConnectionState.Open)) {
  7032. this.Adapter.UpdateCommand.Connection.Open();
  7033. }
  7034. try {
  7035. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7036. return returnValue;
  7037. }
  7038. finally {
  7039. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7040. this.Adapter.UpdateCommand.Connection.Close();
  7041. }
  7042. }
  7043. }
  7044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7046. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7047. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7048. 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) {
  7049. return this.Update(ClientID, ServiceID, StartTime, Comment, Original_ID, Original_ClientID, Original_ServiceID, Original_StartTime, Original_ID);
  7050. }
  7051. }
  7052. /// <summary>
  7053. ///Represents the connection and commands used to retrieve and save data.
  7054. ///</summary>
  7055. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7056. [global::System.ComponentModel.ToolboxItem(true)]
  7057. [global::System.ComponentModel.DataObjectAttribute(true)]
  7058. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7059. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7060. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7061. public partial class DocumentByServiceTableAdapter : global::System.ComponentModel.Component {
  7062. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7063. private global::System.Data.SqlClient.SqlConnection _connection;
  7064. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7065. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7066. private bool _clearBeforeFill;
  7067. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7068. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7069. public DocumentByServiceTableAdapter() {
  7070. this.ClearBeforeFill = true;
  7071. }
  7072. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7073. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7074. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7075. get {
  7076. if ((this._adapter == null)) {
  7077. this.InitAdapter();
  7078. }
  7079. return this._adapter;
  7080. }
  7081. }
  7082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7084. internal global::System.Data.SqlClient.SqlConnection Connection {
  7085. get {
  7086. if ((this._connection == null)) {
  7087. this.InitConnection();
  7088. }
  7089. return this._connection;
  7090. }
  7091. set {
  7092. this._connection = value;
  7093. if ((this.Adapter.InsertCommand != null)) {
  7094. this.Adapter.InsertCommand.Connection = value;
  7095. }
  7096. if ((this.Adapter.DeleteCommand != null)) {
  7097. this.Adapter.DeleteCommand.Connection = value;
  7098. }
  7099. if ((this.Adapter.UpdateCommand != null)) {
  7100. this.Adapter.UpdateCommand.Connection = value;
  7101. }
  7102. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7103. if ((this.CommandCollection[i] != null)) {
  7104. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7105. }
  7106. }
  7107. }
  7108. }
  7109. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7110. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7111. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7112. get {
  7113. return this._transaction;
  7114. }
  7115. set {
  7116. this._transaction = value;
  7117. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7118. this.CommandCollection[i].Transaction = this._transaction;
  7119. }
  7120. if (((this.Adapter != null)
  7121. && (this.Adapter.DeleteCommand != null))) {
  7122. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7123. }
  7124. if (((this.Adapter != null)
  7125. && (this.Adapter.InsertCommand != null))) {
  7126. this.Adapter.InsertCommand.Transaction = this._transaction;
  7127. }
  7128. if (((this.Adapter != null)
  7129. && (this.Adapter.UpdateCommand != null))) {
  7130. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7131. }
  7132. }
  7133. }
  7134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7135. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7136. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7137. get {
  7138. if ((this._commandCollection == null)) {
  7139. this.InitCommandCollection();
  7140. }
  7141. return this._commandCollection;
  7142. }
  7143. }
  7144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7146. public bool ClearBeforeFill {
  7147. get {
  7148. return this._clearBeforeFill;
  7149. }
  7150. set {
  7151. this._clearBeforeFill = value;
  7152. }
  7153. }
  7154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7155. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7156. private void InitAdapter() {
  7157. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7158. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7159. tableMapping.SourceTable = "Table";
  7160. tableMapping.DataSetTable = "DocumentByService";
  7161. tableMapping.ColumnMappings.Add("ID", "ID");
  7162. tableMapping.ColumnMappings.Add("ClientServiceID", "ClientServiceID");
  7163. tableMapping.ColumnMappings.Add("DocumentPath", "DocumentPath");
  7164. this._adapter.TableMappings.Add(tableMapping);
  7165. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7166. this._adapter.DeleteCommand.Connection = this.Connection;
  7167. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[DocumentByService] WHERE (([ID] = @Original_ID) AND ([ClientSe" +
  7168. "rviceID] = @Original_ClientServiceID) AND ([DocumentPath] = @Original_DocumentPa" +
  7169. "th))";
  7170. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7171. 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, "", "", ""));
  7172. 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, "", "", ""));
  7173. 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, "", "", ""));
  7174. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7175. this._adapter.InsertCommand.Connection = this.Connection;
  7176. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[DocumentByService] ([ClientServiceID], [DocumentPath]) VALUES " +
  7177. "(@ClientServiceID, @DocumentPath);\r\nSELECT ID, ClientServiceID, DocumentPath FRO" +
  7178. "M DocumentByService WHERE (ID = SCOPE_IDENTITY())";
  7179. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7180. 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, "", "", ""));
  7181. 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, "", "", ""));
  7182. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7183. this._adapter.UpdateCommand.Connection = this.Connection;
  7184. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[DocumentByService] SET [ClientServiceID] = @ClientServiceID, [DocumentPath] = @DocumentPath WHERE (([ID] = @Original_ID) AND ([ClientServiceID] = @Original_ClientServiceID) AND ([DocumentPath] = @Original_DocumentPath));
  7185. SELECT ID, ClientServiceID, DocumentPath FROM DocumentByService WHERE (ID = @ID)";
  7186. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7187. 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, "", "", ""));
  7188. 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, "", "", ""));
  7189. 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, "", "", ""));
  7190. 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, "", "", ""));
  7191. 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, "", "", ""));
  7192. 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, "", "", ""));
  7193. }
  7194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7196. private void InitConnection() {
  7197. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7198. this._connection.ConnectionString = global::Бархотные_брови.Properties.Settings.Default.DB_Кузьменко_V2ConnectionString;
  7199. }
  7200. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7201. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7202. private void InitCommandCollection() {
  7203. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7204. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7205. this._commandCollection[0].Connection = this.Connection;
  7206. this._commandCollection[0].CommandText = "SELECT ID, ClientServiceID, DocumentPath FROM dbo.DocumentByService";
  7207. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7208. }
  7209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7210. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7211. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7212. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7213. public virtual int Fill(DB_Кузьменко_V2DataSet.DocumentByServiceDataTable dataTable) {
  7214. this.Adapter.SelectCommand = this.CommandCollection[0];
  7215. if ((this.ClearBeforeFill == true)) {
  7216. dataTable.Clear();
  7217. }
  7218. int returnValue = this.Adapter.Fill(dataTable);
  7219. return returnValue;
  7220. }
  7221. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7222. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7223. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7224. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7225. public virtual DB_Кузьменко_V2DataSet.DocumentByServiceDataTable GetData() {
  7226. this.Adapter.SelectCommand = this.CommandCollection[0];
  7227. DB_Кузьменко_V2DataSet.DocumentByServiceDataTable dataTable = new DB_Кузьменко_V2DataSet.DocumentByServiceDataTable();
  7228. this.Adapter.Fill(dataTable);
  7229. return dataTable;
  7230. }
  7231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7233. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7234. public virtual int Update(DB_Кузьменко_V2DataSet.DocumentByServiceDataTable dataTable) {
  7235. return this.Adapter.Update(dataTable);
  7236. }
  7237. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7238. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7239. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7240. public virtual int Update(DB_Кузьменко_V2DataSet dataSet) {
  7241. return this.Adapter.Update(dataSet, "DocumentByService");
  7242. }
  7243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7245. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7246. public virtual int Update(global::System.Data.DataRow dataRow) {
  7247. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7248. dataRow});
  7249. }
  7250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7252. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7253. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7254. return this.Adapter.Update(dataRows);
  7255. }
  7256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7258. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7259. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7260. public virtual int Delete(int Original_ID, int Original_ClientServiceID, string Original_DocumentPath) {
  7261. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  7262. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ClientServiceID));
  7263. if ((Original_DocumentPath == null)) {
  7264. throw new global::System.ArgumentNullException("Original_DocumentPath");
  7265. }
  7266. else {
  7267. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_DocumentPath));
  7268. }
  7269. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7270. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7271. != global::System.Data.ConnectionState.Open)) {
  7272. this.Adapter.DeleteCommand.Connection.Open();
  7273. }
  7274. try {
  7275. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7276. return returnValue;
  7277. }
  7278. finally {
  7279. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7280. this.Adapter.DeleteCommand.Connection.Close();
  7281. }
  7282. }
  7283. }
  7284. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7285. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7286. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7287. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7288. public virtual int Insert(int ClientServiceID, string DocumentPath) {
  7289. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ClientServiceID));
  7290. if ((DocumentPath == null)) {
  7291. throw new global::System.ArgumentNullException("DocumentPath");
  7292. }
  7293. else {
  7294. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(DocumentPath));
  7295. }
  7296. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7297. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7298. != global::System.Data.ConnectionState.Open)) {
  7299. this.Adapter.InsertCommand.Connection.Open();
  7300. }
  7301. try {
  7302. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7303. return returnValue;
  7304. }
  7305. finally {
  7306. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7307. this.Adapter.InsertCommand.Connection.Close();
  7308. }
  7309. }
  7310. }
  7311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7312. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7313. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7314. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7315. public virtual int Update(int ClientServiceID, string DocumentPath, int Original_ID, int Original_ClientServiceID, string Original_DocumentPath, int ID) {
  7316. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ClientServiceID));
  7317. if ((DocumentPath == null)) {
  7318. throw new global::System.ArgumentNullException("DocumentPath");
  7319. }
  7320. else {
  7321. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(DocumentPath));
  7322. }
  7323. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  7324. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ClientServiceID));
  7325. if ((Original_DocumentPath == null)) {
  7326. throw new global::System.ArgumentNullException("Original_DocumentPath");
  7327. }
  7328. else {
  7329. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_DocumentPath));
  7330. }
  7331. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID));
  7332. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7333. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7334. != global::System.Data.ConnectionState.Open)) {
  7335. this.Adapter.UpdateCommand.Connection.Open();
  7336. }
  7337. try {
  7338. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7339. return returnValue;
  7340. }
  7341. finally {
  7342. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7343. this.Adapter.UpdateCommand.Connection.Close();
  7344. }
  7345. }
  7346. }
  7347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7349. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7350. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7351. public virtual int Update(int ClientServiceID, string DocumentPath, int Original_ID, int Original_ClientServiceID, string Original_DocumentPath) {
  7352. return this.Update(ClientServiceID, DocumentPath, Original_ID, Original_ClientServiceID, Original_DocumentPath, Original_ID);
  7353. }
  7354. }
  7355. /// <summary>
  7356. ///Represents the connection and commands used to retrieve and save data.
  7357. ///</summary>
  7358. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7359. [global::System.ComponentModel.ToolboxItem(true)]
  7360. [global::System.ComponentModel.DataObjectAttribute(true)]
  7361. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7362. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7363. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7364. public partial class GenderTableAdapter : global::System.ComponentModel.Component {
  7365. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7366. private global::System.Data.SqlClient.SqlConnection _connection;
  7367. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7368. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7369. private bool _clearBeforeFill;
  7370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7371. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7372. public GenderTableAdapter() {
  7373. this.ClearBeforeFill = true;
  7374. }
  7375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7377. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7378. get {
  7379. if ((this._adapter == null)) {
  7380. this.InitAdapter();
  7381. }
  7382. return this._adapter;
  7383. }
  7384. }
  7385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7386. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7387. internal global::System.Data.SqlClient.SqlConnection Connection {
  7388. get {
  7389. if ((this._connection == null)) {
  7390. this.InitConnection();
  7391. }
  7392. return this._connection;
  7393. }
  7394. set {
  7395. this._connection = value;
  7396. if ((this.Adapter.InsertCommand != null)) {
  7397. this.Adapter.InsertCommand.Connection = value;
  7398. }
  7399. if ((this.Adapter.DeleteCommand != null)) {
  7400. this.Adapter.DeleteCommand.Connection = value;
  7401. }
  7402. if ((this.Adapter.UpdateCommand != null)) {
  7403. this.Adapter.UpdateCommand.Connection = value;
  7404. }
  7405. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7406. if ((this.CommandCollection[i] != null)) {
  7407. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7408. }
  7409. }
  7410. }
  7411. }
  7412. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7413. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7414. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7415. get {
  7416. return this._transaction;
  7417. }
  7418. set {
  7419. this._transaction = value;
  7420. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7421. this.CommandCollection[i].Transaction = this._transaction;
  7422. }
  7423. if (((this.Adapter != null)
  7424. && (this.Adapter.DeleteCommand != null))) {
  7425. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7426. }
  7427. if (((this.Adapter != null)
  7428. && (this.Adapter.InsertCommand != null))) {
  7429. this.Adapter.InsertCommand.Transaction = this._transaction;
  7430. }
  7431. if (((this.Adapter != null)
  7432. && (this.Adapter.UpdateCommand != null))) {
  7433. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7434. }
  7435. }
  7436. }
  7437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7438. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7439. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7440. get {
  7441. if ((this._commandCollection == null)) {
  7442. this.InitCommandCollection();
  7443. }
  7444. return this._commandCollection;
  7445. }
  7446. }
  7447. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7448. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7449. public bool ClearBeforeFill {
  7450. get {
  7451. return this._clearBeforeFill;
  7452. }
  7453. set {
  7454. this._clearBeforeFill = value;
  7455. }
  7456. }
  7457. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7458. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7459. private void InitAdapter() {
  7460. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7461. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7462. tableMapping.SourceTable = "Table";
  7463. tableMapping.DataSetTable = "Gender";
  7464. tableMapping.ColumnMappings.Add("Code", "Code");
  7465. tableMapping.ColumnMappings.Add("Name", "Name");
  7466. this._adapter.TableMappings.Add(tableMapping);
  7467. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7468. this._adapter.DeleteCommand.Connection = this.Connection;
  7469. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Gender] WHERE (([Code] = @Original_Code) AND ((@IsNull_Name = " +
  7470. "1 AND [Name] IS NULL) OR ([Name] = @Original_Name)))";
  7471. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7472. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Code", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7473. 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, "", "", ""));
  7474. 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, "", "", ""));
  7475. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7476. this._adapter.InsertCommand.Connection = this.Connection;
  7477. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Gender] ([Code], [Name]) VALUES (@Code, @Name);\r\nSELECT Code, " +
  7478. "Name FROM Gender WHERE (Code = @Code)";
  7479. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7480. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Code", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7481. 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, "", "", ""));
  7482. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7483. this._adapter.UpdateCommand.Connection = this.Connection;
  7484. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Gender] SET [Code] = @Code, [Name] = @Name WHERE (([Code] = @Origin" +
  7485. "al_Code) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)" +
  7486. "));\r\nSELECT Code, Name FROM Gender WHERE (Code = @Code)";
  7487. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7488. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Code", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7489. 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, "", "", ""));
  7490. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Code", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Code", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7491. 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, "", "", ""));
  7492. 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, "", "", ""));
  7493. }
  7494. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7495. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7496. private void InitConnection() {
  7497. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7498. this._connection.ConnectionString = global::Бархотные_брови.Properties.Settings.Default.DB_Кузьменко_V2ConnectionString;
  7499. }
  7500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7502. private void InitCommandCollection() {
  7503. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7504. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7505. this._commandCollection[0].Connection = this.Connection;
  7506. this._commandCollection[0].CommandText = "SELECT Code, Name FROM dbo.Gender";
  7507. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7508. }
  7509. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7510. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7511. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7512. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7513. public virtual int Fill(DB_Кузьменко_V2DataSet.GenderDataTable dataTable) {
  7514. this.Adapter.SelectCommand = this.CommandCollection[0];
  7515. if ((this.ClearBeforeFill == true)) {
  7516. dataTable.Clear();
  7517. }
  7518. int returnValue = this.Adapter.Fill(dataTable);
  7519. return returnValue;
  7520. }
  7521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7523. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7524. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7525. public virtual DB_Кузьменко_V2DataSet.GenderDataTable GetData() {
  7526. this.Adapter.SelectCommand = this.CommandCollection[0];
  7527. DB_Кузьменко_V2DataSet.GenderDataTable dataTable = new DB_Кузьменко_V2DataSet.GenderDataTable();
  7528. this.Adapter.Fill(dataTable);
  7529. return dataTable;
  7530. }
  7531. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7532. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7533. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7534. public virtual int Update(DB_Кузьменко_V2DataSet.GenderDataTable dataTable) {
  7535. return this.Adapter.Update(dataTable);
  7536. }
  7537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7538. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7539. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7540. public virtual int Update(DB_Кузьменко_V2DataSet dataSet) {
  7541. return this.Adapter.Update(dataSet, "Gender");
  7542. }
  7543. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7544. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7545. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7546. public virtual int Update(global::System.Data.DataRow dataRow) {
  7547. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7548. dataRow});
  7549. }
  7550. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7551. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7552. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7553. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7554. return this.Adapter.Update(dataRows);
  7555. }
  7556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7557. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7558. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7559. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7560. public virtual int Delete(string Original_Code, string Original_Name) {
  7561. if ((Original_Code == null)) {
  7562. throw new global::System.ArgumentNullException("Original_Code");
  7563. }
  7564. else {
  7565. this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_Code));
  7566. }
  7567. if ((Original_Name == null)) {
  7568. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  7569. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  7570. }
  7571. else {
  7572. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  7573. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Name));
  7574. }
  7575. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7576. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7577. != global::System.Data.ConnectionState.Open)) {
  7578. this.Adapter.DeleteCommand.Connection.Open();
  7579. }
  7580. try {
  7581. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7582. return returnValue;
  7583. }
  7584. finally {
  7585. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7586. this.Adapter.DeleteCommand.Connection.Close();
  7587. }
  7588. }
  7589. }
  7590. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7591. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7592. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7593. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7594. public virtual int Insert(string Code, string Name) {
  7595. if ((Code == null)) {
  7596. throw new global::System.ArgumentNullException("Code");
  7597. }
  7598. else {
  7599. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Code));
  7600. }
  7601. if ((Name == null)) {
  7602. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  7603. }
  7604. else {
  7605. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Name));
  7606. }
  7607. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7608. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7609. != global::System.Data.ConnectionState.Open)) {
  7610. this.Adapter.InsertCommand.Connection.Open();
  7611. }
  7612. try {
  7613. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7614. return returnValue;
  7615. }
  7616. finally {
  7617. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7618. this.Adapter.InsertCommand.Connection.Close();
  7619. }
  7620. }
  7621. }
  7622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7623. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7624. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7625. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7626. public virtual int Update(string Code, string Name, string Original_Code, string Original_Name) {
  7627. if ((Code == null)) {
  7628. throw new global::System.ArgumentNullException("Code");
  7629. }
  7630. else {
  7631. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Code));
  7632. }
  7633. if ((Name == null)) {
  7634. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  7635. }
  7636. else {
  7637. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Name));
  7638. }
  7639. if ((Original_Code == null)) {
  7640. throw new global::System.ArgumentNullException("Original_Code");
  7641. }
  7642. else {
  7643. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Original_Code));
  7644. }
  7645. if ((Original_Name == null)) {
  7646. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  7647. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  7648. }
  7649. else {
  7650. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  7651. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Name));
  7652. }
  7653. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7654. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7655. != global::System.Data.ConnectionState.Open)) {
  7656. this.Adapter.UpdateCommand.Connection.Open();
  7657. }
  7658. try {
  7659. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7660. return returnValue;
  7661. }
  7662. finally {
  7663. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7664. this.Adapter.UpdateCommand.Connection.Close();
  7665. }
  7666. }
  7667. }
  7668. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7669. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7670. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7671. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7672. public virtual int Update(string Name, string Original_Code, string Original_Name) {
  7673. return this.Update(Original_Code, Name, Original_Code, Original_Name);
  7674. }
  7675. }
  7676. /// <summary>
  7677. ///Represents the connection and commands used to retrieve and save data.
  7678. ///</summary>
  7679. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7680. [global::System.ComponentModel.ToolboxItem(true)]
  7681. [global::System.ComponentModel.DataObjectAttribute(true)]
  7682. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7683. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7684. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7685. public partial class ManufacturerTableAdapter : global::System.ComponentModel.Component {
  7686. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7687. private global::System.Data.SqlClient.SqlConnection _connection;
  7688. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7689. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7690. private bool _clearBeforeFill;
  7691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7692. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7693. public ManufacturerTableAdapter() {
  7694. this.ClearBeforeFill = true;
  7695. }
  7696. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7697. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7698. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7699. get {
  7700. if ((this._adapter == null)) {
  7701. this.InitAdapter();
  7702. }
  7703. return this._adapter;
  7704. }
  7705. }
  7706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7708. internal global::System.Data.SqlClient.SqlConnection Connection {
  7709. get {
  7710. if ((this._connection == null)) {
  7711. this.InitConnection();
  7712. }
  7713. return this._connection;
  7714. }
  7715. set {
  7716. this._connection = value;
  7717. if ((this.Adapter.InsertCommand != null)) {
  7718. this.Adapter.InsertCommand.Connection = value;
  7719. }
  7720. if ((this.Adapter.DeleteCommand != null)) {
  7721. this.Adapter.DeleteCommand.Connection = value;
  7722. }
  7723. if ((this.Adapter.UpdateCommand != null)) {
  7724. this.Adapter.UpdateCommand.Connection = value;
  7725. }
  7726. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7727. if ((this.CommandCollection[i] != null)) {
  7728. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7729. }
  7730. }
  7731. }
  7732. }
  7733. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7734. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7735. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7736. get {
  7737. return this._transaction;
  7738. }
  7739. set {
  7740. this._transaction = value;
  7741. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7742. this.CommandCollection[i].Transaction = this._transaction;
  7743. }
  7744. if (((this.Adapter != null)
  7745. && (this.Adapter.DeleteCommand != null))) {
  7746. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7747. }
  7748. if (((this.Adapter != null)
  7749. && (this.Adapter.InsertCommand != null))) {
  7750. this.Adapter.InsertCommand.Transaction = this._transaction;
  7751. }
  7752. if (((this.Adapter != null)
  7753. && (this.Adapter.UpdateCommand != null))) {
  7754. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7755. }
  7756. }
  7757. }
  7758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7760. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7761. get {
  7762. if ((this._commandCollection == null)) {
  7763. this.InitCommandCollection();
  7764. }
  7765. return this._commandCollection;
  7766. }
  7767. }
  7768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7770. public bool ClearBeforeFill {
  7771. get {
  7772. return this._clearBeforeFill;
  7773. }
  7774. set {
  7775. this._clearBeforeFill = value;
  7776. }
  7777. }
  7778. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7779. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7780. private void InitAdapter() {
  7781. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7782. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7783. tableMapping.SourceTable = "Table";
  7784. tableMapping.DataSetTable = "Manufacturer";
  7785. tableMapping.ColumnMappings.Add("ID", "ID");
  7786. tableMapping.ColumnMappings.Add("Name", "Name");
  7787. tableMapping.ColumnMappings.Add("StartDate", "StartDate");
  7788. this._adapter.TableMappings.Add(tableMapping);
  7789. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7790. this._adapter.DeleteCommand.Connection = this.Connection;
  7791. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Manufacturer] WHERE (([ID] = @Original_ID) AND ([Name] = @Orig" +
  7792. "inal_Name) AND ((@IsNull_StartDate = 1 AND [StartDate] IS NULL) OR ([StartDate] " +
  7793. "= @Original_StartDate)))";
  7794. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7795. 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, "", "", ""));
  7796. 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, "", "", ""));
  7797. 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, "", "", ""));
  7798. 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, "", "", ""));
  7799. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7800. this._adapter.InsertCommand.Connection = this.Connection;
  7801. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Manufacturer] ([Name], [StartDate]) VALUES (@Name, @StartDate)" +
  7802. ";\r\nSELECT ID, Name, StartDate FROM Manufacturer WHERE (ID = SCOPE_IDENTITY())";
  7803. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7804. 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, "", "", ""));
  7805. 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, "", "", ""));
  7806. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7807. this._adapter.UpdateCommand.Connection = this.Connection;
  7808. 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)));
  7809. SELECT ID, Name, StartDate FROM Manufacturer WHERE (ID = @ID)";
  7810. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7811. 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, "", "", ""));
  7812. 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, "", "", ""));
  7813. 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, "", "", ""));
  7814. 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, "", "", ""));
  7815. 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, "", "", ""));
  7816. 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, "", "", ""));
  7817. 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, "", "", ""));
  7818. }
  7819. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7820. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7821. private void InitConnection() {
  7822. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7823. this._connection.ConnectionString = global::Бархотные_брови.Properties.Settings.Default.DB_Кузьменко_V2ConnectionString;
  7824. }
  7825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7826. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7827. private void InitCommandCollection() {
  7828. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7829. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7830. this._commandCollection[0].Connection = this.Connection;
  7831. this._commandCollection[0].CommandText = "SELECT ID, Name, StartDate FROM dbo.Manufacturer";
  7832. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7833. }
  7834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7835. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7836. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7837. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7838. public virtual int Fill(DB_Кузьменко_V2DataSet.ManufacturerDataTable dataTable) {
  7839. this.Adapter.SelectCommand = this.CommandCollection[0];
  7840. if ((this.ClearBeforeFill == true)) {
  7841. dataTable.Clear();
  7842. }
  7843. int returnValue = this.Adapter.Fill(dataTable);
  7844. return returnValue;
  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.Select, true)]
  7850. public virtual DB_Кузьменко_V2DataSet.ManufacturerDataTable GetData() {
  7851. this.Adapter.SelectCommand = this.CommandCollection[0];
  7852. DB_Кузьменко_V2DataSet.ManufacturerDataTable dataTable = new DB_Кузьменко_V2DataSet.ManufacturerDataTable();
  7853. this.Adapter.Fill(dataTable);
  7854. return dataTable;
  7855. }
  7856. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7857. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7858. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7859. public virtual int Update(DB_Кузьменко_V2DataSet.ManufacturerDataTable dataTable) {
  7860. return this.Adapter.Update(dataTable);
  7861. }
  7862. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7863. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7864. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7865. public virtual int Update(DB_Кузьменко_V2DataSet dataSet) {
  7866. return this.Adapter.Update(dataSet, "Manufacturer");
  7867. }
  7868. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7869. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7870. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7871. public virtual int Update(global::System.Data.DataRow dataRow) {
  7872. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7873. dataRow});
  7874. }
  7875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7876. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7877. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7878. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7879. return this.Adapter.Update(dataRows);
  7880. }
  7881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7883. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7884. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7885. public virtual int Delete(int Original_ID, string Original_Name, global::System.Nullable<global::System.DateTime> Original_StartDate) {
  7886. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  7887. if ((Original_Name == null)) {
  7888. throw new global::System.ArgumentNullException("Original_Name");
  7889. }
  7890. else {
  7891. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Name));
  7892. }
  7893. if ((Original_StartDate.HasValue == true)) {
  7894. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
  7895. this.Adapter.DeleteCommand.Parameters[3].Value = ((System.DateTime)(Original_StartDate.Value));
  7896. }
  7897. else {
  7898. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
  7899. this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
  7900. }
  7901. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7902. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7903. != global::System.Data.ConnectionState.Open)) {
  7904. this.Adapter.DeleteCommand.Connection.Open();
  7905. }
  7906. try {
  7907. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7908. return returnValue;
  7909. }
  7910. finally {
  7911. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7912. this.Adapter.DeleteCommand.Connection.Close();
  7913. }
  7914. }
  7915. }
  7916. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7917. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7918. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7919. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7920. public virtual int Insert(string Name, global::System.Nullable<global::System.DateTime> StartDate) {
  7921. if ((Name == null)) {
  7922. throw new global::System.ArgumentNullException("Name");
  7923. }
  7924. else {
  7925. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Name));
  7926. }
  7927. if ((StartDate.HasValue == true)) {
  7928. this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(StartDate.Value));
  7929. }
  7930. else {
  7931. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  7932. }
  7933. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7934. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7935. != global::System.Data.ConnectionState.Open)) {
  7936. this.Adapter.InsertCommand.Connection.Open();
  7937. }
  7938. try {
  7939. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7940. return returnValue;
  7941. }
  7942. finally {
  7943. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7944. this.Adapter.InsertCommand.Connection.Close();
  7945. }
  7946. }
  7947. }
  7948. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7949. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7950. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7951. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7952. 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) {
  7953. if ((Name == null)) {
  7954. throw new global::System.ArgumentNullException("Name");
  7955. }
  7956. else {
  7957. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Name));
  7958. }
  7959. if ((StartDate.HasValue == true)) {
  7960. this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(StartDate.Value));
  7961. }
  7962. else {
  7963. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  7964. }
  7965. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  7966. if ((Original_Name == null)) {
  7967. throw new global::System.ArgumentNullException("Original_Name");
  7968. }
  7969. else {
  7970. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Name));
  7971. }
  7972. if ((Original_StartDate.HasValue == true)) {
  7973. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  7974. this.Adapter.UpdateCommand.Parameters[5].Value = ((System.DateTime)(Original_StartDate.Value));
  7975. }
  7976. else {
  7977. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  7978. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  7979. }
  7980. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(ID));
  7981. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7982. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7983. != global::System.Data.ConnectionState.Open)) {
  7984. this.Adapter.UpdateCommand.Connection.Open();
  7985. }
  7986. try {
  7987. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7988. return returnValue;
  7989. }
  7990. finally {
  7991. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7992. this.Adapter.UpdateCommand.Connection.Close();
  7993. }
  7994. }
  7995. }
  7996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7997. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7998. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7999. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8000. 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) {
  8001. return this.Update(Name, StartDate, Original_ID, Original_Name, Original_StartDate, Original_ID);
  8002. }
  8003. }
  8004. /// <summary>
  8005. ///Represents the connection and commands used to retrieve and save data.
  8006. ///</summary>
  8007. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8008. [global::System.ComponentModel.ToolboxItem(true)]
  8009. [global::System.ComponentModel.DataObjectAttribute(true)]
  8010. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8011. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8012. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8013. public partial class ProductTableAdapter : global::System.ComponentModel.Component {
  8014. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8015. private global::System.Data.SqlClient.SqlConnection _connection;
  8016. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8017. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8018. private bool _clearBeforeFill;
  8019. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8020. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8021. public ProductTableAdapter() {
  8022. this.ClearBeforeFill = true;
  8023. }
  8024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8025. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8026. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8027. get {
  8028. if ((this._adapter == null)) {
  8029. this.InitAdapter();
  8030. }
  8031. return this._adapter;
  8032. }
  8033. }
  8034. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8035. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8036. internal global::System.Data.SqlClient.SqlConnection Connection {
  8037. get {
  8038. if ((this._connection == null)) {
  8039. this.InitConnection();
  8040. }
  8041. return this._connection;
  8042. }
  8043. set {
  8044. this._connection = value;
  8045. if ((this.Adapter.InsertCommand != null)) {
  8046. this.Adapter.InsertCommand.Connection = value;
  8047. }
  8048. if ((this.Adapter.DeleteCommand != null)) {
  8049. this.Adapter.DeleteCommand.Connection = value;
  8050. }
  8051. if ((this.Adapter.UpdateCommand != null)) {
  8052. this.Adapter.UpdateCommand.Connection = value;
  8053. }
  8054. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8055. if ((this.CommandCollection[i] != null)) {
  8056. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8057. }
  8058. }
  8059. }
  8060. }
  8061. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8062. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8063. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8064. get {
  8065. return this._transaction;
  8066. }
  8067. set {
  8068. this._transaction = value;
  8069. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8070. this.CommandCollection[i].Transaction = this._transaction;
  8071. }
  8072. if (((this.Adapter != null)
  8073. && (this.Adapter.DeleteCommand != null))) {
  8074. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8075. }
  8076. if (((this.Adapter != null)
  8077. && (this.Adapter.InsertCommand != null))) {
  8078. this.Adapter.InsertCommand.Transaction = this._transaction;
  8079. }
  8080. if (((this.Adapter != null)
  8081. && (this.Adapter.UpdateCommand != null))) {
  8082. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8083. }
  8084. }
  8085. }
  8086. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8087. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8088. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8089. get {
  8090. if ((this._commandCollection == null)) {
  8091. this.InitCommandCollection();
  8092. }
  8093. return this._commandCollection;
  8094. }
  8095. }
  8096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8097. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8098. public bool ClearBeforeFill {
  8099. get {
  8100. return this._clearBeforeFill;
  8101. }
  8102. set {
  8103. this._clearBeforeFill = value;
  8104. }
  8105. }
  8106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8108. private void InitAdapter() {
  8109. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8110. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8111. tableMapping.SourceTable = "Table";
  8112. tableMapping.DataSetTable = "Product";
  8113. tableMapping.ColumnMappings.Add("ID", "ID");
  8114. tableMapping.ColumnMappings.Add("Title", "Title");
  8115. tableMapping.ColumnMappings.Add("Cost", "Cost");
  8116. tableMapping.ColumnMappings.Add("Description", "Description");
  8117. tableMapping.ColumnMappings.Add("MainImagePath", "MainImagePath");
  8118. tableMapping.ColumnMappings.Add("IsActive", "IsActive");
  8119. tableMapping.ColumnMappings.Add("ManufacturerID", "ManufacturerID");
  8120. this._adapter.TableMappings.Add(tableMapping);
  8121. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8122. this._adapter.DeleteCommand.Connection = this.Connection;
  8123. 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)))";
  8124. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8125. 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, "", "", ""));
  8126. 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, "", "", ""));
  8127. 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, "", "", ""));
  8128. 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, "", "", ""));
  8129. 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, "", "", ""));
  8130. 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, "", "", ""));
  8131. 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, "", "", ""));
  8132. 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, "", "", ""));
  8133. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8134. this._adapter.InsertCommand.Connection = this.Connection;
  8135. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Product] ([Title], [Cost], [Description], [MainImagePath], [IsActive], [ManufacturerID]) VALUES (@Title, @Cost, @Description, @MainImagePath, @IsActive, @ManufacturerID);
  8136. SELECT ID, Title, Cost, Description, MainImagePath, IsActive, ManufacturerID FROM Product WHERE (ID = SCOPE_IDENTITY())";
  8137. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8138. 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, "", "", ""));
  8139. 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, "", "", ""));
  8140. 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, "", "", ""));
  8141. 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, "", "", ""));
  8142. 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, "", "", ""));
  8143. 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, "", "", ""));
  8144. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8145. this._adapter.UpdateCommand.Connection = this.Connection;
  8146. 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)));
  8147. SELECT ID, Title, Cost, Description, MainImagePath, IsActive, ManufacturerID FROM Product WHERE (ID = @ID)";
  8148. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8149. 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, "", "", ""));
  8150. 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, "", "", ""));
  8151. 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, "", "", ""));
  8152. 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, "", "", ""));
  8153. 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, "", "", ""));
  8154. 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, "", "", ""));
  8155. 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, "", "", ""));
  8156. 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, "", "", ""));
  8157. 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, "", "", ""));
  8158. 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, "", "", ""));
  8159. 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, "", "", ""));
  8160. 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, "", "", ""));
  8161. 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, "", "", ""));
  8162. 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, "", "", ""));
  8163. 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, "", "", ""));
  8164. }
  8165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8167. private void InitConnection() {
  8168. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8169. this._connection.ConnectionString = global::Бархотные_брови.Properties.Settings.Default.DB_Кузьменко_V2ConnectionString;
  8170. }
  8171. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8172. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8173. private void InitCommandCollection() {
  8174. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8175. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8176. this._commandCollection[0].Connection = this.Connection;
  8177. this._commandCollection[0].CommandText = "SELECT ID, Title, Cost, Description, MainImagePath, IsActive, ManufacturerID FROM" +
  8178. " dbo.Product";
  8179. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8180. }
  8181. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8182. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8183. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8184. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8185. public virtual int Fill(DB_Кузьменко_V2DataSet.ProductDataTable dataTable) {
  8186. this.Adapter.SelectCommand = this.CommandCollection[0];
  8187. if ((this.ClearBeforeFill == true)) {
  8188. dataTable.Clear();
  8189. }
  8190. int returnValue = this.Adapter.Fill(dataTable);
  8191. return returnValue;
  8192. }
  8193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8194. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8195. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8196. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8197. public virtual DB_Кузьменко_V2DataSet.ProductDataTable GetData() {
  8198. this.Adapter.SelectCommand = this.CommandCollection[0];
  8199. DB_Кузьменко_V2DataSet.ProductDataTable dataTable = new DB_Кузьменко_V2DataSet.ProductDataTable();
  8200. this.Adapter.Fill(dataTable);
  8201. return dataTable;
  8202. }
  8203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8204. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8205. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8206. public virtual int Update(DB_Кузьменко_V2DataSet.ProductDataTable dataTable) {
  8207. return this.Adapter.Update(dataTable);
  8208. }
  8209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8210. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8211. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8212. public virtual int Update(DB_Кузьменко_V2DataSet dataSet) {
  8213. return this.Adapter.Update(dataSet, "Product");
  8214. }
  8215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8216. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8217. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8218. public virtual int Update(global::System.Data.DataRow dataRow) {
  8219. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8220. dataRow});
  8221. }
  8222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8224. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8225. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8226. return this.Adapter.Update(dataRows);
  8227. }
  8228. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8229. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8230. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8231. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8232. 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) {
  8233. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  8234. if ((Original_Title == null)) {
  8235. throw new global::System.ArgumentNullException("Original_Title");
  8236. }
  8237. else {
  8238. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Title));
  8239. }
  8240. this.Adapter.DeleteCommand.Parameters[2].Value = ((decimal)(Original_Cost));
  8241. if ((Original_MainImagePath == null)) {
  8242. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  8243. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  8244. }
  8245. else {
  8246. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  8247. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_MainImagePath));
  8248. }
  8249. this.Adapter.DeleteCommand.Parameters[5].Value = ((bool)(Original_IsActive));
  8250. if ((Original_ManufacturerID.HasValue == true)) {
  8251. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0));
  8252. this.Adapter.DeleteCommand.Parameters[7].Value = ((int)(Original_ManufacturerID.Value));
  8253. }
  8254. else {
  8255. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1));
  8256. this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value;
  8257. }
  8258. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8259. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8260. != global::System.Data.ConnectionState.Open)) {
  8261. this.Adapter.DeleteCommand.Connection.Open();
  8262. }
  8263. try {
  8264. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8265. return returnValue;
  8266. }
  8267. finally {
  8268. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8269. this.Adapter.DeleteCommand.Connection.Close();
  8270. }
  8271. }
  8272. }
  8273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8274. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8275. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8276. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8277. public virtual int Insert(string Title, decimal Cost, string Description, string MainImagePath, bool IsActive, global::System.Nullable<int> ManufacturerID) {
  8278. if ((Title == null)) {
  8279. throw new global::System.ArgumentNullException("Title");
  8280. }
  8281. else {
  8282. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  8283. }
  8284. this.Adapter.InsertCommand.Parameters[1].Value = ((decimal)(Cost));
  8285. if ((Description == null)) {
  8286. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  8287. }
  8288. else {
  8289. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Description));
  8290. }
  8291. if ((MainImagePath == null)) {
  8292. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  8293. }
  8294. else {
  8295. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(MainImagePath));
  8296. }
  8297. this.Adapter.InsertCommand.Parameters[4].Value = ((bool)(IsActive));
  8298. if ((ManufacturerID.HasValue == true)) {
  8299. this.Adapter.InsertCommand.Parameters[5].Value = ((int)(ManufacturerID.Value));
  8300. }
  8301. else {
  8302. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  8303. }
  8304. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8305. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8306. != global::System.Data.ConnectionState.Open)) {
  8307. this.Adapter.InsertCommand.Connection.Open();
  8308. }
  8309. try {
  8310. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8311. return returnValue;
  8312. }
  8313. finally {
  8314. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8315. this.Adapter.InsertCommand.Connection.Close();
  8316. }
  8317. }
  8318. }
  8319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8320. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8321. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8322. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8323. 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) {
  8324. if ((Title == null)) {
  8325. throw new global::System.ArgumentNullException("Title");
  8326. }
  8327. else {
  8328. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  8329. }
  8330. this.Adapter.UpdateCommand.Parameters[1].Value = ((decimal)(Cost));
  8331. if ((Description == null)) {
  8332. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  8333. }
  8334. else {
  8335. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Description));
  8336. }
  8337. if ((MainImagePath == null)) {
  8338. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  8339. }
  8340. else {
  8341. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(MainImagePath));
  8342. }
  8343. this.Adapter.UpdateCommand.Parameters[4].Value = ((bool)(IsActive));
  8344. if ((ManufacturerID.HasValue == true)) {
  8345. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ManufacturerID.Value));
  8346. }
  8347. else {
  8348. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  8349. }
  8350. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ID));
  8351. if ((Original_Title == null)) {
  8352. throw new global::System.ArgumentNullException("Original_Title");
  8353. }
  8354. else {
  8355. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Title));
  8356. }
  8357. this.Adapter.UpdateCommand.Parameters[8].Value = ((decimal)(Original_Cost));
  8358. if ((Original_MainImagePath == null)) {
  8359. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  8360. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  8361. }
  8362. else {
  8363. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  8364. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_MainImagePath));
  8365. }
  8366. this.Adapter.UpdateCommand.Parameters[11].Value = ((bool)(Original_IsActive));
  8367. if ((Original_ManufacturerID.HasValue == true)) {
  8368. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  8369. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Original_ManufacturerID.Value));
  8370. }
  8371. else {
  8372. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  8373. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  8374. }
  8375. this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(ID));
  8376. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8377. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8378. != global::System.Data.ConnectionState.Open)) {
  8379. this.Adapter.UpdateCommand.Connection.Open();
  8380. }
  8381. try {
  8382. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8383. return returnValue;
  8384. }
  8385. finally {
  8386. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8387. this.Adapter.UpdateCommand.Connection.Close();
  8388. }
  8389. }
  8390. }
  8391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8392. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8393. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8394. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8395. 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) {
  8396. return this.Update(Title, Cost, Description, MainImagePath, IsActive, ManufacturerID, Original_ID, Original_Title, Original_Cost, Original_MainImagePath, Original_IsActive, Original_ManufacturerID, Original_ID);
  8397. }
  8398. }
  8399. /// <summary>
  8400. ///Represents the connection and commands used to retrieve and save data.
  8401. ///</summary>
  8402. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8403. [global::System.ComponentModel.ToolboxItem(true)]
  8404. [global::System.ComponentModel.DataObjectAttribute(true)]
  8405. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8406. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8407. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8408. public partial class ProductPhotoTableAdapter : global::System.ComponentModel.Component {
  8409. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8410. private global::System.Data.SqlClient.SqlConnection _connection;
  8411. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8412. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8413. private bool _clearBeforeFill;
  8414. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8415. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8416. public ProductPhotoTableAdapter() {
  8417. this.ClearBeforeFill = true;
  8418. }
  8419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8421. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8422. get {
  8423. if ((this._adapter == null)) {
  8424. this.InitAdapter();
  8425. }
  8426. return this._adapter;
  8427. }
  8428. }
  8429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8431. internal global::System.Data.SqlClient.SqlConnection Connection {
  8432. get {
  8433. if ((this._connection == null)) {
  8434. this.InitConnection();
  8435. }
  8436. return this._connection;
  8437. }
  8438. set {
  8439. this._connection = value;
  8440. if ((this.Adapter.InsertCommand != null)) {
  8441. this.Adapter.InsertCommand.Connection = value;
  8442. }
  8443. if ((this.Adapter.DeleteCommand != null)) {
  8444. this.Adapter.DeleteCommand.Connection = value;
  8445. }
  8446. if ((this.Adapter.UpdateCommand != null)) {
  8447. this.Adapter.UpdateCommand.Connection = value;
  8448. }
  8449. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8450. if ((this.CommandCollection[i] != null)) {
  8451. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8452. }
  8453. }
  8454. }
  8455. }
  8456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8457. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8458. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8459. get {
  8460. return this._transaction;
  8461. }
  8462. set {
  8463. this._transaction = value;
  8464. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8465. this.CommandCollection[i].Transaction = this._transaction;
  8466. }
  8467. if (((this.Adapter != null)
  8468. && (this.Adapter.DeleteCommand != null))) {
  8469. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8470. }
  8471. if (((this.Adapter != null)
  8472. && (this.Adapter.InsertCommand != null))) {
  8473. this.Adapter.InsertCommand.Transaction = this._transaction;
  8474. }
  8475. if (((this.Adapter != null)
  8476. && (this.Adapter.UpdateCommand != null))) {
  8477. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8478. }
  8479. }
  8480. }
  8481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8483. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8484. get {
  8485. if ((this._commandCollection == null)) {
  8486. this.InitCommandCollection();
  8487. }
  8488. return this._commandCollection;
  8489. }
  8490. }
  8491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8492. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8493. public bool ClearBeforeFill {
  8494. get {
  8495. return this._clearBeforeFill;
  8496. }
  8497. set {
  8498. this._clearBeforeFill = value;
  8499. }
  8500. }
  8501. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8502. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8503. private void InitAdapter() {
  8504. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8505. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8506. tableMapping.SourceTable = "Table";
  8507. tableMapping.DataSetTable = "ProductPhoto";
  8508. tableMapping.ColumnMappings.Add("ID", "ID");
  8509. tableMapping.ColumnMappings.Add("ProductID", "ProductID");
  8510. tableMapping.ColumnMappings.Add("PhotoPath", "PhotoPath");
  8511. this._adapter.TableMappings.Add(tableMapping);
  8512. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8513. this._adapter.DeleteCommand.Connection = this.Connection;
  8514. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ProductPhoto] WHERE (([ID] = @Original_ID) AND ([ProductID] = " +
  8515. "@Original_ProductID) AND ([PhotoPath] = @Original_PhotoPath))";
  8516. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8517. 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, "", "", ""));
  8518. 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, "", "", ""));
  8519. 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, "", "", ""));
  8520. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8521. this._adapter.InsertCommand.Connection = this.Connection;
  8522. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ProductPhoto] ([ProductID], [PhotoPath]) VALUES (@ProductID, @" +
  8523. "PhotoPath);\r\nSELECT ID, ProductID, PhotoPath FROM ProductPhoto WHERE (ID = SCOPE" +
  8524. "_IDENTITY())";
  8525. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8526. 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, "", "", ""));
  8527. 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, "", "", ""));
  8528. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8529. this._adapter.UpdateCommand.Connection = this.Connection;
  8530. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ProductPhoto] SET [ProductID] = @ProductID, [PhotoPath] = @PhotoPath WHERE (([ID] = @Original_ID) AND ([ProductID] = @Original_ProductID) AND ([PhotoPath] = @Original_PhotoPath));
  8531. SELECT ID, ProductID, PhotoPath FROM ProductPhoto WHERE (ID = @ID)";
  8532. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8533. 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, "", "", ""));
  8534. 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, "", "", ""));
  8535. 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, "", "", ""));
  8536. 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, "", "", ""));
  8537. 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, "", "", ""));
  8538. 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, "", "", ""));
  8539. }
  8540. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8541. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8542. private void InitConnection() {
  8543. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8544. this._connection.ConnectionString = global::Бархотные_брови.Properties.Settings.Default.DB_Кузьменко_V2ConnectionString;
  8545. }
  8546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8548. private void InitCommandCollection() {
  8549. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8550. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8551. this._commandCollection[0].Connection = this.Connection;
  8552. this._commandCollection[0].CommandText = "SELECT ID, ProductID, PhotoPath FROM dbo.ProductPhoto";
  8553. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8554. }
  8555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8556. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8557. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8558. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8559. public virtual int Fill(DB_Кузьменко_V2DataSet.ProductPhotoDataTable dataTable) {
  8560. this.Adapter.SelectCommand = this.CommandCollection[0];
  8561. if ((this.ClearBeforeFill == true)) {
  8562. dataTable.Clear();
  8563. }
  8564. int returnValue = this.Adapter.Fill(dataTable);
  8565. return returnValue;
  8566. }
  8567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8569. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8570. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8571. public virtual DB_Кузьменко_V2DataSet.ProductPhotoDataTable GetData() {
  8572. this.Adapter.SelectCommand = this.CommandCollection[0];
  8573. DB_Кузьменко_V2DataSet.ProductPhotoDataTable dataTable = new DB_Кузьменко_V2DataSet.ProductPhotoDataTable();
  8574. this.Adapter.Fill(dataTable);
  8575. return dataTable;
  8576. }
  8577. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8578. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8579. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8580. public virtual int Update(DB_Кузьменко_V2DataSet.ProductPhotoDataTable dataTable) {
  8581. return this.Adapter.Update(dataTable);
  8582. }
  8583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8585. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8586. public virtual int Update(DB_Кузьменко_V2DataSet dataSet) {
  8587. return this.Adapter.Update(dataSet, "ProductPhoto");
  8588. }
  8589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8590. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8591. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8592. public virtual int Update(global::System.Data.DataRow dataRow) {
  8593. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8594. dataRow});
  8595. }
  8596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8597. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8598. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8599. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8600. return this.Adapter.Update(dataRows);
  8601. }
  8602. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8603. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8604. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8605. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8606. public virtual int Delete(int Original_ID, int Original_ProductID, string Original_PhotoPath) {
  8607. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  8608. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ProductID));
  8609. if ((Original_PhotoPath == null)) {
  8610. throw new global::System.ArgumentNullException("Original_PhotoPath");
  8611. }
  8612. else {
  8613. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_PhotoPath));
  8614. }
  8615. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8616. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8617. != global::System.Data.ConnectionState.Open)) {
  8618. this.Adapter.DeleteCommand.Connection.Open();
  8619. }
  8620. try {
  8621. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8622. return returnValue;
  8623. }
  8624. finally {
  8625. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8626. this.Adapter.DeleteCommand.Connection.Close();
  8627. }
  8628. }
  8629. }
  8630. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8631. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8632. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8633. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8634. public virtual int Insert(int ProductID, string PhotoPath) {
  8635. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ProductID));
  8636. if ((PhotoPath == null)) {
  8637. throw new global::System.ArgumentNullException("PhotoPath");
  8638. }
  8639. else {
  8640. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(PhotoPath));
  8641. }
  8642. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8643. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8644. != global::System.Data.ConnectionState.Open)) {
  8645. this.Adapter.InsertCommand.Connection.Open();
  8646. }
  8647. try {
  8648. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8649. return returnValue;
  8650. }
  8651. finally {
  8652. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8653. this.Adapter.InsertCommand.Connection.Close();
  8654. }
  8655. }
  8656. }
  8657. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8658. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8659. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8660. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8661. public virtual int Update(int ProductID, string PhotoPath, int Original_ID, int Original_ProductID, string Original_PhotoPath, int ID) {
  8662. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ProductID));
  8663. if ((PhotoPath == null)) {
  8664. throw new global::System.ArgumentNullException("PhotoPath");
  8665. }
  8666. else {
  8667. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(PhotoPath));
  8668. }
  8669. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  8670. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ProductID));
  8671. if ((Original_PhotoPath == null)) {
  8672. throw new global::System.ArgumentNullException("Original_PhotoPath");
  8673. }
  8674. else {
  8675. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_PhotoPath));
  8676. }
  8677. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID));
  8678. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8679. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8680. != global::System.Data.ConnectionState.Open)) {
  8681. this.Adapter.UpdateCommand.Connection.Open();
  8682. }
  8683. try {
  8684. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8685. return returnValue;
  8686. }
  8687. finally {
  8688. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8689. this.Adapter.UpdateCommand.Connection.Close();
  8690. }
  8691. }
  8692. }
  8693. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8694. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8695. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8696. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8697. public virtual int Update(int ProductID, string PhotoPath, int Original_ID, int Original_ProductID, string Original_PhotoPath) {
  8698. return this.Update(ProductID, PhotoPath, Original_ID, Original_ProductID, Original_PhotoPath, Original_ID);
  8699. }
  8700. }
  8701. /// <summary>
  8702. ///Represents the connection and commands used to retrieve and save data.
  8703. ///</summary>
  8704. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8705. [global::System.ComponentModel.ToolboxItem(true)]
  8706. [global::System.ComponentModel.DataObjectAttribute(true)]
  8707. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8708. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8709. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8710. public partial class ProductSaleTableAdapter : global::System.ComponentModel.Component {
  8711. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8712. private global::System.Data.SqlClient.SqlConnection _connection;
  8713. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8714. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8715. private bool _clearBeforeFill;
  8716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8717. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8718. public ProductSaleTableAdapter() {
  8719. this.ClearBeforeFill = true;
  8720. }
  8721. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8722. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8723. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8724. get {
  8725. if ((this._adapter == null)) {
  8726. this.InitAdapter();
  8727. }
  8728. return this._adapter;
  8729. }
  8730. }
  8731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8732. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8733. internal global::System.Data.SqlClient.SqlConnection Connection {
  8734. get {
  8735. if ((this._connection == null)) {
  8736. this.InitConnection();
  8737. }
  8738. return this._connection;
  8739. }
  8740. set {
  8741. this._connection = value;
  8742. if ((this.Adapter.InsertCommand != null)) {
  8743. this.Adapter.InsertCommand.Connection = value;
  8744. }
  8745. if ((this.Adapter.DeleteCommand != null)) {
  8746. this.Adapter.DeleteCommand.Connection = value;
  8747. }
  8748. if ((this.Adapter.UpdateCommand != null)) {
  8749. this.Adapter.UpdateCommand.Connection = value;
  8750. }
  8751. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8752. if ((this.CommandCollection[i] != null)) {
  8753. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8754. }
  8755. }
  8756. }
  8757. }
  8758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8760. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8761. get {
  8762. return this._transaction;
  8763. }
  8764. set {
  8765. this._transaction = value;
  8766. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8767. this.CommandCollection[i].Transaction = this._transaction;
  8768. }
  8769. if (((this.Adapter != null)
  8770. && (this.Adapter.DeleteCommand != null))) {
  8771. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8772. }
  8773. if (((this.Adapter != null)
  8774. && (this.Adapter.InsertCommand != null))) {
  8775. this.Adapter.InsertCommand.Transaction = this._transaction;
  8776. }
  8777. if (((this.Adapter != null)
  8778. && (this.Adapter.UpdateCommand != null))) {
  8779. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8780. }
  8781. }
  8782. }
  8783. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8784. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8785. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8786. get {
  8787. if ((this._commandCollection == null)) {
  8788. this.InitCommandCollection();
  8789. }
  8790. return this._commandCollection;
  8791. }
  8792. }
  8793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8794. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8795. public bool ClearBeforeFill {
  8796. get {
  8797. return this._clearBeforeFill;
  8798. }
  8799. set {
  8800. this._clearBeforeFill = value;
  8801. }
  8802. }
  8803. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8804. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8805. private void InitAdapter() {
  8806. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8807. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8808. tableMapping.SourceTable = "Table";
  8809. tableMapping.DataSetTable = "ProductSale";
  8810. tableMapping.ColumnMappings.Add("ID", "ID");
  8811. tableMapping.ColumnMappings.Add("SaleDate", "SaleDate");
  8812. tableMapping.ColumnMappings.Add("ProductID", "ProductID");
  8813. tableMapping.ColumnMappings.Add("Quantity", "Quantity");
  8814. tableMapping.ColumnMappings.Add("ClientServiceID", "ClientServiceID");
  8815. this._adapter.TableMappings.Add(tableMapping);
  8816. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8817. this._adapter.DeleteCommand.Connection = this.Connection;
  8818. 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)))";
  8819. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8820. 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, "", "", ""));
  8821. 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, "", "", ""));
  8822. 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, "", "", ""));
  8823. 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, "", "", ""));
  8824. 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, "", "", ""));
  8825. 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, "", "", ""));
  8826. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8827. this._adapter.InsertCommand.Connection = this.Connection;
  8828. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ProductSale] ([SaleDate], [ProductID], [Quantity], [ClientServ" +
  8829. "iceID]) VALUES (@SaleDate, @ProductID, @Quantity, @ClientServiceID);\r\nSELECT ID," +
  8830. " SaleDate, ProductID, Quantity, ClientServiceID FROM ProductSale WHERE (ID = SCO" +
  8831. "PE_IDENTITY())";
  8832. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8833. 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, "", "", ""));
  8834. 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, "", "", ""));
  8835. 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, "", "", ""));
  8836. 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, "", "", ""));
  8837. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8838. this._adapter.UpdateCommand.Connection = this.Connection;
  8839. 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)));
  8840. SELECT ID, SaleDate, ProductID, Quantity, ClientServiceID FROM ProductSale WHERE (ID = @ID)";
  8841. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8842. 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, "", "", ""));
  8843. 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, "", "", ""));
  8844. 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, "", "", ""));
  8845. 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, "", "", ""));
  8846. 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, "", "", ""));
  8847. 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, "", "", ""));
  8848. 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, "", "", ""));
  8849. 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, "", "", ""));
  8850. 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, "", "", ""));
  8851. 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, "", "", ""));
  8852. 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, "", "", ""));
  8853. }
  8854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8855. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8856. private void InitConnection() {
  8857. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8858. this._connection.ConnectionString = global::Бархотные_брови.Properties.Settings.Default.DB_Кузьменко_V2ConnectionString;
  8859. }
  8860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8862. private void InitCommandCollection() {
  8863. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8864. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8865. this._commandCollection[0].Connection = this.Connection;
  8866. this._commandCollection[0].CommandText = "SELECT ID, SaleDate, ProductID, Quantity, ClientServiceID FROM dbo.ProductSale";
  8867. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8868. }
  8869. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8870. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8871. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8872. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8873. public virtual int Fill(DB_Кузьменко_V2DataSet.ProductSaleDataTable dataTable) {
  8874. this.Adapter.SelectCommand = this.CommandCollection[0];
  8875. if ((this.ClearBeforeFill == true)) {
  8876. dataTable.Clear();
  8877. }
  8878. int returnValue = this.Adapter.Fill(dataTable);
  8879. return returnValue;
  8880. }
  8881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8883. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8884. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8885. public virtual DB_Кузьменко_V2DataSet.ProductSaleDataTable GetData() {
  8886. this.Adapter.SelectCommand = this.CommandCollection[0];
  8887. DB_Кузьменко_V2DataSet.ProductSaleDataTable dataTable = new DB_Кузьменко_V2DataSet.ProductSaleDataTable();
  8888. this.Adapter.Fill(dataTable);
  8889. return dataTable;
  8890. }
  8891. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8892. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8893. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8894. public virtual int Update(DB_Кузьменко_V2DataSet.ProductSaleDataTable dataTable) {
  8895. return this.Adapter.Update(dataTable);
  8896. }
  8897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8898. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8899. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8900. public virtual int Update(DB_Кузьменко_V2DataSet dataSet) {
  8901. return this.Adapter.Update(dataSet, "ProductSale");
  8902. }
  8903. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8904. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8905. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8906. public virtual int Update(global::System.Data.DataRow dataRow) {
  8907. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8908. dataRow});
  8909. }
  8910. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8911. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8912. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8913. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8914. return this.Adapter.Update(dataRows);
  8915. }
  8916. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8917. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8918. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8919. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8920. public virtual int Delete(int Original_ID, System.DateTime Original_SaleDate, int Original_ProductID, int Original_Quantity, global::System.Nullable<int> Original_ClientServiceID) {
  8921. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  8922. this.Adapter.DeleteCommand.Parameters[1].Value = ((System.DateTime)(Original_SaleDate));
  8923. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_ProductID));
  8924. this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_Quantity));
  8925. if ((Original_ClientServiceID.HasValue == true)) {
  8926. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
  8927. this.Adapter.DeleteCommand.Parameters[5].Value = ((int)(Original_ClientServiceID.Value));
  8928. }
  8929. else {
  8930. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
  8931. this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
  8932. }
  8933. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8934. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8935. != global::System.Data.ConnectionState.Open)) {
  8936. this.Adapter.DeleteCommand.Connection.Open();
  8937. }
  8938. try {
  8939. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8940. return returnValue;
  8941. }
  8942. finally {
  8943. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8944. this.Adapter.DeleteCommand.Connection.Close();
  8945. }
  8946. }
  8947. }
  8948. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8949. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8950. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8951. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8952. public virtual int Insert(System.DateTime SaleDate, int ProductID, int Quantity, global::System.Nullable<int> ClientServiceID) {
  8953. this.Adapter.InsertCommand.Parameters[0].Value = ((System.DateTime)(SaleDate));
  8954. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(ProductID));
  8955. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Quantity));
  8956. if ((ClientServiceID.HasValue == true)) {
  8957. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(ClientServiceID.Value));
  8958. }
  8959. else {
  8960. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  8961. }
  8962. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8963. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8964. != global::System.Data.ConnectionState.Open)) {
  8965. this.Adapter.InsertCommand.Connection.Open();
  8966. }
  8967. try {
  8968. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8969. return returnValue;
  8970. }
  8971. finally {
  8972. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8973. this.Adapter.InsertCommand.Connection.Close();
  8974. }
  8975. }
  8976. }
  8977. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8978. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8979. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8980. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8981. 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) {
  8982. this.Adapter.UpdateCommand.Parameters[0].Value = ((System.DateTime)(SaleDate));
  8983. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(ProductID));
  8984. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Quantity));
  8985. if ((ClientServiceID.HasValue == true)) {
  8986. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(ClientServiceID.Value));
  8987. }
  8988. else {
  8989. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  8990. }
  8991. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_ID));
  8992. this.Adapter.UpdateCommand.Parameters[5].Value = ((System.DateTime)(Original_SaleDate));
  8993. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ProductID));
  8994. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_Quantity));
  8995. if ((Original_ClientServiceID.HasValue == true)) {
  8996. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  8997. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_ClientServiceID.Value));
  8998. }
  8999. else {
  9000. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  9001. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  9002. }
  9003. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(ID));
  9004. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9005. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9006. != global::System.Data.ConnectionState.Open)) {
  9007. this.Adapter.UpdateCommand.Connection.Open();
  9008. }
  9009. try {
  9010. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9011. return returnValue;
  9012. }
  9013. finally {
  9014. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9015. this.Adapter.UpdateCommand.Connection.Close();
  9016. }
  9017. }
  9018. }
  9019. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9020. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9021. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9022. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9023. 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) {
  9024. return this.Update(SaleDate, ProductID, Quantity, ClientServiceID, Original_ID, Original_SaleDate, Original_ProductID, Original_Quantity, Original_ClientServiceID, Original_ID);
  9025. }
  9026. }
  9027. /// <summary>
  9028. ///Represents the connection and commands used to retrieve and save data.
  9029. ///</summary>
  9030. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9031. [global::System.ComponentModel.ToolboxItem(true)]
  9032. [global::System.ComponentModel.DataObjectAttribute(true)]
  9033. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9034. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9035. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9036. public partial class ServiceTableAdapter : global::System.ComponentModel.Component {
  9037. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9038. private global::System.Data.SqlClient.SqlConnection _connection;
  9039. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9040. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9041. private bool _clearBeforeFill;
  9042. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9043. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9044. public ServiceTableAdapter() {
  9045. this.ClearBeforeFill = true;
  9046. }
  9047. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9048. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9049. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9050. get {
  9051. if ((this._adapter == null)) {
  9052. this.InitAdapter();
  9053. }
  9054. return this._adapter;
  9055. }
  9056. }
  9057. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9058. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9059. internal global::System.Data.SqlClient.SqlConnection Connection {
  9060. get {
  9061. if ((this._connection == null)) {
  9062. this.InitConnection();
  9063. }
  9064. return this._connection;
  9065. }
  9066. set {
  9067. this._connection = value;
  9068. if ((this.Adapter.InsertCommand != null)) {
  9069. this.Adapter.InsertCommand.Connection = value;
  9070. }
  9071. if ((this.Adapter.DeleteCommand != null)) {
  9072. this.Adapter.DeleteCommand.Connection = value;
  9073. }
  9074. if ((this.Adapter.UpdateCommand != null)) {
  9075. this.Adapter.UpdateCommand.Connection = value;
  9076. }
  9077. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9078. if ((this.CommandCollection[i] != null)) {
  9079. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9080. }
  9081. }
  9082. }
  9083. }
  9084. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9085. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9086. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9087. get {
  9088. return this._transaction;
  9089. }
  9090. set {
  9091. this._transaction = value;
  9092. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9093. this.CommandCollection[i].Transaction = this._transaction;
  9094. }
  9095. if (((this.Adapter != null)
  9096. && (this.Adapter.DeleteCommand != null))) {
  9097. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9098. }
  9099. if (((this.Adapter != null)
  9100. && (this.Adapter.InsertCommand != null))) {
  9101. this.Adapter.InsertCommand.Transaction = this._transaction;
  9102. }
  9103. if (((this.Adapter != null)
  9104. && (this.Adapter.UpdateCommand != null))) {
  9105. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9106. }
  9107. }
  9108. }
  9109. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9110. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9111. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9112. get {
  9113. if ((this._commandCollection == null)) {
  9114. this.InitCommandCollection();
  9115. }
  9116. return this._commandCollection;
  9117. }
  9118. }
  9119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9120. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9121. public bool ClearBeforeFill {
  9122. get {
  9123. return this._clearBeforeFill;
  9124. }
  9125. set {
  9126. this._clearBeforeFill = value;
  9127. }
  9128. }
  9129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9131. private void InitAdapter() {
  9132. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9133. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9134. tableMapping.SourceTable = "Table";
  9135. tableMapping.DataSetTable = "Service";
  9136. tableMapping.ColumnMappings.Add("ID", "ID");
  9137. tableMapping.ColumnMappings.Add("Title", "Title");
  9138. tableMapping.ColumnMappings.Add("Cost", "Cost");
  9139. tableMapping.ColumnMappings.Add("DurationInSeconds", "DurationInSeconds");
  9140. tableMapping.ColumnMappings.Add("Descritpion", "Descritpion");
  9141. tableMapping.ColumnMappings.Add("Discount", "Discount");
  9142. tableMapping.ColumnMappings.Add("MainImagePath", "MainImagePath");
  9143. this._adapter.TableMappings.Add(tableMapping);
  9144. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9145. this._adapter.DeleteCommand.Connection = this.Connection;
  9146. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Service] WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ([Cost] = @Original_Cost) AND ([DurationInSeconds] = @Original_DurationInSeconds) AND ((@IsNull_Discount = 1 AND [Discount] IS NULL) OR ([Discount] = @Original_Discount)) AND ((@IsNull_MainImagePath = 1 AND [MainImagePath] IS NULL) OR ([MainImagePath] = @Original_MainImagePath)))";
  9147. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9148. 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, "", "", ""));
  9149. 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, "", "", ""));
  9150. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Cost", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cost", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9151. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DurationInSeconds", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DurationInSeconds", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9152. 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, "", "", ""));
  9153. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Discount", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Discount", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9154. 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, "", "", ""));
  9155. 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, "", "", ""));
  9156. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9157. this._adapter.InsertCommand.Connection = this.Connection;
  9158. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Service] ([Title], [Cost], [DurationInSeconds], [Descritpion], [Discount], [MainImagePath]) VALUES (@Title, @Cost, @DurationInSeconds, @Descritpion, @Discount, @MainImagePath);
  9159. SELECT ID, Title, Cost, DurationInSeconds, Descritpion, Discount, MainImagePath FROM Service WHERE (ID = SCOPE_IDENTITY())";
  9160. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9161. 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, "", "", ""));
  9162. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cost", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cost", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9163. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DurationInSeconds", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DurationInSeconds", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9164. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Descritpion", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descritpion", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9165. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Discount", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Discount", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9166. 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, "", "", ""));
  9167. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9168. this._adapter.UpdateCommand.Connection = this.Connection;
  9169. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Service] SET [Title] = @Title, [Cost] = @Cost, [DurationInSeconds] = @DurationInSeconds, [Descritpion] = @Descritpion, [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)));
  9170. SELECT ID, Title, Cost, DurationInSeconds, Descritpion, Discount, MainImagePath FROM Service WHERE (ID = @ID)";
  9171. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9172. 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, "", "", ""));
  9173. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cost", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cost", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9174. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DurationInSeconds", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DurationInSeconds", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9175. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Descritpion", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Descritpion", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9176. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Discount", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Discount", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9177. 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, "", "", ""));
  9178. 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, "", "", ""));
  9179. 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, "", "", ""));
  9180. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Cost", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cost", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9181. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DurationInSeconds", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DurationInSeconds", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9182. 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, "", "", ""));
  9183. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Discount", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Discount", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9184. 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, "", "", ""));
  9185. 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, "", "", ""));
  9186. 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, "", "", ""));
  9187. }
  9188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9190. private void InitConnection() {
  9191. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9192. this._connection.ConnectionString = global::Бархотные_брови.Properties.Settings.Default.DB_Кузьменко_V2ConnectionString;
  9193. }
  9194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9196. private void InitCommandCollection() {
  9197. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9198. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9199. this._commandCollection[0].Connection = this.Connection;
  9200. this._commandCollection[0].CommandText = "SELECT ID, Title, Cost, DurationInSeconds, Descritpion, Discount, MainImagePath F" +
  9201. "ROM dbo.Service";
  9202. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9203. }
  9204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9205. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9206. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9207. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9208. public virtual int Fill(DB_Кузьменко_V2DataSet.ServiceDataTable dataTable) {
  9209. this.Adapter.SelectCommand = this.CommandCollection[0];
  9210. if ((this.ClearBeforeFill == true)) {
  9211. dataTable.Clear();
  9212. }
  9213. int returnValue = this.Adapter.Fill(dataTable);
  9214. return returnValue;
  9215. }
  9216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9218. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9219. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9220. public virtual DB_Кузьменко_V2DataSet.ServiceDataTable GetData() {
  9221. this.Adapter.SelectCommand = this.CommandCollection[0];
  9222. DB_Кузьменко_V2DataSet.ServiceDataTable dataTable = new DB_Кузьменко_V2DataSet.ServiceDataTable();
  9223. this.Adapter.Fill(dataTable);
  9224. return dataTable;
  9225. }
  9226. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9227. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9228. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9229. public virtual int Update(DB_Кузьменко_V2DataSet.ServiceDataTable dataTable) {
  9230. return this.Adapter.Update(dataTable);
  9231. }
  9232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9233. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9234. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9235. public virtual int Update(DB_Кузьменко_V2DataSet dataSet) {
  9236. return this.Adapter.Update(dataSet, "Service");
  9237. }
  9238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9239. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9240. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9241. public virtual int Update(global::System.Data.DataRow dataRow) {
  9242. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9243. dataRow});
  9244. }
  9245. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9246. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9247. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9248. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9249. return this.Adapter.Update(dataRows);
  9250. }
  9251. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9252. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9253. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9254. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9255. public virtual int Delete(int Original_ID, string Original_Title, string Original_Cost, string Original_DurationInSeconds, string Original_Discount, string Original_MainImagePath) {
  9256. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  9257. if ((Original_Title == null)) {
  9258. throw new global::System.ArgumentNullException("Original_Title");
  9259. }
  9260. else {
  9261. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Title));
  9262. }
  9263. if ((Original_Cost == null)) {
  9264. throw new global::System.ArgumentNullException("Original_Cost");
  9265. }
  9266. else {
  9267. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Cost));
  9268. }
  9269. if ((Original_DurationInSeconds == null)) {
  9270. throw new global::System.ArgumentNullException("Original_DurationInSeconds");
  9271. }
  9272. else {
  9273. this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_DurationInSeconds));
  9274. }
  9275. if ((Original_Discount == null)) {
  9276. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
  9277. this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
  9278. }
  9279. else {
  9280. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
  9281. this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_Discount));
  9282. }
  9283. if ((Original_MainImagePath == null)) {
  9284. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1));
  9285. this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value;
  9286. }
  9287. else {
  9288. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0));
  9289. this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_MainImagePath));
  9290. }
  9291. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9292. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9293. != global::System.Data.ConnectionState.Open)) {
  9294. this.Adapter.DeleteCommand.Connection.Open();
  9295. }
  9296. try {
  9297. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9298. return returnValue;
  9299. }
  9300. finally {
  9301. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9302. this.Adapter.DeleteCommand.Connection.Close();
  9303. }
  9304. }
  9305. }
  9306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9307. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9308. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9309. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9310. public virtual int Insert(string Title, string Cost, string DurationInSeconds, string Descritpion, string Discount, string MainImagePath) {
  9311. if ((Title == null)) {
  9312. throw new global::System.ArgumentNullException("Title");
  9313. }
  9314. else {
  9315. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  9316. }
  9317. if ((Cost == null)) {
  9318. throw new global::System.ArgumentNullException("Cost");
  9319. }
  9320. else {
  9321. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Cost));
  9322. }
  9323. if ((DurationInSeconds == null)) {
  9324. throw new global::System.ArgumentNullException("DurationInSeconds");
  9325. }
  9326. else {
  9327. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(DurationInSeconds));
  9328. }
  9329. if ((Descritpion == null)) {
  9330. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  9331. }
  9332. else {
  9333. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Descritpion));
  9334. }
  9335. if ((Discount == null)) {
  9336. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  9337. }
  9338. else {
  9339. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Discount));
  9340. }
  9341. if ((MainImagePath == null)) {
  9342. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  9343. }
  9344. else {
  9345. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(MainImagePath));
  9346. }
  9347. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9348. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9349. != global::System.Data.ConnectionState.Open)) {
  9350. this.Adapter.InsertCommand.Connection.Open();
  9351. }
  9352. try {
  9353. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9354. return returnValue;
  9355. }
  9356. finally {
  9357. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9358. this.Adapter.InsertCommand.Connection.Close();
  9359. }
  9360. }
  9361. }
  9362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9363. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9364. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9365. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9366. public virtual int Update(string Title, string Cost, string DurationInSeconds, string Descritpion, string Discount, string MainImagePath, int Original_ID, string Original_Title, string Original_Cost, string Original_DurationInSeconds, string Original_Discount, string Original_MainImagePath, int ID) {
  9367. if ((Title == null)) {
  9368. throw new global::System.ArgumentNullException("Title");
  9369. }
  9370. else {
  9371. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  9372. }
  9373. if ((Cost == null)) {
  9374. throw new global::System.ArgumentNullException("Cost");
  9375. }
  9376. else {
  9377. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Cost));
  9378. }
  9379. if ((DurationInSeconds == null)) {
  9380. throw new global::System.ArgumentNullException("DurationInSeconds");
  9381. }
  9382. else {
  9383. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(DurationInSeconds));
  9384. }
  9385. if ((Descritpion == null)) {
  9386. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  9387. }
  9388. else {
  9389. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Descritpion));
  9390. }
  9391. if ((Discount == null)) {
  9392. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  9393. }
  9394. else {
  9395. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Discount));
  9396. }
  9397. if ((MainImagePath == null)) {
  9398. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  9399. }
  9400. else {
  9401. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(MainImagePath));
  9402. }
  9403. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ID));
  9404. if ((Original_Title == null)) {
  9405. throw new global::System.ArgumentNullException("Original_Title");
  9406. }
  9407. else {
  9408. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Title));
  9409. }
  9410. if ((Original_Cost == null)) {
  9411. throw new global::System.ArgumentNullException("Original_Cost");
  9412. }
  9413. else {
  9414. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_Cost));
  9415. }
  9416. if ((Original_DurationInSeconds == null)) {
  9417. throw new global::System.ArgumentNullException("Original_DurationInSeconds");
  9418. }
  9419. else {
  9420. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_DurationInSeconds));
  9421. }
  9422. if ((Original_Discount == null)) {
  9423. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  9424. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  9425. }
  9426. else {
  9427. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  9428. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_Discount));
  9429. }
  9430. if ((Original_MainImagePath == null)) {
  9431. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  9432. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  9433. }
  9434. else {
  9435. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  9436. this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_MainImagePath));
  9437. }
  9438. this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(ID));
  9439. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9440. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9441. != global::System.Data.ConnectionState.Open)) {
  9442. this.Adapter.UpdateCommand.Connection.Open();
  9443. }
  9444. try {
  9445. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9446. return returnValue;
  9447. }
  9448. finally {
  9449. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9450. this.Adapter.UpdateCommand.Connection.Close();
  9451. }
  9452. }
  9453. }
  9454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9455. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9456. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9457. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9458. public virtual int Update(string Title, string Cost, string DurationInSeconds, string Descritpion, string Discount, string MainImagePath, int Original_ID, string Original_Title, string Original_Cost, string Original_DurationInSeconds, string Original_Discount, string Original_MainImagePath) {
  9459. return this.Update(Title, Cost, DurationInSeconds, Descritpion, Discount, MainImagePath, Original_ID, Original_Title, Original_Cost, Original_DurationInSeconds, Original_Discount, Original_MainImagePath, Original_ID);
  9460. }
  9461. }
  9462. /// <summary>
  9463. ///Represents the connection and commands used to retrieve and save data.
  9464. ///</summary>
  9465. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9466. [global::System.ComponentModel.ToolboxItem(true)]
  9467. [global::System.ComponentModel.DataObjectAttribute(true)]
  9468. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9469. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9470. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9471. public partial class ServicePhotoTableAdapter : global::System.ComponentModel.Component {
  9472. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9473. private global::System.Data.SqlClient.SqlConnection _connection;
  9474. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9475. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9476. private bool _clearBeforeFill;
  9477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9479. public ServicePhotoTableAdapter() {
  9480. this.ClearBeforeFill = true;
  9481. }
  9482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9484. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9485. get {
  9486. if ((this._adapter == null)) {
  9487. this.InitAdapter();
  9488. }
  9489. return this._adapter;
  9490. }
  9491. }
  9492. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9493. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9494. internal global::System.Data.SqlClient.SqlConnection Connection {
  9495. get {
  9496. if ((this._connection == null)) {
  9497. this.InitConnection();
  9498. }
  9499. return this._connection;
  9500. }
  9501. set {
  9502. this._connection = value;
  9503. if ((this.Adapter.InsertCommand != null)) {
  9504. this.Adapter.InsertCommand.Connection = value;
  9505. }
  9506. if ((this.Adapter.DeleteCommand != null)) {
  9507. this.Adapter.DeleteCommand.Connection = value;
  9508. }
  9509. if ((this.Adapter.UpdateCommand != null)) {
  9510. this.Adapter.UpdateCommand.Connection = value;
  9511. }
  9512. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9513. if ((this.CommandCollection[i] != null)) {
  9514. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9515. }
  9516. }
  9517. }
  9518. }
  9519. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9520. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9521. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9522. get {
  9523. return this._transaction;
  9524. }
  9525. set {
  9526. this._transaction = value;
  9527. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9528. this.CommandCollection[i].Transaction = this._transaction;
  9529. }
  9530. if (((this.Adapter != null)
  9531. && (this.Adapter.DeleteCommand != null))) {
  9532. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9533. }
  9534. if (((this.Adapter != null)
  9535. && (this.Adapter.InsertCommand != null))) {
  9536. this.Adapter.InsertCommand.Transaction = this._transaction;
  9537. }
  9538. if (((this.Adapter != null)
  9539. && (this.Adapter.UpdateCommand != null))) {
  9540. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9541. }
  9542. }
  9543. }
  9544. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9545. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9546. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9547. get {
  9548. if ((this._commandCollection == null)) {
  9549. this.InitCommandCollection();
  9550. }
  9551. return this._commandCollection;
  9552. }
  9553. }
  9554. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9555. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9556. public bool ClearBeforeFill {
  9557. get {
  9558. return this._clearBeforeFill;
  9559. }
  9560. set {
  9561. this._clearBeforeFill = value;
  9562. }
  9563. }
  9564. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9565. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9566. private void InitAdapter() {
  9567. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9568. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9569. tableMapping.SourceTable = "Table";
  9570. tableMapping.DataSetTable = "ServicePhoto";
  9571. tableMapping.ColumnMappings.Add("ID", "ID");
  9572. tableMapping.ColumnMappings.Add("ServiceID", "ServiceID");
  9573. tableMapping.ColumnMappings.Add("PhotoPath", "PhotoPath");
  9574. this._adapter.TableMappings.Add(tableMapping);
  9575. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9576. this._adapter.DeleteCommand.Connection = this.Connection;
  9577. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ServicePhoto] WHERE (([ID] = @Original_ID) AND ([ServiceID] = " +
  9578. "@Original_ServiceID) AND ((@IsNull_PhotoPath = 1 AND [PhotoPath] IS NULL) OR ([P" +
  9579. "hotoPath] = @Original_PhotoPath)))";
  9580. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9581. 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, "", "", ""));
  9582. 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, "", "", ""));
  9583. 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, "", "", ""));
  9584. 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, "", "", ""));
  9585. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9586. this._adapter.InsertCommand.Connection = this.Connection;
  9587. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ServicePhoto] ([ServiceID], [PhotoPath]) VALUES (@ServiceID, @" +
  9588. "PhotoPath);\r\nSELECT ID, ServiceID, PhotoPath FROM ServicePhoto WHERE (ID = SCOPE" +
  9589. "_IDENTITY())";
  9590. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9591. 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, "", "", ""));
  9592. 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, "", "", ""));
  9593. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9594. this._adapter.UpdateCommand.Connection = this.Connection;
  9595. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ServicePhoto] SET [ServiceID] = @ServiceID, [PhotoPath] = @PhotoPath WHERE (([ID] = @Original_ID) AND ([ServiceID] = @Original_ServiceID) AND ((@IsNull_PhotoPath = 1 AND [PhotoPath] IS NULL) OR ([PhotoPath] = @Original_PhotoPath)));
  9596. SELECT ID, ServiceID, PhotoPath FROM ServicePhoto WHERE (ID = @ID)";
  9597. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9598. 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, "", "", ""));
  9599. 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, "", "", ""));
  9600. 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, "", "", ""));
  9601. 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, "", "", ""));
  9602. 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, "", "", ""));
  9603. 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, "", "", ""));
  9604. 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, "", "", ""));
  9605. }
  9606. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9607. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9608. private void InitConnection() {
  9609. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9610. this._connection.ConnectionString = global::Бархотные_брови.Properties.Settings.Default.DB_Кузьменко_V2ConnectionString;
  9611. }
  9612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9614. private void InitCommandCollection() {
  9615. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9616. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9617. this._commandCollection[0].Connection = this.Connection;
  9618. this._commandCollection[0].CommandText = "SELECT ID, ServiceID, PhotoPath FROM dbo.ServicePhoto";
  9619. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9620. }
  9621. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9622. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9623. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9624. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9625. public virtual int Fill(DB_Кузьменко_V2DataSet.ServicePhotoDataTable dataTable) {
  9626. this.Adapter.SelectCommand = this.CommandCollection[0];
  9627. if ((this.ClearBeforeFill == true)) {
  9628. dataTable.Clear();
  9629. }
  9630. int returnValue = this.Adapter.Fill(dataTable);
  9631. return returnValue;
  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. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9637. public virtual DB_Кузьменко_V2DataSet.ServicePhotoDataTable GetData() {
  9638. this.Adapter.SelectCommand = this.CommandCollection[0];
  9639. DB_Кузьменко_V2DataSet.ServicePhotoDataTable dataTable = new DB_Кузьменко_V2DataSet.ServicePhotoDataTable();
  9640. this.Adapter.Fill(dataTable);
  9641. return dataTable;
  9642. }
  9643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9644. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9645. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9646. public virtual int Update(DB_Кузьменко_V2DataSet.ServicePhotoDataTable dataTable) {
  9647. return this.Adapter.Update(dataTable);
  9648. }
  9649. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9650. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9651. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9652. public virtual int Update(DB_Кузьменко_V2DataSet dataSet) {
  9653. return this.Adapter.Update(dataSet, "ServicePhoto");
  9654. }
  9655. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9656. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9657. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9658. public virtual int Update(global::System.Data.DataRow dataRow) {
  9659. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9660. dataRow});
  9661. }
  9662. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9663. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9664. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9665. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9666. return this.Adapter.Update(dataRows);
  9667. }
  9668. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9669. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9670. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9671. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9672. public virtual int Delete(int Original_ID, int Original_ServiceID, string Original_PhotoPath) {
  9673. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  9674. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_ServiceID));
  9675. if ((Original_PhotoPath == null)) {
  9676. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
  9677. this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
  9678. }
  9679. else {
  9680. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
  9681. this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_PhotoPath));
  9682. }
  9683. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9684. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9685. != global::System.Data.ConnectionState.Open)) {
  9686. this.Adapter.DeleteCommand.Connection.Open();
  9687. }
  9688. try {
  9689. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9690. return returnValue;
  9691. }
  9692. finally {
  9693. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9694. this.Adapter.DeleteCommand.Connection.Close();
  9695. }
  9696. }
  9697. }
  9698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9699. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9700. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9701. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9702. public virtual int Insert(int ServiceID, string PhotoPath) {
  9703. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ServiceID));
  9704. if ((PhotoPath == null)) {
  9705. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  9706. }
  9707. else {
  9708. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(PhotoPath));
  9709. }
  9710. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9711. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9712. != global::System.Data.ConnectionState.Open)) {
  9713. this.Adapter.InsertCommand.Connection.Open();
  9714. }
  9715. try {
  9716. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9717. return returnValue;
  9718. }
  9719. finally {
  9720. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9721. this.Adapter.InsertCommand.Connection.Close();
  9722. }
  9723. }
  9724. }
  9725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9726. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9727. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9728. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9729. public virtual int Update(int ServiceID, string PhotoPath, int Original_ID, int Original_ServiceID, string Original_PhotoPath, int ID) {
  9730. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ServiceID));
  9731. if ((PhotoPath == null)) {
  9732. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  9733. }
  9734. else {
  9735. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(PhotoPath));
  9736. }
  9737. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  9738. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ServiceID));
  9739. if ((Original_PhotoPath == null)) {
  9740. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  9741. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  9742. }
  9743. else {
  9744. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  9745. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_PhotoPath));
  9746. }
  9747. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(ID));
  9748. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9749. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9750. != global::System.Data.ConnectionState.Open)) {
  9751. this.Adapter.UpdateCommand.Connection.Open();
  9752. }
  9753. try {
  9754. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9755. return returnValue;
  9756. }
  9757. finally {
  9758. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9759. this.Adapter.UpdateCommand.Connection.Close();
  9760. }
  9761. }
  9762. }
  9763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9764. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9765. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9766. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9767. public virtual int Update(int ServiceID, string PhotoPath, int Original_ID, int Original_ServiceID, string Original_PhotoPath) {
  9768. return this.Update(ServiceID, PhotoPath, Original_ID, Original_ServiceID, Original_PhotoPath, Original_ID);
  9769. }
  9770. }
  9771. /// <summary>
  9772. ///Represents the connection and commands used to retrieve and save data.
  9773. ///</summary>
  9774. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9775. [global::System.ComponentModel.ToolboxItem(true)]
  9776. [global::System.ComponentModel.DataObjectAttribute(true)]
  9777. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9778. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9779. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9780. public partial class TagTableAdapter : global::System.ComponentModel.Component {
  9781. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9782. private global::System.Data.SqlClient.SqlConnection _connection;
  9783. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9784. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9785. private bool _clearBeforeFill;
  9786. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9787. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9788. public TagTableAdapter() {
  9789. this.ClearBeforeFill = true;
  9790. }
  9791. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9792. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9793. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9794. get {
  9795. if ((this._adapter == null)) {
  9796. this.InitAdapter();
  9797. }
  9798. return this._adapter;
  9799. }
  9800. }
  9801. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9802. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9803. internal global::System.Data.SqlClient.SqlConnection Connection {
  9804. get {
  9805. if ((this._connection == null)) {
  9806. this.InitConnection();
  9807. }
  9808. return this._connection;
  9809. }
  9810. set {
  9811. this._connection = value;
  9812. if ((this.Adapter.InsertCommand != null)) {
  9813. this.Adapter.InsertCommand.Connection = value;
  9814. }
  9815. if ((this.Adapter.DeleteCommand != null)) {
  9816. this.Adapter.DeleteCommand.Connection = value;
  9817. }
  9818. if ((this.Adapter.UpdateCommand != null)) {
  9819. this.Adapter.UpdateCommand.Connection = value;
  9820. }
  9821. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9822. if ((this.CommandCollection[i] != null)) {
  9823. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9824. }
  9825. }
  9826. }
  9827. }
  9828. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9829. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9830. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9831. get {
  9832. return this._transaction;
  9833. }
  9834. set {
  9835. this._transaction = value;
  9836. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9837. this.CommandCollection[i].Transaction = this._transaction;
  9838. }
  9839. if (((this.Adapter != null)
  9840. && (this.Adapter.DeleteCommand != null))) {
  9841. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9842. }
  9843. if (((this.Adapter != null)
  9844. && (this.Adapter.InsertCommand != null))) {
  9845. this.Adapter.InsertCommand.Transaction = this._transaction;
  9846. }
  9847. if (((this.Adapter != null)
  9848. && (this.Adapter.UpdateCommand != null))) {
  9849. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9850. }
  9851. }
  9852. }
  9853. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9854. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9855. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9856. get {
  9857. if ((this._commandCollection == null)) {
  9858. this.InitCommandCollection();
  9859. }
  9860. return this._commandCollection;
  9861. }
  9862. }
  9863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9864. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9865. public bool ClearBeforeFill {
  9866. get {
  9867. return this._clearBeforeFill;
  9868. }
  9869. set {
  9870. this._clearBeforeFill = value;
  9871. }
  9872. }
  9873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9874. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9875. private void InitAdapter() {
  9876. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9877. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9878. tableMapping.SourceTable = "Table";
  9879. tableMapping.DataSetTable = "Tag";
  9880. tableMapping.ColumnMappings.Add("ID", "ID");
  9881. tableMapping.ColumnMappings.Add("Title", "Title");
  9882. tableMapping.ColumnMappings.Add("Color", "Color");
  9883. this._adapter.TableMappings.Add(tableMapping);
  9884. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9885. this._adapter.DeleteCommand.Connection = this.Connection;
  9886. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Tag] WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Tit" +
  9887. "le) AND ([Color] = @Original_Color))";
  9888. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9889. 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, "", "", ""));
  9890. 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, "", "", ""));
  9891. 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, "", "", ""));
  9892. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9893. this._adapter.InsertCommand.Connection = this.Connection;
  9894. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Tag] ([Title], [Color]) VALUES (@Title, @Color);\r\nSELECT ID, T" +
  9895. "itle, Color FROM Tag WHERE (ID = SCOPE_IDENTITY())";
  9896. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9897. 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, "", "", ""));
  9898. 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, "", "", ""));
  9899. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9900. this._adapter.UpdateCommand.Connection = this.Connection;
  9901. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Tag] SET [Title] = @Title, [Color] = @Color WHERE (([ID] = @Origina" +
  9902. "l_ID) AND ([Title] = @Original_Title) AND ([Color] = @Original_Color));\r\nSELECT " +
  9903. "ID, Title, Color FROM Tag WHERE (ID = @ID)";
  9904. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9905. 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, "", "", ""));
  9906. 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, "", "", ""));
  9907. 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, "", "", ""));
  9908. 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, "", "", ""));
  9909. 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, "", "", ""));
  9910. 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, "", "", ""));
  9911. }
  9912. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9913. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9914. private void InitConnection() {
  9915. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9916. this._connection.ConnectionString = global::Бархотные_брови.Properties.Settings.Default.DB_Кузьменко_V2ConnectionString;
  9917. }
  9918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9919. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9920. private void InitCommandCollection() {
  9921. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9922. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9923. this._commandCollection[0].Connection = this.Connection;
  9924. this._commandCollection[0].CommandText = "SELECT ID, Title, Color FROM dbo.Tag";
  9925. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9926. }
  9927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9928. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9929. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9930. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9931. public virtual int Fill(DB_Кузьменко_V2DataSet.TagDataTable dataTable) {
  9932. this.Adapter.SelectCommand = this.CommandCollection[0];
  9933. if ((this.ClearBeforeFill == true)) {
  9934. dataTable.Clear();
  9935. }
  9936. int returnValue = this.Adapter.Fill(dataTable);
  9937. return returnValue;
  9938. }
  9939. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9940. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9941. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9942. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9943. public virtual DB_Кузьменко_V2DataSet.TagDataTable GetData() {
  9944. this.Adapter.SelectCommand = this.CommandCollection[0];
  9945. DB_Кузьменко_V2DataSet.TagDataTable dataTable = new DB_Кузьменко_V2DataSet.TagDataTable();
  9946. this.Adapter.Fill(dataTable);
  9947. return dataTable;
  9948. }
  9949. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9950. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9951. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9952. public virtual int Update(DB_Кузьменко_V2DataSet.TagDataTable dataTable) {
  9953. return this.Adapter.Update(dataTable);
  9954. }
  9955. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9956. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9957. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9958. public virtual int Update(DB_Кузьменко_V2DataSet dataSet) {
  9959. return this.Adapter.Update(dataSet, "Tag");
  9960. }
  9961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9962. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9963. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9964. public virtual int Update(global::System.Data.DataRow dataRow) {
  9965. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9966. dataRow});
  9967. }
  9968. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9969. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9970. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9971. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9972. return this.Adapter.Update(dataRows);
  9973. }
  9974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9975. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9976. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9977. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9978. public virtual int Delete(int Original_ID, string Original_Title, string Original_Color) {
  9979. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  9980. if ((Original_Title == null)) {
  9981. throw new global::System.ArgumentNullException("Original_Title");
  9982. }
  9983. else {
  9984. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Title));
  9985. }
  9986. if ((Original_Color == null)) {
  9987. throw new global::System.ArgumentNullException("Original_Color");
  9988. }
  9989. else {
  9990. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Color));
  9991. }
  9992. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9993. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9994. != global::System.Data.ConnectionState.Open)) {
  9995. this.Adapter.DeleteCommand.Connection.Open();
  9996. }
  9997. try {
  9998. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9999. return returnValue;
  10000. }
  10001. finally {
  10002. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10003. this.Adapter.DeleteCommand.Connection.Close();
  10004. }
  10005. }
  10006. }
  10007. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10008. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10009. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10010. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  10011. public virtual int Insert(string Title, string Color) {
  10012. if ((Title == null)) {
  10013. throw new global::System.ArgumentNullException("Title");
  10014. }
  10015. else {
  10016. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  10017. }
  10018. if ((Color == null)) {
  10019. throw new global::System.ArgumentNullException("Color");
  10020. }
  10021. else {
  10022. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Color));
  10023. }
  10024. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  10025. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10026. != global::System.Data.ConnectionState.Open)) {
  10027. this.Adapter.InsertCommand.Connection.Open();
  10028. }
  10029. try {
  10030. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  10031. return returnValue;
  10032. }
  10033. finally {
  10034. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10035. this.Adapter.InsertCommand.Connection.Close();
  10036. }
  10037. }
  10038. }
  10039. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10041. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10042. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10043. public virtual int Update(string Title, string Color, int Original_ID, string Original_Title, string Original_Color, int ID) {
  10044. if ((Title == null)) {
  10045. throw new global::System.ArgumentNullException("Title");
  10046. }
  10047. else {
  10048. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  10049. }
  10050. if ((Color == null)) {
  10051. throw new global::System.ArgumentNullException("Color");
  10052. }
  10053. else {
  10054. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Color));
  10055. }
  10056. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
  10057. if ((Original_Title == null)) {
  10058. throw new global::System.ArgumentNullException("Original_Title");
  10059. }
  10060. else {
  10061. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Title));
  10062. }
  10063. if ((Original_Color == null)) {
  10064. throw new global::System.ArgumentNullException("Original_Color");
  10065. }
  10066. else {
  10067. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Color));
  10068. }
  10069. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID));
  10070. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  10071. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10072. != global::System.Data.ConnectionState.Open)) {
  10073. this.Adapter.UpdateCommand.Connection.Open();
  10074. }
  10075. try {
  10076. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  10077. return returnValue;
  10078. }
  10079. finally {
  10080. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10081. this.Adapter.UpdateCommand.Connection.Close();
  10082. }
  10083. }
  10084. }
  10085. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10086. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10087. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10088. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10089. public virtual int Update(string Title, string Color, int Original_ID, string Original_Title, string Original_Color) {
  10090. return this.Update(Title, Color, Original_ID, Original_Title, Original_Color, Original_ID);
  10091. }
  10092. }
  10093. /// <summary>
  10094. ///Represents the connection and commands used to retrieve and save data.
  10095. ///</summary>
  10096. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10097. [global::System.ComponentModel.ToolboxItem(true)]
  10098. [global::System.ComponentModel.DataObjectAttribute(true)]
  10099. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  10100. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10101. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10102. public partial class TagOfClientTableAdapter : global::System.ComponentModel.Component {
  10103. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  10104. private global::System.Data.SqlClient.SqlConnection _connection;
  10105. private global::System.Data.SqlClient.SqlTransaction _transaction;
  10106. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  10107. private bool _clearBeforeFill;
  10108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10110. public TagOfClientTableAdapter() {
  10111. this.ClearBeforeFill = true;
  10112. }
  10113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10114. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10115. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  10116. get {
  10117. if ((this._adapter == null)) {
  10118. this.InitAdapter();
  10119. }
  10120. return this._adapter;
  10121. }
  10122. }
  10123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10124. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10125. internal global::System.Data.SqlClient.SqlConnection Connection {
  10126. get {
  10127. if ((this._connection == null)) {
  10128. this.InitConnection();
  10129. }
  10130. return this._connection;
  10131. }
  10132. set {
  10133. this._connection = value;
  10134. if ((this.Adapter.InsertCommand != null)) {
  10135. this.Adapter.InsertCommand.Connection = value;
  10136. }
  10137. if ((this.Adapter.DeleteCommand != null)) {
  10138. this.Adapter.DeleteCommand.Connection = value;
  10139. }
  10140. if ((this.Adapter.UpdateCommand != null)) {
  10141. this.Adapter.UpdateCommand.Connection = value;
  10142. }
  10143. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10144. if ((this.CommandCollection[i] != null)) {
  10145. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  10146. }
  10147. }
  10148. }
  10149. }
  10150. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10151. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10152. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  10153. get {
  10154. return this._transaction;
  10155. }
  10156. set {
  10157. this._transaction = value;
  10158. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10159. this.CommandCollection[i].Transaction = this._transaction;
  10160. }
  10161. if (((this.Adapter != null)
  10162. && (this.Adapter.DeleteCommand != null))) {
  10163. this.Adapter.DeleteCommand.Transaction = this._transaction;
  10164. }
  10165. if (((this.Adapter != null)
  10166. && (this.Adapter.InsertCommand != null))) {
  10167. this.Adapter.InsertCommand.Transaction = this._transaction;
  10168. }
  10169. if (((this.Adapter != null)
  10170. && (this.Adapter.UpdateCommand != null))) {
  10171. this.Adapter.UpdateCommand.Transaction = this._transaction;
  10172. }
  10173. }
  10174. }
  10175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10176. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10177. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  10178. get {
  10179. if ((this._commandCollection == null)) {
  10180. this.InitCommandCollection();
  10181. }
  10182. return this._commandCollection;
  10183. }
  10184. }
  10185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10186. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10187. public bool ClearBeforeFill {
  10188. get {
  10189. return this._clearBeforeFill;
  10190. }
  10191. set {
  10192. this._clearBeforeFill = value;
  10193. }
  10194. }
  10195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10197. private void InitAdapter() {
  10198. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  10199. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  10200. tableMapping.SourceTable = "Table";
  10201. tableMapping.DataSetTable = "TagOfClient";
  10202. tableMapping.ColumnMappings.Add("ClientID", "ClientID");
  10203. tableMapping.ColumnMappings.Add("TagID", "TagID");
  10204. this._adapter.TableMappings.Add(tableMapping);
  10205. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  10206. this._adapter.DeleteCommand.Connection = this.Connection;
  10207. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[TagOfClient] WHERE (([ClientID] = @Original_ClientID) AND ([Ta" +
  10208. "gID] = @Original_TagID))";
  10209. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  10210. 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, "", "", ""));
  10211. 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, "", "", ""));
  10212. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  10213. this._adapter.InsertCommand.Connection = this.Connection;
  10214. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[TagOfClient] ([ClientID], [TagID]) VALUES (@ClientID, @TagID);" +
  10215. "\r\nSELECT ClientID, TagID FROM TagOfClient WHERE (ClientID = @ClientID) AND (TagI" +
  10216. "D = @TagID)";
  10217. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  10218. 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, "", "", ""));
  10219. 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, "", "", ""));
  10220. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  10221. this._adapter.UpdateCommand.Connection = this.Connection;
  10222. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[TagOfClient] SET [ClientID] = @ClientID, [TagID] = @TagID WHERE (([" +
  10223. "ClientID] = @Original_ClientID) AND ([TagID] = @Original_TagID));\r\nSELECT Client" +
  10224. "ID, TagID FROM TagOfClient WHERE (ClientID = @ClientID) AND (TagID = @TagID)";
  10225. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  10226. 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, "", "", ""));
  10227. 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, "", "", ""));
  10228. 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, "", "", ""));
  10229. 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, "", "", ""));
  10230. }
  10231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10233. private void InitConnection() {
  10234. this._connection = new global::System.Data.SqlClient.SqlConnection();
  10235. this._connection.ConnectionString = global::Бархотные_брови.Properties.Settings.Default.DB_Кузьменко_V2ConnectionString;
  10236. }
  10237. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10238. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10239. private void InitCommandCollection() {
  10240. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  10241. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  10242. this._commandCollection[0].Connection = this.Connection;
  10243. this._commandCollection[0].CommandText = "SELECT ClientID, TagID FROM dbo.TagOfClient";
  10244. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  10245. }
  10246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10247. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10248. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10249. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  10250. public virtual int Fill(DB_Кузьменко_V2DataSet.TagOfClientDataTable dataTable) {
  10251. this.Adapter.SelectCommand = this.CommandCollection[0];
  10252. if ((this.ClearBeforeFill == true)) {
  10253. dataTable.Clear();
  10254. }
  10255. int returnValue = this.Adapter.Fill(dataTable);
  10256. return returnValue;
  10257. }
  10258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10260. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10261. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  10262. public virtual DB_Кузьменко_V2DataSet.TagOfClientDataTable GetData() {
  10263. this.Adapter.SelectCommand = this.CommandCollection[0];
  10264. DB_Кузьменко_V2DataSet.TagOfClientDataTable dataTable = new DB_Кузьменко_V2DataSet.TagOfClientDataTable();
  10265. this.Adapter.Fill(dataTable);
  10266. return dataTable;
  10267. }
  10268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10269. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10270. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10271. public virtual int Update(DB_Кузьменко_V2DataSet.TagOfClientDataTable dataTable) {
  10272. return this.Adapter.Update(dataTable);
  10273. }
  10274. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10275. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10276. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10277. public virtual int Update(DB_Кузьменко_V2DataSet dataSet) {
  10278. return this.Adapter.Update(dataSet, "TagOfClient");
  10279. }
  10280. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10281. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10282. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10283. public virtual int Update(global::System.Data.DataRow dataRow) {
  10284. return this.Adapter.Update(new global::System.Data.DataRow[] {
  10285. dataRow});
  10286. }
  10287. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10288. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10289. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10290. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  10291. return this.Adapter.Update(dataRows);
  10292. }
  10293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10294. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10295. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10296. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  10297. public virtual int Delete(int Original_ClientID, int Original_TagID) {
  10298. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ClientID));
  10299. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_TagID));
  10300. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  10301. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10302. != global::System.Data.ConnectionState.Open)) {
  10303. this.Adapter.DeleteCommand.Connection.Open();
  10304. }
  10305. try {
  10306. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  10307. return returnValue;
  10308. }
  10309. finally {
  10310. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10311. this.Adapter.DeleteCommand.Connection.Close();
  10312. }
  10313. }
  10314. }
  10315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10316. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10317. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10318. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  10319. public virtual int Insert(int ClientID, int TagID) {
  10320. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ClientID));
  10321. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(TagID));
  10322. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  10323. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10324. != global::System.Data.ConnectionState.Open)) {
  10325. this.Adapter.InsertCommand.Connection.Open();
  10326. }
  10327. try {
  10328. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  10329. return returnValue;
  10330. }
  10331. finally {
  10332. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10333. this.Adapter.InsertCommand.Connection.Close();
  10334. }
  10335. }
  10336. }
  10337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10339. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10340. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10341. public virtual int Update(int ClientID, int TagID, int Original_ClientID, int Original_TagID) {
  10342. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ClientID));
  10343. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(TagID));
  10344. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ClientID));
  10345. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_TagID));
  10346. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  10347. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10348. != global::System.Data.ConnectionState.Open)) {
  10349. this.Adapter.UpdateCommand.Connection.Open();
  10350. }
  10351. try {
  10352. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  10353. return returnValue;
  10354. }
  10355. finally {
  10356. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10357. this.Adapter.UpdateCommand.Connection.Close();
  10358. }
  10359. }
  10360. }
  10361. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10362. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10363. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10364. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10365. public virtual int Update(int Original_ClientID, int Original_TagID) {
  10366. return this.Update(Original_ClientID, Original_TagID, Original_ClientID, Original_TagID);
  10367. }
  10368. }
  10369. /// <summary>
  10370. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  10371. ///</summary>
  10372. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10373. [global::System.ComponentModel.ToolboxItem(true)]
  10374. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  10375. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10376. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  10377. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  10378. private UpdateOrderOption _updateOrder;
  10379. private AttachedProductTableAdapter _attachedProductTableAdapter;
  10380. private ClientTableAdapter _clientTableAdapter;
  10381. private ClientServiceTableAdapter _clientServiceTableAdapter;
  10382. private DocumentByServiceTableAdapter _documentByServiceTableAdapter;
  10383. private GenderTableAdapter _genderTableAdapter;
  10384. private ManufacturerTableAdapter _manufacturerTableAdapter;
  10385. private ProductTableAdapter _productTableAdapter;
  10386. private ProductPhotoTableAdapter _productPhotoTableAdapter;
  10387. private ProductSaleTableAdapter _productSaleTableAdapter;
  10388. private ServiceTableAdapter _serviceTableAdapter;
  10389. private ServicePhotoTableAdapter _servicePhotoTableAdapter;
  10390. private TagTableAdapter _tagTableAdapter;
  10391. private TagOfClientTableAdapter _tagOfClientTableAdapter;
  10392. private bool _backupDataSetBeforeUpdate;
  10393. private global::System.Data.IDbConnection _connection;
  10394. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10395. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10396. public UpdateOrderOption UpdateOrder {
  10397. get {
  10398. return this._updateOrder;
  10399. }
  10400. set {
  10401. this._updateOrder = value;
  10402. }
  10403. }
  10404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10406. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10407. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10408. "a", "System.Drawing.Design.UITypeEditor")]
  10409. public AttachedProductTableAdapter AttachedProductTableAdapter {
  10410. get {
  10411. return this._attachedProductTableAdapter;
  10412. }
  10413. set {
  10414. this._attachedProductTableAdapter = value;
  10415. }
  10416. }
  10417. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10418. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10419. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10420. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10421. "a", "System.Drawing.Design.UITypeEditor")]
  10422. public ClientTableAdapter ClientTableAdapter {
  10423. get {
  10424. return this._clientTableAdapter;
  10425. }
  10426. set {
  10427. this._clientTableAdapter = value;
  10428. }
  10429. }
  10430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10431. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10432. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10433. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10434. "a", "System.Drawing.Design.UITypeEditor")]
  10435. public ClientServiceTableAdapter ClientServiceTableAdapter {
  10436. get {
  10437. return this._clientServiceTableAdapter;
  10438. }
  10439. set {
  10440. this._clientServiceTableAdapter = value;
  10441. }
  10442. }
  10443. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10444. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10445. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10446. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10447. "a", "System.Drawing.Design.UITypeEditor")]
  10448. public DocumentByServiceTableAdapter DocumentByServiceTableAdapter {
  10449. get {
  10450. return this._documentByServiceTableAdapter;
  10451. }
  10452. set {
  10453. this._documentByServiceTableAdapter = value;
  10454. }
  10455. }
  10456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10457. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10458. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10459. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10460. "a", "System.Drawing.Design.UITypeEditor")]
  10461. public GenderTableAdapter GenderTableAdapter {
  10462. get {
  10463. return this._genderTableAdapter;
  10464. }
  10465. set {
  10466. this._genderTableAdapter = value;
  10467. }
  10468. }
  10469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10470. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10471. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10472. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10473. "a", "System.Drawing.Design.UITypeEditor")]
  10474. public ManufacturerTableAdapter ManufacturerTableAdapter {
  10475. get {
  10476. return this._manufacturerTableAdapter;
  10477. }
  10478. set {
  10479. this._manufacturerTableAdapter = value;
  10480. }
  10481. }
  10482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10484. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10485. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10486. "a", "System.Drawing.Design.UITypeEditor")]
  10487. public ProductTableAdapter ProductTableAdapter {
  10488. get {
  10489. return this._productTableAdapter;
  10490. }
  10491. set {
  10492. this._productTableAdapter = value;
  10493. }
  10494. }
  10495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10497. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10498. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10499. "a", "System.Drawing.Design.UITypeEditor")]
  10500. public ProductPhotoTableAdapter ProductPhotoTableAdapter {
  10501. get {
  10502. return this._productPhotoTableAdapter;
  10503. }
  10504. set {
  10505. this._productPhotoTableAdapter = value;
  10506. }
  10507. }
  10508. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10509. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10510. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10511. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10512. "a", "System.Drawing.Design.UITypeEditor")]
  10513. public ProductSaleTableAdapter ProductSaleTableAdapter {
  10514. get {
  10515. return this._productSaleTableAdapter;
  10516. }
  10517. set {
  10518. this._productSaleTableAdapter = value;
  10519. }
  10520. }
  10521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10523. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10524. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10525. "a", "System.Drawing.Design.UITypeEditor")]
  10526. public ServiceTableAdapter ServiceTableAdapter {
  10527. get {
  10528. return this._serviceTableAdapter;
  10529. }
  10530. set {
  10531. this._serviceTableAdapter = value;
  10532. }
  10533. }
  10534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10535. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10536. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10537. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10538. "a", "System.Drawing.Design.UITypeEditor")]
  10539. public ServicePhotoTableAdapter ServicePhotoTableAdapter {
  10540. get {
  10541. return this._servicePhotoTableAdapter;
  10542. }
  10543. set {
  10544. this._servicePhotoTableAdapter = value;
  10545. }
  10546. }
  10547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10549. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10550. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10551. "a", "System.Drawing.Design.UITypeEditor")]
  10552. public TagTableAdapter TagTableAdapter {
  10553. get {
  10554. return this._tagTableAdapter;
  10555. }
  10556. set {
  10557. this._tagTableAdapter = value;
  10558. }
  10559. }
  10560. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10561. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10562. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10563. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10564. "a", "System.Drawing.Design.UITypeEditor")]
  10565. public TagOfClientTableAdapter TagOfClientTableAdapter {
  10566. get {
  10567. return this._tagOfClientTableAdapter;
  10568. }
  10569. set {
  10570. this._tagOfClientTableAdapter = value;
  10571. }
  10572. }
  10573. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10574. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10575. public bool BackupDataSetBeforeUpdate {
  10576. get {
  10577. return this._backupDataSetBeforeUpdate;
  10578. }
  10579. set {
  10580. this._backupDataSetBeforeUpdate = value;
  10581. }
  10582. }
  10583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10585. [global::System.ComponentModel.Browsable(false)]
  10586. public global::System.Data.IDbConnection Connection {
  10587. get {
  10588. if ((this._connection != null)) {
  10589. return this._connection;
  10590. }
  10591. if (((this._attachedProductTableAdapter != null)
  10592. && (this._attachedProductTableAdapter.Connection != null))) {
  10593. return this._attachedProductTableAdapter.Connection;
  10594. }
  10595. if (((this._clientTableAdapter != null)
  10596. && (this._clientTableAdapter.Connection != null))) {
  10597. return this._clientTableAdapter.Connection;
  10598. }
  10599. if (((this._clientServiceTableAdapter != null)
  10600. && (this._clientServiceTableAdapter.Connection != null))) {
  10601. return this._clientServiceTableAdapter.Connection;
  10602. }
  10603. if (((this._documentByServiceTableAdapter != null)
  10604. && (this._documentByServiceTableAdapter.Connection != null))) {
  10605. return this._documentByServiceTableAdapter.Connection;
  10606. }
  10607. if (((this._genderTableAdapter != null)
  10608. && (this._genderTableAdapter.Connection != null))) {
  10609. return this._genderTableAdapter.Connection;
  10610. }
  10611. if (((this._manufacturerTableAdapter != null)
  10612. && (this._manufacturerTableAdapter.Connection != null))) {
  10613. return this._manufacturerTableAdapter.Connection;
  10614. }
  10615. if (((this._productTableAdapter != null)
  10616. && (this._productTableAdapter.Connection != null))) {
  10617. return this._productTableAdapter.Connection;
  10618. }
  10619. if (((this._productPhotoTableAdapter != null)
  10620. && (this._productPhotoTableAdapter.Connection != null))) {
  10621. return this._productPhotoTableAdapter.Connection;
  10622. }
  10623. if (((this._productSaleTableAdapter != null)
  10624. && (this._productSaleTableAdapter.Connection != null))) {
  10625. return this._productSaleTableAdapter.Connection;
  10626. }
  10627. if (((this._serviceTableAdapter != null)
  10628. && (this._serviceTableAdapter.Connection != null))) {
  10629. return this._serviceTableAdapter.Connection;
  10630. }
  10631. if (((this._servicePhotoTableAdapter != null)
  10632. && (this._servicePhotoTableAdapter.Connection != null))) {
  10633. return this._servicePhotoTableAdapter.Connection;
  10634. }
  10635. if (((this._tagTableAdapter != null)
  10636. && (this._tagTableAdapter.Connection != null))) {
  10637. return this._tagTableAdapter.Connection;
  10638. }
  10639. if (((this._tagOfClientTableAdapter != null)
  10640. && (this._tagOfClientTableAdapter.Connection != null))) {
  10641. return this._tagOfClientTableAdapter.Connection;
  10642. }
  10643. return null;
  10644. }
  10645. set {
  10646. this._connection = value;
  10647. }
  10648. }
  10649. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10650. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10651. [global::System.ComponentModel.Browsable(false)]
  10652. public int TableAdapterInstanceCount {
  10653. get {
  10654. int count = 0;
  10655. if ((this._attachedProductTableAdapter != null)) {
  10656. count = (count + 1);
  10657. }
  10658. if ((this._clientTableAdapter != null)) {
  10659. count = (count + 1);
  10660. }
  10661. if ((this._clientServiceTableAdapter != null)) {
  10662. count = (count + 1);
  10663. }
  10664. if ((this._documentByServiceTableAdapter != null)) {
  10665. count = (count + 1);
  10666. }
  10667. if ((this._genderTableAdapter != null)) {
  10668. count = (count + 1);
  10669. }
  10670. if ((this._manufacturerTableAdapter != null)) {
  10671. count = (count + 1);
  10672. }
  10673. if ((this._productTableAdapter != null)) {
  10674. count = (count + 1);
  10675. }
  10676. if ((this._productPhotoTableAdapter != null)) {
  10677. count = (count + 1);
  10678. }
  10679. if ((this._productSaleTableAdapter != null)) {
  10680. count = (count + 1);
  10681. }
  10682. if ((this._serviceTableAdapter != null)) {
  10683. count = (count + 1);
  10684. }
  10685. if ((this._servicePhotoTableAdapter != null)) {
  10686. count = (count + 1);
  10687. }
  10688. if ((this._tagTableAdapter != null)) {
  10689. count = (count + 1);
  10690. }
  10691. if ((this._tagOfClientTableAdapter != null)) {
  10692. count = (count + 1);
  10693. }
  10694. return count;
  10695. }
  10696. }
  10697. /// <summary>
  10698. ///Update rows in top-down order.
  10699. ///</summary>
  10700. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10701. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10702. private int UpdateUpdatedRows(DB_Кузьменко_V2DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  10703. int result = 0;
  10704. if ((this._genderTableAdapter != null)) {
  10705. global::System.Data.DataRow[] updatedRows = dataSet.Gender.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10706. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10707. if (((updatedRows != null)
  10708. && (0 < updatedRows.Length))) {
  10709. result = (result + this._genderTableAdapter.Update(updatedRows));
  10710. allChangedRows.AddRange(updatedRows);
  10711. }
  10712. }
  10713. if ((this._clientTableAdapter != null)) {
  10714. global::System.Data.DataRow[] updatedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10715. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10716. if (((updatedRows != null)
  10717. && (0 < updatedRows.Length))) {
  10718. result = (result + this._clientTableAdapter.Update(updatedRows));
  10719. allChangedRows.AddRange(updatedRows);
  10720. }
  10721. }
  10722. if ((this._manufacturerTableAdapter != null)) {
  10723. global::System.Data.DataRow[] updatedRows = dataSet.Manufacturer.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10724. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10725. if (((updatedRows != null)
  10726. && (0 < updatedRows.Length))) {
  10727. result = (result + this._manufacturerTableAdapter.Update(updatedRows));
  10728. allChangedRows.AddRange(updatedRows);
  10729. }
  10730. }
  10731. if ((this._serviceTableAdapter != null)) {
  10732. global::System.Data.DataRow[] updatedRows = dataSet.Service.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10733. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10734. if (((updatedRows != null)
  10735. && (0 < updatedRows.Length))) {
  10736. result = (result + this._serviceTableAdapter.Update(updatedRows));
  10737. allChangedRows.AddRange(updatedRows);
  10738. }
  10739. }
  10740. if ((this._clientServiceTableAdapter != null)) {
  10741. global::System.Data.DataRow[] updatedRows = dataSet.ClientService.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10742. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10743. if (((updatedRows != null)
  10744. && (0 < updatedRows.Length))) {
  10745. result = (result + this._clientServiceTableAdapter.Update(updatedRows));
  10746. allChangedRows.AddRange(updatedRows);
  10747. }
  10748. }
  10749. if ((this._productTableAdapter != null)) {
  10750. global::System.Data.DataRow[] updatedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10751. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10752. if (((updatedRows != null)
  10753. && (0 < updatedRows.Length))) {
  10754. result = (result + this._productTableAdapter.Update(updatedRows));
  10755. allChangedRows.AddRange(updatedRows);
  10756. }
  10757. }
  10758. if ((this._tagTableAdapter != null)) {
  10759. global::System.Data.DataRow[] updatedRows = dataSet.Tag.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10760. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10761. if (((updatedRows != null)
  10762. && (0 < updatedRows.Length))) {
  10763. result = (result + this._tagTableAdapter.Update(updatedRows));
  10764. allChangedRows.AddRange(updatedRows);
  10765. }
  10766. }
  10767. if ((this._attachedProductTableAdapter != null)) {
  10768. global::System.Data.DataRow[] updatedRows = dataSet.AttachedProduct.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10769. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10770. if (((updatedRows != null)
  10771. && (0 < updatedRows.Length))) {
  10772. result = (result + this._attachedProductTableAdapter.Update(updatedRows));
  10773. allChangedRows.AddRange(updatedRows);
  10774. }
  10775. }
  10776. if ((this._documentByServiceTableAdapter != null)) {
  10777. global::System.Data.DataRow[] updatedRows = dataSet.DocumentByService.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10778. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10779. if (((updatedRows != null)
  10780. && (0 < updatedRows.Length))) {
  10781. result = (result + this._documentByServiceTableAdapter.Update(updatedRows));
  10782. allChangedRows.AddRange(updatedRows);
  10783. }
  10784. }
  10785. if ((this._productPhotoTableAdapter != null)) {
  10786. global::System.Data.DataRow[] updatedRows = dataSet.ProductPhoto.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10787. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10788. if (((updatedRows != null)
  10789. && (0 < updatedRows.Length))) {
  10790. result = (result + this._productPhotoTableAdapter.Update(updatedRows));
  10791. allChangedRows.AddRange(updatedRows);
  10792. }
  10793. }
  10794. if ((this._productSaleTableAdapter != null)) {
  10795. global::System.Data.DataRow[] updatedRows = dataSet.ProductSale.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10796. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10797. if (((updatedRows != null)
  10798. && (0 < updatedRows.Length))) {
  10799. result = (result + this._productSaleTableAdapter.Update(updatedRows));
  10800. allChangedRows.AddRange(updatedRows);
  10801. }
  10802. }
  10803. if ((this._servicePhotoTableAdapter != null)) {
  10804. global::System.Data.DataRow[] updatedRows = dataSet.ServicePhoto.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10805. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10806. if (((updatedRows != null)
  10807. && (0 < updatedRows.Length))) {
  10808. result = (result + this._servicePhotoTableAdapter.Update(updatedRows));
  10809. allChangedRows.AddRange(updatedRows);
  10810. }
  10811. }
  10812. if ((this._tagOfClientTableAdapter != null)) {
  10813. global::System.Data.DataRow[] updatedRows = dataSet.TagOfClient.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10814. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10815. if (((updatedRows != null)
  10816. && (0 < updatedRows.Length))) {
  10817. result = (result + this._tagOfClientTableAdapter.Update(updatedRows));
  10818. allChangedRows.AddRange(updatedRows);
  10819. }
  10820. }
  10821. return result;
  10822. }
  10823. /// <summary>
  10824. ///Insert rows in top-down order.
  10825. ///</summary>
  10826. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10827. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10828. private int UpdateInsertedRows(DB_Кузьменко_V2DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  10829. int result = 0;
  10830. if ((this._genderTableAdapter != null)) {
  10831. global::System.Data.DataRow[] addedRows = dataSet.Gender.Select(null, null, global::System.Data.DataViewRowState.Added);
  10832. if (((addedRows != null)
  10833. && (0 < addedRows.Length))) {
  10834. result = (result + this._genderTableAdapter.Update(addedRows));
  10835. allAddedRows.AddRange(addedRows);
  10836. }
  10837. }
  10838. if ((this._clientTableAdapter != null)) {
  10839. global::System.Data.DataRow[] addedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.Added);
  10840. if (((addedRows != null)
  10841. && (0 < addedRows.Length))) {
  10842. result = (result + this._clientTableAdapter.Update(addedRows));
  10843. allAddedRows.AddRange(addedRows);
  10844. }
  10845. }
  10846. if ((this._manufacturerTableAdapter != null)) {
  10847. global::System.Data.DataRow[] addedRows = dataSet.Manufacturer.Select(null, null, global::System.Data.DataViewRowState.Added);
  10848. if (((addedRows != null)
  10849. && (0 < addedRows.Length))) {
  10850. result = (result + this._manufacturerTableAdapter.Update(addedRows));
  10851. allAddedRows.AddRange(addedRows);
  10852. }
  10853. }
  10854. if ((this._serviceTableAdapter != null)) {
  10855. global::System.Data.DataRow[] addedRows = dataSet.Service.Select(null, null, global::System.Data.DataViewRowState.Added);
  10856. if (((addedRows != null)
  10857. && (0 < addedRows.Length))) {
  10858. result = (result + this._serviceTableAdapter.Update(addedRows));
  10859. allAddedRows.AddRange(addedRows);
  10860. }
  10861. }
  10862. if ((this._clientServiceTableAdapter != null)) {
  10863. global::System.Data.DataRow[] addedRows = dataSet.ClientService.Select(null, null, global::System.Data.DataViewRowState.Added);
  10864. if (((addedRows != null)
  10865. && (0 < addedRows.Length))) {
  10866. result = (result + this._clientServiceTableAdapter.Update(addedRows));
  10867. allAddedRows.AddRange(addedRows);
  10868. }
  10869. }
  10870. if ((this._productTableAdapter != null)) {
  10871. global::System.Data.DataRow[] addedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.Added);
  10872. if (((addedRows != null)
  10873. && (0 < addedRows.Length))) {
  10874. result = (result + this._productTableAdapter.Update(addedRows));
  10875. allAddedRows.AddRange(addedRows);
  10876. }
  10877. }
  10878. if ((this._tagTableAdapter != null)) {
  10879. global::System.Data.DataRow[] addedRows = dataSet.Tag.Select(null, null, global::System.Data.DataViewRowState.Added);
  10880. if (((addedRows != null)
  10881. && (0 < addedRows.Length))) {
  10882. result = (result + this._tagTableAdapter.Update(addedRows));
  10883. allAddedRows.AddRange(addedRows);
  10884. }
  10885. }
  10886. if ((this._attachedProductTableAdapter != null)) {
  10887. global::System.Data.DataRow[] addedRows = dataSet.AttachedProduct.Select(null, null, global::System.Data.DataViewRowState.Added);
  10888. if (((addedRows != null)
  10889. && (0 < addedRows.Length))) {
  10890. result = (result + this._attachedProductTableAdapter.Update(addedRows));
  10891. allAddedRows.AddRange(addedRows);
  10892. }
  10893. }
  10894. if ((this._documentByServiceTableAdapter != null)) {
  10895. global::System.Data.DataRow[] addedRows = dataSet.DocumentByService.Select(null, null, global::System.Data.DataViewRowState.Added);
  10896. if (((addedRows != null)
  10897. && (0 < addedRows.Length))) {
  10898. result = (result + this._documentByServiceTableAdapter.Update(addedRows));
  10899. allAddedRows.AddRange(addedRows);
  10900. }
  10901. }
  10902. if ((this._productPhotoTableAdapter != null)) {
  10903. global::System.Data.DataRow[] addedRows = dataSet.ProductPhoto.Select(null, null, global::System.Data.DataViewRowState.Added);
  10904. if (((addedRows != null)
  10905. && (0 < addedRows.Length))) {
  10906. result = (result + this._productPhotoTableAdapter.Update(addedRows));
  10907. allAddedRows.AddRange(addedRows);
  10908. }
  10909. }
  10910. if ((this._productSaleTableAdapter != null)) {
  10911. global::System.Data.DataRow[] addedRows = dataSet.ProductSale.Select(null, null, global::System.Data.DataViewRowState.Added);
  10912. if (((addedRows != null)
  10913. && (0 < addedRows.Length))) {
  10914. result = (result + this._productSaleTableAdapter.Update(addedRows));
  10915. allAddedRows.AddRange(addedRows);
  10916. }
  10917. }
  10918. if ((this._servicePhotoTableAdapter != null)) {
  10919. global::System.Data.DataRow[] addedRows = dataSet.ServicePhoto.Select(null, null, global::System.Data.DataViewRowState.Added);
  10920. if (((addedRows != null)
  10921. && (0 < addedRows.Length))) {
  10922. result = (result + this._servicePhotoTableAdapter.Update(addedRows));
  10923. allAddedRows.AddRange(addedRows);
  10924. }
  10925. }
  10926. if ((this._tagOfClientTableAdapter != null)) {
  10927. global::System.Data.DataRow[] addedRows = dataSet.TagOfClient.Select(null, null, global::System.Data.DataViewRowState.Added);
  10928. if (((addedRows != null)
  10929. && (0 < addedRows.Length))) {
  10930. result = (result + this._tagOfClientTableAdapter.Update(addedRows));
  10931. allAddedRows.AddRange(addedRows);
  10932. }
  10933. }
  10934. return result;
  10935. }
  10936. /// <summary>
  10937. ///Delete rows in bottom-up order.
  10938. ///</summary>
  10939. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10940. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10941. private int UpdateDeletedRows(DB_Кузьменко_V2DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  10942. int result = 0;
  10943. if ((this._tagOfClientTableAdapter != null)) {
  10944. global::System.Data.DataRow[] deletedRows = dataSet.TagOfClient.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10945. if (((deletedRows != null)
  10946. && (0 < deletedRows.Length))) {
  10947. result = (result + this._tagOfClientTableAdapter.Update(deletedRows));
  10948. allChangedRows.AddRange(deletedRows);
  10949. }
  10950. }
  10951. if ((this._servicePhotoTableAdapter != null)) {
  10952. global::System.Data.DataRow[] deletedRows = dataSet.ServicePhoto.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10953. if (((deletedRows != null)
  10954. && (0 < deletedRows.Length))) {
  10955. result = (result + this._servicePhotoTableAdapter.Update(deletedRows));
  10956. allChangedRows.AddRange(deletedRows);
  10957. }
  10958. }
  10959. if ((this._productSaleTableAdapter != null)) {
  10960. global::System.Data.DataRow[] deletedRows = dataSet.ProductSale.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10961. if (((deletedRows != null)
  10962. && (0 < deletedRows.Length))) {
  10963. result = (result + this._productSaleTableAdapter.Update(deletedRows));
  10964. allChangedRows.AddRange(deletedRows);
  10965. }
  10966. }
  10967. if ((this._productPhotoTableAdapter != null)) {
  10968. global::System.Data.DataRow[] deletedRows = dataSet.ProductPhoto.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10969. if (((deletedRows != null)
  10970. && (0 < deletedRows.Length))) {
  10971. result = (result + this._productPhotoTableAdapter.Update(deletedRows));
  10972. allChangedRows.AddRange(deletedRows);
  10973. }
  10974. }
  10975. if ((this._documentByServiceTableAdapter != null)) {
  10976. global::System.Data.DataRow[] deletedRows = dataSet.DocumentByService.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10977. if (((deletedRows != null)
  10978. && (0 < deletedRows.Length))) {
  10979. result = (result + this._documentByServiceTableAdapter.Update(deletedRows));
  10980. allChangedRows.AddRange(deletedRows);
  10981. }
  10982. }
  10983. if ((this._attachedProductTableAdapter != null)) {
  10984. global::System.Data.DataRow[] deletedRows = dataSet.AttachedProduct.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10985. if (((deletedRows != null)
  10986. && (0 < deletedRows.Length))) {
  10987. result = (result + this._attachedProductTableAdapter.Update(deletedRows));
  10988. allChangedRows.AddRange(deletedRows);
  10989. }
  10990. }
  10991. if ((this._tagTableAdapter != null)) {
  10992. global::System.Data.DataRow[] deletedRows = dataSet.Tag.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10993. if (((deletedRows != null)
  10994. && (0 < deletedRows.Length))) {
  10995. result = (result + this._tagTableAdapter.Update(deletedRows));
  10996. allChangedRows.AddRange(deletedRows);
  10997. }
  10998. }
  10999. if ((this._productTableAdapter != null)) {
  11000. global::System.Data.DataRow[] deletedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11001. if (((deletedRows != null)
  11002. && (0 < deletedRows.Length))) {
  11003. result = (result + this._productTableAdapter.Update(deletedRows));
  11004. allChangedRows.AddRange(deletedRows);
  11005. }
  11006. }
  11007. if ((this._clientServiceTableAdapter != null)) {
  11008. global::System.Data.DataRow[] deletedRows = dataSet.ClientService.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11009. if (((deletedRows != null)
  11010. && (0 < deletedRows.Length))) {
  11011. result = (result + this._clientServiceTableAdapter.Update(deletedRows));
  11012. allChangedRows.AddRange(deletedRows);
  11013. }
  11014. }
  11015. if ((this._serviceTableAdapter != null)) {
  11016. global::System.Data.DataRow[] deletedRows = dataSet.Service.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11017. if (((deletedRows != null)
  11018. && (0 < deletedRows.Length))) {
  11019. result = (result + this._serviceTableAdapter.Update(deletedRows));
  11020. allChangedRows.AddRange(deletedRows);
  11021. }
  11022. }
  11023. if ((this._manufacturerTableAdapter != null)) {
  11024. global::System.Data.DataRow[] deletedRows = dataSet.Manufacturer.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11025. if (((deletedRows != null)
  11026. && (0 < deletedRows.Length))) {
  11027. result = (result + this._manufacturerTableAdapter.Update(deletedRows));
  11028. allChangedRows.AddRange(deletedRows);
  11029. }
  11030. }
  11031. if ((this._clientTableAdapter != null)) {
  11032. global::System.Data.DataRow[] deletedRows = dataSet.Client.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11033. if (((deletedRows != null)
  11034. && (0 < deletedRows.Length))) {
  11035. result = (result + this._clientTableAdapter.Update(deletedRows));
  11036. allChangedRows.AddRange(deletedRows);
  11037. }
  11038. }
  11039. if ((this._genderTableAdapter != null)) {
  11040. global::System.Data.DataRow[] deletedRows = dataSet.Gender.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11041. if (((deletedRows != null)
  11042. && (0 < deletedRows.Length))) {
  11043. result = (result + this._genderTableAdapter.Update(deletedRows));
  11044. allChangedRows.AddRange(deletedRows);
  11045. }
  11046. }
  11047. return result;
  11048. }
  11049. /// <summary>
  11050. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  11051. ///</summary>
  11052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11053. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11054. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  11055. if (((updatedRows == null)
  11056. || (updatedRows.Length < 1))) {
  11057. return updatedRows;
  11058. }
  11059. if (((allAddedRows == null)
  11060. || (allAddedRows.Count < 1))) {
  11061. return updatedRows;
  11062. }
  11063. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  11064. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  11065. global::System.Data.DataRow row = updatedRows[i];
  11066. if ((allAddedRows.Contains(row) == false)) {
  11067. realUpdatedRows.Add(row);
  11068. }
  11069. }
  11070. return realUpdatedRows.ToArray();
  11071. }
  11072. /// <summary>
  11073. ///Update all changes to the dataset.
  11074. ///</summary>
  11075. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11076. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11077. public virtual int UpdateAll(DB_Кузьменко_V2DataSet dataSet) {
  11078. if ((dataSet == null)) {
  11079. throw new global::System.ArgumentNullException("dataSet");
  11080. }
  11081. if ((dataSet.HasChanges() == false)) {
  11082. return 0;
  11083. }
  11084. if (((this._attachedProductTableAdapter != null)
  11085. && (this.MatchTableAdapterConnection(this._attachedProductTableAdapter.Connection) == false))) {
  11086. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11087. "r, должны использовать одинаковую строку подключения.");
  11088. }
  11089. if (((this._clientTableAdapter != null)
  11090. && (this.MatchTableAdapterConnection(this._clientTableAdapter.Connection) == false))) {
  11091. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11092. "r, должны использовать одинаковую строку подключения.");
  11093. }
  11094. if (((this._clientServiceTableAdapter != null)
  11095. && (this.MatchTableAdapterConnection(this._clientServiceTableAdapter.Connection) == false))) {
  11096. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11097. "r, должны использовать одинаковую строку подключения.");
  11098. }
  11099. if (((this._documentByServiceTableAdapter != null)
  11100. && (this.MatchTableAdapterConnection(this._documentByServiceTableAdapter.Connection) == false))) {
  11101. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11102. "r, должны использовать одинаковую строку подключения.");
  11103. }
  11104. if (((this._genderTableAdapter != null)
  11105. && (this.MatchTableAdapterConnection(this._genderTableAdapter.Connection) == false))) {
  11106. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11107. "r, должны использовать одинаковую строку подключения.");
  11108. }
  11109. if (((this._manufacturerTableAdapter != null)
  11110. && (this.MatchTableAdapterConnection(this._manufacturerTableAdapter.Connection) == false))) {
  11111. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11112. "r, должны использовать одинаковую строку подключения.");
  11113. }
  11114. if (((this._productTableAdapter != null)
  11115. && (this.MatchTableAdapterConnection(this._productTableAdapter.Connection) == false))) {
  11116. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11117. "r, должны использовать одинаковую строку подключения.");
  11118. }
  11119. if (((this._productPhotoTableAdapter != null)
  11120. && (this.MatchTableAdapterConnection(this._productPhotoTableAdapter.Connection) == false))) {
  11121. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11122. "r, должны использовать одинаковую строку подключения.");
  11123. }
  11124. if (((this._productSaleTableAdapter != null)
  11125. && (this.MatchTableAdapterConnection(this._productSaleTableAdapter.Connection) == false))) {
  11126. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11127. "r, должны использовать одинаковую строку подключения.");
  11128. }
  11129. if (((this._serviceTableAdapter != null)
  11130. && (this.MatchTableAdapterConnection(this._serviceTableAdapter.Connection) == false))) {
  11131. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11132. "r, должны использовать одинаковую строку подключения.");
  11133. }
  11134. if (((this._servicePhotoTableAdapter != null)
  11135. && (this.MatchTableAdapterConnection(this._servicePhotoTableAdapter.Connection) == false))) {
  11136. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11137. "r, должны использовать одинаковую строку подключения.");
  11138. }
  11139. if (((this._tagTableAdapter != null)
  11140. && (this.MatchTableAdapterConnection(this._tagTableAdapter.Connection) == false))) {
  11141. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11142. "r, должны использовать одинаковую строку подключения.");
  11143. }
  11144. if (((this._tagOfClientTableAdapter != null)
  11145. && (this.MatchTableAdapterConnection(this._tagOfClientTableAdapter.Connection) == false))) {
  11146. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  11147. "r, должны использовать одинаковую строку подключения.");
  11148. }
  11149. global::System.Data.IDbConnection workConnection = this.Connection;
  11150. if ((workConnection == null)) {
  11151. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  11152. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  11153. }
  11154. bool workConnOpened = false;
  11155. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  11156. == global::System.Data.ConnectionState.Broken)) {
  11157. workConnection.Close();
  11158. }
  11159. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  11160. workConnection.Open();
  11161. workConnOpened = true;
  11162. }
  11163. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  11164. if ((workTransaction == null)) {
  11165. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  11166. "и или текущее состояние не позволяет начать транзакцию.");
  11167. }
  11168. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  11169. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  11170. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  11171. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  11172. int result = 0;
  11173. global::System.Data.DataSet backupDataSet = null;
  11174. if (this.BackupDataSetBeforeUpdate) {
  11175. backupDataSet = new global::System.Data.DataSet();
  11176. backupDataSet.Merge(dataSet);
  11177. }
  11178. try {
  11179. // ---- Prepare for update -----------
  11180. //
  11181. if ((this._attachedProductTableAdapter != null)) {
  11182. revertConnections.Add(this._attachedProductTableAdapter, this._attachedProductTableAdapter.Connection);
  11183. this._attachedProductTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11184. this._attachedProductTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11185. if (this._attachedProductTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11186. this._attachedProductTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11187. adaptersWithAcceptChangesDuringUpdate.Add(this._attachedProductTableAdapter.Adapter);
  11188. }
  11189. }
  11190. if ((this._clientTableAdapter != null)) {
  11191. revertConnections.Add(this._clientTableAdapter, this._clientTableAdapter.Connection);
  11192. this._clientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11193. this._clientTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11194. if (this._clientTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11195. this._clientTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11196. adaptersWithAcceptChangesDuringUpdate.Add(this._clientTableAdapter.Adapter);
  11197. }
  11198. }
  11199. if ((this._clientServiceTableAdapter != null)) {
  11200. revertConnections.Add(this._clientServiceTableAdapter, this._clientServiceTableAdapter.Connection);
  11201. this._clientServiceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11202. this._clientServiceTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11203. if (this._clientServiceTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11204. this._clientServiceTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11205. adaptersWithAcceptChangesDuringUpdate.Add(this._clientServiceTableAdapter.Adapter);
  11206. }
  11207. }
  11208. if ((this._documentByServiceTableAdapter != null)) {
  11209. revertConnections.Add(this._documentByServiceTableAdapter, this._documentByServiceTableAdapter.Connection);
  11210. this._documentByServiceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11211. this._documentByServiceTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11212. if (this._documentByServiceTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11213. this._documentByServiceTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11214. adaptersWithAcceptChangesDuringUpdate.Add(this._documentByServiceTableAdapter.Adapter);
  11215. }
  11216. }
  11217. if ((this._genderTableAdapter != null)) {
  11218. revertConnections.Add(this._genderTableAdapter, this._genderTableAdapter.Connection);
  11219. this._genderTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11220. this._genderTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11221. if (this._genderTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11222. this._genderTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11223. adaptersWithAcceptChangesDuringUpdate.Add(this._genderTableAdapter.Adapter);
  11224. }
  11225. }
  11226. if ((this._manufacturerTableAdapter != null)) {
  11227. revertConnections.Add(this._manufacturerTableAdapter, this._manufacturerTableAdapter.Connection);
  11228. this._manufacturerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11229. this._manufacturerTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11230. if (this._manufacturerTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11231. this._manufacturerTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11232. adaptersWithAcceptChangesDuringUpdate.Add(this._manufacturerTableAdapter.Adapter);
  11233. }
  11234. }
  11235. if ((this._productTableAdapter != null)) {
  11236. revertConnections.Add(this._productTableAdapter, this._productTableAdapter.Connection);
  11237. this._productTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11238. this._productTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11239. if (this._productTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11240. this._productTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11241. adaptersWithAcceptChangesDuringUpdate.Add(this._productTableAdapter.Adapter);
  11242. }
  11243. }
  11244. if ((this._productPhotoTableAdapter != null)) {
  11245. revertConnections.Add(this._productPhotoTableAdapter, this._productPhotoTableAdapter.Connection);
  11246. this._productPhotoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11247. this._productPhotoTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11248. if (this._productPhotoTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11249. this._productPhotoTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11250. adaptersWithAcceptChangesDuringUpdate.Add(this._productPhotoTableAdapter.Adapter);
  11251. }
  11252. }
  11253. if ((this._productSaleTableAdapter != null)) {
  11254. revertConnections.Add(this._productSaleTableAdapter, this._productSaleTableAdapter.Connection);
  11255. this._productSaleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11256. this._productSaleTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11257. if (this._productSaleTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11258. this._productSaleTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11259. adaptersWithAcceptChangesDuringUpdate.Add(this._productSaleTableAdapter.Adapter);
  11260. }
  11261. }
  11262. if ((this._serviceTableAdapter != null)) {
  11263. revertConnections.Add(this._serviceTableAdapter, this._serviceTableAdapter.Connection);
  11264. this._serviceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11265. this._serviceTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11266. if (this._serviceTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11267. this._serviceTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11268. adaptersWithAcceptChangesDuringUpdate.Add(this._serviceTableAdapter.Adapter);
  11269. }
  11270. }
  11271. if ((this._servicePhotoTableAdapter != null)) {
  11272. revertConnections.Add(this._servicePhotoTableAdapter, this._servicePhotoTableAdapter.Connection);
  11273. this._servicePhotoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11274. this._servicePhotoTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11275. if (this._servicePhotoTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11276. this._servicePhotoTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11277. adaptersWithAcceptChangesDuringUpdate.Add(this._servicePhotoTableAdapter.Adapter);
  11278. }
  11279. }
  11280. if ((this._tagTableAdapter != null)) {
  11281. revertConnections.Add(this._tagTableAdapter, this._tagTableAdapter.Connection);
  11282. this._tagTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11283. this._tagTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11284. if (this._tagTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11285. this._tagTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11286. adaptersWithAcceptChangesDuringUpdate.Add(this._tagTableAdapter.Adapter);
  11287. }
  11288. }
  11289. if ((this._tagOfClientTableAdapter != null)) {
  11290. revertConnections.Add(this._tagOfClientTableAdapter, this._tagOfClientTableAdapter.Connection);
  11291. this._tagOfClientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11292. this._tagOfClientTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11293. if (this._tagOfClientTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11294. this._tagOfClientTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11295. adaptersWithAcceptChangesDuringUpdate.Add(this._tagOfClientTableAdapter.Adapter);
  11296. }
  11297. }
  11298. //
  11299. //---- Perform updates -----------
  11300. //
  11301. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  11302. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  11303. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  11304. }
  11305. else {
  11306. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  11307. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  11308. }
  11309. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  11310. //
  11311. //---- Commit updates -----------
  11312. //
  11313. workTransaction.Commit();
  11314. if ((0 < allAddedRows.Count)) {
  11315. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  11316. allAddedRows.CopyTo(rows);
  11317. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  11318. global::System.Data.DataRow row = rows[i];
  11319. row.AcceptChanges();
  11320. }
  11321. }
  11322. if ((0 < allChangedRows.Count)) {
  11323. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  11324. allChangedRows.CopyTo(rows);
  11325. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  11326. global::System.Data.DataRow row = rows[i];
  11327. row.AcceptChanges();
  11328. }
  11329. }
  11330. }
  11331. catch (global::System.Exception ex) {
  11332. workTransaction.Rollback();
  11333. // ---- Restore the dataset -----------
  11334. if (this.BackupDataSetBeforeUpdate) {
  11335. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  11336. dataSet.Clear();
  11337. dataSet.Merge(backupDataSet);
  11338. }
  11339. else {
  11340. if ((0 < allAddedRows.Count)) {
  11341. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  11342. allAddedRows.CopyTo(rows);
  11343. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  11344. global::System.Data.DataRow row = rows[i];
  11345. row.AcceptChanges();
  11346. row.SetAdded();
  11347. }
  11348. }
  11349. }
  11350. throw ex;
  11351. }
  11352. finally {
  11353. if (workConnOpened) {
  11354. workConnection.Close();
  11355. }
  11356. if ((this._attachedProductTableAdapter != null)) {
  11357. this._attachedProductTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._attachedProductTableAdapter]));
  11358. this._attachedProductTableAdapter.Transaction = null;
  11359. }
  11360. if ((this._clientTableAdapter != null)) {
  11361. this._clientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._clientTableAdapter]));
  11362. this._clientTableAdapter.Transaction = null;
  11363. }
  11364. if ((this._clientServiceTableAdapter != null)) {
  11365. this._clientServiceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._clientServiceTableAdapter]));
  11366. this._clientServiceTableAdapter.Transaction = null;
  11367. }
  11368. if ((this._documentByServiceTableAdapter != null)) {
  11369. this._documentByServiceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._documentByServiceTableAdapter]));
  11370. this._documentByServiceTableAdapter.Transaction = null;
  11371. }
  11372. if ((this._genderTableAdapter != null)) {
  11373. this._genderTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._genderTableAdapter]));
  11374. this._genderTableAdapter.Transaction = null;
  11375. }
  11376. if ((this._manufacturerTableAdapter != null)) {
  11377. this._manufacturerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._manufacturerTableAdapter]));
  11378. this._manufacturerTableAdapter.Transaction = null;
  11379. }
  11380. if ((this._productTableAdapter != null)) {
  11381. this._productTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productTableAdapter]));
  11382. this._productTableAdapter.Transaction = null;
  11383. }
  11384. if ((this._productPhotoTableAdapter != null)) {
  11385. this._productPhotoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productPhotoTableAdapter]));
  11386. this._productPhotoTableAdapter.Transaction = null;
  11387. }
  11388. if ((this._productSaleTableAdapter != null)) {
  11389. this._productSaleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productSaleTableAdapter]));
  11390. this._productSaleTableAdapter.Transaction = null;
  11391. }
  11392. if ((this._serviceTableAdapter != null)) {
  11393. this._serviceTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._serviceTableAdapter]));
  11394. this._serviceTableAdapter.Transaction = null;
  11395. }
  11396. if ((this._servicePhotoTableAdapter != null)) {
  11397. this._servicePhotoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._servicePhotoTableAdapter]));
  11398. this._servicePhotoTableAdapter.Transaction = null;
  11399. }
  11400. if ((this._tagTableAdapter != null)) {
  11401. this._tagTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tagTableAdapter]));
  11402. this._tagTableAdapter.Transaction = null;
  11403. }
  11404. if ((this._tagOfClientTableAdapter != null)) {
  11405. this._tagOfClientTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tagOfClientTableAdapter]));
  11406. this._tagOfClientTableAdapter.Transaction = null;
  11407. }
  11408. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  11409. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  11410. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  11411. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  11412. global::System.Data.Common.DataAdapter adapter = adapters[i];
  11413. adapter.AcceptChangesDuringUpdate = true;
  11414. }
  11415. }
  11416. }
  11417. return result;
  11418. }
  11419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11421. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  11422. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  11423. }
  11424. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11425. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11426. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  11427. if ((this._connection != null)) {
  11428. return true;
  11429. }
  11430. if (((this.Connection == null)
  11431. || (inputConnection == null))) {
  11432. return true;
  11433. }
  11434. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  11435. return true;
  11436. }
  11437. return false;
  11438. }
  11439. /// <summary>
  11440. ///Update Order Option
  11441. ///</summary>
  11442. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11443. public enum UpdateOrderOption {
  11444. InsertUpdateDelete = 0,
  11445. UpdateInsertDelete = 1,
  11446. }
  11447. /// <summary>
  11448. ///Used to sort self-referenced table's rows
  11449. ///</summary>
  11450. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11451. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  11452. private global::System.Data.DataRelation _relation;
  11453. private int _childFirst;
  11454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11455. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11456. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  11457. this._relation = relation;
  11458. if (childFirst) {
  11459. this._childFirst = -1;
  11460. }
  11461. else {
  11462. this._childFirst = 1;
  11463. }
  11464. }
  11465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11466. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11467. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  11468. global::System.Diagnostics.Debug.Assert((row != null));
  11469. global::System.Data.DataRow root = row;
  11470. distance = 0;
  11471. 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>();
  11472. traversedRows[row] = row;
  11473. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  11474. for (
  11475. ; ((parent != null)
  11476. && (traversedRows.ContainsKey(parent) == false));
  11477. ) {
  11478. distance = (distance + 1);
  11479. root = parent;
  11480. traversedRows[parent] = parent;
  11481. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  11482. }
  11483. if ((distance == 0)) {
  11484. traversedRows.Clear();
  11485. traversedRows[row] = row;
  11486. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  11487. for (
  11488. ; ((parent != null)
  11489. && (traversedRows.ContainsKey(parent) == false));
  11490. ) {
  11491. distance = (distance + 1);
  11492. root = parent;
  11493. traversedRows[parent] = parent;
  11494. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  11495. }
  11496. }
  11497. return root;
  11498. }
  11499. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11500. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11501. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  11502. if (object.ReferenceEquals(row1, row2)) {
  11503. return 0;
  11504. }
  11505. if ((row1 == null)) {
  11506. return -1;
  11507. }
  11508. if ((row2 == null)) {
  11509. return 1;
  11510. }
  11511. int distance1 = 0;
  11512. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  11513. int distance2 = 0;
  11514. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  11515. if (object.ReferenceEquals(root1, root2)) {
  11516. return (this._childFirst * distance1.CompareTo(distance2));
  11517. }
  11518. else {
  11519. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  11520. && (root2.Table != null)));
  11521. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  11522. return -1;
  11523. }
  11524. else {
  11525. return 1;
  11526. }
  11527. }
  11528. }
  11529. }
  11530. }
  11531. }
  11532. #pragma warning restore 1591