DB_Turaev_V2DataSet.Designer.cs 343 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560
  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_Turaev_V2DataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class DB_Turaev_V2DataSet : global::System.Data.DataSet {
  22. private КлиентDataTable tableКлиент;
  23. private Клиент_СервисDataTable tableКлиент_Сервис;
  24. private ПоставщикиDataTable tableПоставщики;
  25. private СервисDataTable tableСервис;
  26. private ТоварыDataTable tableТовары;
  27. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  28. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  29. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  30. public DB_Turaev_V2DataSet() {
  31. this.BeginInit();
  32. this.InitClass();
  33. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  34. base.Tables.CollectionChanged += schemaChangedHandler;
  35. base.Relations.CollectionChanged += schemaChangedHandler;
  36. this.EndInit();
  37. }
  38. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  39. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  40. protected DB_Turaev_V2DataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  41. base(info, context, false) {
  42. if ((this.IsBinarySerialized(info, context) == true)) {
  43. this.InitVars(false);
  44. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  45. this.Tables.CollectionChanged += schemaChangedHandler1;
  46. this.Relations.CollectionChanged += schemaChangedHandler1;
  47. return;
  48. }
  49. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  50. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  51. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  52. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  53. if ((ds.Tables["Клиент"] != null)) {
  54. base.Tables.Add(new КлиентDataTable(ds.Tables["Клиент"]));
  55. }
  56. if ((ds.Tables["Клиент_Сервис"] != null)) {
  57. base.Tables.Add(new Клиент_СервисDataTable(ds.Tables["Клиент_Сервис"]));
  58. }
  59. if ((ds.Tables["Поставщики"] != null)) {
  60. base.Tables.Add(new ПоставщикиDataTable(ds.Tables["Поставщики"]));
  61. }
  62. if ((ds.Tables["Сервис"] != null)) {
  63. base.Tables.Add(new СервисDataTable(ds.Tables["Сервис"]));
  64. }
  65. if ((ds.Tables["Товары"] != null)) {
  66. base.Tables.Add(new ТоварыDataTable(ds.Tables["Товары"]));
  67. }
  68. this.DataSetName = ds.DataSetName;
  69. this.Prefix = ds.Prefix;
  70. this.Namespace = ds.Namespace;
  71. this.Locale = ds.Locale;
  72. this.CaseSensitive = ds.CaseSensitive;
  73. this.EnforceConstraints = ds.EnforceConstraints;
  74. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  75. this.InitVars();
  76. }
  77. else {
  78. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  79. }
  80. this.GetSerializationData(info, context);
  81. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  82. base.Tables.CollectionChanged += schemaChangedHandler;
  83. this.Relations.CollectionChanged += schemaChangedHandler;
  84. }
  85. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  86. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  87. [global::System.ComponentModel.Browsable(false)]
  88. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  89. public КлиентDataTable Клиент {
  90. get {
  91. return this.tableКлиент;
  92. }
  93. }
  94. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  95. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  96. [global::System.ComponentModel.Browsable(false)]
  97. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  98. public Клиент_СервисDataTable Клиент_Сервис {
  99. get {
  100. return this.tableКлиент_Сервис;
  101. }
  102. }
  103. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  104. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  105. [global::System.ComponentModel.Browsable(false)]
  106. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  107. public ПоставщикиDataTable Поставщики {
  108. get {
  109. return this.tableПоставщики;
  110. }
  111. }
  112. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  113. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  114. [global::System.ComponentModel.Browsable(false)]
  115. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  116. public СервисDataTable Сервис {
  117. get {
  118. return this.tableСервис;
  119. }
  120. }
  121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  123. [global::System.ComponentModel.Browsable(false)]
  124. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  125. public ТоварыDataTable Товары {
  126. get {
  127. return this.tableТовары;
  128. }
  129. }
  130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  131. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  132. [global::System.ComponentModel.BrowsableAttribute(true)]
  133. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  134. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  135. get {
  136. return this._schemaSerializationMode;
  137. }
  138. set {
  139. this._schemaSerializationMode = value;
  140. }
  141. }
  142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  143. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  144. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  145. public new global::System.Data.DataTableCollection Tables {
  146. get {
  147. return base.Tables;
  148. }
  149. }
  150. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  151. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  152. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  153. public new global::System.Data.DataRelationCollection Relations {
  154. get {
  155. return base.Relations;
  156. }
  157. }
  158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  159. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  160. protected override void InitializeDerivedDataSet() {
  161. this.BeginInit();
  162. this.InitClass();
  163. this.EndInit();
  164. }
  165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  167. public override global::System.Data.DataSet Clone() {
  168. DB_Turaev_V2DataSet cln = ((DB_Turaev_V2DataSet)(base.Clone()));
  169. cln.InitVars();
  170. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  171. return cln;
  172. }
  173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  175. protected override bool ShouldSerializeTables() {
  176. return false;
  177. }
  178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  180. protected override bool ShouldSerializeRelations() {
  181. return false;
  182. }
  183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  185. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  186. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  187. this.Reset();
  188. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  189. ds.ReadXml(reader);
  190. if ((ds.Tables["Клиент"] != null)) {
  191. base.Tables.Add(new КлиентDataTable(ds.Tables["Клиент"]));
  192. }
  193. if ((ds.Tables["Клиент_Сервис"] != null)) {
  194. base.Tables.Add(new Клиент_СервисDataTable(ds.Tables["Клиент_Сервис"]));
  195. }
  196. if ((ds.Tables["Поставщики"] != null)) {
  197. base.Tables.Add(new ПоставщикиDataTable(ds.Tables["Поставщики"]));
  198. }
  199. if ((ds.Tables["Сервис"] != null)) {
  200. base.Tables.Add(new СервисDataTable(ds.Tables["Сервис"]));
  201. }
  202. if ((ds.Tables["Товары"] != null)) {
  203. base.Tables.Add(new ТоварыDataTable(ds.Tables["Товары"]));
  204. }
  205. this.DataSetName = ds.DataSetName;
  206. this.Prefix = ds.Prefix;
  207. this.Namespace = ds.Namespace;
  208. this.Locale = ds.Locale;
  209. this.CaseSensitive = ds.CaseSensitive;
  210. this.EnforceConstraints = ds.EnforceConstraints;
  211. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  212. this.InitVars();
  213. }
  214. else {
  215. this.ReadXml(reader);
  216. this.InitVars();
  217. }
  218. }
  219. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  220. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  221. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  222. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  223. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  224. stream.Position = 0;
  225. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  226. }
  227. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  228. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  229. internal void InitVars() {
  230. this.InitVars(true);
  231. }
  232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  233. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  234. internal void InitVars(bool initTable) {
  235. this.tableКлиент = ((КлиентDataTable)(base.Tables["Клиент"]));
  236. if ((initTable == true)) {
  237. if ((this.tableКлиент != null)) {
  238. this.tableКлиент.InitVars();
  239. }
  240. }
  241. this.tableКлиент_Сервис = ((Клиент_СервисDataTable)(base.Tables["Клиент_Сервис"]));
  242. if ((initTable == true)) {
  243. if ((this.tableКлиент_Сервис != null)) {
  244. this.tableКлиент_Сервис.InitVars();
  245. }
  246. }
  247. this.tableПоставщики = ((ПоставщикиDataTable)(base.Tables["Поставщики"]));
  248. if ((initTable == true)) {
  249. if ((this.tableПоставщики != null)) {
  250. this.tableПоставщики.InitVars();
  251. }
  252. }
  253. this.tableСервис = ((СервисDataTable)(base.Tables["Сервис"]));
  254. if ((initTable == true)) {
  255. if ((this.tableСервис != null)) {
  256. this.tableСервис.InitVars();
  257. }
  258. }
  259. this.tableТовары = ((ТоварыDataTable)(base.Tables["Товары"]));
  260. if ((initTable == true)) {
  261. if ((this.tableТовары != null)) {
  262. this.tableТовары.InitVars();
  263. }
  264. }
  265. }
  266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  268. private void InitClass() {
  269. this.DataSetName = "DB_Turaev_V2DataSet";
  270. this.Prefix = "";
  271. this.Namespace = "http://tempuri.org/DB_Turaev_V2DataSet.xsd";
  272. this.EnforceConstraints = true;
  273. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  274. this.tableКлиент = new КлиентDataTable();
  275. base.Tables.Add(this.tableКлиент);
  276. this.tableКлиент_Сервис = new Клиент_СервисDataTable();
  277. base.Tables.Add(this.tableКлиент_Сервис);
  278. this.tableПоставщики = new ПоставщикиDataTable();
  279. base.Tables.Add(this.tableПоставщики);
  280. this.tableСервис = new СервисDataTable();
  281. base.Tables.Add(this.tableСервис);
  282. this.tableТовары = new ТоварыDataTable();
  283. base.Tables.Add(this.tableТовары);
  284. }
  285. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  286. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  287. private bool ShouldSerializeКлиент() {
  288. return false;
  289. }
  290. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  291. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  292. private bool ShouldSerializeКлиент_Сервис() {
  293. return false;
  294. }
  295. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  296. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  297. private bool ShouldSerializeПоставщики() {
  298. return false;
  299. }
  300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  301. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  302. private bool ShouldSerializeСервис() {
  303. return false;
  304. }
  305. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  306. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  307. private bool ShouldSerializeТовары() {
  308. return false;
  309. }
  310. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  311. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  312. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  313. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  314. this.InitVars();
  315. }
  316. }
  317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  319. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  320. DB_Turaev_V2DataSet ds = new DB_Turaev_V2DataSet();
  321. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  322. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  323. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  324. any.Namespace = ds.Namespace;
  325. sequence.Items.Add(any);
  326. type.Particle = sequence;
  327. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  328. if (xs.Contains(dsSchema.TargetNamespace)) {
  329. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  330. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  331. try {
  332. global::System.Xml.Schema.XmlSchema schema = null;
  333. dsSchema.Write(s1);
  334. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  335. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  336. s2.SetLength(0);
  337. schema.Write(s2);
  338. if ((s1.Length == s2.Length)) {
  339. s1.Position = 0;
  340. s2.Position = 0;
  341. for (; ((s1.Position != s1.Length)
  342. && (s1.ReadByte() == s2.ReadByte())); ) {
  343. ;
  344. }
  345. if ((s1.Position == s1.Length)) {
  346. return type;
  347. }
  348. }
  349. }
  350. }
  351. finally {
  352. if ((s1 != null)) {
  353. s1.Close();
  354. }
  355. if ((s2 != null)) {
  356. s2.Close();
  357. }
  358. }
  359. }
  360. xs.Add(dsSchema);
  361. return type;
  362. }
  363. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  364. public delegate void КлиентRowChangeEventHandler(object sender, КлиентRowChangeEvent e);
  365. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  366. public delegate void Клиент_СервисRowChangeEventHandler(object sender, Клиент_СервисRowChangeEvent e);
  367. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  368. public delegate void ПоставщикиRowChangeEventHandler(object sender, ПоставщикиRowChangeEvent e);
  369. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  370. public delegate void СервисRowChangeEventHandler(object sender, СервисRowChangeEvent e);
  371. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  372. public delegate void ТоварыRowChangeEventHandler(object sender, ТоварыRowChangeEvent e);
  373. /// <summary>
  374. ///Represents the strongly named DataTable class.
  375. ///</summary>
  376. [global::System.Serializable()]
  377. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  378. public partial class КлиентDataTable : global::System.Data.TypedTableBase<КлиентRow> {
  379. private global::System.Data.DataColumn columnID_client;
  380. private global::System.Data.DataColumn columnFirstName;
  381. private global::System.Data.DataColumn columnLastName;
  382. private global::System.Data.DataColumn columnPatronymic;
  383. private global::System.Data.DataColumn columnGenderCode;
  384. private global::System.Data.DataColumn columnPhone;
  385. private global::System.Data.DataColumn columnBirthday;
  386. private global::System.Data.DataColumn columnEmail;
  387. private global::System.Data.DataColumn columnRegistrationDate;
  388. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  389. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  390. public КлиентDataTable() {
  391. this.TableName = "Клиент";
  392. this.BeginInit();
  393. this.InitClass();
  394. this.EndInit();
  395. }
  396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  398. internal КлиентDataTable(global::System.Data.DataTable table) {
  399. this.TableName = table.TableName;
  400. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  401. this.CaseSensitive = table.CaseSensitive;
  402. }
  403. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  404. this.Locale = table.Locale;
  405. }
  406. if ((table.Namespace != table.DataSet.Namespace)) {
  407. this.Namespace = table.Namespace;
  408. }
  409. this.Prefix = table.Prefix;
  410. this.MinimumCapacity = table.MinimumCapacity;
  411. }
  412. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  413. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  414. protected КлиентDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  415. base(info, context) {
  416. this.InitVars();
  417. }
  418. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  419. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  420. public global::System.Data.DataColumn ID_clientColumn {
  421. get {
  422. return this.columnID_client;
  423. }
  424. }
  425. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  426. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  427. public global::System.Data.DataColumn FirstNameColumn {
  428. get {
  429. return this.columnFirstName;
  430. }
  431. }
  432. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  433. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  434. public global::System.Data.DataColumn LastNameColumn {
  435. get {
  436. return this.columnLastName;
  437. }
  438. }
  439. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  440. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  441. public global::System.Data.DataColumn PatronymicColumn {
  442. get {
  443. return this.columnPatronymic;
  444. }
  445. }
  446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  447. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  448. public global::System.Data.DataColumn GenderCodeColumn {
  449. get {
  450. return this.columnGenderCode;
  451. }
  452. }
  453. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  454. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  455. public global::System.Data.DataColumn PhoneColumn {
  456. get {
  457. return this.columnPhone;
  458. }
  459. }
  460. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  461. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  462. public global::System.Data.DataColumn BirthdayColumn {
  463. get {
  464. return this.columnBirthday;
  465. }
  466. }
  467. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  468. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  469. public global::System.Data.DataColumn EmailColumn {
  470. get {
  471. return this.columnEmail;
  472. }
  473. }
  474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  476. public global::System.Data.DataColumn RegistrationDateColumn {
  477. get {
  478. return this.columnRegistrationDate;
  479. }
  480. }
  481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  483. [global::System.ComponentModel.Browsable(false)]
  484. public int Count {
  485. get {
  486. return this.Rows.Count;
  487. }
  488. }
  489. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  490. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  491. public КлиентRow this[int index] {
  492. get {
  493. return ((КлиентRow)(this.Rows[index]));
  494. }
  495. }
  496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  497. public event КлиентRowChangeEventHandler КлиентRowChanging;
  498. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  499. public event КлиентRowChangeEventHandler КлиентRowChanged;
  500. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  501. public event КлиентRowChangeEventHandler КлиентRowDeleting;
  502. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  503. public event КлиентRowChangeEventHandler КлиентRowDeleted;
  504. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  505. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  506. public void AddКлиентRow(КлиентRow row) {
  507. this.Rows.Add(row);
  508. }
  509. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  510. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  511. public КлиентRow AddКлиентRow(string FirstName, string LastName, string Patronymic, string GenderCode, string Phone, System.DateTime Birthday, string Email, System.DateTime RegistrationDate) {
  512. КлиентRow rowКлиентRow = ((КлиентRow)(this.NewRow()));
  513. object[] columnValuesArray = new object[] {
  514. null,
  515. FirstName,
  516. LastName,
  517. Patronymic,
  518. GenderCode,
  519. Phone,
  520. Birthday,
  521. Email,
  522. RegistrationDate};
  523. rowКлиентRow.ItemArray = columnValuesArray;
  524. this.Rows.Add(rowКлиентRow);
  525. return rowКлиентRow;
  526. }
  527. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  528. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  529. public КлиентRow FindByID_client(int ID_client) {
  530. return ((КлиентRow)(this.Rows.Find(new object[] {
  531. ID_client})));
  532. }
  533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  535. public override global::System.Data.DataTable Clone() {
  536. КлиентDataTable cln = ((КлиентDataTable)(base.Clone()));
  537. cln.InitVars();
  538. return cln;
  539. }
  540. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  541. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  542. protected override global::System.Data.DataTable CreateInstance() {
  543. return new КлиентDataTable();
  544. }
  545. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  546. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  547. internal void InitVars() {
  548. this.columnID_client = base.Columns["ID_client"];
  549. this.columnFirstName = base.Columns["FirstName"];
  550. this.columnLastName = base.Columns["LastName"];
  551. this.columnPatronymic = base.Columns["Patronymic"];
  552. this.columnGenderCode = base.Columns["GenderCode"];
  553. this.columnPhone = base.Columns["Phone"];
  554. this.columnBirthday = base.Columns["Birthday"];
  555. this.columnEmail = base.Columns["Email"];
  556. this.columnRegistrationDate = base.Columns["RegistrationDate"];
  557. }
  558. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  559. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  560. private void InitClass() {
  561. this.columnID_client = new global::System.Data.DataColumn("ID_client", typeof(int), null, global::System.Data.MappingType.Element);
  562. base.Columns.Add(this.columnID_client);
  563. this.columnFirstName = new global::System.Data.DataColumn("FirstName", typeof(string), null, global::System.Data.MappingType.Element);
  564. base.Columns.Add(this.columnFirstName);
  565. this.columnLastName = new global::System.Data.DataColumn("LastName", typeof(string), null, global::System.Data.MappingType.Element);
  566. base.Columns.Add(this.columnLastName);
  567. this.columnPatronymic = new global::System.Data.DataColumn("Patronymic", typeof(string), null, global::System.Data.MappingType.Element);
  568. base.Columns.Add(this.columnPatronymic);
  569. this.columnGenderCode = new global::System.Data.DataColumn("GenderCode", typeof(string), null, global::System.Data.MappingType.Element);
  570. base.Columns.Add(this.columnGenderCode);
  571. this.columnPhone = new global::System.Data.DataColumn("Phone", typeof(string), null, global::System.Data.MappingType.Element);
  572. base.Columns.Add(this.columnPhone);
  573. this.columnBirthday = new global::System.Data.DataColumn("Birthday", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  574. base.Columns.Add(this.columnBirthday);
  575. this.columnEmail = new global::System.Data.DataColumn("Email", typeof(string), null, global::System.Data.MappingType.Element);
  576. base.Columns.Add(this.columnEmail);
  577. this.columnRegistrationDate = new global::System.Data.DataColumn("RegistrationDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  578. base.Columns.Add(this.columnRegistrationDate);
  579. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  580. this.columnID_client}, true));
  581. this.columnID_client.AutoIncrement = true;
  582. this.columnID_client.AutoIncrementSeed = -1;
  583. this.columnID_client.AutoIncrementStep = -1;
  584. this.columnID_client.AllowDBNull = false;
  585. this.columnID_client.ReadOnly = true;
  586. this.columnID_client.Unique = true;
  587. this.columnFirstName.AllowDBNull = false;
  588. this.columnFirstName.MaxLength = 50;
  589. this.columnLastName.AllowDBNull = false;
  590. this.columnLastName.MaxLength = 50;
  591. this.columnPatronymic.AllowDBNull = false;
  592. this.columnPatronymic.MaxLength = 50;
  593. this.columnGenderCode.AllowDBNull = false;
  594. this.columnGenderCode.MaxLength = 1;
  595. this.columnPhone.AllowDBNull = false;
  596. this.columnPhone.MaxLength = 50;
  597. this.columnBirthday.AllowDBNull = false;
  598. this.columnEmail.AllowDBNull = false;
  599. this.columnEmail.MaxLength = 50;
  600. this.columnRegistrationDate.AllowDBNull = false;
  601. }
  602. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  603. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  604. public КлиентRow NewКлиентRow() {
  605. return ((КлиентRow)(this.NewRow()));
  606. }
  607. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  608. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  609. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  610. return new КлиентRow(builder);
  611. }
  612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  614. protected override global::System.Type GetRowType() {
  615. return typeof(КлиентRow);
  616. }
  617. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  618. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  619. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  620. base.OnRowChanged(e);
  621. if ((this.КлиентRowChanged != null)) {
  622. this.КлиентRowChanged(this, new КлиентRowChangeEvent(((КлиентRow)(e.Row)), e.Action));
  623. }
  624. }
  625. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  626. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  627. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  628. base.OnRowChanging(e);
  629. if ((this.КлиентRowChanging != null)) {
  630. this.КлиентRowChanging(this, new КлиентRowChangeEvent(((КлиентRow)(e.Row)), e.Action));
  631. }
  632. }
  633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  635. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  636. base.OnRowDeleted(e);
  637. if ((this.КлиентRowDeleted != null)) {
  638. this.КлиентRowDeleted(this, new КлиентRowChangeEvent(((КлиентRow)(e.Row)), e.Action));
  639. }
  640. }
  641. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  642. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  643. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  644. base.OnRowDeleting(e);
  645. if ((this.КлиентRowDeleting != null)) {
  646. this.КлиентRowDeleting(this, new КлиентRowChangeEvent(((КлиентRow)(e.Row)), e.Action));
  647. }
  648. }
  649. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  650. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  651. public void RemoveКлиентRow(КлиентRow row) {
  652. this.Rows.Remove(row);
  653. }
  654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  655. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  656. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  657. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  658. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  659. DB_Turaev_V2DataSet ds = new DB_Turaev_V2DataSet();
  660. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  661. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  662. any1.MinOccurs = new decimal(0);
  663. any1.MaxOccurs = decimal.MaxValue;
  664. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  665. sequence.Items.Add(any1);
  666. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  667. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  668. any2.MinOccurs = new decimal(1);
  669. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  670. sequence.Items.Add(any2);
  671. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  672. attribute1.Name = "namespace";
  673. attribute1.FixedValue = ds.Namespace;
  674. type.Attributes.Add(attribute1);
  675. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  676. attribute2.Name = "tableTypeName";
  677. attribute2.FixedValue = "КлиентDataTable";
  678. type.Attributes.Add(attribute2);
  679. type.Particle = sequence;
  680. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  681. if (xs.Contains(dsSchema.TargetNamespace)) {
  682. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  683. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  684. try {
  685. global::System.Xml.Schema.XmlSchema schema = null;
  686. dsSchema.Write(s1);
  687. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  688. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  689. s2.SetLength(0);
  690. schema.Write(s2);
  691. if ((s1.Length == s2.Length)) {
  692. s1.Position = 0;
  693. s2.Position = 0;
  694. for (; ((s1.Position != s1.Length)
  695. && (s1.ReadByte() == s2.ReadByte())); ) {
  696. ;
  697. }
  698. if ((s1.Position == s1.Length)) {
  699. return type;
  700. }
  701. }
  702. }
  703. }
  704. finally {
  705. if ((s1 != null)) {
  706. s1.Close();
  707. }
  708. if ((s2 != null)) {
  709. s2.Close();
  710. }
  711. }
  712. }
  713. xs.Add(dsSchema);
  714. return type;
  715. }
  716. }
  717. /// <summary>
  718. ///Represents the strongly named DataTable class.
  719. ///</summary>
  720. [global::System.Serializable()]
  721. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  722. public partial class Клиент_СервисDataTable : global::System.Data.TypedTableBase<Клиент_СервисRow> {
  723. private global::System.Data.DataColumn columnID;
  724. private global::System.Data.DataColumn columnClient;
  725. private global::System.Data.DataColumn columnService;
  726. private global::System.Data.DataColumn columnStartTime;
  727. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  728. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  729. public Клиент_СервисDataTable() {
  730. this.TableName = "Клиент_Сервис";
  731. this.BeginInit();
  732. this.InitClass();
  733. this.EndInit();
  734. }
  735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  736. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  737. internal Клиент_СервисDataTable(global::System.Data.DataTable table) {
  738. this.TableName = table.TableName;
  739. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  740. this.CaseSensitive = table.CaseSensitive;
  741. }
  742. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  743. this.Locale = table.Locale;
  744. }
  745. if ((table.Namespace != table.DataSet.Namespace)) {
  746. this.Namespace = table.Namespace;
  747. }
  748. this.Prefix = table.Prefix;
  749. this.MinimumCapacity = table.MinimumCapacity;
  750. }
  751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  753. protected Клиент_СервисDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  754. base(info, context) {
  755. this.InitVars();
  756. }
  757. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  758. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  759. public global::System.Data.DataColumn IDColumn {
  760. get {
  761. return this.columnID;
  762. }
  763. }
  764. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  765. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  766. public global::System.Data.DataColumn ClientColumn {
  767. get {
  768. return this.columnClient;
  769. }
  770. }
  771. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  772. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  773. public global::System.Data.DataColumn ServiceColumn {
  774. get {
  775. return this.columnService;
  776. }
  777. }
  778. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  779. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  780. public global::System.Data.DataColumn StartTimeColumn {
  781. get {
  782. return this.columnStartTime;
  783. }
  784. }
  785. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  786. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  787. [global::System.ComponentModel.Browsable(false)]
  788. public int Count {
  789. get {
  790. return this.Rows.Count;
  791. }
  792. }
  793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  794. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  795. public Клиент_СервисRow this[int index] {
  796. get {
  797. return ((Клиент_СервисRow)(this.Rows[index]));
  798. }
  799. }
  800. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  801. public event Клиент_СервисRowChangeEventHandler Клиент_СервисRowChanging;
  802. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  803. public event Клиент_СервисRowChangeEventHandler Клиент_СервисRowChanged;
  804. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  805. public event Клиент_СервисRowChangeEventHandler Клиент_СервисRowDeleting;
  806. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  807. public event Клиент_СервисRowChangeEventHandler Клиент_СервисRowDeleted;
  808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  810. public void AddКлиент_СервисRow(Клиент_СервисRow row) {
  811. this.Rows.Add(row);
  812. }
  813. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  814. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  815. public Клиент_СервисRow AddКлиент_СервисRow(string Client, string Service, string StartTime) {
  816. Клиент_СервисRow rowКлиент_СервисRow = ((Клиент_СервисRow)(this.NewRow()));
  817. object[] columnValuesArray = new object[] {
  818. null,
  819. Client,
  820. Service,
  821. StartTime};
  822. rowКлиент_СервисRow.ItemArray = columnValuesArray;
  823. this.Rows.Add(rowКлиент_СервисRow);
  824. return rowКлиент_СервисRow;
  825. }
  826. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  827. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  828. public Клиент_СервисRow FindByID(int ID) {
  829. return ((Клиент_СервисRow)(this.Rows.Find(new object[] {
  830. ID})));
  831. }
  832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  833. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  834. public override global::System.Data.DataTable Clone() {
  835. Клиент_СервисDataTable cln = ((Клиент_СервисDataTable)(base.Clone()));
  836. cln.InitVars();
  837. return cln;
  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.DataTable CreateInstance() {
  842. return new Клиент_СервисDataTable();
  843. }
  844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  845. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  846. internal void InitVars() {
  847. this.columnID = base.Columns["ID"];
  848. this.columnClient = base.Columns["Client"];
  849. this.columnService = base.Columns["Service"];
  850. this.columnStartTime = base.Columns["StartTime"];
  851. }
  852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  853. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  854. private void InitClass() {
  855. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  856. base.Columns.Add(this.columnID);
  857. this.columnClient = new global::System.Data.DataColumn("Client", typeof(string), null, global::System.Data.MappingType.Element);
  858. base.Columns.Add(this.columnClient);
  859. this.columnService = new global::System.Data.DataColumn("Service", typeof(string), null, global::System.Data.MappingType.Element);
  860. base.Columns.Add(this.columnService);
  861. this.columnStartTime = new global::System.Data.DataColumn("StartTime", typeof(string), null, global::System.Data.MappingType.Element);
  862. base.Columns.Add(this.columnStartTime);
  863. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  864. this.columnID}, true));
  865. this.columnID.AutoIncrement = true;
  866. this.columnID.AutoIncrementSeed = -1;
  867. this.columnID.AutoIncrementStep = -1;
  868. this.columnID.AllowDBNull = false;
  869. this.columnID.ReadOnly = true;
  870. this.columnID.Unique = true;
  871. this.columnClient.MaxLength = 20;
  872. this.columnService.MaxLength = 100;
  873. this.columnStartTime.MaxLength = 50;
  874. }
  875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  876. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  877. public Клиент_СервисRow NewКлиент_СервисRow() {
  878. return ((Клиент_СервисRow)(this.NewRow()));
  879. }
  880. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  881. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  882. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  883. return new Клиент_СервисRow(builder);
  884. }
  885. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  886. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  887. protected override global::System.Type GetRowType() {
  888. return typeof(Клиент_СервисRow);
  889. }
  890. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  891. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  892. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  893. base.OnRowChanged(e);
  894. if ((this.Клиент_СервисRowChanged != null)) {
  895. this.Клиент_СервисRowChanged(this, new Клиент_СервисRowChangeEvent(((Клиент_СервисRow)(e.Row)), e.Action));
  896. }
  897. }
  898. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  899. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  900. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  901. base.OnRowChanging(e);
  902. if ((this.Клиент_СервисRowChanging != null)) {
  903. this.Клиент_СервисRowChanging(this, new Клиент_СервисRowChangeEvent(((Клиент_СервисRow)(e.Row)), e.Action));
  904. }
  905. }
  906. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  907. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  908. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  909. base.OnRowDeleted(e);
  910. if ((this.Клиент_СервисRowDeleted != null)) {
  911. this.Клиент_СервисRowDeleted(this, new Клиент_СервисRowChangeEvent(((Клиент_СервисRow)(e.Row)), e.Action));
  912. }
  913. }
  914. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  915. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  916. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  917. base.OnRowDeleting(e);
  918. if ((this.Клиент_СервисRowDeleting != null)) {
  919. this.Клиент_СервисRowDeleting(this, new Клиент_СервисRowChangeEvent(((Клиент_СервисRow)(e.Row)), e.Action));
  920. }
  921. }
  922. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  923. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  924. public void RemoveКлиент_СервисRow(Клиент_СервисRow row) {
  925. this.Rows.Remove(row);
  926. }
  927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  928. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  929. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  930. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  931. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  932. DB_Turaev_V2DataSet ds = new DB_Turaev_V2DataSet();
  933. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  934. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  935. any1.MinOccurs = new decimal(0);
  936. any1.MaxOccurs = decimal.MaxValue;
  937. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  938. sequence.Items.Add(any1);
  939. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  940. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  941. any2.MinOccurs = new decimal(1);
  942. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  943. sequence.Items.Add(any2);
  944. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  945. attribute1.Name = "namespace";
  946. attribute1.FixedValue = ds.Namespace;
  947. type.Attributes.Add(attribute1);
  948. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  949. attribute2.Name = "tableTypeName";
  950. attribute2.FixedValue = "Клиент_СервисDataTable";
  951. type.Attributes.Add(attribute2);
  952. type.Particle = sequence;
  953. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  954. if (xs.Contains(dsSchema.TargetNamespace)) {
  955. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  956. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  957. try {
  958. global::System.Xml.Schema.XmlSchema schema = null;
  959. dsSchema.Write(s1);
  960. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  961. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  962. s2.SetLength(0);
  963. schema.Write(s2);
  964. if ((s1.Length == s2.Length)) {
  965. s1.Position = 0;
  966. s2.Position = 0;
  967. for (; ((s1.Position != s1.Length)
  968. && (s1.ReadByte() == s2.ReadByte())); ) {
  969. ;
  970. }
  971. if ((s1.Position == s1.Length)) {
  972. return type;
  973. }
  974. }
  975. }
  976. }
  977. finally {
  978. if ((s1 != null)) {
  979. s1.Close();
  980. }
  981. if ((s2 != null)) {
  982. s2.Close();
  983. }
  984. }
  985. }
  986. xs.Add(dsSchema);
  987. return type;
  988. }
  989. }
  990. /// <summary>
  991. ///Represents the strongly named DataTable class.
  992. ///</summary>
  993. [global::System.Serializable()]
  994. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  995. public partial class ПоставщикиDataTable : global::System.Data.TypedTableBase<ПоставщикиRow> {
  996. private global::System.Data.DataColumn columnID;
  997. private global::System.Data.DataColumn columnName;
  998. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  999. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1000. public ПоставщикиDataTable() {
  1001. this.TableName = "Поставщики";
  1002. this.BeginInit();
  1003. this.InitClass();
  1004. this.EndInit();
  1005. }
  1006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1008. internal ПоставщикиDataTable(global::System.Data.DataTable table) {
  1009. this.TableName = table.TableName;
  1010. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1011. this.CaseSensitive = table.CaseSensitive;
  1012. }
  1013. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1014. this.Locale = table.Locale;
  1015. }
  1016. if ((table.Namespace != table.DataSet.Namespace)) {
  1017. this.Namespace = table.Namespace;
  1018. }
  1019. this.Prefix = table.Prefix;
  1020. this.MinimumCapacity = table.MinimumCapacity;
  1021. }
  1022. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1023. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1024. protected ПоставщикиDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1025. base(info, context) {
  1026. this.InitVars();
  1027. }
  1028. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1029. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1030. public global::System.Data.DataColumn IDColumn {
  1031. get {
  1032. return this.columnID;
  1033. }
  1034. }
  1035. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1036. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1037. public global::System.Data.DataColumn NameColumn {
  1038. get {
  1039. return this.columnName;
  1040. }
  1041. }
  1042. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1043. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1044. [global::System.ComponentModel.Browsable(false)]
  1045. public int Count {
  1046. get {
  1047. return this.Rows.Count;
  1048. }
  1049. }
  1050. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1052. public ПоставщикиRow this[int index] {
  1053. get {
  1054. return ((ПоставщикиRow)(this.Rows[index]));
  1055. }
  1056. }
  1057. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1058. public event ПоставщикиRowChangeEventHandler ПоставщикиRowChanging;
  1059. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1060. public event ПоставщикиRowChangeEventHandler ПоставщикиRowChanged;
  1061. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1062. public event ПоставщикиRowChangeEventHandler ПоставщикиRowDeleting;
  1063. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1064. public event ПоставщикиRowChangeEventHandler ПоставщикиRowDeleted;
  1065. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1066. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1067. public void AddПоставщикиRow(ПоставщикиRow row) {
  1068. this.Rows.Add(row);
  1069. }
  1070. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1071. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1072. public ПоставщикиRow AddПоставщикиRow(string Name) {
  1073. ПоставщикиRow rowПоставщикиRow = ((ПоставщикиRow)(this.NewRow()));
  1074. object[] columnValuesArray = new object[] {
  1075. null,
  1076. Name};
  1077. rowПоставщикиRow.ItemArray = columnValuesArray;
  1078. this.Rows.Add(rowПоставщикиRow);
  1079. return rowПоставщикиRow;
  1080. }
  1081. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1082. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1083. public ПоставщикиRow FindByID(int ID) {
  1084. return ((ПоставщикиRow)(this.Rows.Find(new object[] {
  1085. ID})));
  1086. }
  1087. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1088. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1089. public override global::System.Data.DataTable Clone() {
  1090. ПоставщикиDataTable cln = ((ПоставщикиDataTable)(base.Clone()));
  1091. cln.InitVars();
  1092. return cln;
  1093. }
  1094. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1095. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1096. protected override global::System.Data.DataTable CreateInstance() {
  1097. return new ПоставщикиDataTable();
  1098. }
  1099. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1100. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1101. internal void InitVars() {
  1102. this.columnID = base.Columns["ID"];
  1103. this.columnName = base.Columns["Name"];
  1104. }
  1105. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1106. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1107. private void InitClass() {
  1108. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  1109. base.Columns.Add(this.columnID);
  1110. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  1111. base.Columns.Add(this.columnName);
  1112. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1113. this.columnID}, true));
  1114. this.columnID.AutoIncrement = true;
  1115. this.columnID.AutoIncrementSeed = -1;
  1116. this.columnID.AutoIncrementStep = -1;
  1117. this.columnID.AllowDBNull = false;
  1118. this.columnID.ReadOnly = true;
  1119. this.columnID.Unique = true;
  1120. this.columnName.AllowDBNull = false;
  1121. this.columnName.MaxLength = 100;
  1122. }
  1123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1124. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1125. public ПоставщикиRow NewПоставщикиRow() {
  1126. return ((ПоставщикиRow)(this.NewRow()));
  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.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1131. return new ПоставщикиRow(builder);
  1132. }
  1133. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1134. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1135. protected override global::System.Type GetRowType() {
  1136. return typeof(ПоставщикиRow);
  1137. }
  1138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1139. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1140. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1141. base.OnRowChanged(e);
  1142. if ((this.ПоставщикиRowChanged != null)) {
  1143. this.ПоставщикиRowChanged(this, new ПоставщикиRowChangeEvent(((ПоставщикиRow)(e.Row)), e.Action));
  1144. }
  1145. }
  1146. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1147. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1148. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1149. base.OnRowChanging(e);
  1150. if ((this.ПоставщикиRowChanging != null)) {
  1151. this.ПоставщикиRowChanging(this, new ПоставщикиRowChangeEvent(((ПоставщикиRow)(e.Row)), e.Action));
  1152. }
  1153. }
  1154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1155. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1156. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1157. base.OnRowDeleted(e);
  1158. if ((this.ПоставщикиRowDeleted != null)) {
  1159. this.ПоставщикиRowDeleted(this, new ПоставщикиRowChangeEvent(((ПоставщикиRow)(e.Row)), e.Action));
  1160. }
  1161. }
  1162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1163. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1164. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1165. base.OnRowDeleting(e);
  1166. if ((this.ПоставщикиRowDeleting != null)) {
  1167. this.ПоставщикиRowDeleting(this, new ПоставщикиRowChangeEvent(((ПоставщикиRow)(e.Row)), e.Action));
  1168. }
  1169. }
  1170. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1171. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1172. public void RemoveПоставщикиRow(ПоставщикиRow row) {
  1173. this.Rows.Remove(row);
  1174. }
  1175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1176. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1177. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1178. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1179. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1180. DB_Turaev_V2DataSet ds = new DB_Turaev_V2DataSet();
  1181. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1182. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1183. any1.MinOccurs = new decimal(0);
  1184. any1.MaxOccurs = decimal.MaxValue;
  1185. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1186. sequence.Items.Add(any1);
  1187. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1188. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1189. any2.MinOccurs = new decimal(1);
  1190. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1191. sequence.Items.Add(any2);
  1192. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1193. attribute1.Name = "namespace";
  1194. attribute1.FixedValue = ds.Namespace;
  1195. type.Attributes.Add(attribute1);
  1196. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1197. attribute2.Name = "tableTypeName";
  1198. attribute2.FixedValue = "ПоставщикиDataTable";
  1199. type.Attributes.Add(attribute2);
  1200. type.Particle = sequence;
  1201. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1202. if (xs.Contains(dsSchema.TargetNamespace)) {
  1203. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1204. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1205. try {
  1206. global::System.Xml.Schema.XmlSchema schema = null;
  1207. dsSchema.Write(s1);
  1208. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1209. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1210. s2.SetLength(0);
  1211. schema.Write(s2);
  1212. if ((s1.Length == s2.Length)) {
  1213. s1.Position = 0;
  1214. s2.Position = 0;
  1215. for (; ((s1.Position != s1.Length)
  1216. && (s1.ReadByte() == s2.ReadByte())); ) {
  1217. ;
  1218. }
  1219. if ((s1.Position == s1.Length)) {
  1220. return type;
  1221. }
  1222. }
  1223. }
  1224. }
  1225. finally {
  1226. if ((s1 != null)) {
  1227. s1.Close();
  1228. }
  1229. if ((s2 != null)) {
  1230. s2.Close();
  1231. }
  1232. }
  1233. }
  1234. xs.Add(dsSchema);
  1235. return type;
  1236. }
  1237. }
  1238. /// <summary>
  1239. ///Represents the strongly named DataTable class.
  1240. ///</summary>
  1241. [global::System.Serializable()]
  1242. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1243. public partial class СервисDataTable : global::System.Data.TypedTableBase<СервисRow> {
  1244. private global::System.Data.DataColumn columnID_service;
  1245. private global::System.Data.DataColumn columnНаименование_услуги;
  1246. private global::System.Data.DataColumn columnГлавное_изображение;
  1247. private global::System.Data.DataColumn columnДлительность;
  1248. private global::System.Data.DataColumn columnСтоимость;
  1249. private global::System.Data.DataColumn columnДействующая_скидка;
  1250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1252. public СервисDataTable() {
  1253. this.TableName = "Сервис";
  1254. this.BeginInit();
  1255. this.InitClass();
  1256. this.EndInit();
  1257. }
  1258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1260. internal СервисDataTable(global::System.Data.DataTable table) {
  1261. this.TableName = table.TableName;
  1262. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1263. this.CaseSensitive = table.CaseSensitive;
  1264. }
  1265. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1266. this.Locale = table.Locale;
  1267. }
  1268. if ((table.Namespace != table.DataSet.Namespace)) {
  1269. this.Namespace = table.Namespace;
  1270. }
  1271. this.Prefix = table.Prefix;
  1272. this.MinimumCapacity = table.MinimumCapacity;
  1273. }
  1274. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1275. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1276. protected СервисDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1277. base(info, context) {
  1278. this.InitVars();
  1279. }
  1280. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1281. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1282. public global::System.Data.DataColumn ID_serviceColumn {
  1283. get {
  1284. return this.columnID_service;
  1285. }
  1286. }
  1287. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1288. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1289. public global::System.Data.DataColumn Наименование_услугиColumn {
  1290. get {
  1291. return this.columnНаименование_услуги;
  1292. }
  1293. }
  1294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1296. public global::System.Data.DataColumn Главное_изображениеColumn {
  1297. get {
  1298. return this.columnГлавное_изображение;
  1299. }
  1300. }
  1301. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1302. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1303. public global::System.Data.DataColumn ДлительностьColumn {
  1304. get {
  1305. return this.columnДлительность;
  1306. }
  1307. }
  1308. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1309. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1310. public global::System.Data.DataColumn СтоимостьColumn {
  1311. get {
  1312. return this.columnСтоимость;
  1313. }
  1314. }
  1315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1316. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1317. public global::System.Data.DataColumn Действующая_скидкаColumn {
  1318. get {
  1319. return this.columnДействующая_скидка;
  1320. }
  1321. }
  1322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1323. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1324. [global::System.ComponentModel.Browsable(false)]
  1325. public int Count {
  1326. get {
  1327. return this.Rows.Count;
  1328. }
  1329. }
  1330. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1331. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1332. public СервисRow this[int index] {
  1333. get {
  1334. return ((СервисRow)(this.Rows[index]));
  1335. }
  1336. }
  1337. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1338. public event СервисRowChangeEventHandler СервисRowChanging;
  1339. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1340. public event СервисRowChangeEventHandler СервисRowChanged;
  1341. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1342. public event СервисRowChangeEventHandler СервисRowDeleting;
  1343. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1344. public event СервисRowChangeEventHandler СервисRowDeleted;
  1345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1346. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1347. public void AddСервисRow(СервисRow row) {
  1348. this.Rows.Add(row);
  1349. }
  1350. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1351. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1352. public СервисRow AddСервисRow(string Наименование_услуги, string Главное_изображение, string Длительность, string Стоимость, string Действующая_скидка) {
  1353. СервисRow rowСервисRow = ((СервисRow)(this.NewRow()));
  1354. object[] columnValuesArray = new object[] {
  1355. null,
  1356. Наименование_услуги,
  1357. Главное_изображение,
  1358. Длительность,
  1359. Стоимость,
  1360. Действующая_скидка};
  1361. rowСервисRow.ItemArray = columnValuesArray;
  1362. this.Rows.Add(rowСервисRow);
  1363. return rowСервисRow;
  1364. }
  1365. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1366. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1367. public СервисRow FindByID_service(int ID_service) {
  1368. return ((СервисRow)(this.Rows.Find(new object[] {
  1369. ID_service})));
  1370. }
  1371. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1372. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1373. public override global::System.Data.DataTable Clone() {
  1374. СервисDataTable cln = ((СервисDataTable)(base.Clone()));
  1375. cln.InitVars();
  1376. return cln;
  1377. }
  1378. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1379. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1380. protected override global::System.Data.DataTable CreateInstance() {
  1381. return new СервисDataTable();
  1382. }
  1383. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1384. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1385. internal void InitVars() {
  1386. this.columnID_service = base.Columns["ID_service"];
  1387. this.columnНаименование_услуги = base.Columns["Наименование_услуги"];
  1388. this.columnГлавное_изображение = base.Columns["Главное_изображение"];
  1389. this.columnДлительность = base.Columns["Длительность"];
  1390. this.columnСтоимость = base.Columns["Стоимость"];
  1391. this.columnДействующая_скидка = base.Columns["Действующая_скидка"];
  1392. }
  1393. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1394. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1395. private void InitClass() {
  1396. this.columnID_service = new global::System.Data.DataColumn("ID_service", typeof(int), null, global::System.Data.MappingType.Element);
  1397. base.Columns.Add(this.columnID_service);
  1398. this.columnНаименование_услуги = new global::System.Data.DataColumn("Наименование_услуги", typeof(string), null, global::System.Data.MappingType.Element);
  1399. base.Columns.Add(this.columnНаименование_услуги);
  1400. this.columnГлавное_изображение = new global::System.Data.DataColumn("Главное_изображение", typeof(string), null, global::System.Data.MappingType.Element);
  1401. base.Columns.Add(this.columnГлавное_изображение);
  1402. this.columnДлительность = new global::System.Data.DataColumn("Длительность", typeof(string), null, global::System.Data.MappingType.Element);
  1403. base.Columns.Add(this.columnДлительность);
  1404. this.columnСтоимость = new global::System.Data.DataColumn("Стоимость", typeof(string), null, global::System.Data.MappingType.Element);
  1405. base.Columns.Add(this.columnСтоимость);
  1406. this.columnДействующая_скидка = new global::System.Data.DataColumn("Действующая_скидка", typeof(string), null, global::System.Data.MappingType.Element);
  1407. base.Columns.Add(this.columnДействующая_скидка);
  1408. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1409. this.columnID_service}, true));
  1410. this.columnID_service.AutoIncrement = true;
  1411. this.columnID_service.AutoIncrementSeed = -1;
  1412. this.columnID_service.AutoIncrementStep = -1;
  1413. this.columnID_service.AllowDBNull = false;
  1414. this.columnID_service.ReadOnly = true;
  1415. this.columnID_service.Unique = true;
  1416. this.columnНаименование_услуги.AllowDBNull = false;
  1417. this.columnНаименование_услуги.MaxLength = 50;
  1418. this.columnГлавное_изображение.AllowDBNull = false;
  1419. this.columnГлавное_изображение.MaxLength = 100;
  1420. this.columnДлительность.AllowDBNull = false;
  1421. this.columnДлительность.MaxLength = 50;
  1422. this.columnСтоимость.AllowDBNull = false;
  1423. this.columnСтоимость.MaxLength = 50;
  1424. this.columnДействующая_скидка.AllowDBNull = false;
  1425. this.columnДействующая_скидка.MaxLength = 50;
  1426. }
  1427. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1428. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1429. public СервисRow NewСервисRow() {
  1430. return ((СервисRow)(this.NewRow()));
  1431. }
  1432. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1433. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1434. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1435. return new СервисRow(builder);
  1436. }
  1437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1438. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1439. protected override global::System.Type GetRowType() {
  1440. return typeof(СервисRow);
  1441. }
  1442. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1443. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1444. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1445. base.OnRowChanged(e);
  1446. if ((this.СервисRowChanged != null)) {
  1447. this.СервисRowChanged(this, new СервисRowChangeEvent(((СервисRow)(e.Row)), e.Action));
  1448. }
  1449. }
  1450. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1451. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1452. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1453. base.OnRowChanging(e);
  1454. if ((this.СервисRowChanging != null)) {
  1455. this.СервисRowChanging(this, new СервисRowChangeEvent(((СервисRow)(e.Row)), e.Action));
  1456. }
  1457. }
  1458. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1459. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1460. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1461. base.OnRowDeleted(e);
  1462. if ((this.СервисRowDeleted != null)) {
  1463. this.СервисRowDeleted(this, new СервисRowChangeEvent(((СервисRow)(e.Row)), e.Action));
  1464. }
  1465. }
  1466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1468. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1469. base.OnRowDeleting(e);
  1470. if ((this.СервисRowDeleting != null)) {
  1471. this.СервисRowDeleting(this, new СервисRowChangeEvent(((СервисRow)(e.Row)), e.Action));
  1472. }
  1473. }
  1474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1476. public void RemoveСервисRow(СервисRow row) {
  1477. this.Rows.Remove(row);
  1478. }
  1479. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1480. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1481. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1482. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1483. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1484. DB_Turaev_V2DataSet ds = new DB_Turaev_V2DataSet();
  1485. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1486. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1487. any1.MinOccurs = new decimal(0);
  1488. any1.MaxOccurs = decimal.MaxValue;
  1489. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1490. sequence.Items.Add(any1);
  1491. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1492. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1493. any2.MinOccurs = new decimal(1);
  1494. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1495. sequence.Items.Add(any2);
  1496. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1497. attribute1.Name = "namespace";
  1498. attribute1.FixedValue = ds.Namespace;
  1499. type.Attributes.Add(attribute1);
  1500. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1501. attribute2.Name = "tableTypeName";
  1502. attribute2.FixedValue = "СервисDataTable";
  1503. type.Attributes.Add(attribute2);
  1504. type.Particle = sequence;
  1505. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1506. if (xs.Contains(dsSchema.TargetNamespace)) {
  1507. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1508. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1509. try {
  1510. global::System.Xml.Schema.XmlSchema schema = null;
  1511. dsSchema.Write(s1);
  1512. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1513. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1514. s2.SetLength(0);
  1515. schema.Write(s2);
  1516. if ((s1.Length == s2.Length)) {
  1517. s1.Position = 0;
  1518. s2.Position = 0;
  1519. for (; ((s1.Position != s1.Length)
  1520. && (s1.ReadByte() == s2.ReadByte())); ) {
  1521. ;
  1522. }
  1523. if ((s1.Position == s1.Length)) {
  1524. return type;
  1525. }
  1526. }
  1527. }
  1528. }
  1529. finally {
  1530. if ((s1 != null)) {
  1531. s1.Close();
  1532. }
  1533. if ((s2 != null)) {
  1534. s2.Close();
  1535. }
  1536. }
  1537. }
  1538. xs.Add(dsSchema);
  1539. return type;
  1540. }
  1541. }
  1542. /// <summary>
  1543. ///Represents the strongly named DataTable class.
  1544. ///</summary>
  1545. [global::System.Serializable()]
  1546. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1547. public partial class ТоварыDataTable : global::System.Data.TypedTableBase<ТоварыRow> {
  1548. private global::System.Data.DataColumn columnID;
  1549. private global::System.Data.DataColumn columnTitle;
  1550. private global::System.Data.DataColumn columnCost;
  1551. private global::System.Data.DataColumn columnDescription;
  1552. private global::System.Data.DataColumn columnCount;
  1553. private global::System.Data.DataColumn columnManufacturerID;
  1554. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1555. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1556. public ТоварыDataTable() {
  1557. this.TableName = "Товары";
  1558. this.BeginInit();
  1559. this.InitClass();
  1560. this.EndInit();
  1561. }
  1562. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1563. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1564. internal ТоварыDataTable(global::System.Data.DataTable table) {
  1565. this.TableName = table.TableName;
  1566. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1567. this.CaseSensitive = table.CaseSensitive;
  1568. }
  1569. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1570. this.Locale = table.Locale;
  1571. }
  1572. if ((table.Namespace != table.DataSet.Namespace)) {
  1573. this.Namespace = table.Namespace;
  1574. }
  1575. this.Prefix = table.Prefix;
  1576. this.MinimumCapacity = table.MinimumCapacity;
  1577. }
  1578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1580. protected ТоварыDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1581. base(info, context) {
  1582. this.InitVars();
  1583. }
  1584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1586. public global::System.Data.DataColumn IDColumn {
  1587. get {
  1588. return this.columnID;
  1589. }
  1590. }
  1591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1592. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1593. public global::System.Data.DataColumn TitleColumn {
  1594. get {
  1595. return this.columnTitle;
  1596. }
  1597. }
  1598. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1599. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1600. public global::System.Data.DataColumn CostColumn {
  1601. get {
  1602. return this.columnCost;
  1603. }
  1604. }
  1605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1607. public global::System.Data.DataColumn DescriptionColumn {
  1608. get {
  1609. return this.columnDescription;
  1610. }
  1611. }
  1612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1614. public global::System.Data.DataColumn CountColumn {
  1615. get {
  1616. return this.columnCount;
  1617. }
  1618. }
  1619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1621. public global::System.Data.DataColumn ManufacturerIDColumn {
  1622. get {
  1623. return this.columnManufacturerID;
  1624. }
  1625. }
  1626. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1627. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1628. [global::System.ComponentModel.Browsable(false)]
  1629. public int Count {
  1630. get {
  1631. return this.Rows.Count;
  1632. }
  1633. }
  1634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1636. public ТоварыRow this[int index] {
  1637. get {
  1638. return ((ТоварыRow)(this.Rows[index]));
  1639. }
  1640. }
  1641. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1642. public event ТоварыRowChangeEventHandler ТоварыRowChanging;
  1643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1644. public event ТоварыRowChangeEventHandler ТоварыRowChanged;
  1645. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1646. public event ТоварыRowChangeEventHandler ТоварыRowDeleting;
  1647. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1648. public event ТоварыRowChangeEventHandler ТоварыRowDeleted;
  1649. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1650. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1651. public void AddТоварыRow(ТоварыRow row) {
  1652. this.Rows.Add(row);
  1653. }
  1654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1655. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1656. public ТоварыRow AddТоварыRow(string Title, decimal Cost, string Description, int Count, int ManufacturerID) {
  1657. ТоварыRow rowТоварыRow = ((ТоварыRow)(this.NewRow()));
  1658. object[] columnValuesArray = new object[] {
  1659. null,
  1660. Title,
  1661. Cost,
  1662. Description,
  1663. Count,
  1664. ManufacturerID};
  1665. rowТоварыRow.ItemArray = columnValuesArray;
  1666. this.Rows.Add(rowТоварыRow);
  1667. return rowТоварыRow;
  1668. }
  1669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1670. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1671. public ТоварыRow FindByID(int ID) {
  1672. return ((ТоварыRow)(this.Rows.Find(new object[] {
  1673. ID})));
  1674. }
  1675. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1676. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1677. public override global::System.Data.DataTable Clone() {
  1678. ТоварыDataTable cln = ((ТоварыDataTable)(base.Clone()));
  1679. cln.InitVars();
  1680. return cln;
  1681. }
  1682. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1683. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1684. protected override global::System.Data.DataTable CreateInstance() {
  1685. return new ТоварыDataTable();
  1686. }
  1687. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1688. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1689. internal void InitVars() {
  1690. this.columnID = base.Columns["ID"];
  1691. this.columnTitle = base.Columns["Title"];
  1692. this.columnCost = base.Columns["Cost"];
  1693. this.columnDescription = base.Columns["Description"];
  1694. this.columnCount = base.Columns["Count"];
  1695. this.columnManufacturerID = base.Columns["ManufacturerID"];
  1696. }
  1697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1698. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1699. private void InitClass() {
  1700. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  1701. base.Columns.Add(this.columnID);
  1702. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  1703. base.Columns.Add(this.columnTitle);
  1704. this.columnCost = new global::System.Data.DataColumn("Cost", typeof(decimal), null, global::System.Data.MappingType.Element);
  1705. base.Columns.Add(this.columnCost);
  1706. this.columnDescription = new global::System.Data.DataColumn("Description", typeof(string), null, global::System.Data.MappingType.Element);
  1707. base.Columns.Add(this.columnDescription);
  1708. this.columnCount = new global::System.Data.DataColumn("Count", typeof(int), null, global::System.Data.MappingType.Element);
  1709. base.Columns.Add(this.columnCount);
  1710. this.columnManufacturerID = new global::System.Data.DataColumn("ManufacturerID", typeof(int), null, global::System.Data.MappingType.Element);
  1711. base.Columns.Add(this.columnManufacturerID);
  1712. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1713. this.columnID}, true));
  1714. this.columnID.AutoIncrement = true;
  1715. this.columnID.AutoIncrementSeed = -1;
  1716. this.columnID.AutoIncrementStep = -1;
  1717. this.columnID.AllowDBNull = false;
  1718. this.columnID.ReadOnly = true;
  1719. this.columnID.Unique = true;
  1720. this.columnTitle.MaxLength = 50;
  1721. this.columnDescription.MaxLength = 150;
  1722. }
  1723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1724. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1725. public ТоварыRow NewТоварыRow() {
  1726. return ((ТоварыRow)(this.NewRow()));
  1727. }
  1728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1729. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1730. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1731. return new ТоварыRow(builder);
  1732. }
  1733. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1734. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1735. protected override global::System.Type GetRowType() {
  1736. return typeof(ТоварыRow);
  1737. }
  1738. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1739. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1740. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1741. base.OnRowChanged(e);
  1742. if ((this.ТоварыRowChanged != null)) {
  1743. this.ТоварыRowChanged(this, new ТоварыRowChangeEvent(((ТоварыRow)(e.Row)), e.Action));
  1744. }
  1745. }
  1746. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1747. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1748. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1749. base.OnRowChanging(e);
  1750. if ((this.ТоварыRowChanging != null)) {
  1751. this.ТоварыRowChanging(this, new ТоварыRowChangeEvent(((ТоварыRow)(e.Row)), e.Action));
  1752. }
  1753. }
  1754. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1755. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1756. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1757. base.OnRowDeleted(e);
  1758. if ((this.ТоварыRowDeleted != null)) {
  1759. this.ТоварыRowDeleted(this, new ТоварыRowChangeEvent(((ТоварыRow)(e.Row)), e.Action));
  1760. }
  1761. }
  1762. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1763. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1764. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1765. base.OnRowDeleting(e);
  1766. if ((this.ТоварыRowDeleting != null)) {
  1767. this.ТоварыRowDeleting(this, new ТоварыRowChangeEvent(((ТоварыRow)(e.Row)), e.Action));
  1768. }
  1769. }
  1770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1771. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1772. public void RemoveТоварыRow(ТоварыRow row) {
  1773. this.Rows.Remove(row);
  1774. }
  1775. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1776. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1777. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1778. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1779. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1780. DB_Turaev_V2DataSet ds = new DB_Turaev_V2DataSet();
  1781. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1782. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1783. any1.MinOccurs = new decimal(0);
  1784. any1.MaxOccurs = decimal.MaxValue;
  1785. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1786. sequence.Items.Add(any1);
  1787. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1788. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1789. any2.MinOccurs = new decimal(1);
  1790. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1791. sequence.Items.Add(any2);
  1792. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1793. attribute1.Name = "namespace";
  1794. attribute1.FixedValue = ds.Namespace;
  1795. type.Attributes.Add(attribute1);
  1796. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1797. attribute2.Name = "tableTypeName";
  1798. attribute2.FixedValue = "ТоварыDataTable";
  1799. type.Attributes.Add(attribute2);
  1800. type.Particle = sequence;
  1801. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1802. if (xs.Contains(dsSchema.TargetNamespace)) {
  1803. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1804. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1805. try {
  1806. global::System.Xml.Schema.XmlSchema schema = null;
  1807. dsSchema.Write(s1);
  1808. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1809. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1810. s2.SetLength(0);
  1811. schema.Write(s2);
  1812. if ((s1.Length == s2.Length)) {
  1813. s1.Position = 0;
  1814. s2.Position = 0;
  1815. for (; ((s1.Position != s1.Length)
  1816. && (s1.ReadByte() == s2.ReadByte())); ) {
  1817. ;
  1818. }
  1819. if ((s1.Position == s1.Length)) {
  1820. return type;
  1821. }
  1822. }
  1823. }
  1824. }
  1825. finally {
  1826. if ((s1 != null)) {
  1827. s1.Close();
  1828. }
  1829. if ((s2 != null)) {
  1830. s2.Close();
  1831. }
  1832. }
  1833. }
  1834. xs.Add(dsSchema);
  1835. return type;
  1836. }
  1837. }
  1838. /// <summary>
  1839. ///Represents strongly named DataRow class.
  1840. ///</summary>
  1841. public partial class КлиентRow : global::System.Data.DataRow {
  1842. private КлиентDataTable tableКлиент;
  1843. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1844. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1845. internal КлиентRow(global::System.Data.DataRowBuilder rb) :
  1846. base(rb) {
  1847. this.tableКлиент = ((КлиентDataTable)(this.Table));
  1848. }
  1849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1850. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1851. public int ID_client {
  1852. get {
  1853. return ((int)(this[this.tableКлиент.ID_clientColumn]));
  1854. }
  1855. set {
  1856. this[this.tableКлиент.ID_clientColumn] = value;
  1857. }
  1858. }
  1859. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1860. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1861. public string FirstName {
  1862. get {
  1863. return ((string)(this[this.tableКлиент.FirstNameColumn]));
  1864. }
  1865. set {
  1866. this[this.tableКлиент.FirstNameColumn] = value;
  1867. }
  1868. }
  1869. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1870. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1871. public string LastName {
  1872. get {
  1873. return ((string)(this[this.tableКлиент.LastNameColumn]));
  1874. }
  1875. set {
  1876. this[this.tableКлиент.LastNameColumn] = value;
  1877. }
  1878. }
  1879. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1880. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1881. public string Patronymic {
  1882. get {
  1883. return ((string)(this[this.tableКлиент.PatronymicColumn]));
  1884. }
  1885. set {
  1886. this[this.tableКлиент.PatronymicColumn] = value;
  1887. }
  1888. }
  1889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1890. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1891. public string GenderCode {
  1892. get {
  1893. return ((string)(this[this.tableКлиент.GenderCodeColumn]));
  1894. }
  1895. set {
  1896. this[this.tableКлиент.GenderCodeColumn] = value;
  1897. }
  1898. }
  1899. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1900. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1901. public string Phone {
  1902. get {
  1903. return ((string)(this[this.tableКлиент.PhoneColumn]));
  1904. }
  1905. set {
  1906. this[this.tableКлиент.PhoneColumn] = value;
  1907. }
  1908. }
  1909. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1910. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1911. public System.DateTime Birthday {
  1912. get {
  1913. return ((global::System.DateTime)(this[this.tableКлиент.BirthdayColumn]));
  1914. }
  1915. set {
  1916. this[this.tableКлиент.BirthdayColumn] = value;
  1917. }
  1918. }
  1919. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1920. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1921. public string Email {
  1922. get {
  1923. return ((string)(this[this.tableКлиент.EmailColumn]));
  1924. }
  1925. set {
  1926. this[this.tableКлиент.EmailColumn] = value;
  1927. }
  1928. }
  1929. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1930. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1931. public System.DateTime RegistrationDate {
  1932. get {
  1933. return ((global::System.DateTime)(this[this.tableКлиент.RegistrationDateColumn]));
  1934. }
  1935. set {
  1936. this[this.tableКлиент.RegistrationDateColumn] = value;
  1937. }
  1938. }
  1939. }
  1940. /// <summary>
  1941. ///Represents strongly named DataRow class.
  1942. ///</summary>
  1943. public partial class Клиент_СервисRow : global::System.Data.DataRow {
  1944. private Клиент_СервисDataTable tableКлиент_Сервис;
  1945. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1946. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1947. internal Клиент_СервисRow(global::System.Data.DataRowBuilder rb) :
  1948. base(rb) {
  1949. this.tableКлиент_Сервис = ((Клиент_СервисDataTable)(this.Table));
  1950. }
  1951. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1952. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1953. public int ID {
  1954. get {
  1955. return ((int)(this[this.tableКлиент_Сервис.IDColumn]));
  1956. }
  1957. set {
  1958. this[this.tableКлиент_Сервис.IDColumn] = value;
  1959. }
  1960. }
  1961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1962. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1963. public string Client {
  1964. get {
  1965. try {
  1966. return ((string)(this[this.tableКлиент_Сервис.ClientColumn]));
  1967. }
  1968. catch (global::System.InvalidCastException e) {
  1969. throw new global::System.Data.StrongTypingException("Значение для столбца \'Client\' в таблице \'Клиент_Сервис\' равно DBNull.", e);
  1970. }
  1971. }
  1972. set {
  1973. this[this.tableКлиент_Сервис.ClientColumn] = value;
  1974. }
  1975. }
  1976. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1977. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1978. public string Service {
  1979. get {
  1980. try {
  1981. return ((string)(this[this.tableКлиент_Сервис.ServiceColumn]));
  1982. }
  1983. catch (global::System.InvalidCastException e) {
  1984. throw new global::System.Data.StrongTypingException("Значение для столбца \'Service\' в таблице \'Клиент_Сервис\' равно DBNull.", e);
  1985. }
  1986. }
  1987. set {
  1988. this[this.tableКлиент_Сервис.ServiceColumn] = value;
  1989. }
  1990. }
  1991. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1992. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1993. public string StartTime {
  1994. get {
  1995. try {
  1996. return ((string)(this[this.tableКлиент_Сервис.StartTimeColumn]));
  1997. }
  1998. catch (global::System.InvalidCastException e) {
  1999. throw new global::System.Data.StrongTypingException("Значение для столбца \'StartTime\' в таблице \'Клиент_Сервис\' равно DBNull.", e);
  2000. }
  2001. }
  2002. set {
  2003. this[this.tableКлиент_Сервис.StartTimeColumn] = value;
  2004. }
  2005. }
  2006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2008. public bool IsClientNull() {
  2009. return this.IsNull(this.tableКлиент_Сервис.ClientColumn);
  2010. }
  2011. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2012. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2013. public void SetClientNull() {
  2014. this[this.tableКлиент_Сервис.ClientColumn] = global::System.Convert.DBNull;
  2015. }
  2016. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2017. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2018. public bool IsServiceNull() {
  2019. return this.IsNull(this.tableКлиент_Сервис.ServiceColumn);
  2020. }
  2021. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2022. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2023. public void SetServiceNull() {
  2024. this[this.tableКлиент_Сервис.ServiceColumn] = global::System.Convert.DBNull;
  2025. }
  2026. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2027. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2028. public bool IsStartTimeNull() {
  2029. return this.IsNull(this.tableКлиент_Сервис.StartTimeColumn);
  2030. }
  2031. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2032. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2033. public void SetStartTimeNull() {
  2034. this[this.tableКлиент_Сервис.StartTimeColumn] = global::System.Convert.DBNull;
  2035. }
  2036. }
  2037. /// <summary>
  2038. ///Represents strongly named DataRow class.
  2039. ///</summary>
  2040. public partial class ПоставщикиRow : global::System.Data.DataRow {
  2041. private ПоставщикиDataTable tableПоставщики;
  2042. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2043. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2044. internal ПоставщикиRow(global::System.Data.DataRowBuilder rb) :
  2045. base(rb) {
  2046. this.tableПоставщики = ((ПоставщикиDataTable)(this.Table));
  2047. }
  2048. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2049. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2050. public int ID {
  2051. get {
  2052. return ((int)(this[this.tableПоставщики.IDColumn]));
  2053. }
  2054. set {
  2055. this[this.tableПоставщики.IDColumn] = value;
  2056. }
  2057. }
  2058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2059. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2060. public string Name {
  2061. get {
  2062. return ((string)(this[this.tableПоставщики.NameColumn]));
  2063. }
  2064. set {
  2065. this[this.tableПоставщики.NameColumn] = value;
  2066. }
  2067. }
  2068. }
  2069. /// <summary>
  2070. ///Represents strongly named DataRow class.
  2071. ///</summary>
  2072. public partial class СервисRow : global::System.Data.DataRow {
  2073. private СервисDataTable tableСервис;
  2074. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2075. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2076. internal СервисRow(global::System.Data.DataRowBuilder rb) :
  2077. base(rb) {
  2078. this.tableСервис = ((СервисDataTable)(this.Table));
  2079. }
  2080. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2081. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2082. public int ID_service {
  2083. get {
  2084. return ((int)(this[this.tableСервис.ID_serviceColumn]));
  2085. }
  2086. set {
  2087. this[this.tableСервис.ID_serviceColumn] = value;
  2088. }
  2089. }
  2090. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2091. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2092. public string Наименование_услуги {
  2093. get {
  2094. return ((string)(this[this.tableСервис.Наименование_услугиColumn]));
  2095. }
  2096. set {
  2097. this[this.tableСервис.Наименование_услугиColumn] = value;
  2098. }
  2099. }
  2100. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2101. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2102. public string Главное_изображение {
  2103. get {
  2104. return ((string)(this[this.tableСервис.Главное_изображениеColumn]));
  2105. }
  2106. set {
  2107. this[this.tableСервис.Главное_изображениеColumn] = value;
  2108. }
  2109. }
  2110. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2111. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2112. public string Длительность {
  2113. get {
  2114. return ((string)(this[this.tableСервис.ДлительностьColumn]));
  2115. }
  2116. set {
  2117. this[this.tableСервис.ДлительностьColumn] = value;
  2118. }
  2119. }
  2120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2121. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2122. public string Стоимость {
  2123. get {
  2124. return ((string)(this[this.tableСервис.СтоимостьColumn]));
  2125. }
  2126. set {
  2127. this[this.tableСервис.СтоимостьColumn] = value;
  2128. }
  2129. }
  2130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2131. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2132. public string Действующая_скидка {
  2133. get {
  2134. return ((string)(this[this.tableСервис.Действующая_скидкаColumn]));
  2135. }
  2136. set {
  2137. this[this.tableСервис.Действующая_скидкаColumn] = value;
  2138. }
  2139. }
  2140. }
  2141. /// <summary>
  2142. ///Represents strongly named DataRow class.
  2143. ///</summary>
  2144. public partial class ТоварыRow : global::System.Data.DataRow {
  2145. private ТоварыDataTable tableТовары;
  2146. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2147. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2148. internal ТоварыRow(global::System.Data.DataRowBuilder rb) :
  2149. base(rb) {
  2150. this.tableТовары = ((ТоварыDataTable)(this.Table));
  2151. }
  2152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2154. public int ID {
  2155. get {
  2156. return ((int)(this[this.tableТовары.IDColumn]));
  2157. }
  2158. set {
  2159. this[this.tableТовары.IDColumn] = value;
  2160. }
  2161. }
  2162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2163. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2164. public string Title {
  2165. get {
  2166. try {
  2167. return ((string)(this[this.tableТовары.TitleColumn]));
  2168. }
  2169. catch (global::System.InvalidCastException e) {
  2170. throw new global::System.Data.StrongTypingException("Значение для столбца \'Title\' в таблице \'Товары\' равно DBNull.", e);
  2171. }
  2172. }
  2173. set {
  2174. this[this.tableТовары.TitleColumn] = value;
  2175. }
  2176. }
  2177. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2178. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2179. public decimal Cost {
  2180. get {
  2181. try {
  2182. return ((decimal)(this[this.tableТовары.CostColumn]));
  2183. }
  2184. catch (global::System.InvalidCastException e) {
  2185. throw new global::System.Data.StrongTypingException("Значение для столбца \'Cost\' в таблице \'Товары\' равно DBNull.", e);
  2186. }
  2187. }
  2188. set {
  2189. this[this.tableТовары.CostColumn] = value;
  2190. }
  2191. }
  2192. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2193. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2194. public string Description {
  2195. get {
  2196. try {
  2197. return ((string)(this[this.tableТовары.DescriptionColumn]));
  2198. }
  2199. catch (global::System.InvalidCastException e) {
  2200. throw new global::System.Data.StrongTypingException("Значение для столбца \'Description\' в таблице \'Товары\' равно DBNull.", e);
  2201. }
  2202. }
  2203. set {
  2204. this[this.tableТовары.DescriptionColumn] = value;
  2205. }
  2206. }
  2207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2208. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2209. public int Count {
  2210. get {
  2211. try {
  2212. return ((int)(this[this.tableТовары.CountColumn]));
  2213. }
  2214. catch (global::System.InvalidCastException e) {
  2215. throw new global::System.Data.StrongTypingException("Значение для столбца \'Count\' в таблице \'Товары\' равно DBNull.", e);
  2216. }
  2217. }
  2218. set {
  2219. this[this.tableТовары.CountColumn] = value;
  2220. }
  2221. }
  2222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2224. public int ManufacturerID {
  2225. get {
  2226. try {
  2227. return ((int)(this[this.tableТовары.ManufacturerIDColumn]));
  2228. }
  2229. catch (global::System.InvalidCastException e) {
  2230. throw new global::System.Data.StrongTypingException("Значение для столбца \'ManufacturerID\' в таблице \'Товары\' равно DBNull.", e);
  2231. }
  2232. }
  2233. set {
  2234. this[this.tableТовары.ManufacturerIDColumn] = value;
  2235. }
  2236. }
  2237. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2238. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2239. public bool IsTitleNull() {
  2240. return this.IsNull(this.tableТовары.TitleColumn);
  2241. }
  2242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2243. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2244. public void SetTitleNull() {
  2245. this[this.tableТовары.TitleColumn] = global::System.Convert.DBNull;
  2246. }
  2247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2249. public bool IsCostNull() {
  2250. return this.IsNull(this.tableТовары.CostColumn);
  2251. }
  2252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2254. public void SetCostNull() {
  2255. this[this.tableТовары.CostColumn] = global::System.Convert.DBNull;
  2256. }
  2257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2258. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2259. public bool IsDescriptionNull() {
  2260. return this.IsNull(this.tableТовары.DescriptionColumn);
  2261. }
  2262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2263. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2264. public void SetDescriptionNull() {
  2265. this[this.tableТовары.DescriptionColumn] = global::System.Convert.DBNull;
  2266. }
  2267. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2268. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2269. public bool IsCountNull() {
  2270. return this.IsNull(this.tableТовары.CountColumn);
  2271. }
  2272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2274. public void SetCountNull() {
  2275. this[this.tableТовары.CountColumn] = global::System.Convert.DBNull;
  2276. }
  2277. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2278. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2279. public bool IsManufacturerIDNull() {
  2280. return this.IsNull(this.tableТовары.ManufacturerIDColumn);
  2281. }
  2282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2284. public void SetManufacturerIDNull() {
  2285. this[this.tableТовары.ManufacturerIDColumn] = global::System.Convert.DBNull;
  2286. }
  2287. }
  2288. /// <summary>
  2289. ///Row event argument class
  2290. ///</summary>
  2291. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2292. public class КлиентRowChangeEvent : global::System.EventArgs {
  2293. private КлиентRow eventRow;
  2294. private global::System.Data.DataRowAction eventAction;
  2295. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2296. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2297. public КлиентRowChangeEvent(КлиентRow row, global::System.Data.DataRowAction action) {
  2298. this.eventRow = row;
  2299. this.eventAction = action;
  2300. }
  2301. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2302. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2303. public КлиентRow Row {
  2304. get {
  2305. return this.eventRow;
  2306. }
  2307. }
  2308. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2309. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2310. public global::System.Data.DataRowAction Action {
  2311. get {
  2312. return this.eventAction;
  2313. }
  2314. }
  2315. }
  2316. /// <summary>
  2317. ///Row event argument class
  2318. ///</summary>
  2319. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2320. public class Клиент_СервисRowChangeEvent : global::System.EventArgs {
  2321. private Клиент_СервисRow eventRow;
  2322. private global::System.Data.DataRowAction eventAction;
  2323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2324. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2325. public Клиент_СервисRowChangeEvent(Клиент_СервисRow row, global::System.Data.DataRowAction action) {
  2326. this.eventRow = row;
  2327. this.eventAction = action;
  2328. }
  2329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2331. public Клиент_СервисRow Row {
  2332. get {
  2333. return this.eventRow;
  2334. }
  2335. }
  2336. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2337. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2338. public global::System.Data.DataRowAction Action {
  2339. get {
  2340. return this.eventAction;
  2341. }
  2342. }
  2343. }
  2344. /// <summary>
  2345. ///Row event argument class
  2346. ///</summary>
  2347. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2348. public class ПоставщикиRowChangeEvent : global::System.EventArgs {
  2349. private ПоставщикиRow eventRow;
  2350. private global::System.Data.DataRowAction eventAction;
  2351. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2352. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2353. public ПоставщикиRowChangeEvent(ПоставщикиRow row, global::System.Data.DataRowAction action) {
  2354. this.eventRow = row;
  2355. this.eventAction = action;
  2356. }
  2357. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2358. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2359. public ПоставщикиRow Row {
  2360. get {
  2361. return this.eventRow;
  2362. }
  2363. }
  2364. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2365. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2366. public global::System.Data.DataRowAction Action {
  2367. get {
  2368. return this.eventAction;
  2369. }
  2370. }
  2371. }
  2372. /// <summary>
  2373. ///Row event argument class
  2374. ///</summary>
  2375. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2376. public class СервисRowChangeEvent : global::System.EventArgs {
  2377. private СервисRow eventRow;
  2378. private global::System.Data.DataRowAction eventAction;
  2379. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2380. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2381. public СервисRowChangeEvent(СервисRow row, global::System.Data.DataRowAction action) {
  2382. this.eventRow = row;
  2383. this.eventAction = action;
  2384. }
  2385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2386. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2387. public СервисRow Row {
  2388. get {
  2389. return this.eventRow;
  2390. }
  2391. }
  2392. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2393. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2394. public global::System.Data.DataRowAction Action {
  2395. get {
  2396. return this.eventAction;
  2397. }
  2398. }
  2399. }
  2400. /// <summary>
  2401. ///Row event argument class
  2402. ///</summary>
  2403. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2404. public class ТоварыRowChangeEvent : global::System.EventArgs {
  2405. private ТоварыRow eventRow;
  2406. private global::System.Data.DataRowAction eventAction;
  2407. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2408. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2409. public ТоварыRowChangeEvent(ТоварыRow row, global::System.Data.DataRowAction action) {
  2410. this.eventRow = row;
  2411. this.eventAction = action;
  2412. }
  2413. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2414. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2415. public ТоварыRow Row {
  2416. get {
  2417. return this.eventRow;
  2418. }
  2419. }
  2420. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2421. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2422. public global::System.Data.DataRowAction Action {
  2423. get {
  2424. return this.eventAction;
  2425. }
  2426. }
  2427. }
  2428. }
  2429. }
  2430. namespace Услуги_салона_красоты_Тураев.DB_Turaev_V2DataSetTableAdapters {
  2431. /// <summary>
  2432. ///Represents the connection and commands used to retrieve and save data.
  2433. ///</summary>
  2434. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  2435. [global::System.ComponentModel.ToolboxItem(true)]
  2436. [global::System.ComponentModel.DataObjectAttribute(true)]
  2437. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  2438. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  2439. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2440. public partial class КлиентTableAdapter : global::System.ComponentModel.Component {
  2441. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  2442. private global::System.Data.SqlClient.SqlConnection _connection;
  2443. private global::System.Data.SqlClient.SqlTransaction _transaction;
  2444. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  2445. private bool _clearBeforeFill;
  2446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2447. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2448. public КлиентTableAdapter() {
  2449. this.ClearBeforeFill = true;
  2450. }
  2451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2452. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2453. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  2454. get {
  2455. if ((this._adapter == null)) {
  2456. this.InitAdapter();
  2457. }
  2458. return this._adapter;
  2459. }
  2460. }
  2461. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2462. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2463. internal global::System.Data.SqlClient.SqlConnection Connection {
  2464. get {
  2465. if ((this._connection == null)) {
  2466. this.InitConnection();
  2467. }
  2468. return this._connection;
  2469. }
  2470. set {
  2471. this._connection = value;
  2472. if ((this.Adapter.InsertCommand != null)) {
  2473. this.Adapter.InsertCommand.Connection = value;
  2474. }
  2475. if ((this.Adapter.DeleteCommand != null)) {
  2476. this.Adapter.DeleteCommand.Connection = value;
  2477. }
  2478. if ((this.Adapter.UpdateCommand != null)) {
  2479. this.Adapter.UpdateCommand.Connection = value;
  2480. }
  2481. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2482. if ((this.CommandCollection[i] != null)) {
  2483. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  2484. }
  2485. }
  2486. }
  2487. }
  2488. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2489. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2490. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  2491. get {
  2492. return this._transaction;
  2493. }
  2494. set {
  2495. this._transaction = value;
  2496. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2497. this.CommandCollection[i].Transaction = this._transaction;
  2498. }
  2499. if (((this.Adapter != null)
  2500. && (this.Adapter.DeleteCommand != null))) {
  2501. this.Adapter.DeleteCommand.Transaction = this._transaction;
  2502. }
  2503. if (((this.Adapter != null)
  2504. && (this.Adapter.InsertCommand != null))) {
  2505. this.Adapter.InsertCommand.Transaction = this._transaction;
  2506. }
  2507. if (((this.Adapter != null)
  2508. && (this.Adapter.UpdateCommand != null))) {
  2509. this.Adapter.UpdateCommand.Transaction = this._transaction;
  2510. }
  2511. }
  2512. }
  2513. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2514. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2515. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  2516. get {
  2517. if ((this._commandCollection == null)) {
  2518. this.InitCommandCollection();
  2519. }
  2520. return this._commandCollection;
  2521. }
  2522. }
  2523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2524. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2525. public bool ClearBeforeFill {
  2526. get {
  2527. return this._clearBeforeFill;
  2528. }
  2529. set {
  2530. this._clearBeforeFill = value;
  2531. }
  2532. }
  2533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2535. private void InitAdapter() {
  2536. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  2537. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  2538. tableMapping.SourceTable = "Table";
  2539. tableMapping.DataSetTable = "Клиент";
  2540. tableMapping.ColumnMappings.Add("ID_client", "ID_client");
  2541. tableMapping.ColumnMappings.Add("FirstName", "FirstName");
  2542. tableMapping.ColumnMappings.Add("LastName", "LastName");
  2543. tableMapping.ColumnMappings.Add("Patronymic", "Patronymic");
  2544. tableMapping.ColumnMappings.Add("GenderCode", "GenderCode");
  2545. tableMapping.ColumnMappings.Add("Phone", "Phone");
  2546. tableMapping.ColumnMappings.Add("Birthday", "Birthday");
  2547. tableMapping.ColumnMappings.Add("Email", "Email");
  2548. tableMapping.ColumnMappings.Add("RegistrationDate", "RegistrationDate");
  2549. this._adapter.TableMappings.Add(tableMapping);
  2550. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  2551. this._adapter.DeleteCommand.Connection = this.Connection;
  2552. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Клиент] WHERE (([ID_client] = @Original_ID_client) AND ([FirstName] = @Original_FirstName) AND ([LastName] = @Original_LastName) AND ([Patronymic] = @Original_Patronymic) AND ([GenderCode] = @Original_GenderCode) AND ([Phone] = @Original_Phone) AND ([Birthday] = @Original_Birthday) AND ([Email] = @Original_Email) AND ([RegistrationDate] = @Original_RegistrationDate))";
  2553. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  2554. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_client", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_client", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2555. 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, "", "", ""));
  2556. 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, "", "", ""));
  2557. 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, "", "", ""));
  2558. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_GenderCode", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GenderCode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2559. 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, "", "", ""));
  2560. 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, "", "", ""));
  2561. 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, "", "", ""));
  2562. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RegistrationDate", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RegistrationDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2563. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  2564. this._adapter.InsertCommand.Connection = this.Connection;
  2565. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Клиент] ([FirstName], [LastName], [Patronymic], [GenderCode], [Phone], [Birthday], [Email], [RegistrationDate]) VALUES (@FirstName, @LastName, @Patronymic, @GenderCode, @Phone, @Birthday, @Email, @RegistrationDate);
  2566. SELECT ID_client, FirstName, LastName, Patronymic, GenderCode, Phone, Birthday, Email, RegistrationDate FROM Клиент WHERE (ID_client = SCOPE_IDENTITY())";
  2567. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  2568. 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, "", "", ""));
  2569. 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, "", "", ""));
  2570. 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, "", "", ""));
  2571. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@GenderCode", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GenderCode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2572. 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, "", "", ""));
  2573. 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, "", "", ""));
  2574. 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, "", "", ""));
  2575. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RegistrationDate", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RegistrationDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2576. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  2577. this._adapter.UpdateCommand.Connection = this.Connection;
  2578. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Клиент] SET [FirstName] = @FirstName, [LastName] = @LastName, [Patronymic] = @Patronymic, [GenderCode] = @GenderCode, [Phone] = @Phone, [Birthday] = @Birthday, [Email] = @Email, [RegistrationDate] = @RegistrationDate WHERE (([ID_client] = @Original_ID_client) AND ([FirstName] = @Original_FirstName) AND ([LastName] = @Original_LastName) AND ([Patronymic] = @Original_Patronymic) AND ([GenderCode] = @Original_GenderCode) AND ([Phone] = @Original_Phone) AND ([Birthday] = @Original_Birthday) AND ([Email] = @Original_Email) AND ([RegistrationDate] = @Original_RegistrationDate));
  2579. SELECT ID_client, FirstName, LastName, Patronymic, GenderCode, Phone, Birthday, Email, RegistrationDate FROM Клиент WHERE (ID_client = @ID_client)";
  2580. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  2581. 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, "", "", ""));
  2582. 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, "", "", ""));
  2583. 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, "", "", ""));
  2584. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@GenderCode", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GenderCode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2585. 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, "", "", ""));
  2586. 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, "", "", ""));
  2587. 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, "", "", ""));
  2588. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RegistrationDate", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RegistrationDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2589. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_client", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_client", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2590. 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, "", "", ""));
  2591. 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, "", "", ""));
  2592. 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, "", "", ""));
  2593. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_GenderCode", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GenderCode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2594. 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, "", "", ""));
  2595. 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, "", "", ""));
  2596. 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, "", "", ""));
  2597. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RegistrationDate", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RegistrationDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2598. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_client", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID_client", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2599. }
  2600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2601. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2602. private void InitConnection() {
  2603. this._connection = new global::System.Data.SqlClient.SqlConnection();
  2604. this._connection.ConnectionString = global::Услуги_салона_красоты_Тураев.Properties.Settings.Default.DB_Turaev_V2ConnectionString;
  2605. }
  2606. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2607. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2608. private void InitCommandCollection() {
  2609. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  2610. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  2611. this._commandCollection[0].Connection = this.Connection;
  2612. this._commandCollection[0].CommandText = "SELECT ID_client, FirstName, LastName, Patronymic, GenderCode, Phone, Birthday, E" +
  2613. "mail, RegistrationDate FROM dbo.Клиент";
  2614. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  2615. }
  2616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2617. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2618. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2619. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  2620. public virtual int Fill(DB_Turaev_V2DataSet.КлиентDataTable dataTable) {
  2621. this.Adapter.SelectCommand = this.CommandCollection[0];
  2622. if ((this.ClearBeforeFill == true)) {
  2623. dataTable.Clear();
  2624. }
  2625. int returnValue = this.Adapter.Fill(dataTable);
  2626. return returnValue;
  2627. }
  2628. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2630. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2631. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  2632. public virtual DB_Turaev_V2DataSet.КлиентDataTable GetData() {
  2633. this.Adapter.SelectCommand = this.CommandCollection[0];
  2634. DB_Turaev_V2DataSet.КлиентDataTable dataTable = new DB_Turaev_V2DataSet.КлиентDataTable();
  2635. this.Adapter.Fill(dataTable);
  2636. return dataTable;
  2637. }
  2638. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2639. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2640. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2641. public virtual int Update(DB_Turaev_V2DataSet.КлиентDataTable dataTable) {
  2642. return this.Adapter.Update(dataTable);
  2643. }
  2644. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2645. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2646. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2647. public virtual int Update(DB_Turaev_V2DataSet dataSet) {
  2648. return this.Adapter.Update(dataSet, "Клиент");
  2649. }
  2650. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2651. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2652. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2653. public virtual int Update(global::System.Data.DataRow dataRow) {
  2654. return this.Adapter.Update(new global::System.Data.DataRow[] {
  2655. dataRow});
  2656. }
  2657. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2658. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2659. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2660. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  2661. return this.Adapter.Update(dataRows);
  2662. }
  2663. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2664. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2665. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2666. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  2667. public virtual int Delete(int Original_ID_client, string Original_FirstName, string Original_LastName, string Original_Patronymic, string Original_GenderCode, string Original_Phone, System.DateTime Original_Birthday, string Original_Email, System.DateTime Original_RegistrationDate) {
  2668. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID_client));
  2669. if ((Original_FirstName == null)) {
  2670. throw new global::System.ArgumentNullException("Original_FirstName");
  2671. }
  2672. else {
  2673. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_FirstName));
  2674. }
  2675. if ((Original_LastName == null)) {
  2676. throw new global::System.ArgumentNullException("Original_LastName");
  2677. }
  2678. else {
  2679. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_LastName));
  2680. }
  2681. if ((Original_Patronymic == null)) {
  2682. throw new global::System.ArgumentNullException("Original_Patronymic");
  2683. }
  2684. else {
  2685. this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_Patronymic));
  2686. }
  2687. if ((Original_GenderCode == null)) {
  2688. throw new global::System.ArgumentNullException("Original_GenderCode");
  2689. }
  2690. else {
  2691. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_GenderCode));
  2692. }
  2693. if ((Original_Phone == null)) {
  2694. throw new global::System.ArgumentNullException("Original_Phone");
  2695. }
  2696. else {
  2697. this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_Phone));
  2698. }
  2699. this.Adapter.DeleteCommand.Parameters[6].Value = ((System.DateTime)(Original_Birthday));
  2700. if ((Original_Email == null)) {
  2701. throw new global::System.ArgumentNullException("Original_Email");
  2702. }
  2703. else {
  2704. this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_Email));
  2705. }
  2706. this.Adapter.DeleteCommand.Parameters[8].Value = ((System.DateTime)(Original_RegistrationDate));
  2707. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  2708. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  2709. != global::System.Data.ConnectionState.Open)) {
  2710. this.Adapter.DeleteCommand.Connection.Open();
  2711. }
  2712. try {
  2713. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  2714. return returnValue;
  2715. }
  2716. finally {
  2717. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  2718. this.Adapter.DeleteCommand.Connection.Close();
  2719. }
  2720. }
  2721. }
  2722. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2723. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2724. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2725. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  2726. public virtual int Insert(string FirstName, string LastName, string Patronymic, string GenderCode, string Phone, System.DateTime Birthday, string Email, System.DateTime RegistrationDate) {
  2727. if ((FirstName == null)) {
  2728. throw new global::System.ArgumentNullException("FirstName");
  2729. }
  2730. else {
  2731. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(FirstName));
  2732. }
  2733. if ((LastName == null)) {
  2734. throw new global::System.ArgumentNullException("LastName");
  2735. }
  2736. else {
  2737. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(LastName));
  2738. }
  2739. if ((Patronymic == null)) {
  2740. throw new global::System.ArgumentNullException("Patronymic");
  2741. }
  2742. else {
  2743. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Patronymic));
  2744. }
  2745. if ((GenderCode == null)) {
  2746. throw new global::System.ArgumentNullException("GenderCode");
  2747. }
  2748. else {
  2749. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(GenderCode));
  2750. }
  2751. if ((Phone == null)) {
  2752. throw new global::System.ArgumentNullException("Phone");
  2753. }
  2754. else {
  2755. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Phone));
  2756. }
  2757. this.Adapter.InsertCommand.Parameters[5].Value = ((System.DateTime)(Birthday));
  2758. if ((Email == null)) {
  2759. throw new global::System.ArgumentNullException("Email");
  2760. }
  2761. else {
  2762. this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Email));
  2763. }
  2764. this.Adapter.InsertCommand.Parameters[7].Value = ((System.DateTime)(RegistrationDate));
  2765. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  2766. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  2767. != global::System.Data.ConnectionState.Open)) {
  2768. this.Adapter.InsertCommand.Connection.Open();
  2769. }
  2770. try {
  2771. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  2772. return returnValue;
  2773. }
  2774. finally {
  2775. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  2776. this.Adapter.InsertCommand.Connection.Close();
  2777. }
  2778. }
  2779. }
  2780. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2781. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2782. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2783. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  2784. public virtual int Update(
  2785. string FirstName,
  2786. string LastName,
  2787. string Patronymic,
  2788. string GenderCode,
  2789. string Phone,
  2790. System.DateTime Birthday,
  2791. string Email,
  2792. System.DateTime RegistrationDate,
  2793. int Original_ID_client,
  2794. string Original_FirstName,
  2795. string Original_LastName,
  2796. string Original_Patronymic,
  2797. string Original_GenderCode,
  2798. string Original_Phone,
  2799. System.DateTime Original_Birthday,
  2800. string Original_Email,
  2801. System.DateTime Original_RegistrationDate,
  2802. int ID_client) {
  2803. if ((FirstName == null)) {
  2804. throw new global::System.ArgumentNullException("FirstName");
  2805. }
  2806. else {
  2807. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(FirstName));
  2808. }
  2809. if ((LastName == null)) {
  2810. throw new global::System.ArgumentNullException("LastName");
  2811. }
  2812. else {
  2813. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(LastName));
  2814. }
  2815. if ((Patronymic == null)) {
  2816. throw new global::System.ArgumentNullException("Patronymic");
  2817. }
  2818. else {
  2819. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Patronymic));
  2820. }
  2821. if ((GenderCode == null)) {
  2822. throw new global::System.ArgumentNullException("GenderCode");
  2823. }
  2824. else {
  2825. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(GenderCode));
  2826. }
  2827. if ((Phone == null)) {
  2828. throw new global::System.ArgumentNullException("Phone");
  2829. }
  2830. else {
  2831. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Phone));
  2832. }
  2833. this.Adapter.UpdateCommand.Parameters[5].Value = ((System.DateTime)(Birthday));
  2834. if ((Email == null)) {
  2835. throw new global::System.ArgumentNullException("Email");
  2836. }
  2837. else {
  2838. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Email));
  2839. }
  2840. this.Adapter.UpdateCommand.Parameters[7].Value = ((System.DateTime)(RegistrationDate));
  2841. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_ID_client));
  2842. if ((Original_FirstName == null)) {
  2843. throw new global::System.ArgumentNullException("Original_FirstName");
  2844. }
  2845. else {
  2846. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_FirstName));
  2847. }
  2848. if ((Original_LastName == null)) {
  2849. throw new global::System.ArgumentNullException("Original_LastName");
  2850. }
  2851. else {
  2852. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_LastName));
  2853. }
  2854. if ((Original_Patronymic == null)) {
  2855. throw new global::System.ArgumentNullException("Original_Patronymic");
  2856. }
  2857. else {
  2858. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_Patronymic));
  2859. }
  2860. if ((Original_GenderCode == null)) {
  2861. throw new global::System.ArgumentNullException("Original_GenderCode");
  2862. }
  2863. else {
  2864. this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_GenderCode));
  2865. }
  2866. if ((Original_Phone == null)) {
  2867. throw new global::System.ArgumentNullException("Original_Phone");
  2868. }
  2869. else {
  2870. this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_Phone));
  2871. }
  2872. this.Adapter.UpdateCommand.Parameters[14].Value = ((System.DateTime)(Original_Birthday));
  2873. if ((Original_Email == null)) {
  2874. throw new global::System.ArgumentNullException("Original_Email");
  2875. }
  2876. else {
  2877. this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_Email));
  2878. }
  2879. this.Adapter.UpdateCommand.Parameters[16].Value = ((System.DateTime)(Original_RegistrationDate));
  2880. this.Adapter.UpdateCommand.Parameters[17].Value = ((int)(ID_client));
  2881. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  2882. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  2883. != global::System.Data.ConnectionState.Open)) {
  2884. this.Adapter.UpdateCommand.Connection.Open();
  2885. }
  2886. try {
  2887. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  2888. return returnValue;
  2889. }
  2890. finally {
  2891. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  2892. this.Adapter.UpdateCommand.Connection.Close();
  2893. }
  2894. }
  2895. }
  2896. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2897. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2898. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2899. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  2900. public virtual int Update(
  2901. string FirstName,
  2902. string LastName,
  2903. string Patronymic,
  2904. string GenderCode,
  2905. string Phone,
  2906. System.DateTime Birthday,
  2907. string Email,
  2908. System.DateTime RegistrationDate,
  2909. int Original_ID_client,
  2910. string Original_FirstName,
  2911. string Original_LastName,
  2912. string Original_Patronymic,
  2913. string Original_GenderCode,
  2914. string Original_Phone,
  2915. System.DateTime Original_Birthday,
  2916. string Original_Email,
  2917. System.DateTime Original_RegistrationDate) {
  2918. return this.Update(FirstName, LastName, Patronymic, GenderCode, Phone, Birthday, Email, RegistrationDate, Original_ID_client, Original_FirstName, Original_LastName, Original_Patronymic, Original_GenderCode, Original_Phone, Original_Birthday, Original_Email, Original_RegistrationDate, Original_ID_client);
  2919. }
  2920. }
  2921. /// <summary>
  2922. ///Represents the connection and commands used to retrieve and save data.
  2923. ///</summary>
  2924. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  2925. [global::System.ComponentModel.ToolboxItem(true)]
  2926. [global::System.ComponentModel.DataObjectAttribute(true)]
  2927. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  2928. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  2929. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2930. public partial class Клиент_СервисTableAdapter : global::System.ComponentModel.Component {
  2931. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  2932. private global::System.Data.SqlClient.SqlConnection _connection;
  2933. private global::System.Data.SqlClient.SqlTransaction _transaction;
  2934. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  2935. private bool _clearBeforeFill;
  2936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2937. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2938. public Клиент_СервисTableAdapter() {
  2939. this.ClearBeforeFill = true;
  2940. }
  2941. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2942. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2943. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  2944. get {
  2945. if ((this._adapter == null)) {
  2946. this.InitAdapter();
  2947. }
  2948. return this._adapter;
  2949. }
  2950. }
  2951. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2952. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2953. internal global::System.Data.SqlClient.SqlConnection Connection {
  2954. get {
  2955. if ((this._connection == null)) {
  2956. this.InitConnection();
  2957. }
  2958. return this._connection;
  2959. }
  2960. set {
  2961. this._connection = value;
  2962. if ((this.Adapter.InsertCommand != null)) {
  2963. this.Adapter.InsertCommand.Connection = value;
  2964. }
  2965. if ((this.Adapter.DeleteCommand != null)) {
  2966. this.Adapter.DeleteCommand.Connection = value;
  2967. }
  2968. if ((this.Adapter.UpdateCommand != null)) {
  2969. this.Adapter.UpdateCommand.Connection = value;
  2970. }
  2971. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2972. if ((this.CommandCollection[i] != null)) {
  2973. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  2974. }
  2975. }
  2976. }
  2977. }
  2978. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2979. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2980. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  2981. get {
  2982. return this._transaction;
  2983. }
  2984. set {
  2985. this._transaction = value;
  2986. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2987. this.CommandCollection[i].Transaction = this._transaction;
  2988. }
  2989. if (((this.Adapter != null)
  2990. && (this.Adapter.DeleteCommand != null))) {
  2991. this.Adapter.DeleteCommand.Transaction = this._transaction;
  2992. }
  2993. if (((this.Adapter != null)
  2994. && (this.Adapter.InsertCommand != null))) {
  2995. this.Adapter.InsertCommand.Transaction = this._transaction;
  2996. }
  2997. if (((this.Adapter != null)
  2998. && (this.Adapter.UpdateCommand != null))) {
  2999. this.Adapter.UpdateCommand.Transaction = this._transaction;
  3000. }
  3001. }
  3002. }
  3003. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3004. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3005. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  3006. get {
  3007. if ((this._commandCollection == null)) {
  3008. this.InitCommandCollection();
  3009. }
  3010. return this._commandCollection;
  3011. }
  3012. }
  3013. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3014. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3015. public bool ClearBeforeFill {
  3016. get {
  3017. return this._clearBeforeFill;
  3018. }
  3019. set {
  3020. this._clearBeforeFill = value;
  3021. }
  3022. }
  3023. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3024. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3025. private void InitAdapter() {
  3026. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  3027. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  3028. tableMapping.SourceTable = "Table";
  3029. tableMapping.DataSetTable = "Клиент_Сервис";
  3030. tableMapping.ColumnMappings.Add("ID", "ID");
  3031. tableMapping.ColumnMappings.Add("Client", "Client");
  3032. tableMapping.ColumnMappings.Add("Service", "Service");
  3033. tableMapping.ColumnMappings.Add("StartTime", "StartTime");
  3034. this._adapter.TableMappings.Add(tableMapping);
  3035. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  3036. this._adapter.DeleteCommand.Connection = this.Connection;
  3037. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Клиент_Сервис] WHERE (([ID] = @Original_ID) AND ((@IsNull_Client = 1 AND [Client] IS NULL) OR ([Client] = @Original_Client)) AND ((@IsNull_Service = 1 AND [Service] IS NULL) OR ([Service] = @Original_Service)) AND ((@IsNull_StartTime = 1 AND [StartTime] IS NULL) OR ([StartTime] = @Original_StartTime)))";
  3038. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  3039. 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, "", "", ""));
  3040. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Client", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Client", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3041. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Client", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Client", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3042. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Service", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Service", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3043. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Service", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Service", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3044. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_StartTime", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StartTime", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3045. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_StartTime", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StartTime", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3046. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  3047. this._adapter.InsertCommand.Connection = this.Connection;
  3048. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Клиент_Сервис] ([Client], [Service], [StartTime]) VALUES (@Cli" +
  3049. "ent, @Service, @StartTime);\r\nSELECT ID, Client, Service, StartTime FROM Клиент_С" +
  3050. "ервис WHERE (ID = SCOPE_IDENTITY())";
  3051. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  3052. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Client", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Client", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3053. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Service", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Service", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3054. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StartTime", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StartTime", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3055. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  3056. this._adapter.UpdateCommand.Connection = this.Connection;
  3057. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Клиент_Сервис] SET [Client] = @Client, [Service] = @Service, [StartTime] = @StartTime WHERE (([ID] = @Original_ID) AND ((@IsNull_Client = 1 AND [Client] IS NULL) OR ([Client] = @Original_Client)) AND ((@IsNull_Service = 1 AND [Service] IS NULL) OR ([Service] = @Original_Service)) AND ((@IsNull_StartTime = 1 AND [StartTime] IS NULL) OR ([StartTime] = @Original_StartTime)));
  3058. SELECT ID, Client, Service, StartTime FROM Клиент_Сервис WHERE (ID = @ID)";
  3059. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  3060. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Client", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Client", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3061. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Service", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Service", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3062. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StartTime", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StartTime", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3063. 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, "", "", ""));
  3064. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Client", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Client", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3065. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Client", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Client", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3066. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Service", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Service", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3067. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Service", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Service", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3068. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_StartTime", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StartTime", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3069. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_StartTime", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StartTime", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3070. 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, "", "", ""));
  3071. }
  3072. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3073. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3074. private void InitConnection() {
  3075. this._connection = new global::System.Data.SqlClient.SqlConnection();
  3076. this._connection.ConnectionString = global::Услуги_салона_красоты_Тураев.Properties.Settings.Default.DB_Turaev_V2ConnectionString;
  3077. }
  3078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3079. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3080. private void InitCommandCollection() {
  3081. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  3082. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  3083. this._commandCollection[0].Connection = this.Connection;
  3084. this._commandCollection[0].CommandText = "SELECT ID, Client, Service, StartTime FROM dbo.Клиент_Сервис";
  3085. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  3086. }
  3087. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3088. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3089. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3090. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  3091. public virtual int Fill(DB_Turaev_V2DataSet.Клиент_СервисDataTable dataTable) {
  3092. this.Adapter.SelectCommand = this.CommandCollection[0];
  3093. if ((this.ClearBeforeFill == true)) {
  3094. dataTable.Clear();
  3095. }
  3096. int returnValue = this.Adapter.Fill(dataTable);
  3097. return returnValue;
  3098. }
  3099. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3100. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3101. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3102. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  3103. public virtual DB_Turaev_V2DataSet.Клиент_СервисDataTable GetData() {
  3104. this.Adapter.SelectCommand = this.CommandCollection[0];
  3105. DB_Turaev_V2DataSet.Клиент_СервисDataTable dataTable = new DB_Turaev_V2DataSet.Клиент_СервисDataTable();
  3106. this.Adapter.Fill(dataTable);
  3107. return dataTable;
  3108. }
  3109. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3110. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3111. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3112. public virtual int Update(DB_Turaev_V2DataSet.Клиент_СервисDataTable dataTable) {
  3113. return this.Adapter.Update(dataTable);
  3114. }
  3115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3116. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3117. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3118. public virtual int Update(DB_Turaev_V2DataSet dataSet) {
  3119. return this.Adapter.Update(dataSet, "Клиент_Сервис");
  3120. }
  3121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3123. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3124. public virtual int Update(global::System.Data.DataRow dataRow) {
  3125. return this.Adapter.Update(new global::System.Data.DataRow[] {
  3126. dataRow});
  3127. }
  3128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3129. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3130. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3131. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  3132. return this.Adapter.Update(dataRows);
  3133. }
  3134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3135. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3136. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3137. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  3138. public virtual int Delete(int Original_ID, string Original_Client, string Original_Service, string Original_StartTime) {
  3139. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  3140. if ((Original_Client == null)) {
  3141. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  3142. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  3143. }
  3144. else {
  3145. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  3146. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Client));
  3147. }
  3148. if ((Original_Service == null)) {
  3149. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  3150. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  3151. }
  3152. else {
  3153. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  3154. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Service));
  3155. }
  3156. if ((Original_StartTime == null)) {
  3157. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  3158. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  3159. }
  3160. else {
  3161. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  3162. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_StartTime));
  3163. }
  3164. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  3165. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3166. != global::System.Data.ConnectionState.Open)) {
  3167. this.Adapter.DeleteCommand.Connection.Open();
  3168. }
  3169. try {
  3170. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  3171. return returnValue;
  3172. }
  3173. finally {
  3174. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3175. this.Adapter.DeleteCommand.Connection.Close();
  3176. }
  3177. }
  3178. }
  3179. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3180. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3181. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3182. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  3183. public virtual int Insert(string Client, string Service, string StartTime) {
  3184. if ((Client == null)) {
  3185. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  3186. }
  3187. else {
  3188. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Client));
  3189. }
  3190. if ((Service == null)) {
  3191. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  3192. }
  3193. else {
  3194. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Service));
  3195. }
  3196. if ((StartTime == null)) {
  3197. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  3198. }
  3199. else {
  3200. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(StartTime));
  3201. }
  3202. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  3203. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3204. != global::System.Data.ConnectionState.Open)) {
  3205. this.Adapter.InsertCommand.Connection.Open();
  3206. }
  3207. try {
  3208. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  3209. return returnValue;
  3210. }
  3211. finally {
  3212. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3213. this.Adapter.InsertCommand.Connection.Close();
  3214. }
  3215. }
  3216. }
  3217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3218. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3219. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3220. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3221. public virtual int Update(string Client, string Service, string StartTime, int Original_ID, string Original_Client, string Original_Service, string Original_StartTime, int ID) {
  3222. if ((Client == null)) {
  3223. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  3224. }
  3225. else {
  3226. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Client));
  3227. }
  3228. if ((Service == null)) {
  3229. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  3230. }
  3231. else {
  3232. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Service));
  3233. }
  3234. if ((StartTime == null)) {
  3235. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  3236. }
  3237. else {
  3238. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(StartTime));
  3239. }
  3240. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ID));
  3241. if ((Original_Client == null)) {
  3242. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  3243. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  3244. }
  3245. else {
  3246. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  3247. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Client));
  3248. }
  3249. if ((Original_Service == null)) {
  3250. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  3251. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  3252. }
  3253. else {
  3254. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  3255. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Service));
  3256. }
  3257. if ((Original_StartTime == null)) {
  3258. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  3259. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  3260. }
  3261. else {
  3262. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  3263. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_StartTime));
  3264. }
  3265. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(ID));
  3266. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  3267. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3268. != global::System.Data.ConnectionState.Open)) {
  3269. this.Adapter.UpdateCommand.Connection.Open();
  3270. }
  3271. try {
  3272. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  3273. return returnValue;
  3274. }
  3275. finally {
  3276. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3277. this.Adapter.UpdateCommand.Connection.Close();
  3278. }
  3279. }
  3280. }
  3281. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3282. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3283. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3284. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3285. public virtual int Update(string Client, string Service, string StartTime, int Original_ID, string Original_Client, string Original_Service, string Original_StartTime) {
  3286. return this.Update(Client, Service, StartTime, Original_ID, Original_Client, Original_Service, Original_StartTime, Original_ID);
  3287. }
  3288. }
  3289. /// <summary>
  3290. ///Represents the connection and commands used to retrieve and save data.
  3291. ///</summary>
  3292. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3293. [global::System.ComponentModel.ToolboxItem(true)]
  3294. [global::System.ComponentModel.DataObjectAttribute(true)]
  3295. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  3296. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3297. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3298. public partial class ПоставщикиTableAdapter : global::System.ComponentModel.Component {
  3299. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  3300. private global::System.Data.SqlClient.SqlConnection _connection;
  3301. private global::System.Data.SqlClient.SqlTransaction _transaction;
  3302. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  3303. private bool _clearBeforeFill;
  3304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3306. public ПоставщикиTableAdapter() {
  3307. this.ClearBeforeFill = true;
  3308. }
  3309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3310. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3311. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  3312. get {
  3313. if ((this._adapter == null)) {
  3314. this.InitAdapter();
  3315. }
  3316. return this._adapter;
  3317. }
  3318. }
  3319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3320. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3321. internal global::System.Data.SqlClient.SqlConnection Connection {
  3322. get {
  3323. if ((this._connection == null)) {
  3324. this.InitConnection();
  3325. }
  3326. return this._connection;
  3327. }
  3328. set {
  3329. this._connection = value;
  3330. if ((this.Adapter.InsertCommand != null)) {
  3331. this.Adapter.InsertCommand.Connection = value;
  3332. }
  3333. if ((this.Adapter.DeleteCommand != null)) {
  3334. this.Adapter.DeleteCommand.Connection = value;
  3335. }
  3336. if ((this.Adapter.UpdateCommand != null)) {
  3337. this.Adapter.UpdateCommand.Connection = value;
  3338. }
  3339. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3340. if ((this.CommandCollection[i] != null)) {
  3341. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  3342. }
  3343. }
  3344. }
  3345. }
  3346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3347. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3348. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  3349. get {
  3350. return this._transaction;
  3351. }
  3352. set {
  3353. this._transaction = value;
  3354. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3355. this.CommandCollection[i].Transaction = this._transaction;
  3356. }
  3357. if (((this.Adapter != null)
  3358. && (this.Adapter.DeleteCommand != null))) {
  3359. this.Adapter.DeleteCommand.Transaction = this._transaction;
  3360. }
  3361. if (((this.Adapter != null)
  3362. && (this.Adapter.InsertCommand != null))) {
  3363. this.Adapter.InsertCommand.Transaction = this._transaction;
  3364. }
  3365. if (((this.Adapter != null)
  3366. && (this.Adapter.UpdateCommand != null))) {
  3367. this.Adapter.UpdateCommand.Transaction = this._transaction;
  3368. }
  3369. }
  3370. }
  3371. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3372. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3373. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  3374. get {
  3375. if ((this._commandCollection == null)) {
  3376. this.InitCommandCollection();
  3377. }
  3378. return this._commandCollection;
  3379. }
  3380. }
  3381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3382. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3383. public bool ClearBeforeFill {
  3384. get {
  3385. return this._clearBeforeFill;
  3386. }
  3387. set {
  3388. this._clearBeforeFill = value;
  3389. }
  3390. }
  3391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3392. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3393. private void InitAdapter() {
  3394. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  3395. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  3396. tableMapping.SourceTable = "Table";
  3397. tableMapping.DataSetTable = "Поставщики";
  3398. tableMapping.ColumnMappings.Add("ID", "ID");
  3399. tableMapping.ColumnMappings.Add("Name", "Name");
  3400. this._adapter.TableMappings.Add(tableMapping);
  3401. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  3402. this._adapter.DeleteCommand.Connection = this.Connection;
  3403. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Поставщики] WHERE (([ID] = @Original_ID) AND ([Name] = @Origin" +
  3404. "al_Name))";
  3405. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  3406. 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, "", "", ""));
  3407. 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, "", "", ""));
  3408. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  3409. this._adapter.InsertCommand.Connection = this.Connection;
  3410. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Поставщики] ([Name]) VALUES (@Name);\r\nSELECT ID, Name FROM Пос" +
  3411. "тавщики WHERE (ID = SCOPE_IDENTITY())";
  3412. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  3413. 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, "", "", ""));
  3414. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  3415. this._adapter.UpdateCommand.Connection = this.Connection;
  3416. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Поставщики] SET [Name] = @Name WHERE (([ID] = @Original_ID) AND ([N" +
  3417. "ame] = @Original_Name));\r\nSELECT ID, Name FROM Поставщики WHERE (ID = @ID)";
  3418. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  3419. 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, "", "", ""));
  3420. 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, "", "", ""));
  3421. 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, "", "", ""));
  3422. 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, "", "", ""));
  3423. }
  3424. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3425. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3426. private void InitConnection() {
  3427. this._connection = new global::System.Data.SqlClient.SqlConnection();
  3428. this._connection.ConnectionString = global::Услуги_салона_красоты_Тураев.Properties.Settings.Default.DB_Turaev_V2ConnectionString;
  3429. }
  3430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3431. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3432. private void InitCommandCollection() {
  3433. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  3434. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  3435. this._commandCollection[0].Connection = this.Connection;
  3436. this._commandCollection[0].CommandText = "SELECT ID, Name FROM dbo.Поставщики";
  3437. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  3438. }
  3439. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3440. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3441. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3442. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  3443. public virtual int Fill(DB_Turaev_V2DataSet.ПоставщикиDataTable dataTable) {
  3444. this.Adapter.SelectCommand = this.CommandCollection[0];
  3445. if ((this.ClearBeforeFill == true)) {
  3446. dataTable.Clear();
  3447. }
  3448. int returnValue = this.Adapter.Fill(dataTable);
  3449. return returnValue;
  3450. }
  3451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3452. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3453. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3454. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  3455. public virtual DB_Turaev_V2DataSet.ПоставщикиDataTable GetData() {
  3456. this.Adapter.SelectCommand = this.CommandCollection[0];
  3457. DB_Turaev_V2DataSet.ПоставщикиDataTable dataTable = new DB_Turaev_V2DataSet.ПоставщикиDataTable();
  3458. this.Adapter.Fill(dataTable);
  3459. return dataTable;
  3460. }
  3461. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3462. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3463. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3464. public virtual int Update(DB_Turaev_V2DataSet.ПоставщикиDataTable dataTable) {
  3465. return this.Adapter.Update(dataTable);
  3466. }
  3467. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3468. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3469. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3470. public virtual int Update(DB_Turaev_V2DataSet dataSet) {
  3471. return this.Adapter.Update(dataSet, "Поставщики");
  3472. }
  3473. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3474. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3475. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3476. public virtual int Update(global::System.Data.DataRow dataRow) {
  3477. return this.Adapter.Update(new global::System.Data.DataRow[] {
  3478. dataRow});
  3479. }
  3480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3482. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3483. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  3484. return this.Adapter.Update(dataRows);
  3485. }
  3486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3488. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3489. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  3490. public virtual int Delete(int Original_ID, string Original_Name) {
  3491. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  3492. if ((Original_Name == null)) {
  3493. throw new global::System.ArgumentNullException("Original_Name");
  3494. }
  3495. else {
  3496. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Name));
  3497. }
  3498. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  3499. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3500. != global::System.Data.ConnectionState.Open)) {
  3501. this.Adapter.DeleteCommand.Connection.Open();
  3502. }
  3503. try {
  3504. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  3505. return returnValue;
  3506. }
  3507. finally {
  3508. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3509. this.Adapter.DeleteCommand.Connection.Close();
  3510. }
  3511. }
  3512. }
  3513. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3514. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3515. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3516. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  3517. public virtual int Insert(string Name) {
  3518. if ((Name == null)) {
  3519. throw new global::System.ArgumentNullException("Name");
  3520. }
  3521. else {
  3522. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Name));
  3523. }
  3524. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  3525. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3526. != global::System.Data.ConnectionState.Open)) {
  3527. this.Adapter.InsertCommand.Connection.Open();
  3528. }
  3529. try {
  3530. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  3531. return returnValue;
  3532. }
  3533. finally {
  3534. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3535. this.Adapter.InsertCommand.Connection.Close();
  3536. }
  3537. }
  3538. }
  3539. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3540. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3541. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3542. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3543. public virtual int Update(string Name, int Original_ID, string Original_Name, int ID) {
  3544. if ((Name == null)) {
  3545. throw new global::System.ArgumentNullException("Name");
  3546. }
  3547. else {
  3548. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Name));
  3549. }
  3550. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_ID));
  3551. if ((Original_Name == null)) {
  3552. throw new global::System.ArgumentNullException("Original_Name");
  3553. }
  3554. else {
  3555. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Original_Name));
  3556. }
  3557. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(ID));
  3558. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  3559. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3560. != global::System.Data.ConnectionState.Open)) {
  3561. this.Adapter.UpdateCommand.Connection.Open();
  3562. }
  3563. try {
  3564. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  3565. return returnValue;
  3566. }
  3567. finally {
  3568. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3569. this.Adapter.UpdateCommand.Connection.Close();
  3570. }
  3571. }
  3572. }
  3573. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3574. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3575. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3576. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3577. public virtual int Update(string Name, int Original_ID, string Original_Name) {
  3578. return this.Update(Name, Original_ID, Original_Name, Original_ID);
  3579. }
  3580. }
  3581. /// <summary>
  3582. ///Represents the connection and commands used to retrieve and save data.
  3583. ///</summary>
  3584. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3585. [global::System.ComponentModel.ToolboxItem(true)]
  3586. [global::System.ComponentModel.DataObjectAttribute(true)]
  3587. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  3588. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3589. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3590. public partial class СервисTableAdapter : global::System.ComponentModel.Component {
  3591. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  3592. private global::System.Data.SqlClient.SqlConnection _connection;
  3593. private global::System.Data.SqlClient.SqlTransaction _transaction;
  3594. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  3595. private bool _clearBeforeFill;
  3596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3597. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3598. public СервисTableAdapter() {
  3599. this.ClearBeforeFill = true;
  3600. }
  3601. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3602. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3603. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  3604. get {
  3605. if ((this._adapter == null)) {
  3606. this.InitAdapter();
  3607. }
  3608. return this._adapter;
  3609. }
  3610. }
  3611. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3612. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3613. internal global::System.Data.SqlClient.SqlConnection Connection {
  3614. get {
  3615. if ((this._connection == null)) {
  3616. this.InitConnection();
  3617. }
  3618. return this._connection;
  3619. }
  3620. set {
  3621. this._connection = value;
  3622. if ((this.Adapter.InsertCommand != null)) {
  3623. this.Adapter.InsertCommand.Connection = value;
  3624. }
  3625. if ((this.Adapter.DeleteCommand != null)) {
  3626. this.Adapter.DeleteCommand.Connection = value;
  3627. }
  3628. if ((this.Adapter.UpdateCommand != null)) {
  3629. this.Adapter.UpdateCommand.Connection = value;
  3630. }
  3631. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3632. if ((this.CommandCollection[i] != null)) {
  3633. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  3634. }
  3635. }
  3636. }
  3637. }
  3638. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3639. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3640. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  3641. get {
  3642. return this._transaction;
  3643. }
  3644. set {
  3645. this._transaction = value;
  3646. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3647. this.CommandCollection[i].Transaction = this._transaction;
  3648. }
  3649. if (((this.Adapter != null)
  3650. && (this.Adapter.DeleteCommand != null))) {
  3651. this.Adapter.DeleteCommand.Transaction = this._transaction;
  3652. }
  3653. if (((this.Adapter != null)
  3654. && (this.Adapter.InsertCommand != null))) {
  3655. this.Adapter.InsertCommand.Transaction = this._transaction;
  3656. }
  3657. if (((this.Adapter != null)
  3658. && (this.Adapter.UpdateCommand != null))) {
  3659. this.Adapter.UpdateCommand.Transaction = this._transaction;
  3660. }
  3661. }
  3662. }
  3663. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3664. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3665. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  3666. get {
  3667. if ((this._commandCollection == null)) {
  3668. this.InitCommandCollection();
  3669. }
  3670. return this._commandCollection;
  3671. }
  3672. }
  3673. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3674. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3675. public bool ClearBeforeFill {
  3676. get {
  3677. return this._clearBeforeFill;
  3678. }
  3679. set {
  3680. this._clearBeforeFill = value;
  3681. }
  3682. }
  3683. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3684. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3685. private void InitAdapter() {
  3686. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  3687. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  3688. tableMapping.SourceTable = "Table";
  3689. tableMapping.DataSetTable = "Сервис";
  3690. tableMapping.ColumnMappings.Add("ID_service", "ID_service");
  3691. tableMapping.ColumnMappings.Add("Наименование_услуги", "Наименование_услуги");
  3692. tableMapping.ColumnMappings.Add("Главное_изображение", "Главное_изображение");
  3693. tableMapping.ColumnMappings.Add("Длительность", "Длительность");
  3694. tableMapping.ColumnMappings.Add("Стоимость", "Стоимость");
  3695. tableMapping.ColumnMappings.Add("Действующая_скидка", "Действующая_скидка");
  3696. this._adapter.TableMappings.Add(tableMapping);
  3697. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  3698. this._adapter.DeleteCommand.Connection = this.Connection;
  3699. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Сервис] WHERE (([ID_service] = @Original_ID_service) AND ([Наименование_услуги] = @Original_Наименование_услуги) AND ([Главное_изображение] = @Original_Главное_изображение) AND ([Длительность] = @Original_Длительность) AND ([Стоимость] = @Original_Стоимость) AND ([Действующая_скидка] = @Original_Действующая_скидка))";
  3700. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  3701. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_service", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_service", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3702. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Наименование_услуги", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование_услуги", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3703. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Главное_изображение", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Главное_изображение", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3704. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Длительность", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Длительность", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3705. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Стоимость", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3706. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Действующая_скидка", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Действующая_скидка", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3707. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  3708. this._adapter.InsertCommand.Connection = this.Connection;
  3709. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Сервис] ([Наименование_услуги], [Главное_изображение], [Длительность], [Стоимость], [Действующая_скидка]) VALUES (@Наименование_услуги, @Главное_изображение, @Длительность, @Стоимость, @Действующая_скидка);
  3710. SELECT ID_service, Наименование_услуги, Главное_изображение, Длительность, Стоимость, Действующая_скидка FROM Сервис WHERE (ID_service = SCOPE_IDENTITY())";
  3711. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  3712. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Наименование_услуги", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование_услуги", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3713. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Главное_изображение", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Главное_изображение", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3714. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Длительность", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Длительность", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3715. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Стоимость", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3716. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Действующая_скидка", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Действующая_скидка", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3717. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  3718. this._adapter.UpdateCommand.Connection = this.Connection;
  3719. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Сервис] SET [Наименование_услуги] = @Наименование_услуги, [Главное_изображение] = @Главное_изображение, [Длительность] = @Длительность, [Стоимость] = @Стоимость, [Действующая_скидка] = @Действующая_скидка WHERE (([ID_service] = @Original_ID_service) AND ([Наименование_услуги] = @Original_Наименование_услуги) AND ([Главное_изображение] = @Original_Главное_изображение) AND ([Длительность] = @Original_Длительность) AND ([Стоимость] = @Original_Стоимость) AND ([Действующая_скидка] = @Original_Действующая_скидка));
  3720. SELECT ID_service, Наименование_услуги, Главное_изображение, Длительность, Стоимость, Действующая_скидка FROM Сервис WHERE (ID_service = @ID_service)";
  3721. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  3722. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Наименование_услуги", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование_услуги", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3723. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Главное_изображение", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Главное_изображение", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3724. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Длительность", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Длительность", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3725. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Стоимость", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3726. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Действующая_скидка", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Действующая_скидка", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3727. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_service", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_service", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3728. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Наименование_услуги", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование_услуги", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3729. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Главное_изображение", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Главное_изображение", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3730. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Длительность", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Длительность", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3731. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Стоимость", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3732. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Действующая_скидка", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Действующая_скидка", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3733. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_service", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID_service", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3734. }
  3735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3736. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3737. private void InitConnection() {
  3738. this._connection = new global::System.Data.SqlClient.SqlConnection();
  3739. this._connection.ConnectionString = global::Услуги_салона_красоты_Тураев.Properties.Settings.Default.DB_Turaev_V2ConnectionString;
  3740. }
  3741. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3742. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3743. private void InitCommandCollection() {
  3744. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  3745. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  3746. this._commandCollection[0].Connection = this.Connection;
  3747. this._commandCollection[0].CommandText = "SELECT ID_service, Наименование_услуги, Главное_изображение, Длительность, Стоимо" +
  3748. "сть, Действующая_скидка FROM dbo.Сервис";
  3749. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  3750. }
  3751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3753. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3754. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  3755. public virtual int Fill(DB_Turaev_V2DataSet.СервисDataTable dataTable) {
  3756. this.Adapter.SelectCommand = this.CommandCollection[0];
  3757. if ((this.ClearBeforeFill == true)) {
  3758. dataTable.Clear();
  3759. }
  3760. int returnValue = this.Adapter.Fill(dataTable);
  3761. return returnValue;
  3762. }
  3763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3764. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3765. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3766. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  3767. public virtual DB_Turaev_V2DataSet.СервисDataTable GetData() {
  3768. this.Adapter.SelectCommand = this.CommandCollection[0];
  3769. DB_Turaev_V2DataSet.СервисDataTable dataTable = new DB_Turaev_V2DataSet.СервисDataTable();
  3770. this.Adapter.Fill(dataTable);
  3771. return dataTable;
  3772. }
  3773. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3774. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3775. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3776. public virtual int Update(DB_Turaev_V2DataSet.СервисDataTable dataTable) {
  3777. return this.Adapter.Update(dataTable);
  3778. }
  3779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3781. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3782. public virtual int Update(DB_Turaev_V2DataSet dataSet) {
  3783. return this.Adapter.Update(dataSet, "Сервис");
  3784. }
  3785. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3786. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3787. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3788. public virtual int Update(global::System.Data.DataRow dataRow) {
  3789. return this.Adapter.Update(new global::System.Data.DataRow[] {
  3790. dataRow});
  3791. }
  3792. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3793. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3794. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3795. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  3796. return this.Adapter.Update(dataRows);
  3797. }
  3798. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3799. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3800. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3801. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  3802. public virtual int Delete(int Original_ID_service, string Original_Наименование_услуги, string Original_Главное_изображение, string Original_Длительность, string Original_Стоимость, string Original_Действующая_скидка) {
  3803. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID_service));
  3804. if ((Original_Наименование_услуги == null)) {
  3805. throw new global::System.ArgumentNullException("Original_Наименование_услуги");
  3806. }
  3807. else {
  3808. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Наименование_услуги));
  3809. }
  3810. if ((Original_Главное_изображение == null)) {
  3811. throw new global::System.ArgumentNullException("Original_Главное_изображение");
  3812. }
  3813. else {
  3814. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Главное_изображение));
  3815. }
  3816. if ((Original_Длительность == null)) {
  3817. throw new global::System.ArgumentNullException("Original_Длительность");
  3818. }
  3819. else {
  3820. this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_Длительность));
  3821. }
  3822. if ((Original_Стоимость == null)) {
  3823. throw new global::System.ArgumentNullException("Original_Стоимость");
  3824. }
  3825. else {
  3826. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Стоимость));
  3827. }
  3828. if ((Original_Действующая_скидка == null)) {
  3829. throw new global::System.ArgumentNullException("Original_Действующая_скидка");
  3830. }
  3831. else {
  3832. this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_Действующая_скидка));
  3833. }
  3834. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  3835. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3836. != global::System.Data.ConnectionState.Open)) {
  3837. this.Adapter.DeleteCommand.Connection.Open();
  3838. }
  3839. try {
  3840. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  3841. return returnValue;
  3842. }
  3843. finally {
  3844. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3845. this.Adapter.DeleteCommand.Connection.Close();
  3846. }
  3847. }
  3848. }
  3849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3850. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3851. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3852. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  3853. public virtual int Insert(string Наименование_услуги, string Главное_изображение, string Длительность, string Стоимость, string Действующая_скидка) {
  3854. if ((Наименование_услуги == null)) {
  3855. throw new global::System.ArgumentNullException("Наименование_услуги");
  3856. }
  3857. else {
  3858. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Наименование_услуги));
  3859. }
  3860. if ((Главное_изображение == null)) {
  3861. throw new global::System.ArgumentNullException("Главное_изображение");
  3862. }
  3863. else {
  3864. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Главное_изображение));
  3865. }
  3866. if ((Длительность == null)) {
  3867. throw new global::System.ArgumentNullException("Длительность");
  3868. }
  3869. else {
  3870. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Длительность));
  3871. }
  3872. if ((Стоимость == null)) {
  3873. throw new global::System.ArgumentNullException("Стоимость");
  3874. }
  3875. else {
  3876. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Стоимость));
  3877. }
  3878. if ((Действующая_скидка == null)) {
  3879. throw new global::System.ArgumentNullException("Действующая_скидка");
  3880. }
  3881. else {
  3882. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Действующая_скидка));
  3883. }
  3884. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  3885. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3886. != global::System.Data.ConnectionState.Open)) {
  3887. this.Adapter.InsertCommand.Connection.Open();
  3888. }
  3889. try {
  3890. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  3891. return returnValue;
  3892. }
  3893. finally {
  3894. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3895. this.Adapter.InsertCommand.Connection.Close();
  3896. }
  3897. }
  3898. }
  3899. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3900. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3901. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3902. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3903. public virtual int Update(string Наименование_услуги, string Главное_изображение, string Длительность, string Стоимость, string Действующая_скидка, int Original_ID_service, string Original_Наименование_услуги, string Original_Главное_изображение, string Original_Длительность, string Original_Стоимость, string Original_Действующая_скидка, int ID_service) {
  3904. if ((Наименование_услуги == null)) {
  3905. throw new global::System.ArgumentNullException("Наименование_услуги");
  3906. }
  3907. else {
  3908. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Наименование_услуги));
  3909. }
  3910. if ((Главное_изображение == null)) {
  3911. throw new global::System.ArgumentNullException("Главное_изображение");
  3912. }
  3913. else {
  3914. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Главное_изображение));
  3915. }
  3916. if ((Длительность == null)) {
  3917. throw new global::System.ArgumentNullException("Длительность");
  3918. }
  3919. else {
  3920. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Длительность));
  3921. }
  3922. if ((Стоимость == null)) {
  3923. throw new global::System.ArgumentNullException("Стоимость");
  3924. }
  3925. else {
  3926. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Стоимость));
  3927. }
  3928. if ((Действующая_скидка == null)) {
  3929. throw new global::System.ArgumentNullException("Действующая_скидка");
  3930. }
  3931. else {
  3932. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Действующая_скидка));
  3933. }
  3934. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_ID_service));
  3935. if ((Original_Наименование_услуги == null)) {
  3936. throw new global::System.ArgumentNullException("Original_Наименование_услуги");
  3937. }
  3938. else {
  3939. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_Наименование_услуги));
  3940. }
  3941. if ((Original_Главное_изображение == null)) {
  3942. throw new global::System.ArgumentNullException("Original_Главное_изображение");
  3943. }
  3944. else {
  3945. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Главное_изображение));
  3946. }
  3947. if ((Original_Длительность == null)) {
  3948. throw new global::System.ArgumentNullException("Original_Длительность");
  3949. }
  3950. else {
  3951. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_Длительность));
  3952. }
  3953. if ((Original_Стоимость == null)) {
  3954. throw new global::System.ArgumentNullException("Original_Стоимость");
  3955. }
  3956. else {
  3957. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_Стоимость));
  3958. }
  3959. if ((Original_Действующая_скидка == null)) {
  3960. throw new global::System.ArgumentNullException("Original_Действующая_скидка");
  3961. }
  3962. else {
  3963. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_Действующая_скидка));
  3964. }
  3965. this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(ID_service));
  3966. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  3967. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3968. != global::System.Data.ConnectionState.Open)) {
  3969. this.Adapter.UpdateCommand.Connection.Open();
  3970. }
  3971. try {
  3972. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  3973. return returnValue;
  3974. }
  3975. finally {
  3976. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3977. this.Adapter.UpdateCommand.Connection.Close();
  3978. }
  3979. }
  3980. }
  3981. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3982. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3983. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3984. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3985. public virtual int Update(string Наименование_услуги, string Главное_изображение, string Длительность, string Стоимость, string Действующая_скидка, int Original_ID_service, string Original_Наименование_услуги, string Original_Главное_изображение, string Original_Длительность, string Original_Стоимость, string Original_Действующая_скидка) {
  3986. return this.Update(Наименование_услуги, Главное_изображение, Длительность, Стоимость, Действующая_скидка, Original_ID_service, Original_Наименование_услуги, Original_Главное_изображение, Original_Длительность, Original_Стоимость, Original_Действующая_скидка, Original_ID_service);
  3987. }
  3988. }
  3989. /// <summary>
  3990. ///Represents the connection and commands used to retrieve and save data.
  3991. ///</summary>
  3992. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3993. [global::System.ComponentModel.ToolboxItem(true)]
  3994. [global::System.ComponentModel.DataObjectAttribute(true)]
  3995. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  3996. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3997. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3998. public partial class ТоварыTableAdapter : global::System.ComponentModel.Component {
  3999. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4000. private global::System.Data.SqlClient.SqlConnection _connection;
  4001. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4002. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4003. private bool _clearBeforeFill;
  4004. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4005. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4006. public ТоварыTableAdapter() {
  4007. this.ClearBeforeFill = true;
  4008. }
  4009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4011. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4012. get {
  4013. if ((this._adapter == null)) {
  4014. this.InitAdapter();
  4015. }
  4016. return this._adapter;
  4017. }
  4018. }
  4019. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4020. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4021. internal global::System.Data.SqlClient.SqlConnection Connection {
  4022. get {
  4023. if ((this._connection == null)) {
  4024. this.InitConnection();
  4025. }
  4026. return this._connection;
  4027. }
  4028. set {
  4029. this._connection = value;
  4030. if ((this.Adapter.InsertCommand != null)) {
  4031. this.Adapter.InsertCommand.Connection = value;
  4032. }
  4033. if ((this.Adapter.DeleteCommand != null)) {
  4034. this.Adapter.DeleteCommand.Connection = value;
  4035. }
  4036. if ((this.Adapter.UpdateCommand != null)) {
  4037. this.Adapter.UpdateCommand.Connection = value;
  4038. }
  4039. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4040. if ((this.CommandCollection[i] != null)) {
  4041. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4042. }
  4043. }
  4044. }
  4045. }
  4046. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4047. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4048. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4049. get {
  4050. return this._transaction;
  4051. }
  4052. set {
  4053. this._transaction = value;
  4054. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4055. this.CommandCollection[i].Transaction = this._transaction;
  4056. }
  4057. if (((this.Adapter != null)
  4058. && (this.Adapter.DeleteCommand != null))) {
  4059. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4060. }
  4061. if (((this.Adapter != null)
  4062. && (this.Adapter.InsertCommand != null))) {
  4063. this.Adapter.InsertCommand.Transaction = this._transaction;
  4064. }
  4065. if (((this.Adapter != null)
  4066. && (this.Adapter.UpdateCommand != null))) {
  4067. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4068. }
  4069. }
  4070. }
  4071. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4072. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4073. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4074. get {
  4075. if ((this._commandCollection == null)) {
  4076. this.InitCommandCollection();
  4077. }
  4078. return this._commandCollection;
  4079. }
  4080. }
  4081. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4082. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4083. public bool ClearBeforeFill {
  4084. get {
  4085. return this._clearBeforeFill;
  4086. }
  4087. set {
  4088. this._clearBeforeFill = value;
  4089. }
  4090. }
  4091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4093. private void InitAdapter() {
  4094. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4095. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4096. tableMapping.SourceTable = "Table";
  4097. tableMapping.DataSetTable = "Товары";
  4098. tableMapping.ColumnMappings.Add("ID", "ID");
  4099. tableMapping.ColumnMappings.Add("Title", "Title");
  4100. tableMapping.ColumnMappings.Add("Cost", "Cost");
  4101. tableMapping.ColumnMappings.Add("Description", "Description");
  4102. tableMapping.ColumnMappings.Add("Count", "Count");
  4103. tableMapping.ColumnMappings.Add("ManufacturerID", "ManufacturerID");
  4104. this._adapter.TableMappings.Add(tableMapping);
  4105. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4106. this._adapter.DeleteCommand.Connection = this.Connection;
  4107. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Товары] WHERE (([ID] = @Original_ID) AND ((@IsNull_Title = 1 AND [Title] IS NULL) OR ([Title] = @Original_Title)) AND ((@IsNull_Cost = 1 AND [Cost] IS NULL) OR ([Cost] = @Original_Cost)) AND ((@IsNull_Description = 1 AND [Description] IS NULL) OR ([Description] = @Original_Description)) AND ((@IsNull_Count = 1 AND [Count] IS NULL) OR ([Count] = @Original_Count)) AND ((@IsNull_ManufacturerID = 1 AND [ManufacturerID] IS NULL) OR ([ManufacturerID] = @Original_ManufacturerID)))";
  4108. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4109. 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, "", "", ""));
  4110. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Title", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4111. 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, "", "", ""));
  4112. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Cost", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cost", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4113. 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, "", "", ""));
  4114. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Description", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Description", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4115. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Description", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Description", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4116. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Count", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Count", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4117. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Count", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Count", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4118. 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, "", "", ""));
  4119. 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, "", "", ""));
  4120. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4121. this._adapter.InsertCommand.Connection = this.Connection;
  4122. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Товары] ([Title], [Cost], [Description], [Count], [Manufacture" +
  4123. "rID]) VALUES (@Title, @Cost, @Description, @Count, @ManufacturerID);\r\nSELECT ID," +
  4124. " Title, Cost, Description, Count, ManufacturerID FROM Товары WHERE (ID = SCOPE_I" +
  4125. "DENTITY())";
  4126. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4127. 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, "", "", ""));
  4128. 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, "", "", ""));
  4129. 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, "", "", ""));
  4130. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Count", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Count", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4131. 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, "", "", ""));
  4132. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  4133. this._adapter.UpdateCommand.Connection = this.Connection;
  4134. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Товары] SET [Title] = @Title, [Cost] = @Cost, [Description] = @Description, [Count] = @Count, [ManufacturerID] = @ManufacturerID WHERE (([ID] = @Original_ID) AND ((@IsNull_Title = 1 AND [Title] IS NULL) OR ([Title] = @Original_Title)) AND ((@IsNull_Cost = 1 AND [Cost] IS NULL) OR ([Cost] = @Original_Cost)) AND ((@IsNull_Description = 1 AND [Description] IS NULL) OR ([Description] = @Original_Description)) AND ((@IsNull_Count = 1 AND [Count] IS NULL) OR ([Count] = @Original_Count)) AND ((@IsNull_ManufacturerID = 1 AND [ManufacturerID] IS NULL) OR ([ManufacturerID] = @Original_ManufacturerID)));
  4135. SELECT ID, Title, Cost, Description, Count, ManufacturerID FROM Товары WHERE (ID = @ID)";
  4136. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4137. 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, "", "", ""));
  4138. 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, "", "", ""));
  4139. 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, "", "", ""));
  4140. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Count", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Count", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4141. 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, "", "", ""));
  4142. 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, "", "", ""));
  4143. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Title", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4144. 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, "", "", ""));
  4145. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Cost", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cost", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4146. 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, "", "", ""));
  4147. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Description", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Description", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4148. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Description", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Description", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4149. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Count", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Count", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4150. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Count", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Count", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4151. 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, "", "", ""));
  4152. 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, "", "", ""));
  4153. 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, "", "", ""));
  4154. }
  4155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4156. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4157. private void InitConnection() {
  4158. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4159. this._connection.ConnectionString = global::Услуги_салона_красоты_Тураев.Properties.Settings.Default.DB_Turaev_V2ConnectionString;
  4160. }
  4161. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4162. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4163. private void InitCommandCollection() {
  4164. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4165. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4166. this._commandCollection[0].Connection = this.Connection;
  4167. this._commandCollection[0].CommandText = "SELECT ID, Title, Cost, Description, Count, ManufacturerID FROM dbo.Товары";
  4168. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4169. }
  4170. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4171. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4172. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4173. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4174. public virtual int Fill(DB_Turaev_V2DataSet.ТоварыDataTable dataTable) {
  4175. this.Adapter.SelectCommand = this.CommandCollection[0];
  4176. if ((this.ClearBeforeFill == true)) {
  4177. dataTable.Clear();
  4178. }
  4179. int returnValue = this.Adapter.Fill(dataTable);
  4180. return returnValue;
  4181. }
  4182. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4183. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4184. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4185. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4186. public virtual DB_Turaev_V2DataSet.ТоварыDataTable GetData() {
  4187. this.Adapter.SelectCommand = this.CommandCollection[0];
  4188. DB_Turaev_V2DataSet.ТоварыDataTable dataTable = new DB_Turaev_V2DataSet.ТоварыDataTable();
  4189. this.Adapter.Fill(dataTable);
  4190. return dataTable;
  4191. }
  4192. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4193. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4194. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4195. public virtual int Update(DB_Turaev_V2DataSet.ТоварыDataTable dataTable) {
  4196. return this.Adapter.Update(dataTable);
  4197. }
  4198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4199. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4200. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4201. public virtual int Update(DB_Turaev_V2DataSet dataSet) {
  4202. return this.Adapter.Update(dataSet, "Товары");
  4203. }
  4204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4205. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4206. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4207. public virtual int Update(global::System.Data.DataRow dataRow) {
  4208. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4209. dataRow});
  4210. }
  4211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4213. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4214. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  4215. return this.Adapter.Update(dataRows);
  4216. }
  4217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4218. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4219. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4220. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  4221. public virtual int Delete(int Original_ID, string Original_Title, global::System.Nullable<decimal> Original_Cost, string Original_Description, global::System.Nullable<int> Original_Count, global::System.Nullable<int> Original_ManufacturerID) {
  4222. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  4223. if ((Original_Title == null)) {
  4224. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  4225. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  4226. }
  4227. else {
  4228. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  4229. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Title));
  4230. }
  4231. if ((Original_Cost.HasValue == true)) {
  4232. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  4233. this.Adapter.DeleteCommand.Parameters[4].Value = ((decimal)(Original_Cost.Value));
  4234. }
  4235. else {
  4236. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  4237. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  4238. }
  4239. if ((Original_Description == null)) {
  4240. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  4241. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  4242. }
  4243. else {
  4244. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  4245. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Description));
  4246. }
  4247. if ((Original_Count.HasValue == true)) {
  4248. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  4249. this.Adapter.DeleteCommand.Parameters[8].Value = ((int)(Original_Count.Value));
  4250. }
  4251. else {
  4252. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  4253. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  4254. }
  4255. if ((Original_ManufacturerID.HasValue == true)) {
  4256. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  4257. this.Adapter.DeleteCommand.Parameters[10].Value = ((int)(Original_ManufacturerID.Value));
  4258. }
  4259. else {
  4260. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  4261. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  4262. }
  4263. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  4264. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4265. != global::System.Data.ConnectionState.Open)) {
  4266. this.Adapter.DeleteCommand.Connection.Open();
  4267. }
  4268. try {
  4269. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  4270. return returnValue;
  4271. }
  4272. finally {
  4273. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4274. this.Adapter.DeleteCommand.Connection.Close();
  4275. }
  4276. }
  4277. }
  4278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4279. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4280. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4281. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  4282. public virtual int Insert(string Title, global::System.Nullable<decimal> Cost, string Description, global::System.Nullable<int> Count, global::System.Nullable<int> ManufacturerID) {
  4283. if ((Title == null)) {
  4284. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  4285. }
  4286. else {
  4287. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  4288. }
  4289. if ((Cost.HasValue == true)) {
  4290. this.Adapter.InsertCommand.Parameters[1].Value = ((decimal)(Cost.Value));
  4291. }
  4292. else {
  4293. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  4294. }
  4295. if ((Description == null)) {
  4296. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  4297. }
  4298. else {
  4299. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Description));
  4300. }
  4301. if ((Count.HasValue == true)) {
  4302. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(Count.Value));
  4303. }
  4304. else {
  4305. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  4306. }
  4307. if ((ManufacturerID.HasValue == true)) {
  4308. this.Adapter.InsertCommand.Parameters[4].Value = ((int)(ManufacturerID.Value));
  4309. }
  4310. else {
  4311. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  4312. }
  4313. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  4314. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4315. != global::System.Data.ConnectionState.Open)) {
  4316. this.Adapter.InsertCommand.Connection.Open();
  4317. }
  4318. try {
  4319. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  4320. return returnValue;
  4321. }
  4322. finally {
  4323. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4324. this.Adapter.InsertCommand.Connection.Close();
  4325. }
  4326. }
  4327. }
  4328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4329. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4330. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4331. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4332. public virtual int Update(string Title, global::System.Nullable<decimal> Cost, string Description, global::System.Nullable<int> Count, global::System.Nullable<int> ManufacturerID, int Original_ID, string Original_Title, global::System.Nullable<decimal> Original_Cost, string Original_Description, global::System.Nullable<int> Original_Count, global::System.Nullable<int> Original_ManufacturerID, int ID) {
  4333. if ((Title == null)) {
  4334. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  4335. }
  4336. else {
  4337. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  4338. }
  4339. if ((Cost.HasValue == true)) {
  4340. this.Adapter.UpdateCommand.Parameters[1].Value = ((decimal)(Cost.Value));
  4341. }
  4342. else {
  4343. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  4344. }
  4345. if ((Description == null)) {
  4346. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  4347. }
  4348. else {
  4349. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Description));
  4350. }
  4351. if ((Count.HasValue == true)) {
  4352. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Count.Value));
  4353. }
  4354. else {
  4355. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  4356. }
  4357. if ((ManufacturerID.HasValue == true)) {
  4358. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(ManufacturerID.Value));
  4359. }
  4360. else {
  4361. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  4362. }
  4363. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_ID));
  4364. if ((Original_Title == null)) {
  4365. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  4366. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  4367. }
  4368. else {
  4369. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  4370. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Title));
  4371. }
  4372. if ((Original_Cost.HasValue == true)) {
  4373. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  4374. this.Adapter.UpdateCommand.Parameters[9].Value = ((decimal)(Original_Cost.Value));
  4375. }
  4376. else {
  4377. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  4378. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  4379. }
  4380. if ((Original_Description == null)) {
  4381. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  4382. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  4383. }
  4384. else {
  4385. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  4386. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_Description));
  4387. }
  4388. if ((Original_Count.HasValue == true)) {
  4389. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  4390. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Original_Count.Value));
  4391. }
  4392. else {
  4393. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  4394. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  4395. }
  4396. if ((Original_ManufacturerID.HasValue == true)) {
  4397. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
  4398. this.Adapter.UpdateCommand.Parameters[15].Value = ((int)(Original_ManufacturerID.Value));
  4399. }
  4400. else {
  4401. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
  4402. this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
  4403. }
  4404. this.Adapter.UpdateCommand.Parameters[16].Value = ((int)(ID));
  4405. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  4406. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4407. != global::System.Data.ConnectionState.Open)) {
  4408. this.Adapter.UpdateCommand.Connection.Open();
  4409. }
  4410. try {
  4411. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  4412. return returnValue;
  4413. }
  4414. finally {
  4415. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4416. this.Adapter.UpdateCommand.Connection.Close();
  4417. }
  4418. }
  4419. }
  4420. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4421. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4422. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4423. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4424. public virtual int Update(string Title, global::System.Nullable<decimal> Cost, string Description, global::System.Nullable<int> Count, global::System.Nullable<int> ManufacturerID, int Original_ID, string Original_Title, global::System.Nullable<decimal> Original_Cost, string Original_Description, global::System.Nullable<int> Original_Count, global::System.Nullable<int> Original_ManufacturerID) {
  4425. return this.Update(Title, Cost, Description, Count, ManufacturerID, Original_ID, Original_Title, Original_Cost, Original_Description, Original_Count, Original_ManufacturerID, Original_ID);
  4426. }
  4427. }
  4428. /// <summary>
  4429. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  4430. ///</summary>
  4431. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4432. [global::System.ComponentModel.ToolboxItem(true)]
  4433. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  4434. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4435. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  4436. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  4437. private UpdateOrderOption _updateOrder;
  4438. private КлиентTableAdapter _клиентTableAdapter;
  4439. private Клиент_СервисTableAdapter _клиент_СервисTableAdapter;
  4440. private ПоставщикиTableAdapter _поставщикиTableAdapter;
  4441. private СервисTableAdapter _сервисTableAdapter;
  4442. private ТоварыTableAdapter _товарыTableAdapter;
  4443. private bool _backupDataSetBeforeUpdate;
  4444. private global::System.Data.IDbConnection _connection;
  4445. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4446. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4447. public UpdateOrderOption UpdateOrder {
  4448. get {
  4449. return this._updateOrder;
  4450. }
  4451. set {
  4452. this._updateOrder = value;
  4453. }
  4454. }
  4455. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4456. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4457. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  4458. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  4459. "a", "System.Drawing.Design.UITypeEditor")]
  4460. public КлиентTableAdapter КлиентTableAdapter {
  4461. get {
  4462. return this._клиентTableAdapter;
  4463. }
  4464. set {
  4465. this._клиентTableAdapter = value;
  4466. }
  4467. }
  4468. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4469. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4470. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  4471. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  4472. "a", "System.Drawing.Design.UITypeEditor")]
  4473. public Клиент_СервисTableAdapter Клиент_СервисTableAdapter {
  4474. get {
  4475. return this._клиент_СервисTableAdapter;
  4476. }
  4477. set {
  4478. this._клиент_СервисTableAdapter = value;
  4479. }
  4480. }
  4481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4483. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  4484. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  4485. "a", "System.Drawing.Design.UITypeEditor")]
  4486. public ПоставщикиTableAdapter ПоставщикиTableAdapter {
  4487. get {
  4488. return this._поставщикиTableAdapter;
  4489. }
  4490. set {
  4491. this._поставщикиTableAdapter = value;
  4492. }
  4493. }
  4494. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4495. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4496. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  4497. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  4498. "a", "System.Drawing.Design.UITypeEditor")]
  4499. public СервисTableAdapter СервисTableAdapter {
  4500. get {
  4501. return this._сервисTableAdapter;
  4502. }
  4503. set {
  4504. this._сервисTableAdapter = value;
  4505. }
  4506. }
  4507. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4508. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4509. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  4510. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  4511. "a", "System.Drawing.Design.UITypeEditor")]
  4512. public ТоварыTableAdapter ТоварыTableAdapter {
  4513. get {
  4514. return this._товарыTableAdapter;
  4515. }
  4516. set {
  4517. this._товарыTableAdapter = value;
  4518. }
  4519. }
  4520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4521. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4522. public bool BackupDataSetBeforeUpdate {
  4523. get {
  4524. return this._backupDataSetBeforeUpdate;
  4525. }
  4526. set {
  4527. this._backupDataSetBeforeUpdate = value;
  4528. }
  4529. }
  4530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4532. [global::System.ComponentModel.Browsable(false)]
  4533. public global::System.Data.IDbConnection Connection {
  4534. get {
  4535. if ((this._connection != null)) {
  4536. return this._connection;
  4537. }
  4538. if (((this._клиентTableAdapter != null)
  4539. && (this._клиентTableAdapter.Connection != null))) {
  4540. return this._клиентTableAdapter.Connection;
  4541. }
  4542. if (((this._клиент_СервисTableAdapter != null)
  4543. && (this._клиент_СервисTableAdapter.Connection != null))) {
  4544. return this._клиент_СервисTableAdapter.Connection;
  4545. }
  4546. if (((this._поставщикиTableAdapter != null)
  4547. && (this._поставщикиTableAdapter.Connection != null))) {
  4548. return this._поставщикиTableAdapter.Connection;
  4549. }
  4550. if (((this._сервисTableAdapter != null)
  4551. && (this._сервисTableAdapter.Connection != null))) {
  4552. return this._сервисTableAdapter.Connection;
  4553. }
  4554. if (((this._товарыTableAdapter != null)
  4555. && (this._товарыTableAdapter.Connection != null))) {
  4556. return this._товарыTableAdapter.Connection;
  4557. }
  4558. return null;
  4559. }
  4560. set {
  4561. this._connection = value;
  4562. }
  4563. }
  4564. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4565. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4566. [global::System.ComponentModel.Browsable(false)]
  4567. public int TableAdapterInstanceCount {
  4568. get {
  4569. int count = 0;
  4570. if ((this._клиентTableAdapter != null)) {
  4571. count = (count + 1);
  4572. }
  4573. if ((this._клиент_СервисTableAdapter != null)) {
  4574. count = (count + 1);
  4575. }
  4576. if ((this._поставщикиTableAdapter != null)) {
  4577. count = (count + 1);
  4578. }
  4579. if ((this._сервисTableAdapter != null)) {
  4580. count = (count + 1);
  4581. }
  4582. if ((this._товарыTableAdapter != null)) {
  4583. count = (count + 1);
  4584. }
  4585. return count;
  4586. }
  4587. }
  4588. /// <summary>
  4589. ///Update rows in top-down order.
  4590. ///</summary>
  4591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4592. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4593. private int UpdateUpdatedRows(DB_Turaev_V2DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  4594. int result = 0;
  4595. if ((this._клиентTableAdapter != null)) {
  4596. global::System.Data.DataRow[] updatedRows = dataSet.Клиент.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  4597. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  4598. if (((updatedRows != null)
  4599. && (0 < updatedRows.Length))) {
  4600. result = (result + this._клиентTableAdapter.Update(updatedRows));
  4601. allChangedRows.AddRange(updatedRows);
  4602. }
  4603. }
  4604. if ((this._клиент_СервисTableAdapter != null)) {
  4605. global::System.Data.DataRow[] updatedRows = dataSet.Клиент_Сервис.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  4606. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  4607. if (((updatedRows != null)
  4608. && (0 < updatedRows.Length))) {
  4609. result = (result + this._клиент_СервисTableAdapter.Update(updatedRows));
  4610. allChangedRows.AddRange(updatedRows);
  4611. }
  4612. }
  4613. if ((this._поставщикиTableAdapter != null)) {
  4614. global::System.Data.DataRow[] updatedRows = dataSet.Поставщики.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  4615. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  4616. if (((updatedRows != null)
  4617. && (0 < updatedRows.Length))) {
  4618. result = (result + this._поставщикиTableAdapter.Update(updatedRows));
  4619. allChangedRows.AddRange(updatedRows);
  4620. }
  4621. }
  4622. if ((this._сервисTableAdapter != null)) {
  4623. global::System.Data.DataRow[] updatedRows = dataSet.Сервис.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  4624. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  4625. if (((updatedRows != null)
  4626. && (0 < updatedRows.Length))) {
  4627. result = (result + this._сервисTableAdapter.Update(updatedRows));
  4628. allChangedRows.AddRange(updatedRows);
  4629. }
  4630. }
  4631. if ((this._товарыTableAdapter != null)) {
  4632. global::System.Data.DataRow[] updatedRows = dataSet.Товары.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  4633. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  4634. if (((updatedRows != null)
  4635. && (0 < updatedRows.Length))) {
  4636. result = (result + this._товарыTableAdapter.Update(updatedRows));
  4637. allChangedRows.AddRange(updatedRows);
  4638. }
  4639. }
  4640. return result;
  4641. }
  4642. /// <summary>
  4643. ///Insert rows in top-down order.
  4644. ///</summary>
  4645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4646. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4647. private int UpdateInsertedRows(DB_Turaev_V2DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  4648. int result = 0;
  4649. if ((this._клиентTableAdapter != null)) {
  4650. global::System.Data.DataRow[] addedRows = dataSet.Клиент.Select(null, null, global::System.Data.DataViewRowState.Added);
  4651. if (((addedRows != null)
  4652. && (0 < addedRows.Length))) {
  4653. result = (result + this._клиентTableAdapter.Update(addedRows));
  4654. allAddedRows.AddRange(addedRows);
  4655. }
  4656. }
  4657. if ((this._клиент_СервисTableAdapter != null)) {
  4658. global::System.Data.DataRow[] addedRows = dataSet.Клиент_Сервис.Select(null, null, global::System.Data.DataViewRowState.Added);
  4659. if (((addedRows != null)
  4660. && (0 < addedRows.Length))) {
  4661. result = (result + this._клиент_СервисTableAdapter.Update(addedRows));
  4662. allAddedRows.AddRange(addedRows);
  4663. }
  4664. }
  4665. if ((this._поставщикиTableAdapter != null)) {
  4666. global::System.Data.DataRow[] addedRows = dataSet.Поставщики.Select(null, null, global::System.Data.DataViewRowState.Added);
  4667. if (((addedRows != null)
  4668. && (0 < addedRows.Length))) {
  4669. result = (result + this._поставщикиTableAdapter.Update(addedRows));
  4670. allAddedRows.AddRange(addedRows);
  4671. }
  4672. }
  4673. if ((this._сервисTableAdapter != null)) {
  4674. global::System.Data.DataRow[] addedRows = dataSet.Сервис.Select(null, null, global::System.Data.DataViewRowState.Added);
  4675. if (((addedRows != null)
  4676. && (0 < addedRows.Length))) {
  4677. result = (result + this._сервисTableAdapter.Update(addedRows));
  4678. allAddedRows.AddRange(addedRows);
  4679. }
  4680. }
  4681. if ((this._товарыTableAdapter != null)) {
  4682. global::System.Data.DataRow[] addedRows = dataSet.Товары.Select(null, null, global::System.Data.DataViewRowState.Added);
  4683. if (((addedRows != null)
  4684. && (0 < addedRows.Length))) {
  4685. result = (result + this._товарыTableAdapter.Update(addedRows));
  4686. allAddedRows.AddRange(addedRows);
  4687. }
  4688. }
  4689. return result;
  4690. }
  4691. /// <summary>
  4692. ///Delete rows in bottom-up order.
  4693. ///</summary>
  4694. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4695. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4696. private int UpdateDeletedRows(DB_Turaev_V2DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  4697. int result = 0;
  4698. if ((this._товарыTableAdapter != null)) {
  4699. global::System.Data.DataRow[] deletedRows = dataSet.Товары.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  4700. if (((deletedRows != null)
  4701. && (0 < deletedRows.Length))) {
  4702. result = (result + this._товарыTableAdapter.Update(deletedRows));
  4703. allChangedRows.AddRange(deletedRows);
  4704. }
  4705. }
  4706. if ((this._сервисTableAdapter != null)) {
  4707. global::System.Data.DataRow[] deletedRows = dataSet.Сервис.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  4708. if (((deletedRows != null)
  4709. && (0 < deletedRows.Length))) {
  4710. result = (result + this._сервисTableAdapter.Update(deletedRows));
  4711. allChangedRows.AddRange(deletedRows);
  4712. }
  4713. }
  4714. if ((this._поставщикиTableAdapter != null)) {
  4715. global::System.Data.DataRow[] deletedRows = dataSet.Поставщики.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  4716. if (((deletedRows != null)
  4717. && (0 < deletedRows.Length))) {
  4718. result = (result + this._поставщикиTableAdapter.Update(deletedRows));
  4719. allChangedRows.AddRange(deletedRows);
  4720. }
  4721. }
  4722. if ((this._клиент_СервисTableAdapter != null)) {
  4723. global::System.Data.DataRow[] deletedRows = dataSet.Клиент_Сервис.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  4724. if (((deletedRows != null)
  4725. && (0 < deletedRows.Length))) {
  4726. result = (result + this._клиент_СервисTableAdapter.Update(deletedRows));
  4727. allChangedRows.AddRange(deletedRows);
  4728. }
  4729. }
  4730. if ((this._клиентTableAdapter != null)) {
  4731. global::System.Data.DataRow[] deletedRows = dataSet.Клиент.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  4732. if (((deletedRows != null)
  4733. && (0 < deletedRows.Length))) {
  4734. result = (result + this._клиентTableAdapter.Update(deletedRows));
  4735. allChangedRows.AddRange(deletedRows);
  4736. }
  4737. }
  4738. return result;
  4739. }
  4740. /// <summary>
  4741. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  4742. ///</summary>
  4743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4745. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  4746. if (((updatedRows == null)
  4747. || (updatedRows.Length < 1))) {
  4748. return updatedRows;
  4749. }
  4750. if (((allAddedRows == null)
  4751. || (allAddedRows.Count < 1))) {
  4752. return updatedRows;
  4753. }
  4754. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  4755. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  4756. global::System.Data.DataRow row = updatedRows[i];
  4757. if ((allAddedRows.Contains(row) == false)) {
  4758. realUpdatedRows.Add(row);
  4759. }
  4760. }
  4761. return realUpdatedRows.ToArray();
  4762. }
  4763. /// <summary>
  4764. ///Update all changes to the dataset.
  4765. ///</summary>
  4766. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4767. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4768. public virtual int UpdateAll(DB_Turaev_V2DataSet dataSet) {
  4769. if ((dataSet == null)) {
  4770. throw new global::System.ArgumentNullException("dataSet");
  4771. }
  4772. if ((dataSet.HasChanges() == false)) {
  4773. return 0;
  4774. }
  4775. if (((this._клиентTableAdapter != null)
  4776. && (this.MatchTableAdapterConnection(this._клиентTableAdapter.Connection) == false))) {
  4777. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  4778. "r, должны использовать одинаковую строку подключения.");
  4779. }
  4780. if (((this._клиент_СервисTableAdapter != null)
  4781. && (this.MatchTableAdapterConnection(this._клиент_СервисTableAdapter.Connection) == false))) {
  4782. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  4783. "r, должны использовать одинаковую строку подключения.");
  4784. }
  4785. if (((this._поставщикиTableAdapter != null)
  4786. && (this.MatchTableAdapterConnection(this._поставщикиTableAdapter.Connection) == false))) {
  4787. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  4788. "r, должны использовать одинаковую строку подключения.");
  4789. }
  4790. if (((this._сервисTableAdapter != null)
  4791. && (this.MatchTableAdapterConnection(this._сервисTableAdapter.Connection) == false))) {
  4792. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  4793. "r, должны использовать одинаковую строку подключения.");
  4794. }
  4795. if (((this._товарыTableAdapter != null)
  4796. && (this.MatchTableAdapterConnection(this._товарыTableAdapter.Connection) == false))) {
  4797. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  4798. "r, должны использовать одинаковую строку подключения.");
  4799. }
  4800. global::System.Data.IDbConnection workConnection = this.Connection;
  4801. if ((workConnection == null)) {
  4802. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  4803. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  4804. }
  4805. bool workConnOpened = false;
  4806. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  4807. == global::System.Data.ConnectionState.Broken)) {
  4808. workConnection.Close();
  4809. }
  4810. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  4811. workConnection.Open();
  4812. workConnOpened = true;
  4813. }
  4814. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  4815. if ((workTransaction == null)) {
  4816. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  4817. "и или текущее состояние не позволяет начать транзакцию.");
  4818. }
  4819. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  4820. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  4821. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  4822. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  4823. int result = 0;
  4824. global::System.Data.DataSet backupDataSet = null;
  4825. if (this.BackupDataSetBeforeUpdate) {
  4826. backupDataSet = new global::System.Data.DataSet();
  4827. backupDataSet.Merge(dataSet);
  4828. }
  4829. try {
  4830. // ---- Prepare for update -----------
  4831. //
  4832. if ((this._клиентTableAdapter != null)) {
  4833. revertConnections.Add(this._клиентTableAdapter, this._клиентTableAdapter.Connection);
  4834. this._клиентTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  4835. this._клиентTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  4836. if (this._клиентTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  4837. this._клиентTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  4838. adaptersWithAcceptChangesDuringUpdate.Add(this._клиентTableAdapter.Adapter);
  4839. }
  4840. }
  4841. if ((this._клиент_СервисTableAdapter != null)) {
  4842. revertConnections.Add(this._клиент_СервисTableAdapter, this._клиент_СервисTableAdapter.Connection);
  4843. this._клиент_СервисTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  4844. this._клиент_СервисTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  4845. if (this._клиент_СервисTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  4846. this._клиент_СервисTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  4847. adaptersWithAcceptChangesDuringUpdate.Add(this._клиент_СервисTableAdapter.Adapter);
  4848. }
  4849. }
  4850. if ((this._поставщикиTableAdapter != null)) {
  4851. revertConnections.Add(this._поставщикиTableAdapter, this._поставщикиTableAdapter.Connection);
  4852. this._поставщикиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  4853. this._поставщикиTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  4854. if (this._поставщикиTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  4855. this._поставщикиTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  4856. adaptersWithAcceptChangesDuringUpdate.Add(this._поставщикиTableAdapter.Adapter);
  4857. }
  4858. }
  4859. if ((this._сервисTableAdapter != null)) {
  4860. revertConnections.Add(this._сервисTableAdapter, this._сервисTableAdapter.Connection);
  4861. this._сервисTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  4862. this._сервисTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  4863. if (this._сервисTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  4864. this._сервисTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  4865. adaptersWithAcceptChangesDuringUpdate.Add(this._сервисTableAdapter.Adapter);
  4866. }
  4867. }
  4868. if ((this._товарыTableAdapter != null)) {
  4869. revertConnections.Add(this._товарыTableAdapter, this._товарыTableAdapter.Connection);
  4870. this._товарыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  4871. this._товарыTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  4872. if (this._товарыTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  4873. this._товарыTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  4874. adaptersWithAcceptChangesDuringUpdate.Add(this._товарыTableAdapter.Adapter);
  4875. }
  4876. }
  4877. //
  4878. //---- Perform updates -----------
  4879. //
  4880. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  4881. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  4882. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  4883. }
  4884. else {
  4885. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  4886. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  4887. }
  4888. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  4889. //
  4890. //---- Commit updates -----------
  4891. //
  4892. workTransaction.Commit();
  4893. if ((0 < allAddedRows.Count)) {
  4894. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  4895. allAddedRows.CopyTo(rows);
  4896. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  4897. global::System.Data.DataRow row = rows[i];
  4898. row.AcceptChanges();
  4899. }
  4900. }
  4901. if ((0 < allChangedRows.Count)) {
  4902. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  4903. allChangedRows.CopyTo(rows);
  4904. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  4905. global::System.Data.DataRow row = rows[i];
  4906. row.AcceptChanges();
  4907. }
  4908. }
  4909. }
  4910. catch (global::System.Exception ex) {
  4911. workTransaction.Rollback();
  4912. // ---- Restore the dataset -----------
  4913. if (this.BackupDataSetBeforeUpdate) {
  4914. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  4915. dataSet.Clear();
  4916. dataSet.Merge(backupDataSet);
  4917. }
  4918. else {
  4919. if ((0 < allAddedRows.Count)) {
  4920. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  4921. allAddedRows.CopyTo(rows);
  4922. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  4923. global::System.Data.DataRow row = rows[i];
  4924. row.AcceptChanges();
  4925. row.SetAdded();
  4926. }
  4927. }
  4928. }
  4929. throw ex;
  4930. }
  4931. finally {
  4932. if (workConnOpened) {
  4933. workConnection.Close();
  4934. }
  4935. if ((this._клиентTableAdapter != null)) {
  4936. this._клиентTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._клиентTableAdapter]));
  4937. this._клиентTableAdapter.Transaction = null;
  4938. }
  4939. if ((this._клиент_СервисTableAdapter != null)) {
  4940. this._клиент_СервисTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._клиент_СервисTableAdapter]));
  4941. this._клиент_СервисTableAdapter.Transaction = null;
  4942. }
  4943. if ((this._поставщикиTableAdapter != null)) {
  4944. this._поставщикиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._поставщикиTableAdapter]));
  4945. this._поставщикиTableAdapter.Transaction = null;
  4946. }
  4947. if ((this._сервисTableAdapter != null)) {
  4948. this._сервисTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._сервисTableAdapter]));
  4949. this._сервисTableAdapter.Transaction = null;
  4950. }
  4951. if ((this._товарыTableAdapter != null)) {
  4952. this._товарыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._товарыTableAdapter]));
  4953. this._товарыTableAdapter.Transaction = null;
  4954. }
  4955. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  4956. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  4957. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  4958. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  4959. global::System.Data.Common.DataAdapter adapter = adapters[i];
  4960. adapter.AcceptChangesDuringUpdate = true;
  4961. }
  4962. }
  4963. }
  4964. return result;
  4965. }
  4966. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4967. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4968. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  4969. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  4970. }
  4971. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4972. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4973. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  4974. if ((this._connection != null)) {
  4975. return true;
  4976. }
  4977. if (((this.Connection == null)
  4978. || (inputConnection == null))) {
  4979. return true;
  4980. }
  4981. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  4982. return true;
  4983. }
  4984. return false;
  4985. }
  4986. /// <summary>
  4987. ///Update Order Option
  4988. ///</summary>
  4989. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4990. public enum UpdateOrderOption {
  4991. InsertUpdateDelete = 0,
  4992. UpdateInsertDelete = 1,
  4993. }
  4994. /// <summary>
  4995. ///Used to sort self-referenced table's rows
  4996. ///</summary>
  4997. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4998. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  4999. private global::System.Data.DataRelation _relation;
  5000. private int _childFirst;
  5001. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5002. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5003. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  5004. this._relation = relation;
  5005. if (childFirst) {
  5006. this._childFirst = -1;
  5007. }
  5008. else {
  5009. this._childFirst = 1;
  5010. }
  5011. }
  5012. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5013. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5014. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  5015. global::System.Diagnostics.Debug.Assert((row != null));
  5016. global::System.Data.DataRow root = row;
  5017. distance = 0;
  5018. 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>();
  5019. traversedRows[row] = row;
  5020. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  5021. for (
  5022. ; ((parent != null)
  5023. && (traversedRows.ContainsKey(parent) == false));
  5024. ) {
  5025. distance = (distance + 1);
  5026. root = parent;
  5027. traversedRows[parent] = parent;
  5028. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  5029. }
  5030. if ((distance == 0)) {
  5031. traversedRows.Clear();
  5032. traversedRows[row] = row;
  5033. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  5034. for (
  5035. ; ((parent != null)
  5036. && (traversedRows.ContainsKey(parent) == false));
  5037. ) {
  5038. distance = (distance + 1);
  5039. root = parent;
  5040. traversedRows[parent] = parent;
  5041. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  5042. }
  5043. }
  5044. return root;
  5045. }
  5046. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5047. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5048. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  5049. if (object.ReferenceEquals(row1, row2)) {
  5050. return 0;
  5051. }
  5052. if ((row1 == null)) {
  5053. return -1;
  5054. }
  5055. if ((row2 == null)) {
  5056. return 1;
  5057. }
  5058. int distance1 = 0;
  5059. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  5060. int distance2 = 0;
  5061. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  5062. if (object.ReferenceEquals(root1, root2)) {
  5063. return (this._childFirst * distance1.CompareTo(distance2));
  5064. }
  5065. else {
  5066. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  5067. && (root2.Table != null)));
  5068. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  5069. return -1;
  5070. }
  5071. else {
  5072. return 1;
  5073. }
  5074. }
  5075. }
  5076. }
  5077. }
  5078. }
  5079. #pragma warning restore 1591