ШампороваЯИ3DataSet.Designer.cs 369 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. using System;
  12. namespace ШампороваЯИ3 {
  13. /// <summary>
  14. ///Represents a strongly typed in-memory cache of data.
  15. ///</summary>
  16. [global::System.Serializable()]
  17. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  18. [global::System.ComponentModel.ToolboxItem(true)]
  19. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")]
  20. [global::System.Xml.Serialization.XmlRootAttribute("ШампороваЯИ3DataSet")]
  21. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  22. public partial class ШампороваЯИ3DataSet : global::System.Data.DataSet {
  23. private АудиторияDataTable tableАудитория;
  24. private ГруппаDataTable tableГруппа;
  25. private ЗанятиеDataTable tableЗанятие;
  26. private ПреподавателиDataTable tableПреподаватели;
  27. private РасписаниеDataTable tableРасписание;
  28. private global::System.Data.DataRelation relationFK_Аудитория_Расписание;
  29. private global::System.Data.DataRelation relationFK_Группа_Расписание;
  30. private global::System.Data.DataRelation relationFK_Занятие_Расписание;
  31. private global::System.Data.DataRelation relationFK_Преподаватели_Расписание;
  32. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  33. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  34. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  35. public ШампороваЯИ3DataSet() {
  36. this.BeginInit();
  37. this.InitClass();
  38. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  39. base.Tables.CollectionChanged += schemaChangedHandler;
  40. base.Relations.CollectionChanged += schemaChangedHandler;
  41. this.EndInit();
  42. }
  43. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  44. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  45. protected ШампороваЯИ3DataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  46. base(info, context, false) {
  47. if ((this.IsBinarySerialized(info, context) == true)) {
  48. this.InitVars(false);
  49. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  50. this.Tables.CollectionChanged += schemaChangedHandler1;
  51. this.Relations.CollectionChanged += schemaChangedHandler1;
  52. return;
  53. }
  54. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  55. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  56. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  57. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  58. if ((ds.Tables["Аудитория"] != null)) {
  59. base.Tables.Add(new АудиторияDataTable(ds.Tables["Аудитория"]));
  60. }
  61. if ((ds.Tables["Группа"] != null)) {
  62. base.Tables.Add(new ГруппаDataTable(ds.Tables["Группа"]));
  63. }
  64. if ((ds.Tables["Занятие"] != null)) {
  65. base.Tables.Add(new ЗанятиеDataTable(ds.Tables["Занятие"]));
  66. }
  67. if ((ds.Tables["Преподаватели"] != null)) {
  68. base.Tables.Add(new ПреподавателиDataTable(ds.Tables["Преподаватели"]));
  69. }
  70. if ((ds.Tables["Расписание"] != null)) {
  71. base.Tables.Add(new РасписаниеDataTable(ds.Tables["Расписание"]));
  72. }
  73. this.DataSetName = ds.DataSetName;
  74. this.Prefix = ds.Prefix;
  75. this.Namespace = ds.Namespace;
  76. this.Locale = ds.Locale;
  77. this.CaseSensitive = ds.CaseSensitive;
  78. this.EnforceConstraints = ds.EnforceConstraints;
  79. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  80. this.InitVars();
  81. }
  82. else {
  83. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  84. }
  85. this.GetSerializationData(info, context);
  86. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  87. base.Tables.CollectionChanged += schemaChangedHandler;
  88. this.Relations.CollectionChanged += schemaChangedHandler;
  89. }
  90. internal static object GetContext()
  91. {
  92. throw new NotImplementedException();
  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.Browsable(false)]
  133. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  134. public РасписаниеDataTable Расписание {
  135. get {
  136. return this.tableРасписание;
  137. }
  138. }
  139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  141. [global::System.ComponentModel.BrowsableAttribute(true)]
  142. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  143. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  144. get {
  145. return this._schemaSerializationMode;
  146. }
  147. set {
  148. this._schemaSerializationMode = value;
  149. }
  150. }
  151. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  152. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  153. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  154. public new global::System.Data.DataTableCollection Tables {
  155. get {
  156. return base.Tables;
  157. }
  158. }
  159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  160. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  161. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  162. public new global::System.Data.DataRelationCollection Relations {
  163. get {
  164. return base.Relations;
  165. }
  166. }
  167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  169. protected override void InitializeDerivedDataSet() {
  170. this.BeginInit();
  171. this.InitClass();
  172. this.EndInit();
  173. }
  174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  175. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  176. public override global::System.Data.DataSet Clone() {
  177. ШампороваЯИ3DataSet cln = ((ШампороваЯИ3DataSet)(base.Clone()));
  178. cln.InitVars();
  179. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  180. return cln;
  181. }
  182. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  183. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  184. protected override bool ShouldSerializeTables() {
  185. return false;
  186. }
  187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  188. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  189. protected override bool ShouldSerializeRelations() {
  190. return false;
  191. }
  192. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  193. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  194. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  195. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  196. this.Reset();
  197. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  198. ds.ReadXml(reader);
  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. if ((ds.Tables["Занятие"] != null)) {
  206. base.Tables.Add(new ЗанятиеDataTable(ds.Tables["Занятие"]));
  207. }
  208. if ((ds.Tables["Преподаватели"] != null)) {
  209. base.Tables.Add(new ПреподавателиDataTable(ds.Tables["Преподаватели"]));
  210. }
  211. if ((ds.Tables["Расписание"] != null)) {
  212. base.Tables.Add(new РасписаниеDataTable(ds.Tables["Расписание"]));
  213. }
  214. this.DataSetName = ds.DataSetName;
  215. this.Prefix = ds.Prefix;
  216. this.Namespace = ds.Namespace;
  217. this.Locale = ds.Locale;
  218. this.CaseSensitive = ds.CaseSensitive;
  219. this.EnforceConstraints = ds.EnforceConstraints;
  220. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  221. this.InitVars();
  222. }
  223. else {
  224. this.ReadXml(reader);
  225. this.InitVars();
  226. }
  227. }
  228. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  229. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  230. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  231. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  232. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  233. stream.Position = 0;
  234. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  235. }
  236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  237. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  238. internal void InitVars() {
  239. this.InitVars(true);
  240. }
  241. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  242. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  243. internal void InitVars(bool initTable) {
  244. this.tableАудитория = ((АудиторияDataTable)(base.Tables["Аудитория"]));
  245. if ((initTable == true)) {
  246. if ((this.tableАудитория != null)) {
  247. this.tableАудитория.InitVars();
  248. }
  249. }
  250. this.tableГруппа = ((ГруппаDataTable)(base.Tables["Группа"]));
  251. if ((initTable == true)) {
  252. if ((this.tableГруппа != null)) {
  253. this.tableГруппа.InitVars();
  254. }
  255. }
  256. this.tableЗанятие = ((ЗанятиеDataTable)(base.Tables["Занятие"]));
  257. if ((initTable == true)) {
  258. if ((this.tableЗанятие != null)) {
  259. this.tableЗанятие.InitVars();
  260. }
  261. }
  262. this.tableПреподаватели = ((ПреподавателиDataTable)(base.Tables["Преподаватели"]));
  263. if ((initTable == true)) {
  264. if ((this.tableПреподаватели != null)) {
  265. this.tableПреподаватели.InitVars();
  266. }
  267. }
  268. this.tableРасписание = ((РасписаниеDataTable)(base.Tables["Расписание"]));
  269. if ((initTable == true)) {
  270. if ((this.tableРасписание != null)) {
  271. this.tableРасписание.InitVars();
  272. }
  273. }
  274. this.relationFK_Аудитория_Расписание = this.Relations["FK_Аудитория_Расписание"];
  275. this.relationFK_Группа_Расписание = this.Relations["FK_Группа_Расписание"];
  276. this.relationFK_Занятие_Расписание = this.Relations["FK_Занятие_Расписание"];
  277. this.relationFK_Преподаватели_Расписание = this.Relations["FK_Преподаватели_Расписание"];
  278. }
  279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  280. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  281. private void InitClass() {
  282. this.DataSetName = "ШампороваЯИ3DataSet";
  283. this.Prefix = "";
  284. this.Namespace = "http://tempuri.org/ШампороваЯИ3DataSet.xsd";
  285. this.EnforceConstraints = true;
  286. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  287. this.tableАудитория = new АудиторияDataTable();
  288. base.Tables.Add(this.tableАудитория);
  289. this.tableГруппа = new ГруппаDataTable();
  290. base.Tables.Add(this.tableГруппа);
  291. this.tableЗанятие = new ЗанятиеDataTable();
  292. base.Tables.Add(this.tableЗанятие);
  293. this.tableПреподаватели = new ПреподавателиDataTable();
  294. base.Tables.Add(this.tableПреподаватели);
  295. this.tableРасписание = new РасписаниеDataTable();
  296. base.Tables.Add(this.tableРасписание);
  297. this.relationFK_Аудитория_Расписание = new global::System.Data.DataRelation("FK_Аудитория_Расписание", new global::System.Data.DataColumn[] {
  298. this.tableРасписание.Номер_записиColumn}, new global::System.Data.DataColumn[] {
  299. this.tableАудитория.Номер_записиColumn}, false);
  300. this.Relations.Add(this.relationFK_Аудитория_Расписание);
  301. this.relationFK_Группа_Расписание = new global::System.Data.DataRelation("FK_Группа_Расписание", new global::System.Data.DataColumn[] {
  302. this.tableРасписание.Номер_записиColumn}, new global::System.Data.DataColumn[] {
  303. this.tableГруппа.Номер_записиColumn}, false);
  304. this.Relations.Add(this.relationFK_Группа_Расписание);
  305. this.relationFK_Занятие_Расписание = new global::System.Data.DataRelation("FK_Занятие_Расписание", new global::System.Data.DataColumn[] {
  306. this.tableРасписание.Номер_записиColumn}, new global::System.Data.DataColumn[] {
  307. this.tableЗанятие.Номер_записиColumn}, false);
  308. this.Relations.Add(this.relationFK_Занятие_Расписание);
  309. this.relationFK_Преподаватели_Расписание = new global::System.Data.DataRelation("FK_Преподаватели_Расписание", new global::System.Data.DataColumn[] {
  310. this.tableРасписание.Номер_записиColumn}, new global::System.Data.DataColumn[] {
  311. this.tableПреподаватели.Номер_записиColumn}, false);
  312. this.Relations.Add(this.relationFK_Преподаватели_Расписание);
  313. }
  314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  315. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  316. private bool ShouldSerializeАудитория() {
  317. return false;
  318. }
  319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  320. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  321. private bool ShouldSerializeГруппа() {
  322. return false;
  323. }
  324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  326. private bool ShouldSerializeЗанятие() {
  327. return false;
  328. }
  329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  331. private bool ShouldSerializeПреподаватели() {
  332. return false;
  333. }
  334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  336. private bool ShouldSerializeРасписание() {
  337. return false;
  338. }
  339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  341. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  342. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  343. this.InitVars();
  344. }
  345. }
  346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  347. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  348. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  349. ШампороваЯИ3DataSet ds = new ШампороваЯИ3DataSet();
  350. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  351. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  352. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  353. any.Namespace = ds.Namespace;
  354. sequence.Items.Add(any);
  355. type.Particle = sequence;
  356. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  357. if (xs.Contains(dsSchema.TargetNamespace)) {
  358. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  359. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  360. try {
  361. global::System.Xml.Schema.XmlSchema schema = null;
  362. dsSchema.Write(s1);
  363. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  364. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  365. s2.SetLength(0);
  366. schema.Write(s2);
  367. if ((s1.Length == s2.Length)) {
  368. s1.Position = 0;
  369. s2.Position = 0;
  370. for (; ((s1.Position != s1.Length)
  371. && (s1.ReadByte() == s2.ReadByte())); ) {
  372. ;
  373. }
  374. if ((s1.Position == s1.Length)) {
  375. return type;
  376. }
  377. }
  378. }
  379. }
  380. finally {
  381. if ((s1 != null)) {
  382. s1.Close();
  383. }
  384. if ((s2 != null)) {
  385. s2.Close();
  386. }
  387. }
  388. }
  389. xs.Add(dsSchema);
  390. return type;
  391. }
  392. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  393. public delegate void АудиторияRowChangeEventHandler(object sender, АудиторияRowChangeEvent e);
  394. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  395. public delegate void ГруппаRowChangeEventHandler(object sender, ГруппаRowChangeEvent e);
  396. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  397. public delegate void ЗанятиеRowChangeEventHandler(object sender, ЗанятиеRowChangeEvent e);
  398. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  399. public delegate void ПреподавателиRowChangeEventHandler(object sender, ПреподавателиRowChangeEvent e);
  400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  401. public delegate void РасписаниеRowChangeEventHandler(object sender, РасписаниеRowChangeEvent e);
  402. /// <summary>
  403. ///Represents the strongly named DataTable class.
  404. ///</summary>
  405. [global::System.Serializable()]
  406. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  407. public partial class АудиторияDataTable : global::System.Data.TypedTableBase<АудиторияRow> {
  408. private global::System.Data.DataColumn columnКод_аудитории;
  409. private global::System.Data.DataColumn columnЗдание;
  410. private global::System.Data.DataColumn columnЭтаж;
  411. private global::System.Data.DataColumn columnНомер;
  412. private global::System.Data.DataColumn columnНомер_записи;
  413. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  414. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  415. public АудиторияDataTable() {
  416. this.TableName = "Аудитория";
  417. this.BeginInit();
  418. this.InitClass();
  419. this.EndInit();
  420. }
  421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  422. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  423. internal АудиторияDataTable(global::System.Data.DataTable table) {
  424. this.TableName = table.TableName;
  425. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  426. this.CaseSensitive = table.CaseSensitive;
  427. }
  428. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  429. this.Locale = table.Locale;
  430. }
  431. if ((table.Namespace != table.DataSet.Namespace)) {
  432. this.Namespace = table.Namespace;
  433. }
  434. this.Prefix = table.Prefix;
  435. this.MinimumCapacity = table.MinimumCapacity;
  436. }
  437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  438. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  439. protected АудиторияDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  440. base(info, context) {
  441. this.InitVars();
  442. }
  443. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  444. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  445. public global::System.Data.DataColumn Код_аудиторииColumn {
  446. get {
  447. return this.columnКод_аудитории;
  448. }
  449. }
  450. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  451. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  452. public global::System.Data.DataColumn ЗданиеColumn {
  453. get {
  454. return this.columnЗдание;
  455. }
  456. }
  457. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  458. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  459. public global::System.Data.DataColumn ЭтажColumn {
  460. get {
  461. return this.columnЭтаж;
  462. }
  463. }
  464. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  465. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  466. public global::System.Data.DataColumn НомерColumn {
  467. get {
  468. return this.columnНомер;
  469. }
  470. }
  471. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  473. public global::System.Data.DataColumn Номер_записиColumn {
  474. get {
  475. return this.columnНомер_записи;
  476. }
  477. }
  478. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  479. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  480. [global::System.ComponentModel.Browsable(false)]
  481. public int Count {
  482. get {
  483. return this.Rows.Count;
  484. }
  485. }
  486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  488. public АудиторияRow this[int index] {
  489. get {
  490. return ((АудиторияRow)(this.Rows[index]));
  491. }
  492. }
  493. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  494. public event АудиторияRowChangeEventHandler АудиторияRowChanging;
  495. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  496. public event АудиторияRowChangeEventHandler АудиторияRowChanged;
  497. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  498. public event АудиторияRowChangeEventHandler АудиторияRowDeleting;
  499. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  500. public event АудиторияRowChangeEventHandler АудиторияRowDeleted;
  501. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  502. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  503. public void AddАудиторияRow(АудиторияRow row) {
  504. this.Rows.Add(row);
  505. }
  506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  508. public АудиторияRow AddАудиторияRow(int Код_аудитории, string Здание, int Этаж, string Номер, РасписаниеRow parentРасписаниеRowByFK_Аудитория_Расписание) {
  509. АудиторияRow rowАудиторияRow = ((АудиторияRow)(this.NewRow()));
  510. object[] columnValuesArray = new object[] {
  511. Код_аудитории,
  512. Здание,
  513. Этаж,
  514. Номер,
  515. null};
  516. if ((parentРасписаниеRowByFK_Аудитория_Расписание != null)) {
  517. columnValuesArray[4] = parentРасписаниеRowByFK_Аудитория_Расписание[0];
  518. }
  519. rowАудиторияRow.ItemArray = columnValuesArray;
  520. this.Rows.Add(rowАудиторияRow);
  521. return rowАудиторияRow;
  522. }
  523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  524. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  525. public АудиторияRow FindByКод_аудитории(int Код_аудитории) {
  526. return ((АудиторияRow)(this.Rows.Find(new object[] {
  527. Код_аудитории})));
  528. }
  529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  530. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  531. public override global::System.Data.DataTable Clone() {
  532. АудиторияDataTable cln = ((АудиторияDataTable)(base.Clone()));
  533. cln.InitVars();
  534. return cln;
  535. }
  536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  537. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  538. protected override global::System.Data.DataTable CreateInstance() {
  539. return new АудиторияDataTable();
  540. }
  541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  543. internal void InitVars() {
  544. this.columnКод_аудитории = base.Columns["Код аудитории"];
  545. this.columnЗдание = base.Columns["Здание"];
  546. this.columnЭтаж = base.Columns["Этаж"];
  547. this.columnНомер = base.Columns["Номер"];
  548. this.columnНомер_записи = base.Columns["Номер записи"];
  549. }
  550. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  551. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  552. private void InitClass() {
  553. this.columnКод_аудитории = new global::System.Data.DataColumn("Код аудитории", typeof(int), null, global::System.Data.MappingType.Element);
  554. base.Columns.Add(this.columnКод_аудитории);
  555. this.columnЗдание = new global::System.Data.DataColumn("Здание", typeof(string), null, global::System.Data.MappingType.Element);
  556. base.Columns.Add(this.columnЗдание);
  557. this.columnЭтаж = new global::System.Data.DataColumn("Этаж", typeof(int), null, global::System.Data.MappingType.Element);
  558. base.Columns.Add(this.columnЭтаж);
  559. this.columnНомер = new global::System.Data.DataColumn("Номер", typeof(string), null, global::System.Data.MappingType.Element);
  560. base.Columns.Add(this.columnНомер);
  561. this.columnНомер_записи = new global::System.Data.DataColumn("Номер записи", typeof(int), null, global::System.Data.MappingType.Element);
  562. base.Columns.Add(this.columnНомер_записи);
  563. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  564. this.columnКод_аудитории}, true));
  565. this.columnКод_аудитории.AllowDBNull = false;
  566. this.columnКод_аудитории.Unique = true;
  567. this.columnЗдание.MaxLength = 50;
  568. this.columnНомер.MaxLength = 50;
  569. this.columnНомер_записи.AllowDBNull = false;
  570. }
  571. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  572. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  573. public АудиторияRow NewАудиторияRow() {
  574. return ((АудиторияRow)(this.NewRow()));
  575. }
  576. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  577. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  578. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  579. return new АудиторияRow(builder);
  580. }
  581. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  582. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  583. protected override global::System.Type GetRowType() {
  584. return typeof(АудиторияRow);
  585. }
  586. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  587. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  588. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  589. base.OnRowChanged(e);
  590. if ((this.АудиторияRowChanged != null)) {
  591. this.АудиторияRowChanged(this, new АудиторияRowChangeEvent(((АудиторияRow)(e.Row)), e.Action));
  592. }
  593. }
  594. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  595. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  596. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  597. base.OnRowChanging(e);
  598. if ((this.АудиторияRowChanging != null)) {
  599. this.АудиторияRowChanging(this, new АудиторияRowChangeEvent(((АудиторияRow)(e.Row)), e.Action));
  600. }
  601. }
  602. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  603. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  604. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  605. base.OnRowDeleted(e);
  606. if ((this.АудиторияRowDeleted != null)) {
  607. this.АудиторияRowDeleted(this, new АудиторияRowChangeEvent(((АудиторияRow)(e.Row)), e.Action));
  608. }
  609. }
  610. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  611. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  612. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  613. base.OnRowDeleting(e);
  614. if ((this.АудиторияRowDeleting != null)) {
  615. this.АудиторияRowDeleting(this, new АудиторияRowChangeEvent(((АудиторияRow)(e.Row)), e.Action));
  616. }
  617. }
  618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  619. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  620. public void RemoveАудиторияRow(АудиторияRow row) {
  621. this.Rows.Remove(row);
  622. }
  623. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  625. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  626. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  627. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  628. ШампороваЯИ3DataSet ds = new ШампороваЯИ3DataSet();
  629. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  630. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  631. any1.MinOccurs = new decimal(0);
  632. any1.MaxOccurs = decimal.MaxValue;
  633. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  634. sequence.Items.Add(any1);
  635. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  636. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  637. any2.MinOccurs = new decimal(1);
  638. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  639. sequence.Items.Add(any2);
  640. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  641. attribute1.Name = "namespace";
  642. attribute1.FixedValue = ds.Namespace;
  643. type.Attributes.Add(attribute1);
  644. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  645. attribute2.Name = "tableTypeName";
  646. attribute2.FixedValue = "АудиторияDataTable";
  647. type.Attributes.Add(attribute2);
  648. type.Particle = sequence;
  649. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  650. if (xs.Contains(dsSchema.TargetNamespace)) {
  651. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  652. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  653. try {
  654. global::System.Xml.Schema.XmlSchema schema = null;
  655. dsSchema.Write(s1);
  656. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  657. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  658. s2.SetLength(0);
  659. schema.Write(s2);
  660. if ((s1.Length == s2.Length)) {
  661. s1.Position = 0;
  662. s2.Position = 0;
  663. for (; ((s1.Position != s1.Length)
  664. && (s1.ReadByte() == s2.ReadByte())); ) {
  665. ;
  666. }
  667. if ((s1.Position == s1.Length)) {
  668. return type;
  669. }
  670. }
  671. }
  672. }
  673. finally {
  674. if ((s1 != null)) {
  675. s1.Close();
  676. }
  677. if ((s2 != null)) {
  678. s2.Close();
  679. }
  680. }
  681. }
  682. xs.Add(dsSchema);
  683. return type;
  684. }
  685. }
  686. /// <summary>
  687. ///Represents the strongly named DataTable class.
  688. ///</summary>
  689. [global::System.Serializable()]
  690. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  691. public partial class ГруппаDataTable : global::System.Data.TypedTableBase<ГруппаRow> {
  692. private global::System.Data.DataColumn columnКод_группы;
  693. private global::System.Data.DataColumn columnФакультет;
  694. private global::System.Data.DataColumn columnСпециальность;
  695. private global::System.Data.DataColumn columnКурс;
  696. private global::System.Data.DataColumn columnНомер;
  697. private global::System.Data.DataColumn columnНомер_записи;
  698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  699. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  700. public ГруппаDataTable() {
  701. this.TableName = "Группа";
  702. this.BeginInit();
  703. this.InitClass();
  704. this.EndInit();
  705. }
  706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  708. internal ГруппаDataTable(global::System.Data.DataTable table) {
  709. this.TableName = table.TableName;
  710. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  711. this.CaseSensitive = table.CaseSensitive;
  712. }
  713. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  714. this.Locale = table.Locale;
  715. }
  716. if ((table.Namespace != table.DataSet.Namespace)) {
  717. this.Namespace = table.Namespace;
  718. }
  719. this.Prefix = table.Prefix;
  720. this.MinimumCapacity = table.MinimumCapacity;
  721. }
  722. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  723. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  724. protected ГруппаDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  725. base(info, context) {
  726. this.InitVars();
  727. }
  728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  729. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  730. public global::System.Data.DataColumn Код_группыColumn {
  731. get {
  732. return this.columnКод_группы;
  733. }
  734. }
  735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  736. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  737. public global::System.Data.DataColumn ФакультетColumn {
  738. get {
  739. return this.columnФакультет;
  740. }
  741. }
  742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  743. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  744. public global::System.Data.DataColumn СпециальностьColumn {
  745. get {
  746. return this.columnСпециальность;
  747. }
  748. }
  749. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  750. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  751. public global::System.Data.DataColumn КурсColumn {
  752. get {
  753. return this.columnКурс;
  754. }
  755. }
  756. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  757. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  758. public global::System.Data.DataColumn НомерColumn {
  759. get {
  760. return this.columnНомер;
  761. }
  762. }
  763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  764. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  765. public global::System.Data.DataColumn Номер_записиColumn {
  766. get {
  767. return this.columnНомер_записи;
  768. }
  769. }
  770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  771. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  772. [global::System.ComponentModel.Browsable(false)]
  773. public int Count {
  774. get {
  775. return this.Rows.Count;
  776. }
  777. }
  778. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  779. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  780. public ГруппаRow this[int index] {
  781. get {
  782. return ((ГруппаRow)(this.Rows[index]));
  783. }
  784. }
  785. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  786. public event ГруппаRowChangeEventHandler ГруппаRowChanging;
  787. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  788. public event ГруппаRowChangeEventHandler ГруппаRowChanged;
  789. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  790. public event ГруппаRowChangeEventHandler ГруппаRowDeleting;
  791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  792. public event ГруппаRowChangeEventHandler ГруппаRowDeleted;
  793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  794. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  795. public void AddГруппаRow(ГруппаRow row) {
  796. this.Rows.Add(row);
  797. }
  798. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  799. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  800. public ГруппаRow AddГруппаRow(int Код_группы, string Факультет, string Специальность, string Курс, int Номер, РасписаниеRow parentРасписаниеRowByFK_Группа_Расписание) {
  801. ГруппаRow rowГруппаRow = ((ГруппаRow)(this.NewRow()));
  802. object[] columnValuesArray = new object[] {
  803. Код_группы,
  804. Факультет,
  805. Специальность,
  806. Курс,
  807. Номер,
  808. null};
  809. if ((parentРасписаниеRowByFK_Группа_Расписание != null)) {
  810. columnValuesArray[5] = parentРасписаниеRowByFK_Группа_Расписание[0];
  811. }
  812. rowГруппаRow.ItemArray = columnValuesArray;
  813. this.Rows.Add(rowГруппаRow);
  814. return rowГруппаRow;
  815. }
  816. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  817. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  818. public ГруппаRow FindByКод_группы(int Код_группы) {
  819. return ((ГруппаRow)(this.Rows.Find(new object[] {
  820. Код_группы})));
  821. }
  822. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  823. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  824. public override global::System.Data.DataTable Clone() {
  825. ГруппаDataTable cln = ((ГруппаDataTable)(base.Clone()));
  826. cln.InitVars();
  827. return cln;
  828. }
  829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  830. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  831. protected override global::System.Data.DataTable CreateInstance() {
  832. return new ГруппаDataTable();
  833. }
  834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  835. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  836. internal void InitVars() {
  837. this.columnКод_группы = base.Columns["Код группы"];
  838. this.columnФакультет = base.Columns["Факультет"];
  839. this.columnСпециальность = base.Columns["Специальность"];
  840. this.columnКурс = base.Columns["Курс"];
  841. this.columnНомер = base.Columns["Номер"];
  842. this.columnНомер_записи = base.Columns["Номер записи"];
  843. }
  844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  845. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  846. private void InitClass() {
  847. this.columnКод_группы = new global::System.Data.DataColumn("Код группы", typeof(int), null, global::System.Data.MappingType.Element);
  848. base.Columns.Add(this.columnКод_группы);
  849. this.columnФакультет = new global::System.Data.DataColumn("Факультет", typeof(string), null, global::System.Data.MappingType.Element);
  850. base.Columns.Add(this.columnФакультет);
  851. this.columnСпециальность = new global::System.Data.DataColumn("Специальность", typeof(string), null, global::System.Data.MappingType.Element);
  852. base.Columns.Add(this.columnСпециальность);
  853. this.columnКурс = new global::System.Data.DataColumn("Курс", typeof(string), null, global::System.Data.MappingType.Element);
  854. base.Columns.Add(this.columnКурс);
  855. this.columnНомер = new global::System.Data.DataColumn("Номер", typeof(int), null, global::System.Data.MappingType.Element);
  856. base.Columns.Add(this.columnНомер);
  857. this.columnНомер_записи = new global::System.Data.DataColumn("Номер записи", typeof(int), null, global::System.Data.MappingType.Element);
  858. base.Columns.Add(this.columnНомер_записи);
  859. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  860. this.columnКод_группы}, true));
  861. this.columnКод_группы.AllowDBNull = false;
  862. this.columnКод_группы.Unique = true;
  863. this.columnФакультет.MaxLength = 50;
  864. this.columnСпециальность.MaxLength = 50;
  865. this.columnКурс.MaxLength = 50;
  866. this.columnНомер_записи.AllowDBNull = false;
  867. }
  868. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  869. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  870. public ГруппаRow NewГруппаRow() {
  871. return ((ГруппаRow)(this.NewRow()));
  872. }
  873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  874. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  875. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  876. return new ГруппаRow(builder);
  877. }
  878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  879. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  880. protected override global::System.Type GetRowType() {
  881. return typeof(ГруппаRow);
  882. }
  883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  884. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  885. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  886. base.OnRowChanged(e);
  887. if ((this.ГруппаRowChanged != null)) {
  888. this.ГруппаRowChanged(this, new ГруппаRowChangeEvent(((ГруппаRow)(e.Row)), e.Action));
  889. }
  890. }
  891. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  892. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  893. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  894. base.OnRowChanging(e);
  895. if ((this.ГруппаRowChanging != null)) {
  896. this.ГруппаRowChanging(this, new ГруппаRowChangeEvent(((ГруппаRow)(e.Row)), e.Action));
  897. }
  898. }
  899. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  900. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  901. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  902. base.OnRowDeleted(e);
  903. if ((this.ГруппаRowDeleted != null)) {
  904. this.ГруппаRowDeleted(this, new ГруппаRowChangeEvent(((ГруппаRow)(e.Row)), e.Action));
  905. }
  906. }
  907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  909. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  910. base.OnRowDeleting(e);
  911. if ((this.ГруппаRowDeleting != null)) {
  912. this.ГруппаRowDeleting(this, new ГруппаRowChangeEvent(((ГруппаRow)(e.Row)), e.Action));
  913. }
  914. }
  915. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  916. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  917. public void RemoveГруппаRow(ГруппаRow row) {
  918. this.Rows.Remove(row);
  919. }
  920. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  921. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  922. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  923. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  924. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  925. ШампороваЯИ3DataSet ds = new ШампороваЯИ3DataSet();
  926. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  927. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  928. any1.MinOccurs = new decimal(0);
  929. any1.MaxOccurs = decimal.MaxValue;
  930. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  931. sequence.Items.Add(any1);
  932. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  933. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  934. any2.MinOccurs = new decimal(1);
  935. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  936. sequence.Items.Add(any2);
  937. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  938. attribute1.Name = "namespace";
  939. attribute1.FixedValue = ds.Namespace;
  940. type.Attributes.Add(attribute1);
  941. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  942. attribute2.Name = "tableTypeName";
  943. attribute2.FixedValue = "ГруппаDataTable";
  944. type.Attributes.Add(attribute2);
  945. type.Particle = sequence;
  946. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  947. if (xs.Contains(dsSchema.TargetNamespace)) {
  948. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  949. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  950. try {
  951. global::System.Xml.Schema.XmlSchema schema = null;
  952. dsSchema.Write(s1);
  953. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  954. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  955. s2.SetLength(0);
  956. schema.Write(s2);
  957. if ((s1.Length == s2.Length)) {
  958. s1.Position = 0;
  959. s2.Position = 0;
  960. for (; ((s1.Position != s1.Length)
  961. && (s1.ReadByte() == s2.ReadByte())); ) {
  962. ;
  963. }
  964. if ((s1.Position == s1.Length)) {
  965. return type;
  966. }
  967. }
  968. }
  969. }
  970. finally {
  971. if ((s1 != null)) {
  972. s1.Close();
  973. }
  974. if ((s2 != null)) {
  975. s2.Close();
  976. }
  977. }
  978. }
  979. xs.Add(dsSchema);
  980. return type;
  981. }
  982. }
  983. /// <summary>
  984. ///Represents the strongly named DataTable class.
  985. ///</summary>
  986. [global::System.Serializable()]
  987. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  988. public partial class ЗанятиеDataTable : global::System.Data.TypedTableBase<ЗанятиеRow> {
  989. private global::System.Data.DataColumn columnКод_занятия;
  990. private global::System.Data.DataColumn columnТип_занятия;
  991. private global::System.Data.DataColumn columnНомер_записи;
  992. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  993. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  994. public ЗанятиеDataTable() {
  995. this.TableName = "Занятие";
  996. this.BeginInit();
  997. this.InitClass();
  998. this.EndInit();
  999. }
  1000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1001. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1002. internal ЗанятиеDataTable(global::System.Data.DataTable table) {
  1003. this.TableName = table.TableName;
  1004. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1005. this.CaseSensitive = table.CaseSensitive;
  1006. }
  1007. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1008. this.Locale = table.Locale;
  1009. }
  1010. if ((table.Namespace != table.DataSet.Namespace)) {
  1011. this.Namespace = table.Namespace;
  1012. }
  1013. this.Prefix = table.Prefix;
  1014. this.MinimumCapacity = table.MinimumCapacity;
  1015. }
  1016. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1017. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1018. protected ЗанятиеDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1019. base(info, context) {
  1020. this.InitVars();
  1021. }
  1022. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1023. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1024. public global::System.Data.DataColumn Код_занятияColumn {
  1025. get {
  1026. return this.columnКод_занятия;
  1027. }
  1028. }
  1029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1031. public global::System.Data.DataColumn Тип_занятияColumn {
  1032. get {
  1033. return this.columnТип_занятия;
  1034. }
  1035. }
  1036. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1037. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1038. public global::System.Data.DataColumn Номер_записиColumn {
  1039. get {
  1040. return this.columnНомер_записи;
  1041. }
  1042. }
  1043. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1044. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1045. [global::System.ComponentModel.Browsable(false)]
  1046. public int Count {
  1047. get {
  1048. return this.Rows.Count;
  1049. }
  1050. }
  1051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1053. public ЗанятиеRow this[int index] {
  1054. get {
  1055. return ((ЗанятиеRow)(this.Rows[index]));
  1056. }
  1057. }
  1058. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1059. public event ЗанятиеRowChangeEventHandler ЗанятиеRowChanging;
  1060. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1061. public event ЗанятиеRowChangeEventHandler ЗанятиеRowChanged;
  1062. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1063. public event ЗанятиеRowChangeEventHandler ЗанятиеRowDeleting;
  1064. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1065. public event ЗанятиеRowChangeEventHandler ЗанятиеRowDeleted;
  1066. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1067. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1068. public void AddЗанятиеRow(ЗанятиеRow row) {
  1069. this.Rows.Add(row);
  1070. }
  1071. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1072. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1073. public ЗанятиеRow AddЗанятиеRow(int Код_занятия, string Тип_занятия, РасписаниеRow parentРасписаниеRowByFK_Занятие_Расписание) {
  1074. ЗанятиеRow rowЗанятиеRow = ((ЗанятиеRow)(this.NewRow()));
  1075. object[] columnValuesArray = new object[] {
  1076. Код_занятия,
  1077. Тип_занятия,
  1078. null};
  1079. if ((parentРасписаниеRowByFK_Занятие_Расписание != null)) {
  1080. columnValuesArray[2] = parentРасписаниеRowByFK_Занятие_Расписание[0];
  1081. }
  1082. rowЗанятиеRow.ItemArray = columnValuesArray;
  1083. this.Rows.Add(rowЗанятиеRow);
  1084. return rowЗанятиеRow;
  1085. }
  1086. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1087. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1088. public ЗанятиеRow FindByКод_занятия(int Код_занятия) {
  1089. return ((ЗанятиеRow)(this.Rows.Find(new object[] {
  1090. Код_занятия})));
  1091. }
  1092. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1093. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1094. public override global::System.Data.DataTable Clone() {
  1095. ЗанятиеDataTable cln = ((ЗанятиеDataTable)(base.Clone()));
  1096. cln.InitVars();
  1097. return cln;
  1098. }
  1099. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1100. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1101. protected override global::System.Data.DataTable CreateInstance() {
  1102. return new ЗанятиеDataTable();
  1103. }
  1104. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1105. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1106. internal void InitVars() {
  1107. this.columnКод_занятия = base.Columns["Код занятия"];
  1108. this.columnТип_занятия = base.Columns["Тип занятия"];
  1109. this.columnНомер_записи = base.Columns["Номер записи"];
  1110. }
  1111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1113. private void InitClass() {
  1114. this.columnКод_занятия = new global::System.Data.DataColumn("Код занятия", typeof(int), null, global::System.Data.MappingType.Element);
  1115. base.Columns.Add(this.columnКод_занятия);
  1116. this.columnТип_занятия = new global::System.Data.DataColumn("Тип занятия", typeof(string), null, global::System.Data.MappingType.Element);
  1117. base.Columns.Add(this.columnТип_занятия);
  1118. this.columnНомер_записи = new global::System.Data.DataColumn("Номер записи", typeof(int), null, global::System.Data.MappingType.Element);
  1119. base.Columns.Add(this.columnНомер_записи);
  1120. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1121. this.columnКод_занятия}, true));
  1122. this.columnКод_занятия.AllowDBNull = false;
  1123. this.columnКод_занятия.Unique = true;
  1124. this.columnТип_занятия.MaxLength = 50;
  1125. this.columnНомер_записи.AllowDBNull = false;
  1126. }
  1127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1128. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1129. public ЗанятиеRow NewЗанятиеRow() {
  1130. return ((ЗанятиеRow)(this.NewRow()));
  1131. }
  1132. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1133. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1134. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1135. return new ЗанятиеRow(builder);
  1136. }
  1137. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1138. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1139. protected override global::System.Type GetRowType() {
  1140. return typeof(ЗанятиеRow);
  1141. }
  1142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1143. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1144. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1145. base.OnRowChanged(e);
  1146. if ((this.ЗанятиеRowChanged != null)) {
  1147. this.ЗанятиеRowChanged(this, new ЗанятиеRowChangeEvent(((ЗанятиеRow)(e.Row)), e.Action));
  1148. }
  1149. }
  1150. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1151. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1152. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1153. base.OnRowChanging(e);
  1154. if ((this.ЗанятиеRowChanging != null)) {
  1155. this.ЗанятиеRowChanging(this, new ЗанятиеRowChangeEvent(((ЗанятиеRow)(e.Row)), e.Action));
  1156. }
  1157. }
  1158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1159. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1160. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1161. base.OnRowDeleted(e);
  1162. if ((this.ЗанятиеRowDeleted != null)) {
  1163. this.ЗанятиеRowDeleted(this, new ЗанятиеRowChangeEvent(((ЗанятиеRow)(e.Row)), e.Action));
  1164. }
  1165. }
  1166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1167. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1168. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1169. base.OnRowDeleting(e);
  1170. if ((this.ЗанятиеRowDeleting != null)) {
  1171. this.ЗанятиеRowDeleting(this, new ЗанятиеRowChangeEvent(((ЗанятиеRow)(e.Row)), e.Action));
  1172. }
  1173. }
  1174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1175. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1176. public void RemoveЗанятиеRow(ЗанятиеRow row) {
  1177. this.Rows.Remove(row);
  1178. }
  1179. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1180. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1181. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1182. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1183. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1184. ШампороваЯИ3DataSet ds = new ШампороваЯИ3DataSet();
  1185. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1186. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1187. any1.MinOccurs = new decimal(0);
  1188. any1.MaxOccurs = decimal.MaxValue;
  1189. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1190. sequence.Items.Add(any1);
  1191. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1192. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1193. any2.MinOccurs = new decimal(1);
  1194. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1195. sequence.Items.Add(any2);
  1196. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1197. attribute1.Name = "namespace";
  1198. attribute1.FixedValue = ds.Namespace;
  1199. type.Attributes.Add(attribute1);
  1200. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1201. attribute2.Name = "tableTypeName";
  1202. attribute2.FixedValue = "ЗанятиеDataTable";
  1203. type.Attributes.Add(attribute2);
  1204. type.Particle = sequence;
  1205. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1206. if (xs.Contains(dsSchema.TargetNamespace)) {
  1207. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1208. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1209. try {
  1210. global::System.Xml.Schema.XmlSchema schema = null;
  1211. dsSchema.Write(s1);
  1212. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1213. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1214. s2.SetLength(0);
  1215. schema.Write(s2);
  1216. if ((s1.Length == s2.Length)) {
  1217. s1.Position = 0;
  1218. s2.Position = 0;
  1219. for (; ((s1.Position != s1.Length)
  1220. && (s1.ReadByte() == s2.ReadByte())); ) {
  1221. ;
  1222. }
  1223. if ((s1.Position == s1.Length)) {
  1224. return type;
  1225. }
  1226. }
  1227. }
  1228. }
  1229. finally {
  1230. if ((s1 != null)) {
  1231. s1.Close();
  1232. }
  1233. if ((s2 != null)) {
  1234. s2.Close();
  1235. }
  1236. }
  1237. }
  1238. xs.Add(dsSchema);
  1239. return type;
  1240. }
  1241. }
  1242. /// <summary>
  1243. ///Represents the strongly named DataTable class.
  1244. ///</summary>
  1245. [global::System.Serializable()]
  1246. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1247. public partial class ПреподавателиDataTable : global::System.Data.TypedTableBase<ПреподавателиRow> {
  1248. private global::System.Data.DataColumn columnКод_преподавателя;
  1249. private global::System.Data.DataColumn columnФамилия;
  1250. private global::System.Data.DataColumn columnИмя;
  1251. private global::System.Data.DataColumn columnОтчество;
  1252. private global::System.Data.DataColumn columnНомер_записи;
  1253. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1254. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1255. public ПреподавателиDataTable() {
  1256. this.TableName = "Преподаватели";
  1257. this.BeginInit();
  1258. this.InitClass();
  1259. this.EndInit();
  1260. }
  1261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1262. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1263. internal ПреподавателиDataTable(global::System.Data.DataTable table) {
  1264. this.TableName = table.TableName;
  1265. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1266. this.CaseSensitive = table.CaseSensitive;
  1267. }
  1268. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1269. this.Locale = table.Locale;
  1270. }
  1271. if ((table.Namespace != table.DataSet.Namespace)) {
  1272. this.Namespace = table.Namespace;
  1273. }
  1274. this.Prefix = table.Prefix;
  1275. this.MinimumCapacity = table.MinimumCapacity;
  1276. }
  1277. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1278. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1279. protected ПреподавателиDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1280. base(info, context) {
  1281. this.InitVars();
  1282. }
  1283. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1284. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1285. public global::System.Data.DataColumn Код_преподавателяColumn {
  1286. get {
  1287. return this.columnКод_преподавателя;
  1288. }
  1289. }
  1290. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1291. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1292. public global::System.Data.DataColumn ФамилияColumn {
  1293. get {
  1294. return this.columnФамилия;
  1295. }
  1296. }
  1297. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1298. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1299. public global::System.Data.DataColumn ИмяColumn {
  1300. get {
  1301. return this.columnИмя;
  1302. }
  1303. }
  1304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1306. public global::System.Data.DataColumn ОтчествоColumn {
  1307. get {
  1308. return this.columnОтчество;
  1309. }
  1310. }
  1311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1312. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1313. public global::System.Data.DataColumn Номер_записиColumn {
  1314. get {
  1315. return this.columnНомер_записи;
  1316. }
  1317. }
  1318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1319. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1320. [global::System.ComponentModel.Browsable(false)]
  1321. public int Count {
  1322. get {
  1323. return this.Rows.Count;
  1324. }
  1325. }
  1326. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1327. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1328. public ПреподавателиRow this[int index] {
  1329. get {
  1330. return ((ПреподавателиRow)(this.Rows[index]));
  1331. }
  1332. }
  1333. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1334. public event ПреподавателиRowChangeEventHandler ПреподавателиRowChanging;
  1335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1336. public event ПреподавателиRowChangeEventHandler ПреподавателиRowChanged;
  1337. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1338. public event ПреподавателиRowChangeEventHandler ПреподавателиRowDeleting;
  1339. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1340. public event ПреподавателиRowChangeEventHandler ПреподавателиRowDeleted;
  1341. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1342. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1343. public void AddПреподавателиRow(ПреподавателиRow row) {
  1344. this.Rows.Add(row);
  1345. }
  1346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1347. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1348. public ПреподавателиRow AddПреподавателиRow(int Код_преподавателя, string Фамилия, string Имя, string Отчество, РасписаниеRow parentРасписаниеRowByFK_Преподаватели_Расписание) {
  1349. ПреподавателиRow rowПреподавателиRow = ((ПреподавателиRow)(this.NewRow()));
  1350. object[] columnValuesArray = new object[] {
  1351. Код_преподавателя,
  1352. Фамилия,
  1353. Имя,
  1354. Отчество,
  1355. null};
  1356. if ((parentРасписаниеRowByFK_Преподаватели_Расписание != null)) {
  1357. columnValuesArray[4] = parentРасписаниеRowByFK_Преподаватели_Расписание[0];
  1358. }
  1359. rowПреподавателиRow.ItemArray = columnValuesArray;
  1360. this.Rows.Add(rowПреподавателиRow);
  1361. return rowПреподавателиRow;
  1362. }
  1363. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1364. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1365. public ПреподавателиRow FindByКод_преподавателя(int Код_преподавателя) {
  1366. return ((ПреподавателиRow)(this.Rows.Find(new object[] {
  1367. Код_преподавателя})));
  1368. }
  1369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1371. public override global::System.Data.DataTable Clone() {
  1372. ПреподавателиDataTable cln = ((ПреподавателиDataTable)(base.Clone()));
  1373. cln.InitVars();
  1374. return cln;
  1375. }
  1376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1378. protected override global::System.Data.DataTable CreateInstance() {
  1379. return new ПреподавателиDataTable();
  1380. }
  1381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1382. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1383. internal void InitVars() {
  1384. this.columnКод_преподавателя = base.Columns["Код преподавателя"];
  1385. this.columnФамилия = base.Columns["Фамилия"];
  1386. this.columnИмя = base.Columns["Имя"];
  1387. this.columnОтчество = base.Columns["Отчество"];
  1388. this.columnНомер_записи = base.Columns["Номер записи"];
  1389. }
  1390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1392. private void InitClass() {
  1393. this.columnКод_преподавателя = new global::System.Data.DataColumn("Код преподавателя", typeof(int), null, global::System.Data.MappingType.Element);
  1394. base.Columns.Add(this.columnКод_преподавателя);
  1395. this.columnФамилия = new global::System.Data.DataColumn("Фамилия", typeof(string), null, global::System.Data.MappingType.Element);
  1396. base.Columns.Add(this.columnФамилия);
  1397. this.columnИмя = new global::System.Data.DataColumn("Имя", typeof(string), null, global::System.Data.MappingType.Element);
  1398. base.Columns.Add(this.columnИмя);
  1399. this.columnОтчество = new global::System.Data.DataColumn("Отчество", typeof(string), null, global::System.Data.MappingType.Element);
  1400. base.Columns.Add(this.columnОтчество);
  1401. this.columnНомер_записи = new global::System.Data.DataColumn("Номер записи", typeof(int), null, global::System.Data.MappingType.Element);
  1402. base.Columns.Add(this.columnНомер_записи);
  1403. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1404. this.columnКод_преподавателя}, true));
  1405. this.columnКод_преподавателя.AllowDBNull = false;
  1406. this.columnКод_преподавателя.Unique = true;
  1407. this.columnФамилия.MaxLength = 50;
  1408. this.columnИмя.MaxLength = 50;
  1409. this.columnОтчество.MaxLength = 50;
  1410. this.columnНомер_записи.AllowDBNull = false;
  1411. }
  1412. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1413. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1414. public ПреподавателиRow NewПреподавателиRow() {
  1415. return ((ПреподавателиRow)(this.NewRow()));
  1416. }
  1417. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1418. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1419. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1420. return new ПреподавателиRow(builder);
  1421. }
  1422. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1423. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1424. protected override global::System.Type GetRowType() {
  1425. return typeof(ПреподавателиRow);
  1426. }
  1427. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1428. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1429. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1430. base.OnRowChanged(e);
  1431. if ((this.ПреподавателиRowChanged != null)) {
  1432. this.ПреподавателиRowChanged(this, new ПреподавателиRowChangeEvent(((ПреподавателиRow)(e.Row)), e.Action));
  1433. }
  1434. }
  1435. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1436. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1437. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1438. base.OnRowChanging(e);
  1439. if ((this.ПреподавателиRowChanging != null)) {
  1440. this.ПреподавателиRowChanging(this, new ПреподавателиRowChangeEvent(((ПреподавателиRow)(e.Row)), e.Action));
  1441. }
  1442. }
  1443. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1444. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1445. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1446. base.OnRowDeleted(e);
  1447. if ((this.ПреподавателиRowDeleted != null)) {
  1448. this.ПреподавателиRowDeleted(this, new ПреподавателиRowChangeEvent(((ПреподавателиRow)(e.Row)), e.Action));
  1449. }
  1450. }
  1451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1452. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1453. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1454. base.OnRowDeleting(e);
  1455. if ((this.ПреподавателиRowDeleting != null)) {
  1456. this.ПреподавателиRowDeleting(this, new ПреподавателиRowChangeEvent(((ПреподавателиRow)(e.Row)), e.Action));
  1457. }
  1458. }
  1459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1460. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1461. public void RemoveПреподавателиRow(ПреподавателиRow row) {
  1462. this.Rows.Remove(row);
  1463. }
  1464. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1465. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1466. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1467. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1468. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1469. ШампороваЯИ3DataSet ds = new ШампороваЯИ3DataSet();
  1470. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1471. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1472. any1.MinOccurs = new decimal(0);
  1473. any1.MaxOccurs = decimal.MaxValue;
  1474. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1475. sequence.Items.Add(any1);
  1476. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1477. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1478. any2.MinOccurs = new decimal(1);
  1479. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1480. sequence.Items.Add(any2);
  1481. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1482. attribute1.Name = "namespace";
  1483. attribute1.FixedValue = ds.Namespace;
  1484. type.Attributes.Add(attribute1);
  1485. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1486. attribute2.Name = "tableTypeName";
  1487. attribute2.FixedValue = "ПреподавателиDataTable";
  1488. type.Attributes.Add(attribute2);
  1489. type.Particle = sequence;
  1490. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1491. if (xs.Contains(dsSchema.TargetNamespace)) {
  1492. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1493. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1494. try {
  1495. global::System.Xml.Schema.XmlSchema schema = null;
  1496. dsSchema.Write(s1);
  1497. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1498. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1499. s2.SetLength(0);
  1500. schema.Write(s2);
  1501. if ((s1.Length == s2.Length)) {
  1502. s1.Position = 0;
  1503. s2.Position = 0;
  1504. for (; ((s1.Position != s1.Length)
  1505. && (s1.ReadByte() == s2.ReadByte())); ) {
  1506. ;
  1507. }
  1508. if ((s1.Position == s1.Length)) {
  1509. return type;
  1510. }
  1511. }
  1512. }
  1513. }
  1514. finally {
  1515. if ((s1 != null)) {
  1516. s1.Close();
  1517. }
  1518. if ((s2 != null)) {
  1519. s2.Close();
  1520. }
  1521. }
  1522. }
  1523. xs.Add(dsSchema);
  1524. return type;
  1525. }
  1526. }
  1527. /// <summary>
  1528. ///Represents the strongly named DataTable class.
  1529. ///</summary>
  1530. [global::System.Serializable()]
  1531. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1532. public partial class РасписаниеDataTable : global::System.Data.TypedTableBase<РасписаниеRow> {
  1533. private global::System.Data.DataColumn columnНомер_записи;
  1534. private global::System.Data.DataColumn columnГруппа;
  1535. private global::System.Data.DataColumn columnАудитория;
  1536. private global::System.Data.DataColumn columnПара;
  1537. private global::System.Data.DataColumn columnПреподаватель;
  1538. private global::System.Data.DataColumn columnЗанятие;
  1539. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1540. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1541. public РасписаниеDataTable() {
  1542. this.TableName = "Расписание";
  1543. this.BeginInit();
  1544. this.InitClass();
  1545. this.EndInit();
  1546. }
  1547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1549. internal РасписаниеDataTable(global::System.Data.DataTable table) {
  1550. this.TableName = table.TableName;
  1551. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1552. this.CaseSensitive = table.CaseSensitive;
  1553. }
  1554. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1555. this.Locale = table.Locale;
  1556. }
  1557. if ((table.Namespace != table.DataSet.Namespace)) {
  1558. this.Namespace = table.Namespace;
  1559. }
  1560. this.Prefix = table.Prefix;
  1561. this.MinimumCapacity = table.MinimumCapacity;
  1562. }
  1563. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1564. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1565. protected РасписаниеDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1566. base(info, context) {
  1567. this.InitVars();
  1568. }
  1569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1570. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1571. public global::System.Data.DataColumn Номер_записиColumn {
  1572. get {
  1573. return this.columnНомер_записи;
  1574. }
  1575. }
  1576. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1577. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1578. public global::System.Data.DataColumn ГруппаColumn {
  1579. get {
  1580. return this.columnГруппа;
  1581. }
  1582. }
  1583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1585. public global::System.Data.DataColumn АудиторияColumn {
  1586. get {
  1587. return this.columnАудитория;
  1588. }
  1589. }
  1590. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1591. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1592. public global::System.Data.DataColumn ПараColumn {
  1593. get {
  1594. return this.columnПара;
  1595. }
  1596. }
  1597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1598. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1599. public global::System.Data.DataColumn ПреподавательColumn {
  1600. get {
  1601. return this.columnПреподаватель;
  1602. }
  1603. }
  1604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1606. public global::System.Data.DataColumn ЗанятиеColumn {
  1607. get {
  1608. return this.columnЗанятие;
  1609. }
  1610. }
  1611. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1612. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1613. [global::System.ComponentModel.Browsable(false)]
  1614. public int Count {
  1615. get {
  1616. return this.Rows.Count;
  1617. }
  1618. }
  1619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1621. public РасписаниеRow this[int index] {
  1622. get {
  1623. return ((РасписаниеRow)(this.Rows[index]));
  1624. }
  1625. }
  1626. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1627. public event РасписаниеRowChangeEventHandler РасписаниеRowChanging;
  1628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1629. public event РасписаниеRowChangeEventHandler РасписаниеRowChanged;
  1630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1631. public event РасписаниеRowChangeEventHandler РасписаниеRowDeleting;
  1632. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1633. public event РасписаниеRowChangeEventHandler РасписаниеRowDeleted;
  1634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1636. public void AddРасписаниеRow(РасписаниеRow row) {
  1637. this.Rows.Add(row);
  1638. }
  1639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1641. public РасписаниеRow AddРасписаниеRow(int Номер_записи, string Группа, int Аудитория, string Пара, string Преподаватель, string Занятие) {
  1642. РасписаниеRow rowРасписаниеRow = ((РасписаниеRow)(this.NewRow()));
  1643. object[] columnValuesArray = new object[] {
  1644. Номер_записи,
  1645. Группа,
  1646. Аудитория,
  1647. Пара,
  1648. Преподаватель,
  1649. Занятие};
  1650. rowРасписаниеRow.ItemArray = columnValuesArray;
  1651. this.Rows.Add(rowРасписаниеRow);
  1652. return rowРасписаниеRow;
  1653. }
  1654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1655. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1656. public РасписаниеRow FindByНомер_записи(int Номер_записи) {
  1657. return ((РасписаниеRow)(this.Rows.Find(new object[] {
  1658. Номер_записи})));
  1659. }
  1660. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1661. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1662. public override global::System.Data.DataTable Clone() {
  1663. РасписаниеDataTable cln = ((РасписаниеDataTable)(base.Clone()));
  1664. cln.InitVars();
  1665. return cln;
  1666. }
  1667. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1668. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1669. protected override global::System.Data.DataTable CreateInstance() {
  1670. return new РасписаниеDataTable();
  1671. }
  1672. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1674. internal void InitVars() {
  1675. this.columnНомер_записи = base.Columns["Номер записи"];
  1676. this.columnГруппа = base.Columns["Группа"];
  1677. this.columnАудитория = base.Columns["Аудитория"];
  1678. this.columnПара = base.Columns["Пара"];
  1679. this.columnПреподаватель = base.Columns["Преподаватель"];
  1680. this.columnЗанятие = base.Columns["Занятие"];
  1681. }
  1682. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1683. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1684. private void InitClass() {
  1685. this.columnНомер_записи = new global::System.Data.DataColumn("Номер записи", typeof(int), null, global::System.Data.MappingType.Element);
  1686. base.Columns.Add(this.columnНомер_записи);
  1687. this.columnГруппа = new global::System.Data.DataColumn("Группа", typeof(string), null, global::System.Data.MappingType.Element);
  1688. base.Columns.Add(this.columnГруппа);
  1689. this.columnАудитория = new global::System.Data.DataColumn("Аудитория", typeof(int), null, global::System.Data.MappingType.Element);
  1690. base.Columns.Add(this.columnАудитория);
  1691. this.columnПара = new global::System.Data.DataColumn("Пара", typeof(string), null, global::System.Data.MappingType.Element);
  1692. base.Columns.Add(this.columnПара);
  1693. this.columnПреподаватель = new global::System.Data.DataColumn("Преподаватель", typeof(string), null, global::System.Data.MappingType.Element);
  1694. base.Columns.Add(this.columnПреподаватель);
  1695. this.columnЗанятие = new global::System.Data.DataColumn("Занятие", typeof(string), null, global::System.Data.MappingType.Element);
  1696. base.Columns.Add(this.columnЗанятие);
  1697. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1698. this.columnНомер_записи}, true));
  1699. this.columnНомер_записи.AllowDBNull = false;
  1700. this.columnНомер_записи.Unique = true;
  1701. this.columnГруппа.MaxLength = 50;
  1702. this.columnПара.MaxLength = 50;
  1703. this.columnПреподаватель.MaxLength = 50;
  1704. this.columnЗанятие.MaxLength = 50;
  1705. }
  1706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1708. public РасписаниеRow NewРасписаниеRow() {
  1709. return ((РасписаниеRow)(this.NewRow()));
  1710. }
  1711. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1712. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1713. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1714. return new РасписаниеRow(builder);
  1715. }
  1716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1717. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1718. protected override global::System.Type GetRowType() {
  1719. return typeof(РасписаниеRow);
  1720. }
  1721. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1722. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1723. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1724. base.OnRowChanged(e);
  1725. if ((this.РасписаниеRowChanged != null)) {
  1726. this.РасписаниеRowChanged(this, new РасписаниеRowChangeEvent(((РасписаниеRow)(e.Row)), e.Action));
  1727. }
  1728. }
  1729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1730. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1731. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1732. base.OnRowChanging(e);
  1733. if ((this.РасписаниеRowChanging != null)) {
  1734. this.РасписаниеRowChanging(this, new РасписаниеRowChangeEvent(((РасписаниеRow)(e.Row)), e.Action));
  1735. }
  1736. }
  1737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1738. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1739. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1740. base.OnRowDeleted(e);
  1741. if ((this.РасписаниеRowDeleted != null)) {
  1742. this.РасписаниеRowDeleted(this, new РасписаниеRowChangeEvent(((РасписаниеRow)(e.Row)), e.Action));
  1743. }
  1744. }
  1745. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1746. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1747. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1748. base.OnRowDeleting(e);
  1749. if ((this.РасписаниеRowDeleting != null)) {
  1750. this.РасписаниеRowDeleting(this, new РасписаниеRowChangeEvent(((РасписаниеRow)(e.Row)), e.Action));
  1751. }
  1752. }
  1753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1755. public void RemoveРасписаниеRow(РасписаниеRow row) {
  1756. this.Rows.Remove(row);
  1757. }
  1758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1760. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1761. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1762. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1763. ШампороваЯИ3DataSet ds = new ШампороваЯИ3DataSet();
  1764. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1765. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1766. any1.MinOccurs = new decimal(0);
  1767. any1.MaxOccurs = decimal.MaxValue;
  1768. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1769. sequence.Items.Add(any1);
  1770. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1771. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1772. any2.MinOccurs = new decimal(1);
  1773. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1774. sequence.Items.Add(any2);
  1775. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1776. attribute1.Name = "namespace";
  1777. attribute1.FixedValue = ds.Namespace;
  1778. type.Attributes.Add(attribute1);
  1779. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1780. attribute2.Name = "tableTypeName";
  1781. attribute2.FixedValue = "РасписаниеDataTable";
  1782. type.Attributes.Add(attribute2);
  1783. type.Particle = sequence;
  1784. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1785. if (xs.Contains(dsSchema.TargetNamespace)) {
  1786. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1787. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1788. try {
  1789. global::System.Xml.Schema.XmlSchema schema = null;
  1790. dsSchema.Write(s1);
  1791. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1792. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1793. s2.SetLength(0);
  1794. schema.Write(s2);
  1795. if ((s1.Length == s2.Length)) {
  1796. s1.Position = 0;
  1797. s2.Position = 0;
  1798. for (; ((s1.Position != s1.Length)
  1799. && (s1.ReadByte() == s2.ReadByte())); ) {
  1800. ;
  1801. }
  1802. if ((s1.Position == s1.Length)) {
  1803. return type;
  1804. }
  1805. }
  1806. }
  1807. }
  1808. finally {
  1809. if ((s1 != null)) {
  1810. s1.Close();
  1811. }
  1812. if ((s2 != null)) {
  1813. s2.Close();
  1814. }
  1815. }
  1816. }
  1817. xs.Add(dsSchema);
  1818. return type;
  1819. }
  1820. }
  1821. /// <summary>
  1822. ///Represents strongly named DataRow class.
  1823. ///</summary>
  1824. public partial class АудиторияRow : global::System.Data.DataRow {
  1825. private АудиторияDataTable tableАудитория;
  1826. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1827. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1828. internal АудиторияRow(global::System.Data.DataRowBuilder rb) :
  1829. base(rb) {
  1830. this.tableАудитория = ((АудиторияDataTable)(this.Table));
  1831. }
  1832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1833. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1834. public int Код_аудитории {
  1835. get {
  1836. return ((int)(this[this.tableАудитория.Код_аудиторииColumn]));
  1837. }
  1838. set {
  1839. this[this.tableАудитория.Код_аудиторииColumn] = value;
  1840. }
  1841. }
  1842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1844. public string Здание {
  1845. get {
  1846. try {
  1847. return ((string)(this[this.tableАудитория.ЗданиеColumn]));
  1848. }
  1849. catch (global::System.InvalidCastException e) {
  1850. throw new global::System.Data.StrongTypingException("Значение для столбца \'Здание\' в таблице \'Аудитория\' равно DBNull.", e);
  1851. }
  1852. }
  1853. set {
  1854. this[this.tableАудитория.ЗданиеColumn] = value;
  1855. }
  1856. }
  1857. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1858. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1859. public int Этаж {
  1860. get {
  1861. try {
  1862. return ((int)(this[this.tableАудитория.ЭтажColumn]));
  1863. }
  1864. catch (global::System.InvalidCastException e) {
  1865. throw new global::System.Data.StrongTypingException("Значение для столбца \'Этаж\' в таблице \'Аудитория\' равно DBNull.", e);
  1866. }
  1867. }
  1868. set {
  1869. this[this.tableАудитория.ЭтажColumn] = value;
  1870. }
  1871. }
  1872. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1873. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1874. public string Номер {
  1875. get {
  1876. try {
  1877. return ((string)(this[this.tableАудитория.НомерColumn]));
  1878. }
  1879. catch (global::System.InvalidCastException e) {
  1880. throw new global::System.Data.StrongTypingException("Значение для столбца \'Номер\' в таблице \'Аудитория\' равно DBNull.", e);
  1881. }
  1882. }
  1883. set {
  1884. this[this.tableАудитория.НомерColumn] = value;
  1885. }
  1886. }
  1887. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1888. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1889. public int Номер_записи {
  1890. get {
  1891. return ((int)(this[this.tableАудитория.Номер_записиColumn]));
  1892. }
  1893. set {
  1894. this[this.tableАудитория.Номер_записиColumn] = value;
  1895. }
  1896. }
  1897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1898. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1899. public РасписаниеRow РасписаниеRow {
  1900. get {
  1901. return ((РасписаниеRow)(this.GetParentRow(this.Table.ParentRelations["FK_Аудитория_Расписание"])));
  1902. }
  1903. set {
  1904. this.SetParentRow(value, this.Table.ParentRelations["FK_Аудитория_Расписание"]);
  1905. }
  1906. }
  1907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1909. public bool IsЗданиеNull() {
  1910. return this.IsNull(this.tableАудитория.ЗданиеColumn);
  1911. }
  1912. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1913. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1914. public void SetЗданиеNull() {
  1915. this[this.tableАудитория.ЗданиеColumn] = global::System.Convert.DBNull;
  1916. }
  1917. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1918. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1919. public bool IsЭтажNull() {
  1920. return this.IsNull(this.tableАудитория.ЭтажColumn);
  1921. }
  1922. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1923. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1924. public void SetЭтажNull() {
  1925. this[this.tableАудитория.ЭтажColumn] = global::System.Convert.DBNull;
  1926. }
  1927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1928. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1929. public bool IsНомерNull() {
  1930. return this.IsNull(this.tableАудитория.НомерColumn);
  1931. }
  1932. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1933. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1934. public void SetНомерNull() {
  1935. this[this.tableАудитория.НомерColumn] = global::System.Convert.DBNull;
  1936. }
  1937. }
  1938. /// <summary>
  1939. ///Represents strongly named DataRow class.
  1940. ///</summary>
  1941. public partial class ГруппаRow : global::System.Data.DataRow {
  1942. private ГруппаDataTable tableГруппа;
  1943. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1944. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1945. internal ГруппаRow(global::System.Data.DataRowBuilder rb) :
  1946. base(rb) {
  1947. this.tableГруппа = ((ГруппаDataTable)(this.Table));
  1948. }
  1949. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1950. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1951. public int Код_группы {
  1952. get {
  1953. return ((int)(this[this.tableГруппа.Код_группыColumn]));
  1954. }
  1955. set {
  1956. this[this.tableГруппа.Код_группыColumn] = value;
  1957. }
  1958. }
  1959. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1960. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1961. public string Факультет {
  1962. get {
  1963. try {
  1964. return ((string)(this[this.tableГруппа.ФакультетColumn]));
  1965. }
  1966. catch (global::System.InvalidCastException e) {
  1967. throw new global::System.Data.StrongTypingException("Значение для столбца \'Факультет\' в таблице \'Группа\' равно DBNull.", e);
  1968. }
  1969. }
  1970. set {
  1971. this[this.tableГруппа.ФакультетColumn] = value;
  1972. }
  1973. }
  1974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1975. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1976. public string Специальность {
  1977. get {
  1978. try {
  1979. return ((string)(this[this.tableГруппа.СпециальностьColumn]));
  1980. }
  1981. catch (global::System.InvalidCastException e) {
  1982. throw new global::System.Data.StrongTypingException("Значение для столбца \'Специальность\' в таблице \'Группа\' равно DBNull.", e);
  1983. }
  1984. }
  1985. set {
  1986. this[this.tableГруппа.СпециальностьColumn] = value;
  1987. }
  1988. }
  1989. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1990. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1991. public string Курс {
  1992. get {
  1993. try {
  1994. return ((string)(this[this.tableГруппа.КурсColumn]));
  1995. }
  1996. catch (global::System.InvalidCastException e) {
  1997. throw new global::System.Data.StrongTypingException("Значение для столбца \'Курс\' в таблице \'Группа\' равно DBNull.", e);
  1998. }
  1999. }
  2000. set {
  2001. this[this.tableГруппа.КурсColumn] = value;
  2002. }
  2003. }
  2004. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2005. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2006. public int Номер {
  2007. get {
  2008. try {
  2009. return ((int)(this[this.tableГруппа.НомерColumn]));
  2010. }
  2011. catch (global::System.InvalidCastException e) {
  2012. throw new global::System.Data.StrongTypingException("Значение для столбца \'Номер\' в таблице \'Группа\' равно DBNull.", e);
  2013. }
  2014. }
  2015. set {
  2016. this[this.tableГруппа.НомерColumn] = value;
  2017. }
  2018. }
  2019. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2020. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2021. public int Номер_записи {
  2022. get {
  2023. return ((int)(this[this.tableГруппа.Номер_записиColumn]));
  2024. }
  2025. set {
  2026. this[this.tableГруппа.Номер_записиColumn] = value;
  2027. }
  2028. }
  2029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2031. public РасписаниеRow РасписаниеRow {
  2032. get {
  2033. return ((РасписаниеRow)(this.GetParentRow(this.Table.ParentRelations["FK_Группа_Расписание"])));
  2034. }
  2035. set {
  2036. this.SetParentRow(value, this.Table.ParentRelations["FK_Группа_Расписание"]);
  2037. }
  2038. }
  2039. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2041. public bool IsФакультетNull() {
  2042. return this.IsNull(this.tableГруппа.ФакультетColumn);
  2043. }
  2044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2046. public void SetФакультетNull() {
  2047. this[this.tableГруппа.ФакультетColumn] = global::System.Convert.DBNull;
  2048. }
  2049. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2050. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2051. public bool IsСпециальностьNull() {
  2052. return this.IsNull(this.tableГруппа.СпециальностьColumn);
  2053. }
  2054. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2055. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2056. public void SetСпециальностьNull() {
  2057. this[this.tableГруппа.СпециальностьColumn] = global::System.Convert.DBNull;
  2058. }
  2059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2060. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2061. public bool IsКурсNull() {
  2062. return this.IsNull(this.tableГруппа.КурсColumn);
  2063. }
  2064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2065. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2066. public void SetКурсNull() {
  2067. this[this.tableГруппа.КурсColumn] = global::System.Convert.DBNull;
  2068. }
  2069. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2070. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2071. public bool IsНомерNull() {
  2072. return this.IsNull(this.tableГруппа.НомерColumn);
  2073. }
  2074. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2075. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2076. public void SetНомерNull() {
  2077. this[this.tableГруппа.НомерColumn] = global::System.Convert.DBNull;
  2078. }
  2079. }
  2080. /// <summary>
  2081. ///Represents strongly named DataRow class.
  2082. ///</summary>
  2083. public partial class ЗанятиеRow : global::System.Data.DataRow {
  2084. private ЗанятиеDataTable tableЗанятие;
  2085. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2086. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2087. internal ЗанятиеRow(global::System.Data.DataRowBuilder rb) :
  2088. base(rb) {
  2089. this.tableЗанятие = ((ЗанятиеDataTable)(this.Table));
  2090. }
  2091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2093. public int Код_занятия {
  2094. get {
  2095. return ((int)(this[this.tableЗанятие.Код_занятияColumn]));
  2096. }
  2097. set {
  2098. this[this.tableЗанятие.Код_занятияColumn] = value;
  2099. }
  2100. }
  2101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2102. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2103. public string Тип_занятия {
  2104. get {
  2105. try {
  2106. return ((string)(this[this.tableЗанятие.Тип_занятияColumn]));
  2107. }
  2108. catch (global::System.InvalidCastException e) {
  2109. throw new global::System.Data.StrongTypingException("Значение для столбца \'Тип занятия\' в таблице \'Занятие\' равно DBNull.", e);
  2110. }
  2111. }
  2112. set {
  2113. this[this.tableЗанятие.Тип_занятияColumn] = value;
  2114. }
  2115. }
  2116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2118. public int Номер_записи {
  2119. get {
  2120. return ((int)(this[this.tableЗанятие.Номер_записиColumn]));
  2121. }
  2122. set {
  2123. this[this.tableЗанятие.Номер_записиColumn] = value;
  2124. }
  2125. }
  2126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2128. public РасписаниеRow РасписаниеRow {
  2129. get {
  2130. return ((РасписаниеRow)(this.GetParentRow(this.Table.ParentRelations["FK_Занятие_Расписание"])));
  2131. }
  2132. set {
  2133. this.SetParentRow(value, this.Table.ParentRelations["FK_Занятие_Расписание"]);
  2134. }
  2135. }
  2136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2137. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2138. public bool IsТип_занятияNull() {
  2139. return this.IsNull(this.tableЗанятие.Тип_занятияColumn);
  2140. }
  2141. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2142. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2143. public void SetТип_занятияNull() {
  2144. this[this.tableЗанятие.Тип_занятияColumn] = global::System.Convert.DBNull;
  2145. }
  2146. }
  2147. /// <summary>
  2148. ///Represents strongly named DataRow class.
  2149. ///</summary>
  2150. public partial class ПреподавателиRow : global::System.Data.DataRow {
  2151. private ПреподавателиDataTable tableПреподаватели;
  2152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2154. internal ПреподавателиRow(global::System.Data.DataRowBuilder rb) :
  2155. base(rb) {
  2156. this.tableПреподаватели = ((ПреподавателиDataTable)(this.Table));
  2157. }
  2158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2159. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2160. public int Код_преподавателя {
  2161. get {
  2162. return ((int)(this[this.tableПреподаватели.Код_преподавателяColumn]));
  2163. }
  2164. set {
  2165. this[this.tableПреподаватели.Код_преподавателяColumn] = value;
  2166. }
  2167. }
  2168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2169. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2170. public string Фамилия {
  2171. get {
  2172. try {
  2173. return ((string)(this[this.tableПреподаватели.ФамилияColumn]));
  2174. }
  2175. catch (global::System.InvalidCastException e) {
  2176. throw new global::System.Data.StrongTypingException("Значение для столбца \'Фамилия\' в таблице \'Преподаватели\' равно DBNull.", e);
  2177. }
  2178. }
  2179. set {
  2180. this[this.tableПреподаватели.ФамилияColumn] = value;
  2181. }
  2182. }
  2183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2185. public string Имя {
  2186. get {
  2187. try {
  2188. return ((string)(this[this.tableПреподаватели.ИмяColumn]));
  2189. }
  2190. catch (global::System.InvalidCastException e) {
  2191. throw new global::System.Data.StrongTypingException("Значение для столбца \'Имя\' в таблице \'Преподаватели\' равно DBNull.", e);
  2192. }
  2193. }
  2194. set {
  2195. this[this.tableПреподаватели.ИмяColumn] = value;
  2196. }
  2197. }
  2198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2199. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2200. public string Отчество {
  2201. get {
  2202. try {
  2203. return ((string)(this[this.tableПреподаватели.ОтчествоColumn]));
  2204. }
  2205. catch (global::System.InvalidCastException e) {
  2206. throw new global::System.Data.StrongTypingException("Значение для столбца \'Отчество\' в таблице \'Преподаватели\' равно DBNull.", e);
  2207. }
  2208. }
  2209. set {
  2210. this[this.tableПреподаватели.ОтчествоColumn] = value;
  2211. }
  2212. }
  2213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2214. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2215. public int Номер_записи {
  2216. get {
  2217. return ((int)(this[this.tableПреподаватели.Номер_записиColumn]));
  2218. }
  2219. set {
  2220. this[this.tableПреподаватели.Номер_записиColumn] = value;
  2221. }
  2222. }
  2223. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2224. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2225. public РасписаниеRow РасписаниеRow {
  2226. get {
  2227. return ((РасписаниеRow)(this.GetParentRow(this.Table.ParentRelations["FK_Преподаватели_Расписание"])));
  2228. }
  2229. set {
  2230. this.SetParentRow(value, this.Table.ParentRelations["FK_Преподаватели_Расписание"]);
  2231. }
  2232. }
  2233. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2234. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2235. public bool IsФамилияNull() {
  2236. return this.IsNull(this.tableПреподаватели.ФамилияColumn);
  2237. }
  2238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2239. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2240. public void SetФамилияNull() {
  2241. this[this.tableПреподаватели.ФамилияColumn] = global::System.Convert.DBNull;
  2242. }
  2243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2245. public bool IsИмяNull() {
  2246. return this.IsNull(this.tableПреподаватели.ИмяColumn);
  2247. }
  2248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2249. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2250. public void SetИмяNull() {
  2251. this[this.tableПреподаватели.ИмяColumn] = global::System.Convert.DBNull;
  2252. }
  2253. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2254. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2255. public bool IsОтчествоNull() {
  2256. return this.IsNull(this.tableПреподаватели.ОтчествоColumn);
  2257. }
  2258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2260. public void SetОтчествоNull() {
  2261. this[this.tableПреподаватели.ОтчествоColumn] = global::System.Convert.DBNull;
  2262. }
  2263. }
  2264. /// <summary>
  2265. ///Represents strongly named DataRow class.
  2266. ///</summary>
  2267. public partial class РасписаниеRow : global::System.Data.DataRow {
  2268. private РасписаниеDataTable tableРасписание;
  2269. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2270. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2271. internal РасписаниеRow(global::System.Data.DataRowBuilder rb) :
  2272. base(rb) {
  2273. this.tableРасписание = ((РасписаниеDataTable)(this.Table));
  2274. }
  2275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2276. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2277. public int Номер_записи {
  2278. get {
  2279. return ((int)(this[this.tableРасписание.Номер_записиColumn]));
  2280. }
  2281. set {
  2282. this[this.tableРасписание.Номер_записиColumn] = value;
  2283. }
  2284. }
  2285. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2286. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2287. public string Группа {
  2288. get {
  2289. try {
  2290. return ((string)(this[this.tableРасписание.ГруппаColumn]));
  2291. }
  2292. catch (global::System.InvalidCastException e) {
  2293. throw new global::System.Data.StrongTypingException("Значение для столбца \'Группа\' в таблице \'Расписание\' равно DBNull.", e);
  2294. }
  2295. }
  2296. set {
  2297. this[this.tableРасписание.ГруппаColumn] = value;
  2298. }
  2299. }
  2300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2301. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2302. public int Аудитория {
  2303. get {
  2304. try {
  2305. return ((int)(this[this.tableРасписание.АудиторияColumn]));
  2306. }
  2307. catch (global::System.InvalidCastException e) {
  2308. throw new global::System.Data.StrongTypingException("Значение для столбца \'Аудитория\' в таблице \'Расписание\' равно DBNull.", e);
  2309. }
  2310. }
  2311. set {
  2312. this[this.tableРасписание.АудиторияColumn] = value;
  2313. }
  2314. }
  2315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2316. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2317. public string Пара {
  2318. get {
  2319. try {
  2320. return ((string)(this[this.tableРасписание.ПараColumn]));
  2321. }
  2322. catch (global::System.InvalidCastException e) {
  2323. throw new global::System.Data.StrongTypingException("Значение для столбца \'Пара\' в таблице \'Расписание\' равно DBNull.", e);
  2324. }
  2325. }
  2326. set {
  2327. this[this.tableРасписание.ПараColumn] = value;
  2328. }
  2329. }
  2330. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2331. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2332. public string Преподаватель {
  2333. get {
  2334. try {
  2335. return ((string)(this[this.tableРасписание.ПреподавательColumn]));
  2336. }
  2337. catch (global::System.InvalidCastException e) {
  2338. throw new global::System.Data.StrongTypingException("Значение для столбца \'Преподаватель\' в таблице \'Расписание\' равно DBNull.", e);
  2339. }
  2340. }
  2341. set {
  2342. this[this.tableРасписание.ПреподавательColumn] = value;
  2343. }
  2344. }
  2345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2346. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2347. public string Занятие {
  2348. get {
  2349. try {
  2350. return ((string)(this[this.tableРасписание.ЗанятиеColumn]));
  2351. }
  2352. catch (global::System.InvalidCastException e) {
  2353. throw new global::System.Data.StrongTypingException("Значение для столбца \'Занятие\' в таблице \'Расписание\' равно DBNull.", e);
  2354. }
  2355. }
  2356. set {
  2357. this[this.tableРасписание.ЗанятиеColumn] = value;
  2358. }
  2359. }
  2360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2361. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2362. public bool IsГруппаNull() {
  2363. return this.IsNull(this.tableРасписание.ГруппаColumn);
  2364. }
  2365. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2366. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2367. public void SetГруппаNull() {
  2368. this[this.tableРасписание.ГруппаColumn] = global::System.Convert.DBNull;
  2369. }
  2370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2371. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2372. public bool IsАудиторияNull() {
  2373. return this.IsNull(this.tableРасписание.АудиторияColumn);
  2374. }
  2375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2377. public void SetАудиторияNull() {
  2378. this[this.tableРасписание.АудиторияColumn] = global::System.Convert.DBNull;
  2379. }
  2380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2382. public bool IsПараNull() {
  2383. return this.IsNull(this.tableРасписание.ПараColumn);
  2384. }
  2385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2386. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2387. public void SetПараNull() {
  2388. this[this.tableРасписание.ПараColumn] = global::System.Convert.DBNull;
  2389. }
  2390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2392. public bool IsПреподавательNull() {
  2393. return this.IsNull(this.tableРасписание.ПреподавательColumn);
  2394. }
  2395. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2396. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2397. public void SetПреподавательNull() {
  2398. this[this.tableРасписание.ПреподавательColumn] = global::System.Convert.DBNull;
  2399. }
  2400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2402. public bool IsЗанятиеNull() {
  2403. return this.IsNull(this.tableРасписание.ЗанятиеColumn);
  2404. }
  2405. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2406. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2407. public void SetЗанятиеNull() {
  2408. this[this.tableРасписание.ЗанятиеColumn] = global::System.Convert.DBNull;
  2409. }
  2410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2411. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2412. public АудиторияRow[] GetАудиторияRows() {
  2413. if ((this.Table.ChildRelations["FK_Аудитория_Расписание"] == null)) {
  2414. return new АудиторияRow[0];
  2415. }
  2416. else {
  2417. return ((АудиторияRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Аудитория_Расписание"])));
  2418. }
  2419. }
  2420. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2421. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2422. public ГруппаRow[] GetГруппаRows() {
  2423. if ((this.Table.ChildRelations["FK_Группа_Расписание"] == null)) {
  2424. return new ГруппаRow[0];
  2425. }
  2426. else {
  2427. return ((ГруппаRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Группа_Расписание"])));
  2428. }
  2429. }
  2430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2431. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2432. public ЗанятиеRow[] GetЗанятиеRows() {
  2433. if ((this.Table.ChildRelations["FK_Занятие_Расписание"] == null)) {
  2434. return new ЗанятиеRow[0];
  2435. }
  2436. else {
  2437. return ((ЗанятиеRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Занятие_Расписание"])));
  2438. }
  2439. }
  2440. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2441. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2442. public ПреподавателиRow[] GetПреподавателиRows() {
  2443. if ((this.Table.ChildRelations["FK_Преподаватели_Расписание"] == null)) {
  2444. return new ПреподавателиRow[0];
  2445. }
  2446. else {
  2447. return ((ПреподавателиRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Преподаватели_Расписание"])));
  2448. }
  2449. }
  2450. }
  2451. /// <summary>
  2452. ///Row event argument class
  2453. ///</summary>
  2454. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2455. public class АудиторияRowChangeEvent : global::System.EventArgs {
  2456. private АудиторияRow eventRow;
  2457. private global::System.Data.DataRowAction eventAction;
  2458. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2459. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2460. public АудиторияRowChangeEvent(АудиторияRow row, global::System.Data.DataRowAction action) {
  2461. this.eventRow = row;
  2462. this.eventAction = action;
  2463. }
  2464. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2465. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2466. public АудиторияRow Row {
  2467. get {
  2468. return this.eventRow;
  2469. }
  2470. }
  2471. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2473. public global::System.Data.DataRowAction Action {
  2474. get {
  2475. return this.eventAction;
  2476. }
  2477. }
  2478. }
  2479. /// <summary>
  2480. ///Row event argument class
  2481. ///</summary>
  2482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2483. public class ГруппаRowChangeEvent : global::System.EventArgs {
  2484. private ГруппаRow eventRow;
  2485. private global::System.Data.DataRowAction eventAction;
  2486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2488. public ГруппаRowChangeEvent(ГруппаRow row, global::System.Data.DataRowAction action) {
  2489. this.eventRow = row;
  2490. this.eventAction = action;
  2491. }
  2492. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2493. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2494. public ГруппаRow Row {
  2495. get {
  2496. return this.eventRow;
  2497. }
  2498. }
  2499. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2500. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2501. public global::System.Data.DataRowAction Action {
  2502. get {
  2503. return this.eventAction;
  2504. }
  2505. }
  2506. }
  2507. /// <summary>
  2508. ///Row event argument class
  2509. ///</summary>
  2510. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2511. public class ЗанятиеRowChangeEvent : global::System.EventArgs {
  2512. private ЗанятиеRow eventRow;
  2513. private global::System.Data.DataRowAction eventAction;
  2514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2515. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2516. public ЗанятиеRowChangeEvent(ЗанятиеRow row, global::System.Data.DataRowAction action) {
  2517. this.eventRow = row;
  2518. this.eventAction = action;
  2519. }
  2520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2521. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2522. public ЗанятиеRow Row {
  2523. get {
  2524. return this.eventRow;
  2525. }
  2526. }
  2527. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2528. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2529. public global::System.Data.DataRowAction Action {
  2530. get {
  2531. return this.eventAction;
  2532. }
  2533. }
  2534. }
  2535. /// <summary>
  2536. ///Row event argument class
  2537. ///</summary>
  2538. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2539. public class ПреподавателиRowChangeEvent : global::System.EventArgs {
  2540. private ПреподавателиRow eventRow;
  2541. private global::System.Data.DataRowAction eventAction;
  2542. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2543. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2544. public ПреподавателиRowChangeEvent(ПреподавателиRow row, global::System.Data.DataRowAction action) {
  2545. this.eventRow = row;
  2546. this.eventAction = action;
  2547. }
  2548. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2549. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2550. public ПреподавателиRow Row {
  2551. get {
  2552. return this.eventRow;
  2553. }
  2554. }
  2555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2556. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2557. public global::System.Data.DataRowAction Action {
  2558. get {
  2559. return this.eventAction;
  2560. }
  2561. }
  2562. }
  2563. /// <summary>
  2564. ///Row event argument class
  2565. ///</summary>
  2566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2567. public class РасписаниеRowChangeEvent : global::System.EventArgs {
  2568. private РасписаниеRow eventRow;
  2569. private global::System.Data.DataRowAction eventAction;
  2570. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2571. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2572. public РасписаниеRowChangeEvent(РасписаниеRow row, global::System.Data.DataRowAction action) {
  2573. this.eventRow = row;
  2574. this.eventAction = action;
  2575. }
  2576. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2577. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2578. public РасписаниеRow Row {
  2579. get {
  2580. return this.eventRow;
  2581. }
  2582. }
  2583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2585. public global::System.Data.DataRowAction Action {
  2586. get {
  2587. return this.eventAction;
  2588. }
  2589. }
  2590. }
  2591. }
  2592. }
  2593. namespace ШампороваЯИ3.ШампороваЯИ3DataSetTableAdapters {
  2594. /// <summary>
  2595. ///Represents the connection and commands used to retrieve and save data.
  2596. ///</summary>
  2597. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  2598. [global::System.ComponentModel.ToolboxItem(true)]
  2599. [global::System.ComponentModel.DataObjectAttribute(true)]
  2600. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  2601. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  2602. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2603. public partial class АудиторияTableAdapter : global::System.ComponentModel.Component {
  2604. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  2605. private global::System.Data.SqlClient.SqlConnection _connection;
  2606. private global::System.Data.SqlClient.SqlTransaction _transaction;
  2607. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  2608. private bool _clearBeforeFill;
  2609. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2610. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2611. public АудиторияTableAdapter() {
  2612. this.ClearBeforeFill = true;
  2613. }
  2614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2615. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2616. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  2617. get {
  2618. if ((this._adapter == null)) {
  2619. this.InitAdapter();
  2620. }
  2621. return this._adapter;
  2622. }
  2623. }
  2624. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2625. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2626. internal global::System.Data.SqlClient.SqlConnection Connection {
  2627. get {
  2628. if ((this._connection == null)) {
  2629. this.InitConnection();
  2630. }
  2631. return this._connection;
  2632. }
  2633. set {
  2634. this._connection = value;
  2635. if ((this.Adapter.InsertCommand != null)) {
  2636. this.Adapter.InsertCommand.Connection = value;
  2637. }
  2638. if ((this.Adapter.DeleteCommand != null)) {
  2639. this.Adapter.DeleteCommand.Connection = value;
  2640. }
  2641. if ((this.Adapter.UpdateCommand != null)) {
  2642. this.Adapter.UpdateCommand.Connection = value;
  2643. }
  2644. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2645. if ((this.CommandCollection[i] != null)) {
  2646. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  2647. }
  2648. }
  2649. }
  2650. }
  2651. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2652. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2653. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  2654. get {
  2655. return this._transaction;
  2656. }
  2657. set {
  2658. this._transaction = value;
  2659. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2660. this.CommandCollection[i].Transaction = this._transaction;
  2661. }
  2662. if (((this.Adapter != null)
  2663. && (this.Adapter.DeleteCommand != null))) {
  2664. this.Adapter.DeleteCommand.Transaction = this._transaction;
  2665. }
  2666. if (((this.Adapter != null)
  2667. && (this.Adapter.InsertCommand != null))) {
  2668. this.Adapter.InsertCommand.Transaction = this._transaction;
  2669. }
  2670. if (((this.Adapter != null)
  2671. && (this.Adapter.UpdateCommand != null))) {
  2672. this.Adapter.UpdateCommand.Transaction = this._transaction;
  2673. }
  2674. }
  2675. }
  2676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2677. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2678. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  2679. get {
  2680. if ((this._commandCollection == null)) {
  2681. this.InitCommandCollection();
  2682. }
  2683. return this._commandCollection;
  2684. }
  2685. }
  2686. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2687. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2688. public bool ClearBeforeFill {
  2689. get {
  2690. return this._clearBeforeFill;
  2691. }
  2692. set {
  2693. this._clearBeforeFill = value;
  2694. }
  2695. }
  2696. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2697. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2698. private void InitAdapter() {
  2699. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  2700. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  2701. tableMapping.SourceTable = "Table";
  2702. tableMapping.DataSetTable = "Аудитория";
  2703. tableMapping.ColumnMappings.Add("Код аудитории", "Код аудитории");
  2704. tableMapping.ColumnMappings.Add("Здание", "Здание");
  2705. tableMapping.ColumnMappings.Add("Этаж", "Этаж");
  2706. tableMapping.ColumnMappings.Add("Номер", "Номер");
  2707. tableMapping.ColumnMappings.Add("Номер записи", "Номер записи");
  2708. this._adapter.TableMappings.Add(tableMapping);
  2709. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  2710. this._adapter.DeleteCommand.Connection = this.Connection;
  2711. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Аудитория] WHERE (([Код аудитории] = @Original_Код_аудитории) AND ((@IsNull_Здание = 1 AND [Здание] IS NULL) OR ([Здание] = @Original_Здание)) AND ((@IsNull_Этаж = 1 AND [Этаж] IS NULL) OR ([Этаж] = @Original_Этаж)) AND ((@IsNull_Номер = 1 AND [Номер] IS NULL) OR ([Номер] = @Original_Номер)) AND ([Номер записи] = @Original_Номер_записи))";
  2712. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  2713. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_аудитории", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код аудитории", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2714. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Здание", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Здание", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  2715. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Здание", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Здание", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2716. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Этаж", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Этаж", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  2717. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Этаж", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Этаж", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2718. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Номер", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  2719. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Номер", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2720. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Номер_записи", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер записи", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2721. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  2722. this._adapter.InsertCommand.Connection = this.Connection;
  2723. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Аудитория] ([Код аудитории], [Здание], [Этаж], [Номер], [Номер записи]) VALUES (@Код_аудитории, @Здание, @Этаж, @Номер, @Номер_записи);
  2724. SELECT [Код аудитории], Здание, Этаж, Номер, [Номер записи] FROM Аудитория WHERE ([Код аудитории] = @Код_аудитории)";
  2725. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  2726. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_аудитории", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код аудитории", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2727. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Здание", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Здание", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2728. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Этаж", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Этаж", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2729. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Номер", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2730. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Номер_записи", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер записи", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2731. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  2732. this._adapter.UpdateCommand.Connection = this.Connection;
  2733. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Аудитория] SET [Код аудитории] = @Код_аудитории, [Здание] = @Здание, [Этаж] = @Этаж, [Номер] = @Номер, [Номер записи] = @Номер_записи WHERE (([Код аудитории] = @Original_Код_аудитории) AND ((@IsNull_Здание = 1 AND [Здание] IS NULL) OR ([Здание] = @Original_Здание)) AND ((@IsNull_Этаж = 1 AND [Этаж] IS NULL) OR ([Этаж] = @Original_Этаж)) AND ((@IsNull_Номер = 1 AND [Номер] IS NULL) OR ([Номер] = @Original_Номер)) AND ([Номер записи] = @Original_Номер_записи));
  2734. SELECT [Код аудитории], Здание, Этаж, Номер, [Номер записи] FROM Аудитория WHERE ([Код аудитории] = @Код_аудитории)";
  2735. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  2736. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_аудитории", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код аудитории", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2737. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Здание", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Здание", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2738. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Этаж", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Этаж", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2739. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Номер", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2740. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Номер_записи", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер записи", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2741. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_аудитории", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код аудитории", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2742. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Здание", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Здание", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  2743. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Здание", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Здание", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2744. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Этаж", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Этаж", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  2745. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Этаж", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Этаж", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2746. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Номер", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  2747. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Номер", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2748. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Номер_записи", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер записи", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2749. }
  2750. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2751. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2752. private void InitConnection() {
  2753. this._connection = new global::System.Data.SqlClient.SqlConnection();
  2754. this._connection.ConnectionString = global::ШампороваЯИ3.Properties.Settings.Default.ШампороваЯИ3ConnectionString;
  2755. }
  2756. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2757. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2758. private void InitCommandCollection() {
  2759. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  2760. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  2761. this._commandCollection[0].Connection = this.Connection;
  2762. this._commandCollection[0].CommandText = "SELECT [Код аудитории], Здание, Этаж, Номер, [Номер записи] FROM dbo.Аудитория";
  2763. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  2764. }
  2765. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2766. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2767. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2768. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  2769. public virtual int Fill(ШампороваЯИ3DataSet.АудиторияDataTable dataTable) {
  2770. this.Adapter.SelectCommand = this.CommandCollection[0];
  2771. if ((this.ClearBeforeFill == true)) {
  2772. dataTable.Clear();
  2773. }
  2774. int returnValue = this.Adapter.Fill(dataTable);
  2775. return returnValue;
  2776. }
  2777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2779. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2780. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  2781. public virtual ШампороваЯИ3DataSet.АудиторияDataTable GetData() {
  2782. this.Adapter.SelectCommand = this.CommandCollection[0];
  2783. ШампороваЯИ3DataSet.АудиторияDataTable dataTable = new ШампороваЯИ3DataSet.АудиторияDataTable();
  2784. this.Adapter.Fill(dataTable);
  2785. return dataTable;
  2786. }
  2787. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2788. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2789. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2790. public virtual int Update(ШампороваЯИ3DataSet.АудиторияDataTable dataTable) {
  2791. return this.Adapter.Update(dataTable);
  2792. }
  2793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2794. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2795. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2796. public virtual int Update(ШампороваЯИ3DataSet dataSet) {
  2797. return this.Adapter.Update(dataSet, "Аудитория");
  2798. }
  2799. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2800. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2801. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2802. public virtual int Update(global::System.Data.DataRow dataRow) {
  2803. return this.Adapter.Update(new global::System.Data.DataRow[] {
  2804. dataRow});
  2805. }
  2806. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2807. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2808. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2809. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  2810. return this.Adapter.Update(dataRows);
  2811. }
  2812. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2813. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2814. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2815. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  2816. public virtual int Delete(int Original_Код_аудитории, string Original_Здание, global::System.Nullable<int> Original_Этаж, string Original_Номер, int Original_Номер_записи) {
  2817. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_Код_аудитории));
  2818. if ((Original_Здание == null)) {
  2819. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  2820. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  2821. }
  2822. else {
  2823. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  2824. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Здание));
  2825. }
  2826. if ((Original_Этаж.HasValue == true)) {
  2827. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  2828. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_Этаж.Value));
  2829. }
  2830. else {
  2831. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  2832. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  2833. }
  2834. if ((Original_Номер == null)) {
  2835. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  2836. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  2837. }
  2838. else {
  2839. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  2840. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Номер));
  2841. }
  2842. this.Adapter.DeleteCommand.Parameters[7].Value = ((int)(Original_Номер_записи));
  2843. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  2844. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  2845. != global::System.Data.ConnectionState.Open)) {
  2846. this.Adapter.DeleteCommand.Connection.Open();
  2847. }
  2848. try {
  2849. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  2850. return returnValue;
  2851. }
  2852. finally {
  2853. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  2854. this.Adapter.DeleteCommand.Connection.Close();
  2855. }
  2856. }
  2857. }
  2858. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2859. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2860. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2861. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  2862. public virtual int Insert(int Код_аудитории, string Здание, global::System.Nullable<int> Этаж, string Номер, int Номер_записи) {
  2863. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(Код_аудитории));
  2864. if ((Здание == null)) {
  2865. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  2866. }
  2867. else {
  2868. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Здание));
  2869. }
  2870. if ((Этаж.HasValue == true)) {
  2871. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Этаж.Value));
  2872. }
  2873. else {
  2874. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  2875. }
  2876. if ((Номер == null)) {
  2877. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  2878. }
  2879. else {
  2880. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Номер));
  2881. }
  2882. this.Adapter.InsertCommand.Parameters[4].Value = ((int)(Номер_записи));
  2883. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  2884. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  2885. != global::System.Data.ConnectionState.Open)) {
  2886. this.Adapter.InsertCommand.Connection.Open();
  2887. }
  2888. try {
  2889. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  2890. return returnValue;
  2891. }
  2892. finally {
  2893. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  2894. this.Adapter.InsertCommand.Connection.Close();
  2895. }
  2896. }
  2897. }
  2898. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2899. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2900. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2901. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  2902. public virtual int Update(int Код_аудитории, string Здание, global::System.Nullable<int> Этаж, string Номер, int Номер_записи, int Original_Код_аудитории, string Original_Здание, global::System.Nullable<int> Original_Этаж, string Original_Номер, int Original_Номер_записи) {
  2903. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(Код_аудитории));
  2904. if ((Здание == null)) {
  2905. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  2906. }
  2907. else {
  2908. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Здание));
  2909. }
  2910. if ((Этаж.HasValue == true)) {
  2911. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Этаж.Value));
  2912. }
  2913. else {
  2914. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  2915. }
  2916. if ((Номер == null)) {
  2917. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  2918. }
  2919. else {
  2920. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Номер));
  2921. }
  2922. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Номер_записи));
  2923. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_Код_аудитории));
  2924. if ((Original_Здание == null)) {
  2925. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  2926. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  2927. }
  2928. else {
  2929. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  2930. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Здание));
  2931. }
  2932. if ((Original_Этаж.HasValue == true)) {
  2933. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  2934. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_Этаж.Value));
  2935. }
  2936. else {
  2937. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  2938. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  2939. }
  2940. if ((Original_Номер == null)) {
  2941. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  2942. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  2943. }
  2944. else {
  2945. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  2946. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_Номер));
  2947. }
  2948. this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(Original_Номер_записи));
  2949. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  2950. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  2951. != global::System.Data.ConnectionState.Open)) {
  2952. this.Adapter.UpdateCommand.Connection.Open();
  2953. }
  2954. try {
  2955. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  2956. return returnValue;
  2957. }
  2958. finally {
  2959. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  2960. this.Adapter.UpdateCommand.Connection.Close();
  2961. }
  2962. }
  2963. }
  2964. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2965. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2966. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2967. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  2968. public virtual int Update(string Здание, global::System.Nullable<int> Этаж, string Номер, int Номер_записи, int Original_Код_аудитории, string Original_Здание, global::System.Nullable<int> Original_Этаж, string Original_Номер, int Original_Номер_записи) {
  2969. return this.Update(Original_Код_аудитории, Здание, Этаж, Номер, Номер_записи, Original_Код_аудитории, Original_Здание, Original_Этаж, Original_Номер, Original_Номер_записи);
  2970. }
  2971. }
  2972. /// <summary>
  2973. ///Represents the connection and commands used to retrieve and save data.
  2974. ///</summary>
  2975. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  2976. [global::System.ComponentModel.ToolboxItem(true)]
  2977. [global::System.ComponentModel.DataObjectAttribute(true)]
  2978. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  2979. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  2980. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2981. public partial class ГруппаTableAdapter : global::System.ComponentModel.Component {
  2982. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  2983. private global::System.Data.SqlClient.SqlConnection _connection;
  2984. private global::System.Data.SqlClient.SqlTransaction _transaction;
  2985. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  2986. private bool _clearBeforeFill;
  2987. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2988. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2989. public ГруппаTableAdapter() {
  2990. this.ClearBeforeFill = true;
  2991. }
  2992. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2993. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2994. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  2995. get {
  2996. if ((this._adapter == null)) {
  2997. this.InitAdapter();
  2998. }
  2999. return this._adapter;
  3000. }
  3001. }
  3002. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3003. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3004. internal global::System.Data.SqlClient.SqlConnection Connection {
  3005. get {
  3006. if ((this._connection == null)) {
  3007. this.InitConnection();
  3008. }
  3009. return this._connection;
  3010. }
  3011. set {
  3012. this._connection = value;
  3013. if ((this.Adapter.InsertCommand != null)) {
  3014. this.Adapter.InsertCommand.Connection = value;
  3015. }
  3016. if ((this.Adapter.DeleteCommand != null)) {
  3017. this.Adapter.DeleteCommand.Connection = value;
  3018. }
  3019. if ((this.Adapter.UpdateCommand != null)) {
  3020. this.Adapter.UpdateCommand.Connection = value;
  3021. }
  3022. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3023. if ((this.CommandCollection[i] != null)) {
  3024. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  3025. }
  3026. }
  3027. }
  3028. }
  3029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3031. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  3032. get {
  3033. return this._transaction;
  3034. }
  3035. set {
  3036. this._transaction = value;
  3037. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3038. this.CommandCollection[i].Transaction = this._transaction;
  3039. }
  3040. if (((this.Adapter != null)
  3041. && (this.Adapter.DeleteCommand != null))) {
  3042. this.Adapter.DeleteCommand.Transaction = this._transaction;
  3043. }
  3044. if (((this.Adapter != null)
  3045. && (this.Adapter.InsertCommand != null))) {
  3046. this.Adapter.InsertCommand.Transaction = this._transaction;
  3047. }
  3048. if (((this.Adapter != null)
  3049. && (this.Adapter.UpdateCommand != null))) {
  3050. this.Adapter.UpdateCommand.Transaction = this._transaction;
  3051. }
  3052. }
  3053. }
  3054. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3055. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3056. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  3057. get {
  3058. if ((this._commandCollection == null)) {
  3059. this.InitCommandCollection();
  3060. }
  3061. return this._commandCollection;
  3062. }
  3063. }
  3064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3065. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3066. public bool ClearBeforeFill {
  3067. get {
  3068. return this._clearBeforeFill;
  3069. }
  3070. set {
  3071. this._clearBeforeFill = value;
  3072. }
  3073. }
  3074. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3075. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3076. private void InitAdapter() {
  3077. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  3078. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  3079. tableMapping.SourceTable = "Table";
  3080. tableMapping.DataSetTable = "Группа";
  3081. tableMapping.ColumnMappings.Add("Код группы", "Код группы");
  3082. tableMapping.ColumnMappings.Add("Факультет", "Факультет");
  3083. tableMapping.ColumnMappings.Add("Специальность", "Специальность");
  3084. tableMapping.ColumnMappings.Add("Курс", "Курс");
  3085. tableMapping.ColumnMappings.Add("Номер", "Номер");
  3086. tableMapping.ColumnMappings.Add("Номер записи", "Номер записи");
  3087. this._adapter.TableMappings.Add(tableMapping);
  3088. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  3089. this._adapter.DeleteCommand.Connection = this.Connection;
  3090. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Группа] WHERE (([Код группы] = @Original_Код_группы) AND ((@IsNull_Факультет = 1 AND [Факультет] IS NULL) OR ([Факультет] = @Original_Факультет)) AND ((@IsNull_Специальность = 1 AND [Специальность] IS NULL) OR ([Специальность] = @Original_Специальность)) AND ((@IsNull_Курс = 1 AND [Курс] IS NULL) OR ([Курс] = @Original_Курс)) AND ((@IsNull_Номер = 1 AND [Номер] IS NULL) OR ([Номер] = @Original_Номер)) AND ([Номер записи] = @Original_Номер_записи))";
  3091. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  3092. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_группы", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код группы", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3093. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Факультет", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Факультет", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3094. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Факультет", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Факультет", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3095. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Специальность", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Специальность", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3096. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Специальность", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Специальность", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3097. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Курс", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Курс", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3098. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Курс", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Курс", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3099. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Номер", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3100. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Номер", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3101. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Номер_записи", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер записи", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3102. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  3103. this._adapter.InsertCommand.Connection = this.Connection;
  3104. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Группа] ([Код группы], [Факультет], [Специальность], [Курс], [Номер], [Номер записи]) VALUES (@Код_группы, @Факультет, @Специальность, @Курс, @Номер, @Номер_записи);
  3105. SELECT [Код группы], Факультет, Специальность, Курс, Номер, [Номер записи] FROM Группа WHERE ([Код группы] = @Код_группы)";
  3106. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  3107. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_группы", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код группы", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3108. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Факультет", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Факультет", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3109. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Специальность", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Специальность", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3110. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Курс", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Курс", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3111. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Номер", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3112. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Номер_записи", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер записи", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3113. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  3114. this._adapter.UpdateCommand.Connection = this.Connection;
  3115. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Группа] SET [Код группы] = @Код_группы, [Факультет] = @Факультет, [Специальность] = @Специальность, [Курс] = @Курс, [Номер] = @Номер, [Номер записи] = @Номер_записи WHERE (([Код группы] = @Original_Код_группы) AND ((@IsNull_Факультет = 1 AND [Факультет] IS NULL) OR ([Факультет] = @Original_Факультет)) AND ((@IsNull_Специальность = 1 AND [Специальность] IS NULL) OR ([Специальность] = @Original_Специальность)) AND ((@IsNull_Курс = 1 AND [Курс] IS NULL) OR ([Курс] = @Original_Курс)) AND ((@IsNull_Номер = 1 AND [Номер] IS NULL) OR ([Номер] = @Original_Номер)) AND ([Номер записи] = @Original_Номер_записи));
  3116. SELECT [Код группы], Факультет, Специальность, Курс, Номер, [Номер записи] FROM Группа WHERE ([Код группы] = @Код_группы)";
  3117. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  3118. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_группы", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код группы", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3119. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Факультет", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Факультет", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3120. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Специальность", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Специальность", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3121. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Курс", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Курс", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3122. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Номер", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3123. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Номер_записи", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер записи", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3124. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_группы", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код группы", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3125. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Факультет", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Факультет", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3126. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Факультет", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Факультет", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3127. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Специальность", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Специальность", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3128. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Специальность", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Специальность", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3129. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Курс", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Курс", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3130. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Курс", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Курс", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3131. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Номер", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3132. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Номер", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3133. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Номер_записи", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер записи", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3134. }
  3135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3136. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3137. private void InitConnection() {
  3138. this._connection = new global::System.Data.SqlClient.SqlConnection();
  3139. this._connection.ConnectionString = global::ШампороваЯИ3.Properties.Settings.Default.ШампороваЯИ3ConnectionString;
  3140. }
  3141. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3142. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3143. private void InitCommandCollection() {
  3144. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  3145. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  3146. this._commandCollection[0].Connection = this.Connection;
  3147. this._commandCollection[0].CommandText = "SELECT [Код группы], Факультет, Специальность, Курс, Номер, [Номер записи] FROM d" +
  3148. "bo.Группа";
  3149. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  3150. }
  3151. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3152. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3153. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3154. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  3155. public virtual int Fill(ШампороваЯИ3DataSet.ГруппаDataTable dataTable) {
  3156. this.Adapter.SelectCommand = this.CommandCollection[0];
  3157. if ((this.ClearBeforeFill == true)) {
  3158. dataTable.Clear();
  3159. }
  3160. int returnValue = this.Adapter.Fill(dataTable);
  3161. return returnValue;
  3162. }
  3163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3164. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3165. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3166. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  3167. public virtual ШампороваЯИ3DataSet.ГруппаDataTable GetData() {
  3168. this.Adapter.SelectCommand = this.CommandCollection[0];
  3169. ШампороваЯИ3DataSet.ГруппаDataTable dataTable = new ШампороваЯИ3DataSet.ГруппаDataTable();
  3170. this.Adapter.Fill(dataTable);
  3171. return dataTable;
  3172. }
  3173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3175. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3176. public virtual int Update(ШампороваЯИ3DataSet.ГруппаDataTable dataTable) {
  3177. return this.Adapter.Update(dataTable);
  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. public virtual int Update(ШампороваЯИ3DataSet dataSet) {
  3183. return this.Adapter.Update(dataSet, "Группа");
  3184. }
  3185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3186. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3187. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3188. public virtual int Update(global::System.Data.DataRow dataRow) {
  3189. return this.Adapter.Update(new global::System.Data.DataRow[] {
  3190. dataRow});
  3191. }
  3192. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3193. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3194. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3195. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  3196. return this.Adapter.Update(dataRows);
  3197. }
  3198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3199. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3200. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3201. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  3202. public virtual int Delete(int Original_Код_группы, string Original_Факультет, string Original_Специальность, string Original_Курс, global::System.Nullable<int> Original_Номер, int Original_Номер_записи) {
  3203. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_Код_группы));
  3204. if ((Original_Факультет == null)) {
  3205. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  3206. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  3207. }
  3208. else {
  3209. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  3210. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Факультет));
  3211. }
  3212. if ((Original_Специальность == null)) {
  3213. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  3214. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  3215. }
  3216. else {
  3217. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  3218. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Специальность));
  3219. }
  3220. if ((Original_Курс == null)) {
  3221. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  3222. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  3223. }
  3224. else {
  3225. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  3226. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Курс));
  3227. }
  3228. if ((Original_Номер.HasValue == true)) {
  3229. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  3230. this.Adapter.DeleteCommand.Parameters[8].Value = ((int)(Original_Номер.Value));
  3231. }
  3232. else {
  3233. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  3234. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  3235. }
  3236. this.Adapter.DeleteCommand.Parameters[9].Value = ((int)(Original_Номер_записи));
  3237. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  3238. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3239. != global::System.Data.ConnectionState.Open)) {
  3240. this.Adapter.DeleteCommand.Connection.Open();
  3241. }
  3242. try {
  3243. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  3244. return returnValue;
  3245. }
  3246. finally {
  3247. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3248. this.Adapter.DeleteCommand.Connection.Close();
  3249. }
  3250. }
  3251. }
  3252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3254. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3255. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  3256. public virtual int Insert(int Код_группы, string Факультет, string Специальность, string Курс, global::System.Nullable<int> Номер, int Номер_записи) {
  3257. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(Код_группы));
  3258. if ((Факультет == null)) {
  3259. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  3260. }
  3261. else {
  3262. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Факультет));
  3263. }
  3264. if ((Специальность == null)) {
  3265. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  3266. }
  3267. else {
  3268. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Специальность));
  3269. }
  3270. if ((Курс == null)) {
  3271. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  3272. }
  3273. else {
  3274. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Курс));
  3275. }
  3276. if ((Номер.HasValue == true)) {
  3277. this.Adapter.InsertCommand.Parameters[4].Value = ((int)(Номер.Value));
  3278. }
  3279. else {
  3280. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  3281. }
  3282. this.Adapter.InsertCommand.Parameters[5].Value = ((int)(Номер_записи));
  3283. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  3284. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3285. != global::System.Data.ConnectionState.Open)) {
  3286. this.Adapter.InsertCommand.Connection.Open();
  3287. }
  3288. try {
  3289. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  3290. return returnValue;
  3291. }
  3292. finally {
  3293. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3294. this.Adapter.InsertCommand.Connection.Close();
  3295. }
  3296. }
  3297. }
  3298. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3299. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3300. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3301. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3302. public virtual int Update(int Код_группы, string Факультет, string Специальность, string Курс, global::System.Nullable<int> Номер, int Номер_записи, int Original_Код_группы, string Original_Факультет, string Original_Специальность, string Original_Курс, global::System.Nullable<int> Original_Номер, int Original_Номер_записи) {
  3303. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(Код_группы));
  3304. if ((Факультет == null)) {
  3305. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  3306. }
  3307. else {
  3308. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Факультет));
  3309. }
  3310. if ((Специальность == null)) {
  3311. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  3312. }
  3313. else {
  3314. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Специальность));
  3315. }
  3316. if ((Курс == null)) {
  3317. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  3318. }
  3319. else {
  3320. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Курс));
  3321. }
  3322. if ((Номер.HasValue == true)) {
  3323. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Номер.Value));
  3324. }
  3325. else {
  3326. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  3327. }
  3328. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Номер_записи));
  3329. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_Код_группы));
  3330. if ((Original_Факультет == null)) {
  3331. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  3332. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  3333. }
  3334. else {
  3335. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  3336. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_Факультет));
  3337. }
  3338. if ((Original_Специальность == null)) {
  3339. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  3340. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  3341. }
  3342. else {
  3343. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  3344. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_Специальность));
  3345. }
  3346. if ((Original_Курс == null)) {
  3347. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  3348. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  3349. }
  3350. else {
  3351. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  3352. this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_Курс));
  3353. }
  3354. if ((Original_Номер.HasValue == true)) {
  3355. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
  3356. this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(Original_Номер.Value));
  3357. }
  3358. else {
  3359. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
  3360. this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
  3361. }
  3362. this.Adapter.UpdateCommand.Parameters[15].Value = ((int)(Original_Номер_записи));
  3363. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  3364. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3365. != global::System.Data.ConnectionState.Open)) {
  3366. this.Adapter.UpdateCommand.Connection.Open();
  3367. }
  3368. try {
  3369. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  3370. return returnValue;
  3371. }
  3372. finally {
  3373. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3374. this.Adapter.UpdateCommand.Connection.Close();
  3375. }
  3376. }
  3377. }
  3378. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3379. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3380. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3381. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3382. public virtual int Update(string Факультет, string Специальность, string Курс, global::System.Nullable<int> Номер, int Номер_записи, int Original_Код_группы, string Original_Факультет, string Original_Специальность, string Original_Курс, global::System.Nullable<int> Original_Номер, int Original_Номер_записи) {
  3383. return this.Update(Original_Код_группы, Факультет, Специальность, Курс, Номер, Номер_записи, Original_Код_группы, Original_Факультет, Original_Специальность, Original_Курс, Original_Номер, Original_Номер_записи);
  3384. }
  3385. }
  3386. /// <summary>
  3387. ///Represents the connection and commands used to retrieve and save data.
  3388. ///</summary>
  3389. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3390. [global::System.ComponentModel.ToolboxItem(true)]
  3391. [global::System.ComponentModel.DataObjectAttribute(true)]
  3392. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  3393. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3394. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3395. public partial class ЗанятиеTableAdapter : global::System.ComponentModel.Component {
  3396. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  3397. private global::System.Data.SqlClient.SqlConnection _connection;
  3398. private global::System.Data.SqlClient.SqlTransaction _transaction;
  3399. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  3400. private bool _clearBeforeFill;
  3401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3402. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3403. public ЗанятиеTableAdapter() {
  3404. this.ClearBeforeFill = true;
  3405. }
  3406. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3407. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3408. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  3409. get {
  3410. if ((this._adapter == null)) {
  3411. this.InitAdapter();
  3412. }
  3413. return this._adapter;
  3414. }
  3415. }
  3416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3418. internal global::System.Data.SqlClient.SqlConnection Connection {
  3419. get {
  3420. if ((this._connection == null)) {
  3421. this.InitConnection();
  3422. }
  3423. return this._connection;
  3424. }
  3425. set {
  3426. this._connection = value;
  3427. if ((this.Adapter.InsertCommand != null)) {
  3428. this.Adapter.InsertCommand.Connection = value;
  3429. }
  3430. if ((this.Adapter.DeleteCommand != null)) {
  3431. this.Adapter.DeleteCommand.Connection = value;
  3432. }
  3433. if ((this.Adapter.UpdateCommand != null)) {
  3434. this.Adapter.UpdateCommand.Connection = value;
  3435. }
  3436. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3437. if ((this.CommandCollection[i] != null)) {
  3438. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  3439. }
  3440. }
  3441. }
  3442. }
  3443. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3444. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3445. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  3446. get {
  3447. return this._transaction;
  3448. }
  3449. set {
  3450. this._transaction = value;
  3451. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3452. this.CommandCollection[i].Transaction = this._transaction;
  3453. }
  3454. if (((this.Adapter != null)
  3455. && (this.Adapter.DeleteCommand != null))) {
  3456. this.Adapter.DeleteCommand.Transaction = this._transaction;
  3457. }
  3458. if (((this.Adapter != null)
  3459. && (this.Adapter.InsertCommand != null))) {
  3460. this.Adapter.InsertCommand.Transaction = this._transaction;
  3461. }
  3462. if (((this.Adapter != null)
  3463. && (this.Adapter.UpdateCommand != null))) {
  3464. this.Adapter.UpdateCommand.Transaction = this._transaction;
  3465. }
  3466. }
  3467. }
  3468. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3469. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3470. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  3471. get {
  3472. if ((this._commandCollection == null)) {
  3473. this.InitCommandCollection();
  3474. }
  3475. return this._commandCollection;
  3476. }
  3477. }
  3478. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3479. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3480. public bool ClearBeforeFill {
  3481. get {
  3482. return this._clearBeforeFill;
  3483. }
  3484. set {
  3485. this._clearBeforeFill = value;
  3486. }
  3487. }
  3488. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3489. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3490. private void InitAdapter() {
  3491. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  3492. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  3493. tableMapping.SourceTable = "Table";
  3494. tableMapping.DataSetTable = "Занятие";
  3495. tableMapping.ColumnMappings.Add("Код занятия", "Код занятия");
  3496. tableMapping.ColumnMappings.Add("Тип занятия", "Тип занятия");
  3497. tableMapping.ColumnMappings.Add("Номер записи", "Номер записи");
  3498. this._adapter.TableMappings.Add(tableMapping);
  3499. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  3500. this._adapter.DeleteCommand.Connection = this.Connection;
  3501. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Занятие] WHERE (([Код занятия] = @Original_Код_занятия) AND ((" +
  3502. "@IsNull_Тип_занятия = 1 AND [Тип занятия] IS NULL) OR ([Тип занятия] = @Original" +
  3503. "_Тип_занятия)) AND ([Номер записи] = @Original_Номер_записи))";
  3504. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  3505. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_занятия", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код занятия", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3506. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Тип_занятия", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Тип занятия", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3507. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Тип_занятия", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Тип занятия", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3508. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Номер_записи", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер записи", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3509. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  3510. this._adapter.InsertCommand.Connection = this.Connection;
  3511. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Занятие] ([Код занятия], [Тип занятия], [Номер записи]) VALUES" +
  3512. " (@Код_занятия, @Тип_занятия, @Номер_записи);\r\nSELECT [Код занятия], [Тип заняти" +
  3513. "я], [Номер записи] FROM Занятие WHERE ([Код занятия] = @Код_занятия)";
  3514. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  3515. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_занятия", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код занятия", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3516. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Тип_занятия", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Тип занятия", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3517. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Номер_записи", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер записи", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3518. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  3519. this._adapter.UpdateCommand.Connection = this.Connection;
  3520. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Занятие] SET [Код занятия] = @Код_занятия, [Тип занятия] = @Тип_занятия, [Номер записи] = @Номер_записи WHERE (([Код занятия] = @Original_Код_занятия) AND ((@IsNull_Тип_занятия = 1 AND [Тип занятия] IS NULL) OR ([Тип занятия] = @Original_Тип_занятия)) AND ([Номер записи] = @Original_Номер_записи));
  3521. SELECT [Код занятия], [Тип занятия], [Номер записи] FROM Занятие WHERE ([Код занятия] = @Код_занятия)";
  3522. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  3523. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_занятия", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код занятия", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3524. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Тип_занятия", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Тип занятия", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3525. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Номер_записи", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер записи", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3526. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_занятия", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код занятия", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3527. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Тип_занятия", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Тип занятия", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3528. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Тип_занятия", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Тип занятия", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3529. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Номер_записи", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер записи", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3530. }
  3531. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3532. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3533. private void InitConnection() {
  3534. this._connection = new global::System.Data.SqlClient.SqlConnection();
  3535. this._connection.ConnectionString = global::ШампороваЯИ3.Properties.Settings.Default.ШампороваЯИ3ConnectionString;
  3536. }
  3537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3538. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3539. private void InitCommandCollection() {
  3540. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  3541. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  3542. this._commandCollection[0].Connection = this.Connection;
  3543. this._commandCollection[0].CommandText = "SELECT [Код занятия], [Тип занятия], [Номер записи] FROM dbo.Занятие";
  3544. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  3545. }
  3546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3548. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3549. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  3550. public virtual int Fill(ШампороваЯИ3DataSet.ЗанятиеDataTable dataTable) {
  3551. this.Adapter.SelectCommand = this.CommandCollection[0];
  3552. if ((this.ClearBeforeFill == true)) {
  3553. dataTable.Clear();
  3554. }
  3555. int returnValue = this.Adapter.Fill(dataTable);
  3556. return returnValue;
  3557. }
  3558. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3559. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3560. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3561. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  3562. public virtual ШампороваЯИ3DataSet.ЗанятиеDataTable GetData() {
  3563. this.Adapter.SelectCommand = this.CommandCollection[0];
  3564. ШампороваЯИ3DataSet.ЗанятиеDataTable dataTable = new ШампороваЯИ3DataSet.ЗанятиеDataTable();
  3565. this.Adapter.Fill(dataTable);
  3566. return dataTable;
  3567. }
  3568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3570. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3571. public virtual int Update(ШампороваЯИ3DataSet.ЗанятиеDataTable dataTable) {
  3572. return this.Adapter.Update(dataTable);
  3573. }
  3574. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3575. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3576. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3577. public virtual int Update(ШампороваЯИ3DataSet dataSet) {
  3578. return this.Adapter.Update(dataSet, "Занятие");
  3579. }
  3580. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3581. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3582. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3583. public virtual int Update(global::System.Data.DataRow dataRow) {
  3584. return this.Adapter.Update(new global::System.Data.DataRow[] {
  3585. dataRow});
  3586. }
  3587. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3588. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3589. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3590. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  3591. return this.Adapter.Update(dataRows);
  3592. }
  3593. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3594. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3595. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3596. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  3597. public virtual int Delete(int Original_Код_занятия, string Original_Тип_занятия, int Original_Номер_записи) {
  3598. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_Код_занятия));
  3599. if ((Original_Тип_занятия == null)) {
  3600. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  3601. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  3602. }
  3603. else {
  3604. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  3605. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Тип_занятия));
  3606. }
  3607. this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_Номер_записи));
  3608. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  3609. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3610. != global::System.Data.ConnectionState.Open)) {
  3611. this.Adapter.DeleteCommand.Connection.Open();
  3612. }
  3613. try {
  3614. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  3615. return returnValue;
  3616. }
  3617. finally {
  3618. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3619. this.Adapter.DeleteCommand.Connection.Close();
  3620. }
  3621. }
  3622. }
  3623. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3625. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3626. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  3627. public virtual int Insert(int Код_занятия, string Тип_занятия, int Номер_записи) {
  3628. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(Код_занятия));
  3629. if ((Тип_занятия == null)) {
  3630. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  3631. }
  3632. else {
  3633. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Тип_занятия));
  3634. }
  3635. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Номер_записи));
  3636. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  3637. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3638. != global::System.Data.ConnectionState.Open)) {
  3639. this.Adapter.InsertCommand.Connection.Open();
  3640. }
  3641. try {
  3642. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  3643. return returnValue;
  3644. }
  3645. finally {
  3646. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3647. this.Adapter.InsertCommand.Connection.Close();
  3648. }
  3649. }
  3650. }
  3651. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3652. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3653. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3654. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3655. public virtual int Update(int Код_занятия, string Тип_занятия, int Номер_записи, int Original_Код_занятия, string Original_Тип_занятия, int Original_Номер_записи) {
  3656. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(Код_занятия));
  3657. if ((Тип_занятия == null)) {
  3658. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  3659. }
  3660. else {
  3661. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Тип_занятия));
  3662. }
  3663. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Номер_записи));
  3664. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_Код_занятия));
  3665. if ((Original_Тип_занятия == null)) {
  3666. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  3667. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  3668. }
  3669. else {
  3670. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  3671. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Тип_занятия));
  3672. }
  3673. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_Номер_записи));
  3674. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  3675. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3676. != global::System.Data.ConnectionState.Open)) {
  3677. this.Adapter.UpdateCommand.Connection.Open();
  3678. }
  3679. try {
  3680. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  3681. return returnValue;
  3682. }
  3683. finally {
  3684. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3685. this.Adapter.UpdateCommand.Connection.Close();
  3686. }
  3687. }
  3688. }
  3689. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3690. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3691. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3692. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3693. public virtual int Update(string Тип_занятия, int Номер_записи, int Original_Код_занятия, string Original_Тип_занятия, int Original_Номер_записи) {
  3694. return this.Update(Original_Код_занятия, Тип_занятия, Номер_записи, Original_Код_занятия, Original_Тип_занятия, Original_Номер_записи);
  3695. }
  3696. }
  3697. /// <summary>
  3698. ///Represents the connection and commands used to retrieve and save data.
  3699. ///</summary>
  3700. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3701. [global::System.ComponentModel.ToolboxItem(true)]
  3702. [global::System.ComponentModel.DataObjectAttribute(true)]
  3703. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  3704. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3705. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3706. public partial class ПреподавателиTableAdapter : global::System.ComponentModel.Component {
  3707. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  3708. private global::System.Data.SqlClient.SqlConnection _connection;
  3709. private global::System.Data.SqlClient.SqlTransaction _transaction;
  3710. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  3711. private bool _clearBeforeFill;
  3712. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3713. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3714. public ПреподавателиTableAdapter() {
  3715. this.ClearBeforeFill = true;
  3716. }
  3717. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3718. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3719. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  3720. get {
  3721. if ((this._adapter == null)) {
  3722. this.InitAdapter();
  3723. }
  3724. return this._adapter;
  3725. }
  3726. }
  3727. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3728. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3729. internal global::System.Data.SqlClient.SqlConnection Connection {
  3730. get {
  3731. if ((this._connection == null)) {
  3732. this.InitConnection();
  3733. }
  3734. return this._connection;
  3735. }
  3736. set {
  3737. this._connection = value;
  3738. if ((this.Adapter.InsertCommand != null)) {
  3739. this.Adapter.InsertCommand.Connection = value;
  3740. }
  3741. if ((this.Adapter.DeleteCommand != null)) {
  3742. this.Adapter.DeleteCommand.Connection = value;
  3743. }
  3744. if ((this.Adapter.UpdateCommand != null)) {
  3745. this.Adapter.UpdateCommand.Connection = value;
  3746. }
  3747. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3748. if ((this.CommandCollection[i] != null)) {
  3749. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  3750. }
  3751. }
  3752. }
  3753. }
  3754. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3755. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3756. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  3757. get {
  3758. return this._transaction;
  3759. }
  3760. set {
  3761. this._transaction = value;
  3762. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3763. this.CommandCollection[i].Transaction = this._transaction;
  3764. }
  3765. if (((this.Adapter != null)
  3766. && (this.Adapter.DeleteCommand != null))) {
  3767. this.Adapter.DeleteCommand.Transaction = this._transaction;
  3768. }
  3769. if (((this.Adapter != null)
  3770. && (this.Adapter.InsertCommand != null))) {
  3771. this.Adapter.InsertCommand.Transaction = this._transaction;
  3772. }
  3773. if (((this.Adapter != null)
  3774. && (this.Adapter.UpdateCommand != null))) {
  3775. this.Adapter.UpdateCommand.Transaction = this._transaction;
  3776. }
  3777. }
  3778. }
  3779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3781. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  3782. get {
  3783. if ((this._commandCollection == null)) {
  3784. this.InitCommandCollection();
  3785. }
  3786. return this._commandCollection;
  3787. }
  3788. }
  3789. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3790. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3791. public bool ClearBeforeFill {
  3792. get {
  3793. return this._clearBeforeFill;
  3794. }
  3795. set {
  3796. this._clearBeforeFill = value;
  3797. }
  3798. }
  3799. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3800. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3801. private void InitAdapter() {
  3802. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  3803. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  3804. tableMapping.SourceTable = "Table";
  3805. tableMapping.DataSetTable = "Преподаватели";
  3806. tableMapping.ColumnMappings.Add("Код преподавателя", "Код преподавателя");
  3807. tableMapping.ColumnMappings.Add("Фамилия", "Фамилия");
  3808. tableMapping.ColumnMappings.Add("Имя", "Имя");
  3809. tableMapping.ColumnMappings.Add("Отчество", "Отчество");
  3810. tableMapping.ColumnMappings.Add("Номер записи", "Номер записи");
  3811. this._adapter.TableMappings.Add(tableMapping);
  3812. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  3813. this._adapter.DeleteCommand.Connection = this.Connection;
  3814. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Преподаватели] WHERE (([Код преподавателя] = @Original_Код_преподавателя) AND ((@IsNull_Фамилия = 1 AND [Фамилия] IS NULL) OR ([Фамилия] = @Original_Фамилия)) AND ((@IsNull_Имя = 1 AND [Имя] IS NULL) OR ([Имя] = @Original_Имя)) AND ((@IsNull_Отчество = 1 AND [Отчество] IS NULL) OR ([Отчество] = @Original_Отчество)) AND ([Номер записи] = @Original_Номер_записи))";
  3815. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  3816. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_преподавателя", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код преподавателя", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3817. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Фамилия", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3818. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Фамилия", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3819. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Имя", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Имя", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3820. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Имя", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Имя", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3821. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Отчество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Отчество", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3822. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Отчество", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Отчество", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3823. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Номер_записи", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер записи", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3824. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  3825. this._adapter.InsertCommand.Connection = this.Connection;
  3826. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Преподаватели] ([Код преподавателя], [Фамилия], [Имя], [Отчество], [Номер записи]) VALUES (@Код_преподавателя, @Фамилия, @Имя, @Отчество, @Номер_записи);
  3827. SELECT [Код преподавателя], Фамилия, Имя, Отчество, [Номер записи] FROM Преподаватели WHERE ([Код преподавателя] = @Код_преподавателя)";
  3828. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  3829. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_преподавателя", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код преподавателя", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3830. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Фамилия", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3831. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Имя", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Имя", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3832. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Отчество", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Отчество", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3833. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Номер_записи", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер записи", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3834. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  3835. this._adapter.UpdateCommand.Connection = this.Connection;
  3836. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Преподаватели] SET [Код преподавателя] = @Код_преподавателя, [Фамилия] = @Фамилия, [Имя] = @Имя, [Отчество] = @Отчество, [Номер записи] = @Номер_записи WHERE (([Код преподавателя] = @Original_Код_преподавателя) AND ((@IsNull_Фамилия = 1 AND [Фамилия] IS NULL) OR ([Фамилия] = @Original_Фамилия)) AND ((@IsNull_Имя = 1 AND [Имя] IS NULL) OR ([Имя] = @Original_Имя)) AND ((@IsNull_Отчество = 1 AND [Отчество] IS NULL) OR ([Отчество] = @Original_Отчество)) AND ([Номер записи] = @Original_Номер_записи));
  3837. SELECT [Код преподавателя], Фамилия, Имя, Отчество, [Номер записи] FROM Преподаватели WHERE ([Код преподавателя] = @Код_преподавателя)";
  3838. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  3839. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_преподавателя", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код преподавателя", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3840. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Фамилия", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3841. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Имя", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Имя", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3842. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Отчество", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Отчество", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3843. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Номер_записи", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер записи", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3844. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_преподавателя", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код преподавателя", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3845. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Фамилия", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3846. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Фамилия", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3847. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Имя", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Имя", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3848. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Имя", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Имя", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3849. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Отчество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Отчество", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3850. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Отчество", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Отчество", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3851. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Номер_записи", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер записи", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3852. }
  3853. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3854. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3855. private void InitConnection() {
  3856. this._connection = new global::System.Data.SqlClient.SqlConnection();
  3857. this._connection.ConnectionString = global::ШампороваЯИ3.Properties.Settings.Default.ШампороваЯИ3ConnectionString;
  3858. }
  3859. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3860. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3861. private void InitCommandCollection() {
  3862. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  3863. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  3864. this._commandCollection[0].Connection = this.Connection;
  3865. this._commandCollection[0].CommandText = "SELECT [Код преподавателя], Фамилия, Имя, Отчество, [Номер записи] FROM dbo.Препо" +
  3866. "даватели";
  3867. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  3868. }
  3869. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3870. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3871. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3872. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  3873. public virtual int Fill(ШампороваЯИ3DataSet.ПреподавателиDataTable dataTable) {
  3874. this.Adapter.SelectCommand = this.CommandCollection[0];
  3875. if ((this.ClearBeforeFill == true)) {
  3876. dataTable.Clear();
  3877. }
  3878. int returnValue = this.Adapter.Fill(dataTable);
  3879. return returnValue;
  3880. }
  3881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3883. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3884. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  3885. public virtual ШампороваЯИ3DataSet.ПреподавателиDataTable GetData() {
  3886. this.Adapter.SelectCommand = this.CommandCollection[0];
  3887. ШампороваЯИ3DataSet.ПреподавателиDataTable dataTable = new ШампороваЯИ3DataSet.ПреподавателиDataTable();
  3888. this.Adapter.Fill(dataTable);
  3889. return dataTable;
  3890. }
  3891. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3892. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3893. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3894. public virtual int Update(ШампороваЯИ3DataSet.ПреподавателиDataTable dataTable) {
  3895. return this.Adapter.Update(dataTable);
  3896. }
  3897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3898. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3899. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3900. public virtual int Update(ШампороваЯИ3DataSet dataSet) {
  3901. return this.Adapter.Update(dataSet, "Преподаватели");
  3902. }
  3903. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3904. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3905. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3906. public virtual int Update(global::System.Data.DataRow dataRow) {
  3907. return this.Adapter.Update(new global::System.Data.DataRow[] {
  3908. dataRow});
  3909. }
  3910. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3911. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3912. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3913. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  3914. return this.Adapter.Update(dataRows);
  3915. }
  3916. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3917. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3918. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3919. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  3920. public virtual int Delete(int Original_Код_преподавателя, string Original_Фамилия, string Original_Имя, string Original_Отчество, int Original_Номер_записи) {
  3921. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_Код_преподавателя));
  3922. if ((Original_Фамилия == null)) {
  3923. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  3924. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  3925. }
  3926. else {
  3927. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  3928. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Фамилия));
  3929. }
  3930. if ((Original_Имя == null)) {
  3931. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  3932. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  3933. }
  3934. else {
  3935. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  3936. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Имя));
  3937. }
  3938. if ((Original_Отчество == null)) {
  3939. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  3940. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  3941. }
  3942. else {
  3943. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  3944. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Отчество));
  3945. }
  3946. this.Adapter.DeleteCommand.Parameters[7].Value = ((int)(Original_Номер_записи));
  3947. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  3948. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3949. != global::System.Data.ConnectionState.Open)) {
  3950. this.Adapter.DeleteCommand.Connection.Open();
  3951. }
  3952. try {
  3953. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  3954. return returnValue;
  3955. }
  3956. finally {
  3957. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3958. this.Adapter.DeleteCommand.Connection.Close();
  3959. }
  3960. }
  3961. }
  3962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3963. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3964. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3965. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  3966. public virtual int Insert(int Код_преподавателя, string Фамилия, string Имя, string Отчество, int Номер_записи) {
  3967. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(Код_преподавателя));
  3968. if ((Фамилия == null)) {
  3969. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  3970. }
  3971. else {
  3972. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Фамилия));
  3973. }
  3974. if ((Имя == null)) {
  3975. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  3976. }
  3977. else {
  3978. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Имя));
  3979. }
  3980. if ((Отчество == null)) {
  3981. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  3982. }
  3983. else {
  3984. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Отчество));
  3985. }
  3986. this.Adapter.InsertCommand.Parameters[4].Value = ((int)(Номер_записи));
  3987. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  3988. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3989. != global::System.Data.ConnectionState.Open)) {
  3990. this.Adapter.InsertCommand.Connection.Open();
  3991. }
  3992. try {
  3993. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  3994. return returnValue;
  3995. }
  3996. finally {
  3997. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3998. this.Adapter.InsertCommand.Connection.Close();
  3999. }
  4000. }
  4001. }
  4002. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4003. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4004. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4005. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4006. public virtual int Update(int Код_преподавателя, string Фамилия, string Имя, string Отчество, int Номер_записи, int Original_Код_преподавателя, string Original_Фамилия, string Original_Имя, string Original_Отчество, int Original_Номер_записи) {
  4007. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(Код_преподавателя));
  4008. if ((Фамилия == null)) {
  4009. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  4010. }
  4011. else {
  4012. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Фамилия));
  4013. }
  4014. if ((Имя == null)) {
  4015. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  4016. }
  4017. else {
  4018. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Имя));
  4019. }
  4020. if ((Отчество == null)) {
  4021. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  4022. }
  4023. else {
  4024. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Отчество));
  4025. }
  4026. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Номер_записи));
  4027. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_Код_преподавателя));
  4028. if ((Original_Фамилия == null)) {
  4029. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  4030. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  4031. }
  4032. else {
  4033. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  4034. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Фамилия));
  4035. }
  4036. if ((Original_Имя == null)) {
  4037. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  4038. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  4039. }
  4040. else {
  4041. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  4042. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_Имя));
  4043. }
  4044. if ((Original_Отчество == null)) {
  4045. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  4046. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  4047. }
  4048. else {
  4049. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  4050. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_Отчество));
  4051. }
  4052. this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(Original_Номер_записи));
  4053. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  4054. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4055. != global::System.Data.ConnectionState.Open)) {
  4056. this.Adapter.UpdateCommand.Connection.Open();
  4057. }
  4058. try {
  4059. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  4060. return returnValue;
  4061. }
  4062. finally {
  4063. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4064. this.Adapter.UpdateCommand.Connection.Close();
  4065. }
  4066. }
  4067. }
  4068. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4069. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4070. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4071. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4072. public virtual int Update(string Фамилия, string Имя, string Отчество, int Номер_записи, int Original_Код_преподавателя, string Original_Фамилия, string Original_Имя, string Original_Отчество, int Original_Номер_записи) {
  4073. return this.Update(Original_Код_преподавателя, Фамилия, Имя, Отчество, Номер_записи, Original_Код_преподавателя, Original_Фамилия, Original_Имя, Original_Отчество, Original_Номер_записи);
  4074. }
  4075. }
  4076. /// <summary>
  4077. ///Represents the connection and commands used to retrieve and save data.
  4078. ///</summary>
  4079. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4080. [global::System.ComponentModel.ToolboxItem(true)]
  4081. [global::System.ComponentModel.DataObjectAttribute(true)]
  4082. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4083. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4084. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4085. public partial class РасписаниеTableAdapter : global::System.ComponentModel.Component {
  4086. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4087. private global::System.Data.SqlClient.SqlConnection _connection;
  4088. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4089. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4090. private bool _clearBeforeFill;
  4091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4093. public РасписаниеTableAdapter() {
  4094. this.ClearBeforeFill = true;
  4095. }
  4096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4097. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4098. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4099. get {
  4100. if ((this._adapter == null)) {
  4101. this.InitAdapter();
  4102. }
  4103. return this._adapter;
  4104. }
  4105. }
  4106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4108. internal global::System.Data.SqlClient.SqlConnection Connection {
  4109. get {
  4110. if ((this._connection == null)) {
  4111. this.InitConnection();
  4112. }
  4113. return this._connection;
  4114. }
  4115. set {
  4116. this._connection = value;
  4117. if ((this.Adapter.InsertCommand != null)) {
  4118. this.Adapter.InsertCommand.Connection = value;
  4119. }
  4120. if ((this.Adapter.DeleteCommand != null)) {
  4121. this.Adapter.DeleteCommand.Connection = value;
  4122. }
  4123. if ((this.Adapter.UpdateCommand != null)) {
  4124. this.Adapter.UpdateCommand.Connection = value;
  4125. }
  4126. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4127. if ((this.CommandCollection[i] != null)) {
  4128. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4129. }
  4130. }
  4131. }
  4132. }
  4133. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4134. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4135. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4136. get {
  4137. return this._transaction;
  4138. }
  4139. set {
  4140. this._transaction = value;
  4141. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4142. this.CommandCollection[i].Transaction = this._transaction;
  4143. }
  4144. if (((this.Adapter != null)
  4145. && (this.Adapter.DeleteCommand != null))) {
  4146. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4147. }
  4148. if (((this.Adapter != null)
  4149. && (this.Adapter.InsertCommand != null))) {
  4150. this.Adapter.InsertCommand.Transaction = this._transaction;
  4151. }
  4152. if (((this.Adapter != null)
  4153. && (this.Adapter.UpdateCommand != null))) {
  4154. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4155. }
  4156. }
  4157. }
  4158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4159. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4160. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4161. get {
  4162. if ((this._commandCollection == null)) {
  4163. this.InitCommandCollection();
  4164. }
  4165. return this._commandCollection;
  4166. }
  4167. }
  4168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4169. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4170. public bool ClearBeforeFill {
  4171. get {
  4172. return this._clearBeforeFill;
  4173. }
  4174. set {
  4175. this._clearBeforeFill = value;
  4176. }
  4177. }
  4178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4180. private void InitAdapter() {
  4181. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4182. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4183. tableMapping.SourceTable = "Table";
  4184. tableMapping.DataSetTable = "Расписание";
  4185. tableMapping.ColumnMappings.Add("Номер записи", "Номер записи");
  4186. tableMapping.ColumnMappings.Add("Группа", "Группа");
  4187. tableMapping.ColumnMappings.Add("Аудитория", "Аудитория");
  4188. tableMapping.ColumnMappings.Add("Пара", "Пара");
  4189. tableMapping.ColumnMappings.Add("Преподаватель", "Преподаватель");
  4190. tableMapping.ColumnMappings.Add("Занятие", "Занятие");
  4191. this._adapter.TableMappings.Add(tableMapping);
  4192. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4193. this._adapter.DeleteCommand.Connection = this.Connection;
  4194. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Расписание] WHERE (([Номер записи] = @Original_Номер_записи) AND ((@IsNull_Группа = 1 AND [Группа] IS NULL) OR ([Группа] = @Original_Группа)) AND ((@IsNull_Аудитория = 1 AND [Аудитория] IS NULL) OR ([Аудитория] = @Original_Аудитория)) AND ((@IsNull_Пара = 1 AND [Пара] IS NULL) OR ([Пара] = @Original_Пара)) AND ((@IsNull_Преподаватель = 1 AND [Преподаватель] IS NULL) OR ([Преподаватель] = @Original_Преподаватель)) AND ((@IsNull_Занятие = 1 AND [Занятие] IS NULL) OR ([Занятие] = @Original_Занятие)))";
  4195. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4196. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Номер_записи", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер записи", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4197. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Группа", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Группа", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4198. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Группа", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Группа", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4199. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Аудитория", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Аудитория", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4200. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Аудитория", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Аудитория", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4201. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Пара", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пара", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4202. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Пара", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пара", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4203. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Преподаватель", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Преподаватель", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4204. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Преподаватель", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Преподаватель", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4205. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Занятие", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Занятие", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4206. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Занятие", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Занятие", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4207. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4208. this._adapter.InsertCommand.Connection = this.Connection;
  4209. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Расписание] ([Номер записи], [Группа], [Аудитория], [Пара], [Преподаватель], [Занятие]) VALUES (@Номер_записи, @Группа, @Аудитория, @Пара, @Преподаватель, @Занятие);
  4210. SELECT [Номер записи], Группа, Аудитория, Пара, Преподаватель, Занятие FROM Расписание WHERE ([Номер записи] = @Номер_записи)";
  4211. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4212. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Номер_записи", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер записи", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4213. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Группа", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Группа", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4214. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Аудитория", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Аудитория", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4215. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Пара", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пара", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4216. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Преподаватель", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Преподаватель", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4217. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Занятие", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Занятие", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4218. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  4219. this._adapter.UpdateCommand.Connection = this.Connection;
  4220. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Расписание] SET [Номер записи] = @Номер_записи, [Группа] = @Группа, [Аудитория] = @Аудитория, [Пара] = @Пара, [Преподаватель] = @Преподаватель, [Занятие] = @Занятие WHERE (([Номер записи] = @Original_Номер_записи) AND ((@IsNull_Группа = 1 AND [Группа] IS NULL) OR ([Группа] = @Original_Группа)) AND ((@IsNull_Аудитория = 1 AND [Аудитория] IS NULL) OR ([Аудитория] = @Original_Аудитория)) AND ((@IsNull_Пара = 1 AND [Пара] IS NULL) OR ([Пара] = @Original_Пара)) AND ((@IsNull_Преподаватель = 1 AND [Преподаватель] IS NULL) OR ([Преподаватель] = @Original_Преподаватель)) AND ((@IsNull_Занятие = 1 AND [Занятие] IS NULL) OR ([Занятие] = @Original_Занятие)));
  4221. SELECT [Номер записи], Группа, Аудитория, Пара, Преподаватель, Занятие FROM Расписание WHERE ([Номер записи] = @Номер_записи)";
  4222. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4223. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Номер_записи", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер записи", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4224. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Группа", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Группа", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4225. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Аудитория", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Аудитория", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4226. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Пара", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пара", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4227. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Преподаватель", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Преподаватель", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4228. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Занятие", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Занятие", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4229. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Номер_записи", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер записи", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4230. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Группа", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Группа", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4231. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Группа", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Группа", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4232. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Аудитория", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Аудитория", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4233. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Аудитория", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Аудитория", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4234. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Пара", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пара", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4235. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Пара", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пара", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4236. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Преподаватель", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Преподаватель", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4237. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Преподаватель", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Преподаватель", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4238. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Занятие", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Занятие", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4239. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Занятие", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Занятие", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4240. }
  4241. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4242. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4243. private void InitConnection() {
  4244. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4245. this._connection.ConnectionString = global::ШампороваЯИ3.Properties.Settings.Default.ШампороваЯИ3ConnectionString;
  4246. }
  4247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4249. private void InitCommandCollection() {
  4250. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4251. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4252. this._commandCollection[0].Connection = this.Connection;
  4253. this._commandCollection[0].CommandText = "SELECT [Номер записи], Группа, Аудитория, Пара, Преподаватель, Занятие FROM dbo.Р" +
  4254. "асписание";
  4255. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4256. }
  4257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4258. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4259. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4260. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4261. public virtual int Fill(ШампороваЯИ3DataSet.РасписаниеDataTable dataTable) {
  4262. this.Adapter.SelectCommand = this.CommandCollection[0];
  4263. if ((this.ClearBeforeFill == true)) {
  4264. dataTable.Clear();
  4265. }
  4266. int returnValue = this.Adapter.Fill(dataTable);
  4267. return returnValue;
  4268. }
  4269. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4270. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4271. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4272. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4273. public virtual ШампороваЯИ3DataSet.РасписаниеDataTable GetData() {
  4274. this.Adapter.SelectCommand = this.CommandCollection[0];
  4275. ШампороваЯИ3DataSet.РасписаниеDataTable dataTable = new ШампороваЯИ3DataSet.РасписаниеDataTable();
  4276. this.Adapter.Fill(dataTable);
  4277. return dataTable;
  4278. }
  4279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4280. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4281. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4282. public virtual int Update(ШампороваЯИ3DataSet.РасписаниеDataTable dataTable) {
  4283. return this.Adapter.Update(dataTable);
  4284. }
  4285. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4286. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4287. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4288. public virtual int Update(ШампороваЯИ3DataSet dataSet) {
  4289. return this.Adapter.Update(dataSet, "Расписание");
  4290. }
  4291. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4292. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4293. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4294. public virtual int Update(global::System.Data.DataRow dataRow) {
  4295. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4296. dataRow});
  4297. }
  4298. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4299. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4300. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4301. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  4302. return this.Adapter.Update(dataRows);
  4303. }
  4304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4306. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4307. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  4308. public virtual int Delete(int Original_Номер_записи, string Original_Группа, global::System.Nullable<int> Original_Аудитория, string Original_Пара, string Original_Преподаватель, string Original_Занятие) {
  4309. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_Номер_записи));
  4310. if ((Original_Группа == null)) {
  4311. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  4312. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  4313. }
  4314. else {
  4315. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  4316. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Группа));
  4317. }
  4318. if ((Original_Аудитория.HasValue == true)) {
  4319. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  4320. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_Аудитория.Value));
  4321. }
  4322. else {
  4323. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  4324. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  4325. }
  4326. if ((Original_Пара == null)) {
  4327. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  4328. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  4329. }
  4330. else {
  4331. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  4332. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Пара));
  4333. }
  4334. if ((Original_Преподаватель == null)) {
  4335. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  4336. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  4337. }
  4338. else {
  4339. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  4340. this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Преподаватель));
  4341. }
  4342. if ((Original_Занятие == null)) {
  4343. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  4344. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  4345. }
  4346. else {
  4347. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  4348. this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_Занятие));
  4349. }
  4350. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  4351. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4352. != global::System.Data.ConnectionState.Open)) {
  4353. this.Adapter.DeleteCommand.Connection.Open();
  4354. }
  4355. try {
  4356. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  4357. return returnValue;
  4358. }
  4359. finally {
  4360. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4361. this.Adapter.DeleteCommand.Connection.Close();
  4362. }
  4363. }
  4364. }
  4365. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4366. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4367. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4368. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  4369. public virtual int Insert(int Номер_записи, string Группа, global::System.Nullable<int> Аудитория, string Пара, string Преподаватель, string Занятие) {
  4370. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(Номер_записи));
  4371. if ((Группа == null)) {
  4372. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  4373. }
  4374. else {
  4375. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Группа));
  4376. }
  4377. if ((Аудитория.HasValue == true)) {
  4378. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Аудитория.Value));
  4379. }
  4380. else {
  4381. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  4382. }
  4383. if ((Пара == null)) {
  4384. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  4385. }
  4386. else {
  4387. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Пара));
  4388. }
  4389. if ((Преподаватель == null)) {
  4390. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  4391. }
  4392. else {
  4393. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Преподаватель));
  4394. }
  4395. if ((Занятие == null)) {
  4396. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  4397. }
  4398. else {
  4399. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Занятие));
  4400. }
  4401. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  4402. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4403. != global::System.Data.ConnectionState.Open)) {
  4404. this.Adapter.InsertCommand.Connection.Open();
  4405. }
  4406. try {
  4407. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  4408. return returnValue;
  4409. }
  4410. finally {
  4411. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4412. this.Adapter.InsertCommand.Connection.Close();
  4413. }
  4414. }
  4415. }
  4416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4418. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4419. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4420. public virtual int Update(int Номер_записи, string Группа, global::System.Nullable<int> Аудитория, string Пара, string Преподаватель, string Занятие, int Original_Номер_записи, string Original_Группа, global::System.Nullable<int> Original_Аудитория, string Original_Пара, string Original_Преподаватель, string Original_Занятие) {
  4421. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(Номер_записи));
  4422. if ((Группа == null)) {
  4423. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  4424. }
  4425. else {
  4426. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Группа));
  4427. }
  4428. if ((Аудитория.HasValue == true)) {
  4429. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Аудитория.Value));
  4430. }
  4431. else {
  4432. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  4433. }
  4434. if ((Пара == null)) {
  4435. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  4436. }
  4437. else {
  4438. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Пара));
  4439. }
  4440. if ((Преподаватель == null)) {
  4441. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  4442. }
  4443. else {
  4444. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Преподаватель));
  4445. }
  4446. if ((Занятие == null)) {
  4447. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  4448. }
  4449. else {
  4450. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Занятие));
  4451. }
  4452. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_Номер_записи));
  4453. if ((Original_Группа == null)) {
  4454. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  4455. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  4456. }
  4457. else {
  4458. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  4459. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_Группа));
  4460. }
  4461. if ((Original_Аудитория.HasValue == true)) {
  4462. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  4463. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_Аудитория.Value));
  4464. }
  4465. else {
  4466. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  4467. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  4468. }
  4469. if ((Original_Пара == null)) {
  4470. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  4471. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  4472. }
  4473. else {
  4474. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  4475. this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_Пара));
  4476. }
  4477. if ((Original_Преподаватель == null)) {
  4478. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
  4479. this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
  4480. }
  4481. else {
  4482. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
  4483. this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_Преподаватель));
  4484. }
  4485. if ((Original_Занятие == null)) {
  4486. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
  4487. this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
  4488. }
  4489. else {
  4490. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
  4491. this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_Занятие));
  4492. }
  4493. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  4494. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4495. != global::System.Data.ConnectionState.Open)) {
  4496. this.Adapter.UpdateCommand.Connection.Open();
  4497. }
  4498. try {
  4499. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  4500. return returnValue;
  4501. }
  4502. finally {
  4503. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4504. this.Adapter.UpdateCommand.Connection.Close();
  4505. }
  4506. }
  4507. }
  4508. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4509. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4510. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4511. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4512. public virtual int Update(string Группа, global::System.Nullable<int> Аудитория, string Пара, string Преподаватель, string Занятие, int Original_Номер_записи, string Original_Группа, global::System.Nullable<int> Original_Аудитория, string Original_Пара, string Original_Преподаватель, string Original_Занятие) {
  4513. return this.Update(Original_Номер_записи, Группа, Аудитория, Пара, Преподаватель, Занятие, Original_Номер_записи, Original_Группа, Original_Аудитория, Original_Пара, Original_Преподаватель, Original_Занятие);
  4514. }
  4515. internal void Delete(ШампороваЯИ3DataSet.РасписаниеDataTable расписание)
  4516. {
  4517. throw new NotImplementedException();
  4518. }
  4519. }
  4520. /// <summary>
  4521. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  4522. ///</summary>
  4523. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4524. [global::System.ComponentModel.ToolboxItem(true)]
  4525. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  4526. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4527. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  4528. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  4529. private UpdateOrderOption _updateOrder;
  4530. private АудиторияTableAdapter _аудиторияTableAdapter;
  4531. private ГруппаTableAdapter _группаTableAdapter;
  4532. private ЗанятиеTableAdapter _занятиеTableAdapter;
  4533. private ПреподавателиTableAdapter _преподавателиTableAdapter;
  4534. private РасписаниеTableAdapter _расписаниеTableAdapter;
  4535. private bool _backupDataSetBeforeUpdate;
  4536. private global::System.Data.IDbConnection _connection;
  4537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4538. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4539. public UpdateOrderOption UpdateOrder {
  4540. get {
  4541. return this._updateOrder;
  4542. }
  4543. set {
  4544. this._updateOrder = value;
  4545. }
  4546. }
  4547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4549. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  4550. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  4551. "a", "System.Drawing.Design.UITypeEditor")]
  4552. public АудиторияTableAdapter АудиторияTableAdapter {
  4553. get {
  4554. return this._аудиторияTableAdapter;
  4555. }
  4556. set {
  4557. this._аудиторияTableAdapter = value;
  4558. }
  4559. }
  4560. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4561. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4562. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  4563. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  4564. "a", "System.Drawing.Design.UITypeEditor")]
  4565. public ГруппаTableAdapter ГруппаTableAdapter {
  4566. get {
  4567. return this._группаTableAdapter;
  4568. }
  4569. set {
  4570. this._группаTableAdapter = value;
  4571. }
  4572. }
  4573. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4574. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4575. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  4576. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  4577. "a", "System.Drawing.Design.UITypeEditor")]
  4578. public ЗанятиеTableAdapter ЗанятиеTableAdapter {
  4579. get {
  4580. return this._занятиеTableAdapter;
  4581. }
  4582. set {
  4583. this._занятиеTableAdapter = value;
  4584. }
  4585. }
  4586. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4587. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4588. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  4589. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  4590. "a", "System.Drawing.Design.UITypeEditor")]
  4591. public ПреподавателиTableAdapter ПреподавателиTableAdapter {
  4592. get {
  4593. return this._преподавателиTableAdapter;
  4594. }
  4595. set {
  4596. this._преподавателиTableAdapter = value;
  4597. }
  4598. }
  4599. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4600. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4601. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  4602. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  4603. "a", "System.Drawing.Design.UITypeEditor")]
  4604. public РасписаниеTableAdapter РасписаниеTableAdapter {
  4605. get {
  4606. return this._расписаниеTableAdapter;
  4607. }
  4608. set {
  4609. this._расписаниеTableAdapter = value;
  4610. }
  4611. }
  4612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4614. public bool BackupDataSetBeforeUpdate {
  4615. get {
  4616. return this._backupDataSetBeforeUpdate;
  4617. }
  4618. set {
  4619. this._backupDataSetBeforeUpdate = value;
  4620. }
  4621. }
  4622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4623. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4624. [global::System.ComponentModel.Browsable(false)]
  4625. public global::System.Data.IDbConnection Connection {
  4626. get {
  4627. if ((this._connection != null)) {
  4628. return this._connection;
  4629. }
  4630. if (((this._аудиторияTableAdapter != null)
  4631. && (this._аудиторияTableAdapter.Connection != null))) {
  4632. return this._аудиторияTableAdapter.Connection;
  4633. }
  4634. if (((this._группаTableAdapter != null)
  4635. && (this._группаTableAdapter.Connection != null))) {
  4636. return this._группаTableAdapter.Connection;
  4637. }
  4638. if (((this._занятиеTableAdapter != null)
  4639. && (this._занятиеTableAdapter.Connection != null))) {
  4640. return this._занятиеTableAdapter.Connection;
  4641. }
  4642. if (((this._преподавателиTableAdapter != null)
  4643. && (this._преподавателиTableAdapter.Connection != null))) {
  4644. return this._преподавателиTableAdapter.Connection;
  4645. }
  4646. if (((this._расписаниеTableAdapter != null)
  4647. && (this._расписаниеTableAdapter.Connection != null))) {
  4648. return this._расписаниеTableAdapter.Connection;
  4649. }
  4650. return null;
  4651. }
  4652. set {
  4653. this._connection = value;
  4654. }
  4655. }
  4656. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4657. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4658. [global::System.ComponentModel.Browsable(false)]
  4659. public int TableAdapterInstanceCount {
  4660. get {
  4661. int count = 0;
  4662. if ((this._аудиторияTableAdapter != null)) {
  4663. count = (count + 1);
  4664. }
  4665. if ((this._группаTableAdapter != null)) {
  4666. count = (count + 1);
  4667. }
  4668. if ((this._занятиеTableAdapter != null)) {
  4669. count = (count + 1);
  4670. }
  4671. if ((this._преподавателиTableAdapter != null)) {
  4672. count = (count + 1);
  4673. }
  4674. if ((this._расписаниеTableAdapter != null)) {
  4675. count = (count + 1);
  4676. }
  4677. return count;
  4678. }
  4679. }
  4680. /// <summary>
  4681. ///Update rows in top-down order.
  4682. ///</summary>
  4683. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4684. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4685. private int UpdateUpdatedRows(ШампороваЯИ3DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  4686. int result = 0;
  4687. if ((this._расписаниеTableAdapter != null)) {
  4688. global::System.Data.DataRow[] updatedRows = dataSet.Расписание.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  4689. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  4690. if (((updatedRows != null)
  4691. && (0 < updatedRows.Length))) {
  4692. result = (result + this._расписаниеTableAdapter.Update(updatedRows));
  4693. allChangedRows.AddRange(updatedRows);
  4694. }
  4695. }
  4696. if ((this._аудиторияTableAdapter != null)) {
  4697. global::System.Data.DataRow[] updatedRows = dataSet.Аудитория.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  4698. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  4699. if (((updatedRows != null)
  4700. && (0 < updatedRows.Length))) {
  4701. result = (result + this._аудиторияTableAdapter.Update(updatedRows));
  4702. allChangedRows.AddRange(updatedRows);
  4703. }
  4704. }
  4705. if ((this._группаTableAdapter != null)) {
  4706. global::System.Data.DataRow[] updatedRows = dataSet.Группа.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  4707. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  4708. if (((updatedRows != null)
  4709. && (0 < updatedRows.Length))) {
  4710. result = (result + this._группаTableAdapter.Update(updatedRows));
  4711. allChangedRows.AddRange(updatedRows);
  4712. }
  4713. }
  4714. if ((this._занятиеTableAdapter != null)) {
  4715. global::System.Data.DataRow[] updatedRows = dataSet.Занятие.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  4716. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  4717. if (((updatedRows != null)
  4718. && (0 < updatedRows.Length))) {
  4719. result = (result + this._занятиеTableAdapter.Update(updatedRows));
  4720. allChangedRows.AddRange(updatedRows);
  4721. }
  4722. }
  4723. if ((this._преподавателиTableAdapter != null)) {
  4724. global::System.Data.DataRow[] updatedRows = dataSet.Преподаватели.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  4725. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  4726. if (((updatedRows != null)
  4727. && (0 < updatedRows.Length))) {
  4728. result = (result + this._преподавателиTableAdapter.Update(updatedRows));
  4729. allChangedRows.AddRange(updatedRows);
  4730. }
  4731. }
  4732. return result;
  4733. }
  4734. /// <summary>
  4735. ///Insert rows in top-down order.
  4736. ///</summary>
  4737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4738. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4739. private int UpdateInsertedRows(ШампороваЯИ3DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  4740. int result = 0;
  4741. if ((this._расписаниеTableAdapter != null)) {
  4742. global::System.Data.DataRow[] addedRows = dataSet.Расписание.Select(null, null, global::System.Data.DataViewRowState.Added);
  4743. if (((addedRows != null)
  4744. && (0 < addedRows.Length))) {
  4745. result = (result + this._расписаниеTableAdapter.Update(addedRows));
  4746. allAddedRows.AddRange(addedRows);
  4747. }
  4748. }
  4749. if ((this._аудиторияTableAdapter != null)) {
  4750. global::System.Data.DataRow[] addedRows = dataSet.Аудитория.Select(null, null, global::System.Data.DataViewRowState.Added);
  4751. if (((addedRows != null)
  4752. && (0 < addedRows.Length))) {
  4753. result = (result + this._аудиторияTableAdapter.Update(addedRows));
  4754. allAddedRows.AddRange(addedRows);
  4755. }
  4756. }
  4757. if ((this._группаTableAdapter != null)) {
  4758. global::System.Data.DataRow[] addedRows = dataSet.Группа.Select(null, null, global::System.Data.DataViewRowState.Added);
  4759. if (((addedRows != null)
  4760. && (0 < addedRows.Length))) {
  4761. result = (result + this._группаTableAdapter.Update(addedRows));
  4762. allAddedRows.AddRange(addedRows);
  4763. }
  4764. }
  4765. if ((this._занятиеTableAdapter != null)) {
  4766. global::System.Data.DataRow[] addedRows = dataSet.Занятие.Select(null, null, global::System.Data.DataViewRowState.Added);
  4767. if (((addedRows != null)
  4768. && (0 < addedRows.Length))) {
  4769. result = (result + this._занятиеTableAdapter.Update(addedRows));
  4770. allAddedRows.AddRange(addedRows);
  4771. }
  4772. }
  4773. if ((this._преподавателиTableAdapter != null)) {
  4774. global::System.Data.DataRow[] addedRows = dataSet.Преподаватели.Select(null, null, global::System.Data.DataViewRowState.Added);
  4775. if (((addedRows != null)
  4776. && (0 < addedRows.Length))) {
  4777. result = (result + this._преподавателиTableAdapter.Update(addedRows));
  4778. allAddedRows.AddRange(addedRows);
  4779. }
  4780. }
  4781. return result;
  4782. }
  4783. /// <summary>
  4784. ///Delete rows in bottom-up order.
  4785. ///</summary>
  4786. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4787. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4788. private int UpdateDeletedRows(ШампороваЯИ3DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  4789. int result = 0;
  4790. if ((this._преподавателиTableAdapter != null)) {
  4791. global::System.Data.DataRow[] deletedRows = dataSet.Преподаватели.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  4792. if (((deletedRows != null)
  4793. && (0 < deletedRows.Length))) {
  4794. result = (result + this._преподавателиTableAdapter.Update(deletedRows));
  4795. allChangedRows.AddRange(deletedRows);
  4796. }
  4797. }
  4798. if ((this._занятиеTableAdapter != null)) {
  4799. global::System.Data.DataRow[] deletedRows = dataSet.Занятие.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  4800. if (((deletedRows != null)
  4801. && (0 < deletedRows.Length))) {
  4802. result = (result + this._занятиеTableAdapter.Update(deletedRows));
  4803. allChangedRows.AddRange(deletedRows);
  4804. }
  4805. }
  4806. if ((this._группаTableAdapter != null)) {
  4807. global::System.Data.DataRow[] deletedRows = dataSet.Группа.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  4808. if (((deletedRows != null)
  4809. && (0 < deletedRows.Length))) {
  4810. result = (result + this._группаTableAdapter.Update(deletedRows));
  4811. allChangedRows.AddRange(deletedRows);
  4812. }
  4813. }
  4814. if ((this._аудиторияTableAdapter != null)) {
  4815. global::System.Data.DataRow[] deletedRows = dataSet.Аудитория.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  4816. if (((deletedRows != null)
  4817. && (0 < deletedRows.Length))) {
  4818. result = (result + this._аудиторияTableAdapter.Update(deletedRows));
  4819. allChangedRows.AddRange(deletedRows);
  4820. }
  4821. }
  4822. if ((this._расписаниеTableAdapter != null)) {
  4823. global::System.Data.DataRow[] deletedRows = dataSet.Расписание.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  4824. if (((deletedRows != null)
  4825. && (0 < deletedRows.Length))) {
  4826. result = (result + this._расписаниеTableAdapter.Update(deletedRows));
  4827. allChangedRows.AddRange(deletedRows);
  4828. }
  4829. }
  4830. return result;
  4831. }
  4832. /// <summary>
  4833. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  4834. ///</summary>
  4835. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4836. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4837. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  4838. if (((updatedRows == null)
  4839. || (updatedRows.Length < 1))) {
  4840. return updatedRows;
  4841. }
  4842. if (((allAddedRows == null)
  4843. || (allAddedRows.Count < 1))) {
  4844. return updatedRows;
  4845. }
  4846. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  4847. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  4848. global::System.Data.DataRow row = updatedRows[i];
  4849. if ((allAddedRows.Contains(row) == false)) {
  4850. realUpdatedRows.Add(row);
  4851. }
  4852. }
  4853. return realUpdatedRows.ToArray();
  4854. }
  4855. /// <summary>
  4856. ///Update all changes to the dataset.
  4857. ///</summary>
  4858. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4859. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4860. public virtual int UpdateAll(ШампороваЯИ3DataSet dataSet) {
  4861. if ((dataSet == null)) {
  4862. throw new global::System.ArgumentNullException("dataSet");
  4863. }
  4864. if ((dataSet.HasChanges() == false)) {
  4865. return 0;
  4866. }
  4867. if (((this._аудиторияTableAdapter != null)
  4868. && (this.MatchTableAdapterConnection(this._аудиторияTableAdapter.Connection) == false))) {
  4869. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  4870. "r, должны использовать одинаковую строку подключения.");
  4871. }
  4872. if (((this._группаTableAdapter != null)
  4873. && (this.MatchTableAdapterConnection(this._группаTableAdapter.Connection) == false))) {
  4874. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  4875. "r, должны использовать одинаковую строку подключения.");
  4876. }
  4877. if (((this._занятиеTableAdapter != null)
  4878. && (this.MatchTableAdapterConnection(this._занятиеTableAdapter.Connection) == false))) {
  4879. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  4880. "r, должны использовать одинаковую строку подключения.");
  4881. }
  4882. if (((this._преподавателиTableAdapter != null)
  4883. && (this.MatchTableAdapterConnection(this._преподавателиTableAdapter.Connection) == false))) {
  4884. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  4885. "r, должны использовать одинаковую строку подключения.");
  4886. }
  4887. if (((this._расписаниеTableAdapter != null)
  4888. && (this.MatchTableAdapterConnection(this._расписаниеTableAdapter.Connection) == false))) {
  4889. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  4890. "r, должны использовать одинаковую строку подключения.");
  4891. }
  4892. global::System.Data.IDbConnection workConnection = this.Connection;
  4893. if ((workConnection == null)) {
  4894. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  4895. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  4896. }
  4897. bool workConnOpened = false;
  4898. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  4899. == global::System.Data.ConnectionState.Broken)) {
  4900. workConnection.Close();
  4901. }
  4902. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  4903. workConnection.Open();
  4904. workConnOpened = true;
  4905. }
  4906. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  4907. if ((workTransaction == null)) {
  4908. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  4909. "и или текущее состояние не позволяет начать транзакцию.");
  4910. }
  4911. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  4912. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  4913. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  4914. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  4915. int result = 0;
  4916. global::System.Data.DataSet backupDataSet = null;
  4917. if (this.BackupDataSetBeforeUpdate) {
  4918. backupDataSet = new global::System.Data.DataSet();
  4919. backupDataSet.Merge(dataSet);
  4920. }
  4921. try {
  4922. // ---- Prepare for update -----------
  4923. //
  4924. if ((this._аудиторияTableAdapter != null)) {
  4925. revertConnections.Add(this._аудиторияTableAdapter, this._аудиторияTableAdapter.Connection);
  4926. this._аудиторияTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  4927. this._аудиторияTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  4928. if (this._аудиторияTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  4929. this._аудиторияTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  4930. adaptersWithAcceptChangesDuringUpdate.Add(this._аудиторияTableAdapter.Adapter);
  4931. }
  4932. }
  4933. if ((this._группаTableAdapter != null)) {
  4934. revertConnections.Add(this._группаTableAdapter, this._группаTableAdapter.Connection);
  4935. this._группаTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  4936. this._группаTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  4937. if (this._группаTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  4938. this._группаTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  4939. adaptersWithAcceptChangesDuringUpdate.Add(this._группаTableAdapter.Adapter);
  4940. }
  4941. }
  4942. if ((this._занятиеTableAdapter != null)) {
  4943. revertConnections.Add(this._занятиеTableAdapter, this._занятиеTableAdapter.Connection);
  4944. this._занятиеTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  4945. this._занятиеTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  4946. if (this._занятиеTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  4947. this._занятиеTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  4948. adaptersWithAcceptChangesDuringUpdate.Add(this._занятиеTableAdapter.Adapter);
  4949. }
  4950. }
  4951. if ((this._преподавателиTableAdapter != null)) {
  4952. revertConnections.Add(this._преподавателиTableAdapter, this._преподавателиTableAdapter.Connection);
  4953. this._преподавателиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  4954. this._преподавателиTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  4955. if (this._преподавателиTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  4956. this._преподавателиTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  4957. adaptersWithAcceptChangesDuringUpdate.Add(this._преподавателиTableAdapter.Adapter);
  4958. }
  4959. }
  4960. if ((this._расписаниеTableAdapter != null)) {
  4961. revertConnections.Add(this._расписаниеTableAdapter, this._расписаниеTableAdapter.Connection);
  4962. this._расписаниеTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  4963. this._расписаниеTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  4964. if (this._расписаниеTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  4965. this._расписаниеTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  4966. adaptersWithAcceptChangesDuringUpdate.Add(this._расписаниеTableAdapter.Adapter);
  4967. }
  4968. }
  4969. //
  4970. //---- Perform updates -----------
  4971. //
  4972. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  4973. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  4974. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  4975. }
  4976. else {
  4977. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  4978. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  4979. }
  4980. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  4981. //
  4982. //---- Commit updates -----------
  4983. //
  4984. workTransaction.Commit();
  4985. if ((0 < allAddedRows.Count)) {
  4986. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  4987. allAddedRows.CopyTo(rows);
  4988. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  4989. global::System.Data.DataRow row = rows[i];
  4990. row.AcceptChanges();
  4991. }
  4992. }
  4993. if ((0 < allChangedRows.Count)) {
  4994. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  4995. allChangedRows.CopyTo(rows);
  4996. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  4997. global::System.Data.DataRow row = rows[i];
  4998. row.AcceptChanges();
  4999. }
  5000. }
  5001. }
  5002. catch (global::System.Exception ex) {
  5003. workTransaction.Rollback();
  5004. // ---- Restore the dataset -----------
  5005. if (this.BackupDataSetBeforeUpdate) {
  5006. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  5007. dataSet.Clear();
  5008. dataSet.Merge(backupDataSet);
  5009. }
  5010. else {
  5011. if ((0 < allAddedRows.Count)) {
  5012. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  5013. allAddedRows.CopyTo(rows);
  5014. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  5015. global::System.Data.DataRow row = rows[i];
  5016. row.AcceptChanges();
  5017. row.SetAdded();
  5018. }
  5019. }
  5020. }
  5021. throw ex;
  5022. }
  5023. finally {
  5024. if (workConnOpened) {
  5025. workConnection.Close();
  5026. }
  5027. if ((this._аудиторияTableAdapter != null)) {
  5028. this._аудиторияTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._аудиторияTableAdapter]));
  5029. this._аудиторияTableAdapter.Transaction = null;
  5030. }
  5031. if ((this._группаTableAdapter != null)) {
  5032. this._группаTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._группаTableAdapter]));
  5033. this._группаTableAdapter.Transaction = null;
  5034. }
  5035. if ((this._занятиеTableAdapter != null)) {
  5036. this._занятиеTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._занятиеTableAdapter]));
  5037. this._занятиеTableAdapter.Transaction = null;
  5038. }
  5039. if ((this._преподавателиTableAdapter != null)) {
  5040. this._преподавателиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._преподавателиTableAdapter]));
  5041. this._преподавателиTableAdapter.Transaction = null;
  5042. }
  5043. if ((this._расписаниеTableAdapter != null)) {
  5044. this._расписаниеTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._расписаниеTableAdapter]));
  5045. this._расписаниеTableAdapter.Transaction = null;
  5046. }
  5047. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  5048. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  5049. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  5050. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  5051. global::System.Data.Common.DataAdapter adapter = adapters[i];
  5052. adapter.AcceptChangesDuringUpdate = true;
  5053. }
  5054. }
  5055. }
  5056. return result;
  5057. }
  5058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5059. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5060. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  5061. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  5062. }
  5063. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5064. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5065. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  5066. if ((this._connection != null)) {
  5067. return true;
  5068. }
  5069. if (((this.Connection == null)
  5070. || (inputConnection == null))) {
  5071. return true;
  5072. }
  5073. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  5074. return true;
  5075. }
  5076. return false;
  5077. }
  5078. /// <summary>
  5079. ///Update Order Option
  5080. ///</summary>
  5081. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5082. public enum UpdateOrderOption {
  5083. InsertUpdateDelete = 0,
  5084. UpdateInsertDelete = 1,
  5085. }
  5086. /// <summary>
  5087. ///Used to sort self-referenced table's rows
  5088. ///</summary>
  5089. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5090. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  5091. private global::System.Data.DataRelation _relation;
  5092. private int _childFirst;
  5093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5094. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5095. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  5096. this._relation = relation;
  5097. if (childFirst) {
  5098. this._childFirst = -1;
  5099. }
  5100. else {
  5101. this._childFirst = 1;
  5102. }
  5103. }
  5104. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5105. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5106. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  5107. global::System.Diagnostics.Debug.Assert((row != null));
  5108. global::System.Data.DataRow root = row;
  5109. distance = 0;
  5110. 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>();
  5111. traversedRows[row] = row;
  5112. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  5113. for (
  5114. ; ((parent != null)
  5115. && (traversedRows.ContainsKey(parent) == false));
  5116. ) {
  5117. distance = (distance + 1);
  5118. root = parent;
  5119. traversedRows[parent] = parent;
  5120. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  5121. }
  5122. if ((distance == 0)) {
  5123. traversedRows.Clear();
  5124. traversedRows[row] = row;
  5125. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  5126. for (
  5127. ; ((parent != null)
  5128. && (traversedRows.ContainsKey(parent) == false));
  5129. ) {
  5130. distance = (distance + 1);
  5131. root = parent;
  5132. traversedRows[parent] = parent;
  5133. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  5134. }
  5135. }
  5136. return root;
  5137. }
  5138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5139. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5140. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  5141. if (object.ReferenceEquals(row1, row2)) {
  5142. return 0;
  5143. }
  5144. if ((row1 == null)) {
  5145. return -1;
  5146. }
  5147. if ((row2 == null)) {
  5148. return 1;
  5149. }
  5150. int distance1 = 0;
  5151. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  5152. int distance2 = 0;
  5153. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  5154. if (object.ReferenceEquals(root1, root2)) {
  5155. return (this._childFirst * distance1.CompareTo(distance2));
  5156. }
  5157. else {
  5158. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  5159. && (root2.Table != null)));
  5160. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  5161. return -1;
  5162. }
  5163. else {
  5164. return 1;
  5165. }
  5166. }
  5167. }
  5168. }
  5169. }
  5170. }
  5171. #pragma warning restore 1591