РП31ДьячковНикитинСтудентыDataSet1.Designer.cs 380 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace DiachkovStudents {
  12. /// <summary>
  13. ///Represents a strongly typed in-memory cache of data.
  14. ///</summary>
  15. [global::System.Serializable()]
  16. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  17. [global::System.ComponentModel.ToolboxItem(true)]
  18. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")]
  19. [global::System.Xml.Serialization.XmlRootAttribute("РП31ДьячковНикитинСтудентыDataSet1")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class РП31ДьячковНикитинСтудентыDataSet1 : global::System.Data.DataSet {
  22. private ОценкиDataTable tableОценки;
  23. private ПредметыDataTable tableПредметы;
  24. private СпециальностиDataTable tableСпециальности;
  25. private СтудентыDataTable tableСтуденты;
  26. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  27. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  28. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  29. public РП31ДьячковНикитинСтудентыDataSet1() {
  30. this.BeginInit();
  31. this.InitClass();
  32. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  33. base.Tables.CollectionChanged += schemaChangedHandler;
  34. base.Relations.CollectionChanged += schemaChangedHandler;
  35. this.EndInit();
  36. }
  37. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  38. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  39. protected РП31ДьячковНикитинСтудентыDataSet1(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  40. base(info, context, false) {
  41. if ((this.IsBinarySerialized(info, context) == true)) {
  42. this.InitVars(false);
  43. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  44. this.Tables.CollectionChanged += schemaChangedHandler1;
  45. this.Relations.CollectionChanged += schemaChangedHandler1;
  46. return;
  47. }
  48. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  49. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  50. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  51. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  52. if ((ds.Tables["Оценки"] != null)) {
  53. base.Tables.Add(new ОценкиDataTable(ds.Tables["Оценки"]));
  54. }
  55. if ((ds.Tables["Предметы"] != null)) {
  56. base.Tables.Add(new ПредметыDataTable(ds.Tables["Предметы"]));
  57. }
  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. this.DataSetName = ds.DataSetName;
  65. this.Prefix = ds.Prefix;
  66. this.Namespace = ds.Namespace;
  67. this.Locale = ds.Locale;
  68. this.CaseSensitive = ds.CaseSensitive;
  69. this.EnforceConstraints = ds.EnforceConstraints;
  70. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  71. this.InitVars();
  72. }
  73. else {
  74. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  75. }
  76. this.GetSerializationData(info, context);
  77. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  78. base.Tables.CollectionChanged += schemaChangedHandler;
  79. this.Relations.CollectionChanged += schemaChangedHandler;
  80. }
  81. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  82. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  83. [global::System.ComponentModel.Browsable(false)]
  84. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  85. public ОценкиDataTable Оценки {
  86. get {
  87. return this.tableОценки;
  88. }
  89. }
  90. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  91. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  92. [global::System.ComponentModel.Browsable(false)]
  93. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  94. public ПредметыDataTable Предметы {
  95. get {
  96. return this.tableПредметы;
  97. }
  98. }
  99. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  100. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  101. [global::System.ComponentModel.Browsable(false)]
  102. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  103. public СпециальностиDataTable Специальности {
  104. get {
  105. return this.tableСпециальности;
  106. }
  107. }
  108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  110. [global::System.ComponentModel.Browsable(false)]
  111. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  112. public СтудентыDataTable Студенты {
  113. get {
  114. return this.tableСтуденты;
  115. }
  116. }
  117. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  118. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  119. [global::System.ComponentModel.BrowsableAttribute(true)]
  120. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  121. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  122. get {
  123. return this._schemaSerializationMode;
  124. }
  125. set {
  126. this._schemaSerializationMode = value;
  127. }
  128. }
  129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  131. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  132. public new global::System.Data.DataTableCollection Tables {
  133. get {
  134. return base.Tables;
  135. }
  136. }
  137. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  138. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  139. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  140. public new global::System.Data.DataRelationCollection Relations {
  141. get {
  142. return base.Relations;
  143. }
  144. }
  145. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  146. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  147. protected override void InitializeDerivedDataSet() {
  148. this.BeginInit();
  149. this.InitClass();
  150. this.EndInit();
  151. }
  152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  154. public override global::System.Data.DataSet Clone() {
  155. РП31ДьячковНикитинСтудентыDataSet1 cln = ((РП31ДьячковНикитинСтудентыDataSet1)(base.Clone()));
  156. cln.InitVars();
  157. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  158. return cln;
  159. }
  160. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  161. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  162. protected override bool ShouldSerializeTables() {
  163. return false;
  164. }
  165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  167. protected override bool ShouldSerializeRelations() {
  168. return false;
  169. }
  170. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  171. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  172. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  173. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  174. this.Reset();
  175. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  176. ds.ReadXml(reader);
  177. if ((ds.Tables["Оценки"] != null)) {
  178. base.Tables.Add(new ОценкиDataTable(ds.Tables["Оценки"]));
  179. }
  180. if ((ds.Tables["Предметы"] != null)) {
  181. base.Tables.Add(new ПредметыDataTable(ds.Tables["Предметы"]));
  182. }
  183. if ((ds.Tables["Специальности"] != null)) {
  184. base.Tables.Add(new СпециальностиDataTable(ds.Tables["Специальности"]));
  185. }
  186. if ((ds.Tables["Студенты"] != null)) {
  187. base.Tables.Add(new СтудентыDataTable(ds.Tables["Студенты"]));
  188. }
  189. this.DataSetName = ds.DataSetName;
  190. this.Prefix = ds.Prefix;
  191. this.Namespace = ds.Namespace;
  192. this.Locale = ds.Locale;
  193. this.CaseSensitive = ds.CaseSensitive;
  194. this.EnforceConstraints = ds.EnforceConstraints;
  195. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  196. this.InitVars();
  197. }
  198. else {
  199. this.ReadXml(reader);
  200. this.InitVars();
  201. }
  202. }
  203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  204. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  205. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  206. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  207. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  208. stream.Position = 0;
  209. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  210. }
  211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  213. internal void InitVars() {
  214. this.InitVars(true);
  215. }
  216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  218. internal void InitVars(bool initTable) {
  219. this.tableОценки = ((ОценкиDataTable)(base.Tables["Оценки"]));
  220. if ((initTable == true)) {
  221. if ((this.tableОценки != null)) {
  222. this.tableОценки.InitVars();
  223. }
  224. }
  225. this.tableПредметы = ((ПредметыDataTable)(base.Tables["Предметы"]));
  226. if ((initTable == true)) {
  227. if ((this.tableПредметы != null)) {
  228. this.tableПредметы.InitVars();
  229. }
  230. }
  231. this.tableСпециальности = ((СпециальностиDataTable)(base.Tables["Специальности"]));
  232. if ((initTable == true)) {
  233. if ((this.tableСпециальности != null)) {
  234. this.tableСпециальности.InitVars();
  235. }
  236. }
  237. this.tableСтуденты = ((СтудентыDataTable)(base.Tables["Студенты"]));
  238. if ((initTable == true)) {
  239. if ((this.tableСтуденты != null)) {
  240. this.tableСтуденты.InitVars();
  241. }
  242. }
  243. }
  244. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  245. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  246. private void InitClass() {
  247. this.DataSetName = "РП31ДьячковНикитинСтудентыDataSet1";
  248. this.Prefix = "";
  249. this.Namespace = "http://tempuri.org/РП31ДьячковНикитинСтудентыDataSet1.xsd";
  250. this.EnforceConstraints = true;
  251. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  252. this.tableОценки = new ОценкиDataTable();
  253. base.Tables.Add(this.tableОценки);
  254. this.tableПредметы = new ПредметыDataTable();
  255. base.Tables.Add(this.tableПредметы);
  256. this.tableСпециальности = new СпециальностиDataTable();
  257. base.Tables.Add(this.tableСпециальности);
  258. this.tableСтуденты = new СтудентыDataTable();
  259. base.Tables.Add(this.tableСтуденты);
  260. }
  261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  262. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  263. private bool ShouldSerializeОценки() {
  264. return false;
  265. }
  266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  268. private bool ShouldSerializeПредметы() {
  269. return false;
  270. }
  271. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  272. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  273. private bool ShouldSerializeСпециальности() {
  274. return false;
  275. }
  276. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  277. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  278. private bool ShouldSerializeСтуденты() {
  279. return false;
  280. }
  281. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  282. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  283. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  284. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  285. this.InitVars();
  286. }
  287. }
  288. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  289. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  290. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  291. РП31ДьячковНикитинСтудентыDataSet1 ds = new РП31ДьячковНикитинСтудентыDataSet1();
  292. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  293. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  294. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  295. any.Namespace = ds.Namespace;
  296. sequence.Items.Add(any);
  297. type.Particle = sequence;
  298. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  299. if (xs.Contains(dsSchema.TargetNamespace)) {
  300. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  301. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  302. try {
  303. global::System.Xml.Schema.XmlSchema schema = null;
  304. dsSchema.Write(s1);
  305. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  306. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  307. s2.SetLength(0);
  308. schema.Write(s2);
  309. if ((s1.Length == s2.Length)) {
  310. s1.Position = 0;
  311. s2.Position = 0;
  312. for (; ((s1.Position != s1.Length)
  313. && (s1.ReadByte() == s2.ReadByte())); ) {
  314. ;
  315. }
  316. if ((s1.Position == s1.Length)) {
  317. return type;
  318. }
  319. }
  320. }
  321. }
  322. finally {
  323. if ((s1 != null)) {
  324. s1.Close();
  325. }
  326. if ((s2 != null)) {
  327. s2.Close();
  328. }
  329. }
  330. }
  331. xs.Add(dsSchema);
  332. return type;
  333. }
  334. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  335. public delegate void ОценкиRowChangeEventHandler(object sender, ОценкиRowChangeEvent e);
  336. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  337. public delegate void ПредметыRowChangeEventHandler(object sender, ПредметыRowChangeEvent e);
  338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  339. public delegate void СпециальностиRowChangeEventHandler(object sender, СпециальностиRowChangeEvent e);
  340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  341. public delegate void СтудентыRowChangeEventHandler(object sender, СтудентыRowChangeEvent e);
  342. /// <summary>
  343. ///Represents the strongly named DataTable class.
  344. ///</summary>
  345. [global::System.Serializable()]
  346. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  347. public partial class ОценкиDataTable : global::System.Data.TypedTableBase<ОценкиRow> {
  348. private global::System.Data.DataColumn columnКодСтудента;
  349. private global::System.Data.DataColumn columnДатаЭкзамена1;
  350. private global::System.Data.DataColumn columnКодПредмета1;
  351. private global::System.Data.DataColumn columnОценка1;
  352. private global::System.Data.DataColumn columnДатаЭкзамена2;
  353. private global::System.Data.DataColumn columnКодПредмета2;
  354. private global::System.Data.DataColumn columnОценка2;
  355. private global::System.Data.DataColumn columnДатаЭкзамена3;
  356. private global::System.Data.DataColumn columnКодПредмета3;
  357. private global::System.Data.DataColumn columnОценка3;
  358. private global::System.Data.DataColumn columnСреднийБалл;
  359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  360. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  361. public ОценкиDataTable() {
  362. this.TableName = "Оценки";
  363. this.BeginInit();
  364. this.InitClass();
  365. this.EndInit();
  366. }
  367. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  368. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  369. internal ОценкиDataTable(global::System.Data.DataTable table) {
  370. this.TableName = table.TableName;
  371. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  372. this.CaseSensitive = table.CaseSensitive;
  373. }
  374. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  375. this.Locale = table.Locale;
  376. }
  377. if ((table.Namespace != table.DataSet.Namespace)) {
  378. this.Namespace = table.Namespace;
  379. }
  380. this.Prefix = table.Prefix;
  381. this.MinimumCapacity = table.MinimumCapacity;
  382. }
  383. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  384. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  385. protected ОценкиDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  386. base(info, context) {
  387. this.InitVars();
  388. }
  389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  390. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  391. public global::System.Data.DataColumn КодСтудентаColumn {
  392. get {
  393. return this.columnКодСтудента;
  394. }
  395. }
  396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  398. public global::System.Data.DataColumn ДатаЭкзамена1Column {
  399. get {
  400. return this.columnДатаЭкзамена1;
  401. }
  402. }
  403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  404. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  405. public global::System.Data.DataColumn КодПредмета1Column {
  406. get {
  407. return this.columnКодПредмета1;
  408. }
  409. }
  410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  411. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  412. public global::System.Data.DataColumn Оценка1Column {
  413. get {
  414. return this.columnОценка1;
  415. }
  416. }
  417. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  418. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  419. public global::System.Data.DataColumn ДатаЭкзамена2Column {
  420. get {
  421. return this.columnДатаЭкзамена2;
  422. }
  423. }
  424. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  425. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  426. public global::System.Data.DataColumn КодПредмета2Column {
  427. get {
  428. return this.columnКодПредмета2;
  429. }
  430. }
  431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  433. public global::System.Data.DataColumn Оценка2Column {
  434. get {
  435. return this.columnОценка2;
  436. }
  437. }
  438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  439. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  440. public global::System.Data.DataColumn ДатаЭкзамена3Column {
  441. get {
  442. return this.columnДатаЭкзамена3;
  443. }
  444. }
  445. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  446. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  447. public global::System.Data.DataColumn КодПредмета3Column {
  448. get {
  449. return this.columnКодПредмета3;
  450. }
  451. }
  452. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  453. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  454. public global::System.Data.DataColumn Оценка3Column {
  455. get {
  456. return this.columnОценка3;
  457. }
  458. }
  459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  460. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  461. public global::System.Data.DataColumn СреднийБаллColumn {
  462. get {
  463. return this.columnСреднийБалл;
  464. }
  465. }
  466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  468. [global::System.ComponentModel.Browsable(false)]
  469. public int Count {
  470. get {
  471. return this.Rows.Count;
  472. }
  473. }
  474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  476. public ОценкиRow this[int index] {
  477. get {
  478. return ((ОценкиRow)(this.Rows[index]));
  479. }
  480. }
  481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  482. public event ОценкиRowChangeEventHandler ОценкиRowChanging;
  483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  484. public event ОценкиRowChangeEventHandler ОценкиRowChanged;
  485. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  486. public event ОценкиRowChangeEventHandler ОценкиRowDeleting;
  487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  488. public event ОценкиRowChangeEventHandler ОценкиRowDeleted;
  489. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  490. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  491. public void AddОценкиRow(ОценкиRow row) {
  492. this.Rows.Add(row);
  493. }
  494. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  495. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  496. public ОценкиRow AddОценкиRow(System.DateTime ДатаЭкзамена1, long КодПредмета1, byte Оценка1, System.DateTime ДатаЭкзамена2, long КодПредмета2, byte Оценка2, System.DateTime ДатаЭкзамена3, long КодПредмета3, byte Оценка3, float СреднийБалл) {
  497. ОценкиRow rowОценкиRow = ((ОценкиRow)(this.NewRow()));
  498. object[] columnValuesArray = new object[] {
  499. null,
  500. ДатаЭкзамена1,
  501. КодПредмета1,
  502. Оценка1,
  503. ДатаЭкзамена2,
  504. КодПредмета2,
  505. Оценка2,
  506. ДатаЭкзамена3,
  507. КодПредмета3,
  508. Оценка3,
  509. СреднийБалл};
  510. rowОценкиRow.ItemArray = columnValuesArray;
  511. this.Rows.Add(rowОценкиRow);
  512. return rowОценкиRow;
  513. }
  514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  515. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  516. public ОценкиRow FindByКодСтудента(long КодСтудента) {
  517. return ((ОценкиRow)(this.Rows.Find(new object[] {
  518. КодСтудента})));
  519. }
  520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  521. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  522. public override global::System.Data.DataTable Clone() {
  523. ОценкиDataTable cln = ((ОценкиDataTable)(base.Clone()));
  524. cln.InitVars();
  525. return cln;
  526. }
  527. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  528. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  529. protected override global::System.Data.DataTable CreateInstance() {
  530. return new ОценкиDataTable();
  531. }
  532. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  533. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  534. internal void InitVars() {
  535. this.columnКодСтудента = base.Columns["КодСтудента"];
  536. this.columnДатаЭкзамена1 = base.Columns["ДатаЭкзамена1"];
  537. this.columnКодПредмета1 = base.Columns["КодПредмета1"];
  538. this.columnОценка1 = base.Columns["Оценка1"];
  539. this.columnДатаЭкзамена2 = base.Columns["ДатаЭкзамена2"];
  540. this.columnКодПредмета2 = base.Columns["КодПредмета2"];
  541. this.columnОценка2 = base.Columns["Оценка2"];
  542. this.columnДатаЭкзамена3 = base.Columns["ДатаЭкзамена3"];
  543. this.columnКодПредмета3 = base.Columns["КодПредмета3"];
  544. this.columnОценка3 = base.Columns["Оценка3"];
  545. this.columnСреднийБалл = base.Columns["СреднийБалл"];
  546. }
  547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  549. private void InitClass() {
  550. this.columnКодСтудента = new global::System.Data.DataColumn("КодСтудента", typeof(long), null, global::System.Data.MappingType.Element);
  551. base.Columns.Add(this.columnКодСтудента);
  552. this.columnДатаЭкзамена1 = new global::System.Data.DataColumn("ДатаЭкзамена1", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  553. base.Columns.Add(this.columnДатаЭкзамена1);
  554. this.columnКодПредмета1 = new global::System.Data.DataColumn("КодПредмета1", typeof(long), null, global::System.Data.MappingType.Element);
  555. base.Columns.Add(this.columnКодПредмета1);
  556. this.columnОценка1 = new global::System.Data.DataColumn("Оценка1", typeof(byte), null, global::System.Data.MappingType.Element);
  557. base.Columns.Add(this.columnОценка1);
  558. this.columnДатаЭкзамена2 = new global::System.Data.DataColumn("ДатаЭкзамена2", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  559. base.Columns.Add(this.columnДатаЭкзамена2);
  560. this.columnКодПредмета2 = new global::System.Data.DataColumn("КодПредмета2", typeof(long), null, global::System.Data.MappingType.Element);
  561. base.Columns.Add(this.columnКодПредмета2);
  562. this.columnОценка2 = new global::System.Data.DataColumn("Оценка2", typeof(byte), null, global::System.Data.MappingType.Element);
  563. base.Columns.Add(this.columnОценка2);
  564. this.columnДатаЭкзамена3 = new global::System.Data.DataColumn("ДатаЭкзамена3", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  565. base.Columns.Add(this.columnДатаЭкзамена3);
  566. this.columnКодПредмета3 = new global::System.Data.DataColumn("КодПредмета3", typeof(long), null, global::System.Data.MappingType.Element);
  567. base.Columns.Add(this.columnКодПредмета3);
  568. this.columnОценка3 = new global::System.Data.DataColumn("Оценка3", typeof(byte), null, global::System.Data.MappingType.Element);
  569. base.Columns.Add(this.columnОценка3);
  570. this.columnСреднийБалл = new global::System.Data.DataColumn("СреднийБалл", typeof(float), null, global::System.Data.MappingType.Element);
  571. base.Columns.Add(this.columnСреднийБалл);
  572. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  573. this.columnКодСтудента}, true));
  574. this.columnКодСтудента.AutoIncrement = true;
  575. this.columnКодСтудента.AutoIncrementSeed = -1;
  576. this.columnКодСтудента.AutoIncrementStep = -1;
  577. this.columnКодСтудента.AllowDBNull = false;
  578. this.columnКодСтудента.ReadOnly = true;
  579. this.columnКодСтудента.Unique = true;
  580. }
  581. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  582. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  583. public ОценкиRow NewОценкиRow() {
  584. return ((ОценкиRow)(this.NewRow()));
  585. }
  586. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  587. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  588. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  589. return new ОценкиRow(builder);
  590. }
  591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  592. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  593. protected override global::System.Type GetRowType() {
  594. return typeof(ОценкиRow);
  595. }
  596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  597. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  598. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  599. base.OnRowChanged(e);
  600. if ((this.ОценкиRowChanged != null)) {
  601. this.ОценкиRowChanged(this, new ОценкиRowChangeEvent(((ОценкиRow)(e.Row)), e.Action));
  602. }
  603. }
  604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  606. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  607. base.OnRowChanging(e);
  608. if ((this.ОценкиRowChanging != null)) {
  609. this.ОценкиRowChanging(this, new ОценкиRowChangeEvent(((ОценкиRow)(e.Row)), e.Action));
  610. }
  611. }
  612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  614. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  615. base.OnRowDeleted(e);
  616. if ((this.ОценкиRowDeleted != null)) {
  617. this.ОценкиRowDeleted(this, new ОценкиRowChangeEvent(((ОценкиRow)(e.Row)), e.Action));
  618. }
  619. }
  620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  621. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  622. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  623. base.OnRowDeleting(e);
  624. if ((this.ОценкиRowDeleting != null)) {
  625. this.ОценкиRowDeleting(this, new ОценкиRowChangeEvent(((ОценкиRow)(e.Row)), e.Action));
  626. }
  627. }
  628. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  630. public void RemoveОценкиRow(ОценкиRow row) {
  631. this.Rows.Remove(row);
  632. }
  633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  635. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  636. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  637. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  638. РП31ДьячковНикитинСтудентыDataSet1 ds = new РП31ДьячковНикитинСтудентыDataSet1();
  639. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  640. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  641. any1.MinOccurs = new decimal(0);
  642. any1.MaxOccurs = decimal.MaxValue;
  643. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  644. sequence.Items.Add(any1);
  645. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  646. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  647. any2.MinOccurs = new decimal(1);
  648. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  649. sequence.Items.Add(any2);
  650. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  651. attribute1.Name = "namespace";
  652. attribute1.FixedValue = ds.Namespace;
  653. type.Attributes.Add(attribute1);
  654. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  655. attribute2.Name = "tableTypeName";
  656. attribute2.FixedValue = "ОценкиDataTable";
  657. type.Attributes.Add(attribute2);
  658. type.Particle = sequence;
  659. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  660. if (xs.Contains(dsSchema.TargetNamespace)) {
  661. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  662. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  663. try {
  664. global::System.Xml.Schema.XmlSchema schema = null;
  665. dsSchema.Write(s1);
  666. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  667. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  668. s2.SetLength(0);
  669. schema.Write(s2);
  670. if ((s1.Length == s2.Length)) {
  671. s1.Position = 0;
  672. s2.Position = 0;
  673. for (; ((s1.Position != s1.Length)
  674. && (s1.ReadByte() == s2.ReadByte())); ) {
  675. ;
  676. }
  677. if ((s1.Position == s1.Length)) {
  678. return type;
  679. }
  680. }
  681. }
  682. }
  683. finally {
  684. if ((s1 != null)) {
  685. s1.Close();
  686. }
  687. if ((s2 != null)) {
  688. s2.Close();
  689. }
  690. }
  691. }
  692. xs.Add(dsSchema);
  693. return type;
  694. }
  695. }
  696. /// <summary>
  697. ///Represents the strongly named DataTable class.
  698. ///</summary>
  699. [global::System.Serializable()]
  700. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  701. public partial class ПредметыDataTable : global::System.Data.TypedTableBase<ПредметыRow> {
  702. private global::System.Data.DataColumn columnКодПредмета;
  703. private global::System.Data.DataColumn columnНаименованиеПредмета;
  704. private global::System.Data.DataColumn columnОписаниеПредмета;
  705. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  706. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  707. public ПредметыDataTable() {
  708. this.TableName = "Предметы";
  709. this.BeginInit();
  710. this.InitClass();
  711. this.EndInit();
  712. }
  713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  715. internal ПредметыDataTable(global::System.Data.DataTable table) {
  716. this.TableName = table.TableName;
  717. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  718. this.CaseSensitive = table.CaseSensitive;
  719. }
  720. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  721. this.Locale = table.Locale;
  722. }
  723. if ((table.Namespace != table.DataSet.Namespace)) {
  724. this.Namespace = table.Namespace;
  725. }
  726. this.Prefix = table.Prefix;
  727. this.MinimumCapacity = table.MinimumCapacity;
  728. }
  729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  730. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  731. protected ПредметыDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  732. base(info, context) {
  733. this.InitVars();
  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. [global::System.ComponentModel.Browsable(false)]
  759. public int Count {
  760. get {
  761. return this.Rows.Count;
  762. }
  763. }
  764. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  765. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  766. public ПредметыRow this[int index] {
  767. get {
  768. return ((ПредметыRow)(this.Rows[index]));
  769. }
  770. }
  771. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  772. public event ПредметыRowChangeEventHandler ПредметыRowChanging;
  773. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  774. public event ПредметыRowChangeEventHandler ПредметыRowChanged;
  775. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  776. public event ПредметыRowChangeEventHandler ПредметыRowDeleting;
  777. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  778. public event ПредметыRowChangeEventHandler ПредметыRowDeleted;
  779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  781. public void AddПредметыRow(ПредметыRow row) {
  782. this.Rows.Add(row);
  783. }
  784. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  785. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  786. public ПредметыRow AddПредметыRow(string НаименованиеПредмета, string ОписаниеПредмета) {
  787. ПредметыRow rowПредметыRow = ((ПредметыRow)(this.NewRow()));
  788. object[] columnValuesArray = new object[] {
  789. null,
  790. НаименованиеПредмета,
  791. ОписаниеПредмета};
  792. rowПредметыRow.ItemArray = columnValuesArray;
  793. this.Rows.Add(rowПредметыRow);
  794. return rowПредметыRow;
  795. }
  796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  797. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  798. public ПредметыRow FindByКодПредмета(int КодПредмета) {
  799. return ((ПредметыRow)(this.Rows.Find(new object[] {
  800. КодПредмета})));
  801. }
  802. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  803. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  804. public override global::System.Data.DataTable Clone() {
  805. ПредметыDataTable cln = ((ПредметыDataTable)(base.Clone()));
  806. cln.InitVars();
  807. return cln;
  808. }
  809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  810. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  811. protected override global::System.Data.DataTable CreateInstance() {
  812. return new ПредметыDataTable();
  813. }
  814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  816. internal void InitVars() {
  817. this.columnКодПредмета = base.Columns["КодПредмета"];
  818. this.columnНаименованиеПредмета = base.Columns["НаименованиеПредмета"];
  819. this.columnОписаниеПредмета = base.Columns["ОписаниеПредмета"];
  820. }
  821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  822. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  823. private void InitClass() {
  824. this.columnКодПредмета = new global::System.Data.DataColumn("КодПредмета", typeof(int), null, global::System.Data.MappingType.Element);
  825. base.Columns.Add(this.columnКодПредмета);
  826. this.columnНаименованиеПредмета = new global::System.Data.DataColumn("НаименованиеПредмета", typeof(string), null, global::System.Data.MappingType.Element);
  827. base.Columns.Add(this.columnНаименованиеПредмета);
  828. this.columnОписаниеПредмета = new global::System.Data.DataColumn("ОписаниеПредмета", typeof(string), null, global::System.Data.MappingType.Element);
  829. base.Columns.Add(this.columnОписаниеПредмета);
  830. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  831. this.columnКодПредмета}, true));
  832. this.columnКодПредмета.AutoIncrement = true;
  833. this.columnКодПредмета.AutoIncrementSeed = -1;
  834. this.columnКодПредмета.AutoIncrementStep = -1;
  835. this.columnКодПредмета.AllowDBNull = false;
  836. this.columnКодПредмета.ReadOnly = true;
  837. this.columnКодПредмета.Unique = true;
  838. this.columnНаименованиеПредмета.MaxLength = 50;
  839. this.columnОписаниеПредмета.MaxLength = 2147483647;
  840. }
  841. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  842. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  843. public ПредметыRow NewПредметыRow() {
  844. return ((ПредметыRow)(this.NewRow()));
  845. }
  846. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  847. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  848. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  849. return new ПредметыRow(builder);
  850. }
  851. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  852. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  853. protected override global::System.Type GetRowType() {
  854. return typeof(ПредметыRow);
  855. }
  856. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  857. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  858. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  859. base.OnRowChanged(e);
  860. if ((this.ПредметыRowChanged != null)) {
  861. this.ПредметыRowChanged(this, new ПредметыRowChangeEvent(((ПредметыRow)(e.Row)), e.Action));
  862. }
  863. }
  864. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  865. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  866. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  867. base.OnRowChanging(e);
  868. if ((this.ПредметыRowChanging != null)) {
  869. this.ПредметыRowChanging(this, new ПредметыRowChangeEvent(((ПредметыRow)(e.Row)), e.Action));
  870. }
  871. }
  872. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  873. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  874. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  875. base.OnRowDeleted(e);
  876. if ((this.ПредметыRowDeleted != null)) {
  877. this.ПредметыRowDeleted(this, new ПредметыRowChangeEvent(((ПредметыRow)(e.Row)), e.Action));
  878. }
  879. }
  880. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  881. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  882. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  883. base.OnRowDeleting(e);
  884. if ((this.ПредметыRowDeleting != null)) {
  885. this.ПредметыRowDeleting(this, new ПредметыRowChangeEvent(((ПредметыRow)(e.Row)), e.Action));
  886. }
  887. }
  888. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  889. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  890. public void RemoveПредметыRow(ПредметыRow row) {
  891. this.Rows.Remove(row);
  892. }
  893. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  894. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  895. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  896. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  897. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  898. РП31ДьячковНикитинСтудентыDataSet1 ds = new РП31ДьячковНикитинСтудентыDataSet1();
  899. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  900. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  901. any1.MinOccurs = new decimal(0);
  902. any1.MaxOccurs = decimal.MaxValue;
  903. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  904. sequence.Items.Add(any1);
  905. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  906. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  907. any2.MinOccurs = new decimal(1);
  908. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  909. sequence.Items.Add(any2);
  910. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  911. attribute1.Name = "namespace";
  912. attribute1.FixedValue = ds.Namespace;
  913. type.Attributes.Add(attribute1);
  914. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  915. attribute2.Name = "tableTypeName";
  916. attribute2.FixedValue = "ПредметыDataTable";
  917. type.Attributes.Add(attribute2);
  918. type.Particle = sequence;
  919. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  920. if (xs.Contains(dsSchema.TargetNamespace)) {
  921. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  922. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  923. try {
  924. global::System.Xml.Schema.XmlSchema schema = null;
  925. dsSchema.Write(s1);
  926. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  927. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  928. s2.SetLength(0);
  929. schema.Write(s2);
  930. if ((s1.Length == s2.Length)) {
  931. s1.Position = 0;
  932. s2.Position = 0;
  933. for (; ((s1.Position != s1.Length)
  934. && (s1.ReadByte() == s2.ReadByte())); ) {
  935. ;
  936. }
  937. if ((s1.Position == s1.Length)) {
  938. return type;
  939. }
  940. }
  941. }
  942. }
  943. finally {
  944. if ((s1 != null)) {
  945. s1.Close();
  946. }
  947. if ((s2 != null)) {
  948. s2.Close();
  949. }
  950. }
  951. }
  952. xs.Add(dsSchema);
  953. return type;
  954. }
  955. }
  956. /// <summary>
  957. ///Represents the strongly named DataTable class.
  958. ///</summary>
  959. [global::System.Serializable()]
  960. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  961. public partial class СпециальностиDataTable : global::System.Data.TypedTableBase<СпециальностиRow> {
  962. private global::System.Data.DataColumn columnКодСпециальности;
  963. private global::System.Data.DataColumn columnНаименованиеСпециальности;
  964. private global::System.Data.DataColumn columnОписаниеСпециальности;
  965. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  966. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  967. public СпециальностиDataTable() {
  968. this.TableName = "Специальности";
  969. this.BeginInit();
  970. this.InitClass();
  971. this.EndInit();
  972. }
  973. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  974. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  975. internal СпециальностиDataTable(global::System.Data.DataTable table) {
  976. this.TableName = table.TableName;
  977. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  978. this.CaseSensitive = table.CaseSensitive;
  979. }
  980. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  981. this.Locale = table.Locale;
  982. }
  983. if ((table.Namespace != table.DataSet.Namespace)) {
  984. this.Namespace = table.Namespace;
  985. }
  986. this.Prefix = table.Prefix;
  987. this.MinimumCapacity = table.MinimumCapacity;
  988. }
  989. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  990. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  991. protected СпециальностиDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  992. base(info, context) {
  993. this.InitVars();
  994. }
  995. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  996. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  997. public global::System.Data.DataColumn КодСпециальностиColumn {
  998. get {
  999. return this.columnКодСпециальности;
  1000. }
  1001. }
  1002. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1003. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1004. public global::System.Data.DataColumn НаименованиеСпециальностиColumn {
  1005. get {
  1006. return this.columnНаименованиеСпециальности;
  1007. }
  1008. }
  1009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1011. public global::System.Data.DataColumn ОписаниеСпециальностиColumn {
  1012. get {
  1013. return this.columnОписаниеСпециальности;
  1014. }
  1015. }
  1016. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1017. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1018. [global::System.ComponentModel.Browsable(false)]
  1019. public int Count {
  1020. get {
  1021. return this.Rows.Count;
  1022. }
  1023. }
  1024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1025. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1026. public СпециальностиRow this[int index] {
  1027. get {
  1028. return ((СпециальностиRow)(this.Rows[index]));
  1029. }
  1030. }
  1031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1032. public event СпециальностиRowChangeEventHandler СпециальностиRowChanging;
  1033. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1034. public event СпециальностиRowChangeEventHandler СпециальностиRowChanged;
  1035. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1036. public event СпециальностиRowChangeEventHandler СпециальностиRowDeleting;
  1037. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1038. public event СпециальностиRowChangeEventHandler СпециальностиRowDeleted;
  1039. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1041. public void AddСпециальностиRow(СпециальностиRow row) {
  1042. this.Rows.Add(row);
  1043. }
  1044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1046. public СпециальностиRow AddСпециальностиRow(string НаименованиеСпециальности, string ОписаниеСпециальности) {
  1047. СпециальностиRow rowСпециальностиRow = ((СпециальностиRow)(this.NewRow()));
  1048. object[] columnValuesArray = new object[] {
  1049. null,
  1050. НаименованиеСпециальности,
  1051. ОписаниеСпециальности};
  1052. rowСпециальностиRow.ItemArray = columnValuesArray;
  1053. this.Rows.Add(rowСпециальностиRow);
  1054. return rowСпециальностиRow;
  1055. }
  1056. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1057. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1058. public СпециальностиRow FindByКодСпециальности(int КодСпециальности) {
  1059. return ((СпециальностиRow)(this.Rows.Find(new object[] {
  1060. КодСпециальности})));
  1061. }
  1062. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1063. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1064. public override global::System.Data.DataTable Clone() {
  1065. СпециальностиDataTable cln = ((СпециальностиDataTable)(base.Clone()));
  1066. cln.InitVars();
  1067. return cln;
  1068. }
  1069. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1070. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1071. protected override global::System.Data.DataTable CreateInstance() {
  1072. return new СпециальностиDataTable();
  1073. }
  1074. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1075. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1076. internal void InitVars() {
  1077. this.columnКодСпециальности = base.Columns["КодСпециальности"];
  1078. this.columnНаименованиеСпециальности = base.Columns["НаименованиеСпециальности"];
  1079. this.columnОписаниеСпециальности = base.Columns["ОписаниеСпециальности"];
  1080. }
  1081. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1082. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1083. private void InitClass() {
  1084. this.columnКодСпециальности = new global::System.Data.DataColumn("КодСпециальности", typeof(int), null, global::System.Data.MappingType.Element);
  1085. base.Columns.Add(this.columnКодСпециальности);
  1086. this.columnНаименованиеСпециальности = new global::System.Data.DataColumn("НаименованиеСпециальности", typeof(string), null, global::System.Data.MappingType.Element);
  1087. base.Columns.Add(this.columnНаименованиеСпециальности);
  1088. this.columnОписаниеСпециальности = new global::System.Data.DataColumn("ОписаниеСпециальности", typeof(string), null, global::System.Data.MappingType.Element);
  1089. base.Columns.Add(this.columnОписаниеСпециальности);
  1090. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1091. this.columnКодСпециальности}, true));
  1092. this.columnКодСпециальности.AutoIncrement = true;
  1093. this.columnКодСпециальности.AutoIncrementSeed = -1;
  1094. this.columnКодСпециальности.AutoIncrementStep = -1;
  1095. this.columnКодСпециальности.AllowDBNull = false;
  1096. this.columnКодСпециальности.ReadOnly = true;
  1097. this.columnКодСпециальности.Unique = true;
  1098. this.columnНаименованиеСпециальности.MaxLength = 50;
  1099. this.columnОписаниеСпециальности.MaxLength = 2147483647;
  1100. }
  1101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1102. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1103. public СпециальностиRow NewСпециальностиRow() {
  1104. return ((СпециальностиRow)(this.NewRow()));
  1105. }
  1106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1108. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1109. return new СпециальностиRow(builder);
  1110. }
  1111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1113. protected override global::System.Type GetRowType() {
  1114. return typeof(СпециальностиRow);
  1115. }
  1116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1118. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1119. base.OnRowChanged(e);
  1120. if ((this.СпециальностиRowChanged != null)) {
  1121. this.СпециальностиRowChanged(this, new СпециальностиRowChangeEvent(((СпециальностиRow)(e.Row)), e.Action));
  1122. }
  1123. }
  1124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1125. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1126. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1127. base.OnRowChanging(e);
  1128. if ((this.СпециальностиRowChanging != null)) {
  1129. this.СпециальностиRowChanging(this, new СпециальностиRowChangeEvent(((СпециальностиRow)(e.Row)), e.Action));
  1130. }
  1131. }
  1132. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1133. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1134. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1135. base.OnRowDeleted(e);
  1136. if ((this.СпециальностиRowDeleted != null)) {
  1137. this.СпециальностиRowDeleted(this, new СпециальностиRowChangeEvent(((СпециальностиRow)(e.Row)), e.Action));
  1138. }
  1139. }
  1140. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1141. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1142. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1143. base.OnRowDeleting(e);
  1144. if ((this.СпециальностиRowDeleting != null)) {
  1145. this.СпециальностиRowDeleting(this, new СпециальностиRowChangeEvent(((СпециальностиRow)(e.Row)), e.Action));
  1146. }
  1147. }
  1148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1150. public void RemoveСпециальностиRow(СпециальностиRow row) {
  1151. this.Rows.Remove(row);
  1152. }
  1153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1154. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1155. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1156. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1157. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1158. РП31ДьячковНикитинСтудентыDataSet1 ds = new РП31ДьячковНикитинСтудентыDataSet1();
  1159. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1160. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1161. any1.MinOccurs = new decimal(0);
  1162. any1.MaxOccurs = decimal.MaxValue;
  1163. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1164. sequence.Items.Add(any1);
  1165. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1166. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1167. any2.MinOccurs = new decimal(1);
  1168. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1169. sequence.Items.Add(any2);
  1170. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1171. attribute1.Name = "namespace";
  1172. attribute1.FixedValue = ds.Namespace;
  1173. type.Attributes.Add(attribute1);
  1174. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1175. attribute2.Name = "tableTypeName";
  1176. attribute2.FixedValue = "СпециальностиDataTable";
  1177. type.Attributes.Add(attribute2);
  1178. type.Particle = sequence;
  1179. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1180. if (xs.Contains(dsSchema.TargetNamespace)) {
  1181. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1182. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1183. try {
  1184. global::System.Xml.Schema.XmlSchema schema = null;
  1185. dsSchema.Write(s1);
  1186. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1187. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1188. s2.SetLength(0);
  1189. schema.Write(s2);
  1190. if ((s1.Length == s2.Length)) {
  1191. s1.Position = 0;
  1192. s2.Position = 0;
  1193. for (; ((s1.Position != s1.Length)
  1194. && (s1.ReadByte() == s2.ReadByte())); ) {
  1195. ;
  1196. }
  1197. if ((s1.Position == s1.Length)) {
  1198. return type;
  1199. }
  1200. }
  1201. }
  1202. }
  1203. finally {
  1204. if ((s1 != null)) {
  1205. s1.Close();
  1206. }
  1207. if ((s2 != null)) {
  1208. s2.Close();
  1209. }
  1210. }
  1211. }
  1212. xs.Add(dsSchema);
  1213. return type;
  1214. }
  1215. }
  1216. /// <summary>
  1217. ///Represents the strongly named DataTable class.
  1218. ///</summary>
  1219. [global::System.Serializable()]
  1220. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1221. public partial class СтудентыDataTable : global::System.Data.TypedTableBase<СтудентыRow> {
  1222. private global::System.Data.DataColumn columnКодСтудента;
  1223. private global::System.Data.DataColumn columnФИО;
  1224. private global::System.Data.DataColumn columnПол;
  1225. private global::System.Data.DataColumn columnДатаРождения;
  1226. private global::System.Data.DataColumn columnРодители;
  1227. private global::System.Data.DataColumn columnАдрес;
  1228. private global::System.Data.DataColumn columnТелефон;
  1229. private global::System.Data.DataColumn columnПаспортныеДанные;
  1230. private global::System.Data.DataColumn columnНомерЗачетки;
  1231. private global::System.Data.DataColumn columnДатаПоступления;
  1232. private global::System.Data.DataColumn columnГруппа;
  1233. private global::System.Data.DataColumn columnКурс;
  1234. private global::System.Data.DataColumn columnКодСпециальности;
  1235. private global::System.Data.DataColumn columnОчнаяФормаОбучения;
  1236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1237. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1238. public СтудентыDataTable() {
  1239. this.TableName = "Студенты";
  1240. this.BeginInit();
  1241. this.InitClass();
  1242. this.EndInit();
  1243. }
  1244. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1245. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1246. internal СтудентыDataTable(global::System.Data.DataTable table) {
  1247. this.TableName = table.TableName;
  1248. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1249. this.CaseSensitive = table.CaseSensitive;
  1250. }
  1251. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1252. this.Locale = table.Locale;
  1253. }
  1254. if ((table.Namespace != table.DataSet.Namespace)) {
  1255. this.Namespace = table.Namespace;
  1256. }
  1257. this.Prefix = table.Prefix;
  1258. this.MinimumCapacity = table.MinimumCapacity;
  1259. }
  1260. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1261. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1262. protected СтудентыDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1263. base(info, context) {
  1264. this.InitVars();
  1265. }
  1266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1268. public global::System.Data.DataColumn КодСтудентаColumn {
  1269. get {
  1270. return this.columnКодСтудента;
  1271. }
  1272. }
  1273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1274. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1275. public global::System.Data.DataColumn ФИОColumn {
  1276. get {
  1277. return this.columnФИО;
  1278. }
  1279. }
  1280. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1281. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1282. public global::System.Data.DataColumn ПолColumn {
  1283. get {
  1284. return this.columnПол;
  1285. }
  1286. }
  1287. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1288. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1289. public global::System.Data.DataColumn ДатаРожденияColumn {
  1290. get {
  1291. return this.columnДатаРождения;
  1292. }
  1293. }
  1294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1296. public global::System.Data.DataColumn РодителиColumn {
  1297. get {
  1298. return this.columnРодители;
  1299. }
  1300. }
  1301. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1302. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1303. public global::System.Data.DataColumn АдресColumn {
  1304. get {
  1305. return this.columnАдрес;
  1306. }
  1307. }
  1308. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1309. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1310. public global::System.Data.DataColumn ТелефонColumn {
  1311. get {
  1312. return this.columnТелефон;
  1313. }
  1314. }
  1315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1316. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1317. public global::System.Data.DataColumn ПаспортныеДанныеColumn {
  1318. get {
  1319. return this.columnПаспортныеДанные;
  1320. }
  1321. }
  1322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1323. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1324. public global::System.Data.DataColumn НомерЗачеткиColumn {
  1325. get {
  1326. return this.columnНомерЗачетки;
  1327. }
  1328. }
  1329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1331. public global::System.Data.DataColumn ДатаПоступленияColumn {
  1332. get {
  1333. return this.columnДатаПоступления;
  1334. }
  1335. }
  1336. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1337. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1338. public global::System.Data.DataColumn ГруппаColumn {
  1339. get {
  1340. return this.columnГруппа;
  1341. }
  1342. }
  1343. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1344. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1345. public global::System.Data.DataColumn КурсColumn {
  1346. get {
  1347. return this.columnКурс;
  1348. }
  1349. }
  1350. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1351. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1352. public global::System.Data.DataColumn КодСпециальностиColumn {
  1353. get {
  1354. return this.columnКодСпециальности;
  1355. }
  1356. }
  1357. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1358. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1359. public global::System.Data.DataColumn ОчнаяФормаОбученияColumn {
  1360. get {
  1361. return this.columnОчнаяФормаОбучения;
  1362. }
  1363. }
  1364. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1365. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1366. [global::System.ComponentModel.Browsable(false)]
  1367. public int Count {
  1368. get {
  1369. return this.Rows.Count;
  1370. }
  1371. }
  1372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1374. public СтудентыRow this[int index] {
  1375. get {
  1376. return ((СтудентыRow)(this.Rows[index]));
  1377. }
  1378. }
  1379. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1380. public event СтудентыRowChangeEventHandler СтудентыRowChanging;
  1381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1382. public event СтудентыRowChangeEventHandler СтудентыRowChanged;
  1383. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1384. public event СтудентыRowChangeEventHandler СтудентыRowDeleting;
  1385. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1386. public event СтудентыRowChangeEventHandler СтудентыRowDeleted;
  1387. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1388. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1389. public void AddСтудентыRow(СтудентыRow row) {
  1390. this.Rows.Add(row);
  1391. }
  1392. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1393. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1394. public СтудентыRow AddСтудентыRow(string ФИО, string Пол, System.DateTime ДатаРождения, string Родители, string Адрес, string Телефон, string ПаспортныеДанные, long НомерЗачетки, System.DateTime ДатаПоступления, string Группа, byte Курс, long КодСпециальности, bool ОчнаяФормаОбучения) {
  1395. СтудентыRow rowСтудентыRow = ((СтудентыRow)(this.NewRow()));
  1396. object[] columnValuesArray = new object[] {
  1397. null,
  1398. ФИО,
  1399. Пол,
  1400. ДатаРождения,
  1401. Родители,
  1402. Адрес,
  1403. Телефон,
  1404. ПаспортныеДанные,
  1405. НомерЗачетки,
  1406. ДатаПоступления,
  1407. Группа,
  1408. Курс,
  1409. КодСпециальности,
  1410. ОчнаяФормаОбучения};
  1411. rowСтудентыRow.ItemArray = columnValuesArray;
  1412. this.Rows.Add(rowСтудентыRow);
  1413. return rowСтудентыRow;
  1414. }
  1415. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1416. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1417. public СтудентыRow FindByКодСтудента(int КодСтудента) {
  1418. return ((СтудентыRow)(this.Rows.Find(new object[] {
  1419. КодСтудента})));
  1420. }
  1421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1422. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1423. public override global::System.Data.DataTable Clone() {
  1424. СтудентыDataTable cln = ((СтудентыDataTable)(base.Clone()));
  1425. cln.InitVars();
  1426. return cln;
  1427. }
  1428. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1429. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1430. protected override global::System.Data.DataTable CreateInstance() {
  1431. return new СтудентыDataTable();
  1432. }
  1433. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1434. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1435. internal void InitVars() {
  1436. this.columnКодСтудента = base.Columns["КодСтудента"];
  1437. this.columnФИО = base.Columns["ФИО"];
  1438. this.columnПол = base.Columns["Пол"];
  1439. this.columnДатаРождения = base.Columns["ДатаРождения"];
  1440. this.columnРодители = base.Columns["Родители"];
  1441. this.columnАдрес = base.Columns["Адрес"];
  1442. this.columnТелефон = base.Columns["Телефон"];
  1443. this.columnПаспортныеДанные = base.Columns["ПаспортныеДанные"];
  1444. this.columnНомерЗачетки = base.Columns["НомерЗачетки"];
  1445. this.columnДатаПоступления = base.Columns["ДатаПоступления"];
  1446. this.columnГруппа = base.Columns["Группа"];
  1447. this.columnКурс = base.Columns["Курс"];
  1448. this.columnКодСпециальности = base.Columns["КодСпециальности"];
  1449. this.columnОчнаяФормаОбучения = base.Columns["ОчнаяФормаОбучения"];
  1450. }
  1451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1452. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1453. private void InitClass() {
  1454. this.columnКодСтудента = new global::System.Data.DataColumn("КодСтудента", typeof(int), null, global::System.Data.MappingType.Element);
  1455. base.Columns.Add(this.columnКодСтудента);
  1456. this.columnФИО = new global::System.Data.DataColumn("ФИО", typeof(string), null, global::System.Data.MappingType.Element);
  1457. base.Columns.Add(this.columnФИО);
  1458. this.columnПол = new global::System.Data.DataColumn("Пол", typeof(string), null, global::System.Data.MappingType.Element);
  1459. base.Columns.Add(this.columnПол);
  1460. this.columnДатаРождения = new global::System.Data.DataColumn("ДатаРождения", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1461. base.Columns.Add(this.columnДатаРождения);
  1462. this.columnРодители = new global::System.Data.DataColumn("Родители", typeof(string), null, global::System.Data.MappingType.Element);
  1463. base.Columns.Add(this.columnРодители);
  1464. this.columnАдрес = new global::System.Data.DataColumn("Адрес", typeof(string), null, global::System.Data.MappingType.Element);
  1465. base.Columns.Add(this.columnАдрес);
  1466. this.columnТелефон = new global::System.Data.DataColumn("Телефон", typeof(string), null, global::System.Data.MappingType.Element);
  1467. base.Columns.Add(this.columnТелефон);
  1468. this.columnПаспортныеДанные = new global::System.Data.DataColumn("ПаспортныеДанные", typeof(string), null, global::System.Data.MappingType.Element);
  1469. base.Columns.Add(this.columnПаспортныеДанные);
  1470. this.columnНомерЗачетки = new global::System.Data.DataColumn("НомерЗачетки", typeof(long), null, global::System.Data.MappingType.Element);
  1471. base.Columns.Add(this.columnНомерЗачетки);
  1472. this.columnДатаПоступления = new global::System.Data.DataColumn("ДатаПоступления", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1473. base.Columns.Add(this.columnДатаПоступления);
  1474. this.columnГруппа = new global::System.Data.DataColumn("Группа", typeof(string), null, global::System.Data.MappingType.Element);
  1475. base.Columns.Add(this.columnГруппа);
  1476. this.columnКурс = new global::System.Data.DataColumn("Курс", typeof(byte), null, global::System.Data.MappingType.Element);
  1477. base.Columns.Add(this.columnКурс);
  1478. this.columnКодСпециальности = new global::System.Data.DataColumn("КодСпециальности", typeof(long), null, global::System.Data.MappingType.Element);
  1479. base.Columns.Add(this.columnКодСпециальности);
  1480. this.columnОчнаяФормаОбучения = new global::System.Data.DataColumn("ОчнаяФормаОбучения", typeof(bool), null, global::System.Data.MappingType.Element);
  1481. base.Columns.Add(this.columnОчнаяФормаОбучения);
  1482. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1483. this.columnКодСтудента}, true));
  1484. this.columnКодСтудента.AutoIncrement = true;
  1485. this.columnКодСтудента.AutoIncrementSeed = -1;
  1486. this.columnКодСтудента.AutoIncrementStep = -1;
  1487. this.columnКодСтудента.AllowDBNull = false;
  1488. this.columnКодСтудента.ReadOnly = true;
  1489. this.columnКодСтудента.Unique = true;
  1490. this.columnФИО.MaxLength = 50;
  1491. this.columnПол.MaxLength = 50;
  1492. this.columnРодители.MaxLength = 50;
  1493. this.columnАдрес.MaxLength = 2147483647;
  1494. this.columnТелефон.MaxLength = 15;
  1495. this.columnПаспортныеДанные.MaxLength = 2147483647;
  1496. this.columnГруппа.MaxLength = 20;
  1497. }
  1498. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1499. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1500. public СтудентыRow NewСтудентыRow() {
  1501. return ((СтудентыRow)(this.NewRow()));
  1502. }
  1503. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1504. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1505. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1506. return new СтудентыRow(builder);
  1507. }
  1508. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1509. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1510. protected override global::System.Type GetRowType() {
  1511. return typeof(СтудентыRow);
  1512. }
  1513. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1514. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1515. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1516. base.OnRowChanged(e);
  1517. if ((this.СтудентыRowChanged != null)) {
  1518. this.СтудентыRowChanged(this, new СтудентыRowChangeEvent(((СтудентыRow)(e.Row)), e.Action));
  1519. }
  1520. }
  1521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1523. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1524. base.OnRowChanging(e);
  1525. if ((this.СтудентыRowChanging != null)) {
  1526. this.СтудентыRowChanging(this, new СтудентыRowChangeEvent(((СтудентыRow)(e.Row)), e.Action));
  1527. }
  1528. }
  1529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1530. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1531. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1532. base.OnRowDeleted(e);
  1533. if ((this.СтудентыRowDeleted != null)) {
  1534. this.СтудентыRowDeleted(this, new СтудентыRowChangeEvent(((СтудентыRow)(e.Row)), e.Action));
  1535. }
  1536. }
  1537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1538. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1539. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1540. base.OnRowDeleting(e);
  1541. if ((this.СтудентыRowDeleting != null)) {
  1542. this.СтудентыRowDeleting(this, new СтудентыRowChangeEvent(((СтудентыRow)(e.Row)), e.Action));
  1543. }
  1544. }
  1545. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1546. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1547. public void RemoveСтудентыRow(СтудентыRow row) {
  1548. this.Rows.Remove(row);
  1549. }
  1550. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1551. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1552. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1553. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1554. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1555. РП31ДьячковНикитинСтудентыDataSet1 ds = new РП31ДьячковНикитинСтудентыDataSet1();
  1556. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1557. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1558. any1.MinOccurs = new decimal(0);
  1559. any1.MaxOccurs = decimal.MaxValue;
  1560. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1561. sequence.Items.Add(any1);
  1562. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1563. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1564. any2.MinOccurs = new decimal(1);
  1565. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1566. sequence.Items.Add(any2);
  1567. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1568. attribute1.Name = "namespace";
  1569. attribute1.FixedValue = ds.Namespace;
  1570. type.Attributes.Add(attribute1);
  1571. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1572. attribute2.Name = "tableTypeName";
  1573. attribute2.FixedValue = "СтудентыDataTable";
  1574. type.Attributes.Add(attribute2);
  1575. type.Particle = sequence;
  1576. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1577. if (xs.Contains(dsSchema.TargetNamespace)) {
  1578. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1579. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1580. try {
  1581. global::System.Xml.Schema.XmlSchema schema = null;
  1582. dsSchema.Write(s1);
  1583. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1584. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1585. s2.SetLength(0);
  1586. schema.Write(s2);
  1587. if ((s1.Length == s2.Length)) {
  1588. s1.Position = 0;
  1589. s2.Position = 0;
  1590. for (; ((s1.Position != s1.Length)
  1591. && (s1.ReadByte() == s2.ReadByte())); ) {
  1592. ;
  1593. }
  1594. if ((s1.Position == s1.Length)) {
  1595. return type;
  1596. }
  1597. }
  1598. }
  1599. }
  1600. finally {
  1601. if ((s1 != null)) {
  1602. s1.Close();
  1603. }
  1604. if ((s2 != null)) {
  1605. s2.Close();
  1606. }
  1607. }
  1608. }
  1609. xs.Add(dsSchema);
  1610. return type;
  1611. }
  1612. }
  1613. /// <summary>
  1614. ///Represents strongly named DataRow class.
  1615. ///</summary>
  1616. public partial class ОценкиRow : global::System.Data.DataRow {
  1617. private ОценкиDataTable tableОценки;
  1618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1619. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1620. internal ОценкиRow(global::System.Data.DataRowBuilder rb) :
  1621. base(rb) {
  1622. this.tableОценки = ((ОценкиDataTable)(this.Table));
  1623. }
  1624. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1625. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1626. public long КодСтудента {
  1627. get {
  1628. return ((long)(this[this.tableОценки.КодСтудентаColumn]));
  1629. }
  1630. set {
  1631. this[this.tableОценки.КодСтудентаColumn] = value;
  1632. }
  1633. }
  1634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1636. public System.DateTime ДатаЭкзамена1 {
  1637. get {
  1638. try {
  1639. return ((global::System.DateTime)(this[this.tableОценки.ДатаЭкзамена1Column]));
  1640. }
  1641. catch (global::System.InvalidCastException e) {
  1642. throw new global::System.Data.StrongTypingException("Значение для столбца \'ДатаЭкзамена1\' в таблице \'Оценки\' равно DBNull.", e);
  1643. }
  1644. }
  1645. set {
  1646. this[this.tableОценки.ДатаЭкзамена1Column] = value;
  1647. }
  1648. }
  1649. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1650. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1651. public long КодПредмета1 {
  1652. get {
  1653. try {
  1654. return ((long)(this[this.tableОценки.КодПредмета1Column]));
  1655. }
  1656. catch (global::System.InvalidCastException e) {
  1657. throw new global::System.Data.StrongTypingException("Значение для столбца \'КодПредмета1\' в таблице \'Оценки\' равно DBNull.", e);
  1658. }
  1659. }
  1660. set {
  1661. this[this.tableОценки.КодПредмета1Column] = value;
  1662. }
  1663. }
  1664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1666. public byte Оценка1 {
  1667. get {
  1668. try {
  1669. return ((byte)(this[this.tableОценки.Оценка1Column]));
  1670. }
  1671. catch (global::System.InvalidCastException e) {
  1672. throw new global::System.Data.StrongTypingException("Значение для столбца \'Оценка1\' в таблице \'Оценки\' равно DBNull.", e);
  1673. }
  1674. }
  1675. set {
  1676. this[this.tableОценки.Оценка1Column] = value;
  1677. }
  1678. }
  1679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1680. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1681. public System.DateTime ДатаЭкзамена2 {
  1682. get {
  1683. try {
  1684. return ((global::System.DateTime)(this[this.tableОценки.ДатаЭкзамена2Column]));
  1685. }
  1686. catch (global::System.InvalidCastException e) {
  1687. throw new global::System.Data.StrongTypingException("Значение для столбца \'ДатаЭкзамена2\' в таблице \'Оценки\' равно DBNull.", e);
  1688. }
  1689. }
  1690. set {
  1691. this[this.tableОценки.ДатаЭкзамена2Column] = value;
  1692. }
  1693. }
  1694. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1695. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1696. public long КодПредмета2 {
  1697. get {
  1698. try {
  1699. return ((long)(this[this.tableОценки.КодПредмета2Column]));
  1700. }
  1701. catch (global::System.InvalidCastException e) {
  1702. throw new global::System.Data.StrongTypingException("Значение для столбца \'КодПредмета2\' в таблице \'Оценки\' равно DBNull.", e);
  1703. }
  1704. }
  1705. set {
  1706. this[this.tableОценки.КодПредмета2Column] = value;
  1707. }
  1708. }
  1709. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1710. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1711. public byte Оценка2 {
  1712. get {
  1713. try {
  1714. return ((byte)(this[this.tableОценки.Оценка2Column]));
  1715. }
  1716. catch (global::System.InvalidCastException e) {
  1717. throw new global::System.Data.StrongTypingException("Значение для столбца \'Оценка2\' в таблице \'Оценки\' равно DBNull.", e);
  1718. }
  1719. }
  1720. set {
  1721. this[this.tableОценки.Оценка2Column] = value;
  1722. }
  1723. }
  1724. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1725. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1726. public System.DateTime ДатаЭкзамена3 {
  1727. get {
  1728. try {
  1729. return ((global::System.DateTime)(this[this.tableОценки.ДатаЭкзамена3Column]));
  1730. }
  1731. catch (global::System.InvalidCastException e) {
  1732. throw new global::System.Data.StrongTypingException("Значение для столбца \'ДатаЭкзамена3\' в таблице \'Оценки\' равно DBNull.", e);
  1733. }
  1734. }
  1735. set {
  1736. this[this.tableОценки.ДатаЭкзамена3Column] = value;
  1737. }
  1738. }
  1739. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1740. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1741. public long КодПредмета3 {
  1742. get {
  1743. try {
  1744. return ((long)(this[this.tableОценки.КодПредмета3Column]));
  1745. }
  1746. catch (global::System.InvalidCastException e) {
  1747. throw new global::System.Data.StrongTypingException("Значение для столбца \'КодПредмета3\' в таблице \'Оценки\' равно DBNull.", e);
  1748. }
  1749. }
  1750. set {
  1751. this[this.tableОценки.КодПредмета3Column] = value;
  1752. }
  1753. }
  1754. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1755. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1756. public byte Оценка3 {
  1757. get {
  1758. try {
  1759. return ((byte)(this[this.tableОценки.Оценка3Column]));
  1760. }
  1761. catch (global::System.InvalidCastException e) {
  1762. throw new global::System.Data.StrongTypingException("Значение для столбца \'Оценка3\' в таблице \'Оценки\' равно DBNull.", e);
  1763. }
  1764. }
  1765. set {
  1766. this[this.tableОценки.Оценка3Column] = value;
  1767. }
  1768. }
  1769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1770. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1771. public float СреднийБалл {
  1772. get {
  1773. try {
  1774. return ((float)(this[this.tableОценки.СреднийБаллColumn]));
  1775. }
  1776. catch (global::System.InvalidCastException e) {
  1777. throw new global::System.Data.StrongTypingException("Значение для столбца \'СреднийБалл\' в таблице \'Оценки\' равно DBNull.", e);
  1778. }
  1779. }
  1780. set {
  1781. this[this.tableОценки.СреднийБаллColumn] = value;
  1782. }
  1783. }
  1784. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1785. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1786. public bool IsДатаЭкзамена1Null() {
  1787. return this.IsNull(this.tableОценки.ДатаЭкзамена1Column);
  1788. }
  1789. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1790. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1791. public void SetДатаЭкзамена1Null() {
  1792. this[this.tableОценки.ДатаЭкзамена1Column] = global::System.Convert.DBNull;
  1793. }
  1794. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1795. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1796. public bool IsКодПредмета1Null() {
  1797. return this.IsNull(this.tableОценки.КодПредмета1Column);
  1798. }
  1799. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1800. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1801. public void SetКодПредмета1Null() {
  1802. this[this.tableОценки.КодПредмета1Column] = global::System.Convert.DBNull;
  1803. }
  1804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1806. public bool IsОценка1Null() {
  1807. return this.IsNull(this.tableОценки.Оценка1Column);
  1808. }
  1809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1810. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1811. public void SetОценка1Null() {
  1812. this[this.tableОценки.Оценка1Column] = global::System.Convert.DBNull;
  1813. }
  1814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1816. public bool IsДатаЭкзамена2Null() {
  1817. return this.IsNull(this.tableОценки.ДатаЭкзамена2Column);
  1818. }
  1819. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1820. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1821. public void SetДатаЭкзамена2Null() {
  1822. this[this.tableОценки.ДатаЭкзамена2Column] = global::System.Convert.DBNull;
  1823. }
  1824. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1825. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1826. public bool IsКодПредмета2Null() {
  1827. return this.IsNull(this.tableОценки.КодПредмета2Column);
  1828. }
  1829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1830. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1831. public void SetКодПредмета2Null() {
  1832. this[this.tableОценки.КодПредмета2Column] = global::System.Convert.DBNull;
  1833. }
  1834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1835. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1836. public bool IsОценка2Null() {
  1837. return this.IsNull(this.tableОценки.Оценка2Column);
  1838. }
  1839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1841. public void SetОценка2Null() {
  1842. this[this.tableОценки.Оценка2Column] = global::System.Convert.DBNull;
  1843. }
  1844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1845. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1846. public bool IsДатаЭкзамена3Null() {
  1847. return this.IsNull(this.tableОценки.ДатаЭкзамена3Column);
  1848. }
  1849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1850. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1851. public void SetДатаЭкзамена3Null() {
  1852. this[this.tableОценки.ДатаЭкзамена3Column] = global::System.Convert.DBNull;
  1853. }
  1854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1855. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1856. public bool IsКодПредмета3Null() {
  1857. return this.IsNull(this.tableОценки.КодПредмета3Column);
  1858. }
  1859. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1860. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1861. public void SetКодПредмета3Null() {
  1862. this[this.tableОценки.КодПредмета3Column] = global::System.Convert.DBNull;
  1863. }
  1864. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1865. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1866. public bool IsОценка3Null() {
  1867. return this.IsNull(this.tableОценки.Оценка3Column);
  1868. }
  1869. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1870. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1871. public void SetОценка3Null() {
  1872. this[this.tableОценки.Оценка3Column] = global::System.Convert.DBNull;
  1873. }
  1874. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1875. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1876. public bool IsСреднийБаллNull() {
  1877. return this.IsNull(this.tableОценки.СреднийБаллColumn);
  1878. }
  1879. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1880. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1881. public void SetСреднийБаллNull() {
  1882. this[this.tableОценки.СреднийБаллColumn] = global::System.Convert.DBNull;
  1883. }
  1884. }
  1885. /// <summary>
  1886. ///Represents strongly named DataRow class.
  1887. ///</summary>
  1888. public partial class ПредметыRow : global::System.Data.DataRow {
  1889. private ПредметыDataTable tableПредметы;
  1890. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1891. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1892. internal ПредметыRow(global::System.Data.DataRowBuilder rb) :
  1893. base(rb) {
  1894. this.tableПредметы = ((ПредметыDataTable)(this.Table));
  1895. }
  1896. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1897. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1898. public int КодПредмета {
  1899. get {
  1900. return ((int)(this[this.tableПредметы.КодПредметаColumn]));
  1901. }
  1902. set {
  1903. this[this.tableПредметы.КодПредметаColumn] = value;
  1904. }
  1905. }
  1906. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1907. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1908. public string НаименованиеПредмета {
  1909. get {
  1910. try {
  1911. return ((string)(this[this.tableПредметы.НаименованиеПредметаColumn]));
  1912. }
  1913. catch (global::System.InvalidCastException e) {
  1914. throw new global::System.Data.StrongTypingException("Значение для столбца \'НаименованиеПредмета\' в таблице \'Предметы\' равно DBNull.", e);
  1915. }
  1916. }
  1917. set {
  1918. this[this.tableПредметы.НаименованиеПредметаColumn] = value;
  1919. }
  1920. }
  1921. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1922. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1923. public string ОписаниеПредмета {
  1924. get {
  1925. try {
  1926. return ((string)(this[this.tableПредметы.ОписаниеПредметаColumn]));
  1927. }
  1928. catch (global::System.InvalidCastException e) {
  1929. throw new global::System.Data.StrongTypingException("Значение для столбца \'ОписаниеПредмета\' в таблице \'Предметы\' равно DBNull.", e);
  1930. }
  1931. }
  1932. set {
  1933. this[this.tableПредметы.ОписаниеПредметаColumn] = value;
  1934. }
  1935. }
  1936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1937. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1938. public bool IsНаименованиеПредметаNull() {
  1939. return this.IsNull(this.tableПредметы.НаименованиеПредметаColumn);
  1940. }
  1941. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1942. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1943. public void SetНаименованиеПредметаNull() {
  1944. this[this.tableПредметы.НаименованиеПредметаColumn] = global::System.Convert.DBNull;
  1945. }
  1946. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1947. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1948. public bool IsОписаниеПредметаNull() {
  1949. return this.IsNull(this.tableПредметы.ОписаниеПредметаColumn);
  1950. }
  1951. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1952. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1953. public void SetОписаниеПредметаNull() {
  1954. this[this.tableПредметы.ОписаниеПредметаColumn] = global::System.Convert.DBNull;
  1955. }
  1956. }
  1957. /// <summary>
  1958. ///Represents strongly named DataRow class.
  1959. ///</summary>
  1960. public partial class СпециальностиRow : global::System.Data.DataRow {
  1961. private СпециальностиDataTable tableСпециальности;
  1962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1963. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1964. internal СпециальностиRow(global::System.Data.DataRowBuilder rb) :
  1965. base(rb) {
  1966. this.tableСпециальности = ((СпециальностиDataTable)(this.Table));
  1967. }
  1968. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1969. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1970. public int КодСпециальности {
  1971. get {
  1972. return ((int)(this[this.tableСпециальности.КодСпециальностиColumn]));
  1973. }
  1974. set {
  1975. this[this.tableСпециальности.КодСпециальностиColumn] = value;
  1976. }
  1977. }
  1978. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1979. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1980. public string НаименованиеСпециальности {
  1981. get {
  1982. try {
  1983. return ((string)(this[this.tableСпециальности.НаименованиеСпециальностиColumn]));
  1984. }
  1985. catch (global::System.InvalidCastException e) {
  1986. throw new global::System.Data.StrongTypingException("Значение для столбца \'НаименованиеСпециальности\' в таблице \'Специальности\' равно " +
  1987. "DBNull.", e);
  1988. }
  1989. }
  1990. set {
  1991. this[this.tableСпециальности.НаименованиеСпециальностиColumn] = value;
  1992. }
  1993. }
  1994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1995. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1996. public string ОписаниеСпециальности {
  1997. get {
  1998. try {
  1999. return ((string)(this[this.tableСпециальности.ОписаниеСпециальностиColumn]));
  2000. }
  2001. catch (global::System.InvalidCastException e) {
  2002. throw new global::System.Data.StrongTypingException("Значение для столбца \'ОписаниеСпециальности\' в таблице \'Специальности\' равно DBNu" +
  2003. "ll.", e);
  2004. }
  2005. }
  2006. set {
  2007. this[this.tableСпециальности.ОписаниеСпециальностиColumn] = value;
  2008. }
  2009. }
  2010. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2011. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2012. public bool IsНаименованиеСпециальностиNull() {
  2013. return this.IsNull(this.tableСпециальности.НаименованиеСпециальностиColumn);
  2014. }
  2015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2016. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2017. public void SetНаименованиеСпециальностиNull() {
  2018. this[this.tableСпециальности.НаименованиеСпециальностиColumn] = global::System.Convert.DBNull;
  2019. }
  2020. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2021. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2022. public bool IsОписаниеСпециальностиNull() {
  2023. return this.IsNull(this.tableСпециальности.ОписаниеСпециальностиColumn);
  2024. }
  2025. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2026. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2027. public void SetОписаниеСпециальностиNull() {
  2028. this[this.tableСпециальности.ОписаниеСпециальностиColumn] = global::System.Convert.DBNull;
  2029. }
  2030. }
  2031. /// <summary>
  2032. ///Represents strongly named DataRow class.
  2033. ///</summary>
  2034. public partial class СтудентыRow : global::System.Data.DataRow {
  2035. private СтудентыDataTable tableСтуденты;
  2036. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2037. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2038. internal СтудентыRow(global::System.Data.DataRowBuilder rb) :
  2039. base(rb) {
  2040. this.tableСтуденты = ((СтудентыDataTable)(this.Table));
  2041. }
  2042. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2043. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2044. public int КодСтудента {
  2045. get {
  2046. return ((int)(this[this.tableСтуденты.КодСтудентаColumn]));
  2047. }
  2048. set {
  2049. this[this.tableСтуденты.КодСтудентаColumn] = value;
  2050. }
  2051. }
  2052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2053. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2054. public string ФИО {
  2055. get {
  2056. try {
  2057. return ((string)(this[this.tableСтуденты.ФИОColumn]));
  2058. }
  2059. catch (global::System.InvalidCastException e) {
  2060. throw new global::System.Data.StrongTypingException("Значение для столбца \'ФИО\' в таблице \'Студенты\' равно DBNull.", e);
  2061. }
  2062. }
  2063. set {
  2064. this[this.tableСтуденты.ФИОColumn] = value;
  2065. }
  2066. }
  2067. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2068. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2069. public string Пол {
  2070. get {
  2071. try {
  2072. return ((string)(this[this.tableСтуденты.ПолColumn]));
  2073. }
  2074. catch (global::System.InvalidCastException e) {
  2075. throw new global::System.Data.StrongTypingException("Значение для столбца \'Пол\' в таблице \'Студенты\' равно DBNull.", e);
  2076. }
  2077. }
  2078. set {
  2079. this[this.tableСтуденты.ПолColumn] = value;
  2080. }
  2081. }
  2082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2084. public System.DateTime ДатаРождения {
  2085. get {
  2086. try {
  2087. return ((global::System.DateTime)(this[this.tableСтуденты.ДатаРожденияColumn]));
  2088. }
  2089. catch (global::System.InvalidCastException e) {
  2090. throw new global::System.Data.StrongTypingException("Значение для столбца \'ДатаРождения\' в таблице \'Студенты\' равно DBNull.", e);
  2091. }
  2092. }
  2093. set {
  2094. this[this.tableСтуденты.ДатаРожденияColumn] = value;
  2095. }
  2096. }
  2097. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2098. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2099. public string Родители {
  2100. get {
  2101. try {
  2102. return ((string)(this[this.tableСтуденты.РодителиColumn]));
  2103. }
  2104. catch (global::System.InvalidCastException e) {
  2105. throw new global::System.Data.StrongTypingException("Значение для столбца \'Родители\' в таблице \'Студенты\' равно DBNull.", e);
  2106. }
  2107. }
  2108. set {
  2109. this[this.tableСтуденты.РодителиColumn] = value;
  2110. }
  2111. }
  2112. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2113. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2114. public string Адрес {
  2115. get {
  2116. try {
  2117. return ((string)(this[this.tableСтуденты.АдресColumn]));
  2118. }
  2119. catch (global::System.InvalidCastException e) {
  2120. throw new global::System.Data.StrongTypingException("Значение для столбца \'Адрес\' в таблице \'Студенты\' равно DBNull.", e);
  2121. }
  2122. }
  2123. set {
  2124. this[this.tableСтуденты.АдресColumn] = value;
  2125. }
  2126. }
  2127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2128. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2129. public string Телефон {
  2130. get {
  2131. try {
  2132. return ((string)(this[this.tableСтуденты.ТелефонColumn]));
  2133. }
  2134. catch (global::System.InvalidCastException e) {
  2135. throw new global::System.Data.StrongTypingException("Значение для столбца \'Телефон\' в таблице \'Студенты\' равно DBNull.", e);
  2136. }
  2137. }
  2138. set {
  2139. this[this.tableСтуденты.ТелефонColumn] = value;
  2140. }
  2141. }
  2142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2143. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2144. public string ПаспортныеДанные {
  2145. get {
  2146. try {
  2147. return ((string)(this[this.tableСтуденты.ПаспортныеДанныеColumn]));
  2148. }
  2149. catch (global::System.InvalidCastException e) {
  2150. throw new global::System.Data.StrongTypingException("Значение для столбца \'ПаспортныеДанные\' в таблице \'Студенты\' равно DBNull.", e);
  2151. }
  2152. }
  2153. set {
  2154. this[this.tableСтуденты.ПаспортныеДанныеColumn] = value;
  2155. }
  2156. }
  2157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2159. public long НомерЗачетки {
  2160. get {
  2161. try {
  2162. return ((long)(this[this.tableСтуденты.НомерЗачеткиColumn]));
  2163. }
  2164. catch (global::System.InvalidCastException e) {
  2165. throw new global::System.Data.StrongTypingException("Значение для столбца \'НомерЗачетки\' в таблице \'Студенты\' равно DBNull.", e);
  2166. }
  2167. }
  2168. set {
  2169. this[this.tableСтуденты.НомерЗачеткиColumn] = value;
  2170. }
  2171. }
  2172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2174. public System.DateTime ДатаПоступления {
  2175. get {
  2176. try {
  2177. return ((global::System.DateTime)(this[this.tableСтуденты.ДатаПоступленияColumn]));
  2178. }
  2179. catch (global::System.InvalidCastException e) {
  2180. throw new global::System.Data.StrongTypingException("Значение для столбца \'ДатаПоступления\' в таблице \'Студенты\' равно DBNull.", e);
  2181. }
  2182. }
  2183. set {
  2184. this[this.tableСтуденты.ДатаПоступленияColumn] = value;
  2185. }
  2186. }
  2187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2188. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2189. public string Группа {
  2190. get {
  2191. try {
  2192. return ((string)(this[this.tableСтуденты.ГруппаColumn]));
  2193. }
  2194. catch (global::System.InvalidCastException e) {
  2195. throw new global::System.Data.StrongTypingException("Значение для столбца \'Группа\' в таблице \'Студенты\' равно DBNull.", e);
  2196. }
  2197. }
  2198. set {
  2199. this[this.tableСтуденты.ГруппаColumn] = value;
  2200. }
  2201. }
  2202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2204. public byte Курс {
  2205. get {
  2206. try {
  2207. return ((byte)(this[this.tableСтуденты.КурсColumn]));
  2208. }
  2209. catch (global::System.InvalidCastException e) {
  2210. throw new global::System.Data.StrongTypingException("Значение для столбца \'Курс\' в таблице \'Студенты\' равно DBNull.", e);
  2211. }
  2212. }
  2213. set {
  2214. this[this.tableСтуденты.КурсColumn] = value;
  2215. }
  2216. }
  2217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2218. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2219. public long КодСпециальности {
  2220. get {
  2221. try {
  2222. return ((long)(this[this.tableСтуденты.КодСпециальностиColumn]));
  2223. }
  2224. catch (global::System.InvalidCastException e) {
  2225. throw new global::System.Data.StrongTypingException("Значение для столбца \'КодСпециальности\' в таблице \'Студенты\' равно DBNull.", e);
  2226. }
  2227. }
  2228. set {
  2229. this[this.tableСтуденты.КодСпециальностиColumn] = value;
  2230. }
  2231. }
  2232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2233. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2234. public bool ОчнаяФормаОбучения {
  2235. get {
  2236. try {
  2237. return ((bool)(this[this.tableСтуденты.ОчнаяФормаОбученияColumn]));
  2238. }
  2239. catch (global::System.InvalidCastException e) {
  2240. throw new global::System.Data.StrongTypingException("Значение для столбца \'ОчнаяФормаОбучения\' в таблице \'Студенты\' равно DBNull.", e);
  2241. }
  2242. }
  2243. set {
  2244. this[this.tableСтуденты.ОчнаяФормаОбученияColumn] = value;
  2245. }
  2246. }
  2247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2249. public bool IsФИОNull() {
  2250. return this.IsNull(this.tableСтуденты.ФИОColumn);
  2251. }
  2252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2254. public void SetФИОNull() {
  2255. this[this.tableСтуденты.ФИОColumn] = global::System.Convert.DBNull;
  2256. }
  2257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2258. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2259. public bool IsПолNull() {
  2260. return this.IsNull(this.tableСтуденты.ПолColumn);
  2261. }
  2262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2263. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2264. public void SetПолNull() {
  2265. this[this.tableСтуденты.ПолColumn] = global::System.Convert.DBNull;
  2266. }
  2267. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2268. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2269. public bool IsДатаРожденияNull() {
  2270. return this.IsNull(this.tableСтуденты.ДатаРожденияColumn);
  2271. }
  2272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2274. public void SetДатаРожденияNull() {
  2275. this[this.tableСтуденты.ДатаРожденияColumn] = global::System.Convert.DBNull;
  2276. }
  2277. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2278. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2279. public bool IsРодителиNull() {
  2280. return this.IsNull(this.tableСтуденты.РодителиColumn);
  2281. }
  2282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2284. public void SetРодителиNull() {
  2285. this[this.tableСтуденты.РодителиColumn] = global::System.Convert.DBNull;
  2286. }
  2287. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2288. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2289. public bool IsАдресNull() {
  2290. return this.IsNull(this.tableСтуденты.АдресColumn);
  2291. }
  2292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2293. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2294. public void SetАдресNull() {
  2295. this[this.tableСтуденты.АдресColumn] = global::System.Convert.DBNull;
  2296. }
  2297. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2298. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2299. public bool IsТелефонNull() {
  2300. return this.IsNull(this.tableСтуденты.ТелефонColumn);
  2301. }
  2302. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2303. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2304. public void SetТелефонNull() {
  2305. this[this.tableСтуденты.ТелефонColumn] = global::System.Convert.DBNull;
  2306. }
  2307. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2308. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2309. public bool IsПаспортныеДанныеNull() {
  2310. return this.IsNull(this.tableСтуденты.ПаспортныеДанныеColumn);
  2311. }
  2312. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2313. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2314. public void SetПаспортныеДанныеNull() {
  2315. this[this.tableСтуденты.ПаспортныеДанныеColumn] = global::System.Convert.DBNull;
  2316. }
  2317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2319. public bool IsНомерЗачеткиNull() {
  2320. return this.IsNull(this.tableСтуденты.НомерЗачеткиColumn);
  2321. }
  2322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2323. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2324. public void SetНомерЗачеткиNull() {
  2325. this[this.tableСтуденты.НомерЗачеткиColumn] = global::System.Convert.DBNull;
  2326. }
  2327. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2328. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2329. public bool IsДатаПоступленияNull() {
  2330. return this.IsNull(this.tableСтуденты.ДатаПоступленияColumn);
  2331. }
  2332. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2333. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2334. public void SetДатаПоступленияNull() {
  2335. this[this.tableСтуденты.ДатаПоступленияColumn] = global::System.Convert.DBNull;
  2336. }
  2337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2339. public bool IsГруппаNull() {
  2340. return this.IsNull(this.tableСтуденты.ГруппаColumn);
  2341. }
  2342. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2343. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2344. public void SetГруппаNull() {
  2345. this[this.tableСтуденты.ГруппаColumn] = global::System.Convert.DBNull;
  2346. }
  2347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2349. public bool IsКурсNull() {
  2350. return this.IsNull(this.tableСтуденты.КурсColumn);
  2351. }
  2352. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2353. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2354. public void SetКурсNull() {
  2355. this[this.tableСтуденты.КурсColumn] = global::System.Convert.DBNull;
  2356. }
  2357. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2358. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2359. public bool IsКодСпециальностиNull() {
  2360. return this.IsNull(this.tableСтуденты.КодСпециальностиColumn);
  2361. }
  2362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2363. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2364. public void SetКодСпециальностиNull() {
  2365. this[this.tableСтуденты.КодСпециальностиColumn] = global::System.Convert.DBNull;
  2366. }
  2367. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2368. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2369. public bool IsОчнаяФормаОбученияNull() {
  2370. return this.IsNull(this.tableСтуденты.ОчнаяФормаОбученияColumn);
  2371. }
  2372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2374. public void SetОчнаяФормаОбученияNull() {
  2375. this[this.tableСтуденты.ОчнаяФормаОбученияColumn] = global::System.Convert.DBNull;
  2376. }
  2377. }
  2378. /// <summary>
  2379. ///Row event argument class
  2380. ///</summary>
  2381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2382. public class ОценкиRowChangeEvent : global::System.EventArgs {
  2383. private ОценкиRow eventRow;
  2384. private global::System.Data.DataRowAction eventAction;
  2385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2386. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2387. public ОценкиRowChangeEvent(ОценкиRow row, global::System.Data.DataRowAction action) {
  2388. this.eventRow = row;
  2389. this.eventAction = action;
  2390. }
  2391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2392. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2393. public ОценкиRow Row {
  2394. get {
  2395. return this.eventRow;
  2396. }
  2397. }
  2398. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2399. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2400. public global::System.Data.DataRowAction Action {
  2401. get {
  2402. return this.eventAction;
  2403. }
  2404. }
  2405. }
  2406. /// <summary>
  2407. ///Row event argument class
  2408. ///</summary>
  2409. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2410. public class ПредметыRowChangeEvent : global::System.EventArgs {
  2411. private ПредметыRow eventRow;
  2412. private global::System.Data.DataRowAction eventAction;
  2413. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2414. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2415. public ПредметыRowChangeEvent(ПредметыRow row, global::System.Data.DataRowAction action) {
  2416. this.eventRow = row;
  2417. this.eventAction = action;
  2418. }
  2419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2421. public ПредметыRow Row {
  2422. get {
  2423. return this.eventRow;
  2424. }
  2425. }
  2426. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2427. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2428. public global::System.Data.DataRowAction Action {
  2429. get {
  2430. return this.eventAction;
  2431. }
  2432. }
  2433. }
  2434. /// <summary>
  2435. ///Row event argument class
  2436. ///</summary>
  2437. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2438. public class СпециальностиRowChangeEvent : global::System.EventArgs {
  2439. private СпециальностиRow eventRow;
  2440. private global::System.Data.DataRowAction eventAction;
  2441. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2442. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2443. public СпециальностиRowChangeEvent(СпециальностиRow row, global::System.Data.DataRowAction action) {
  2444. this.eventRow = row;
  2445. this.eventAction = action;
  2446. }
  2447. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2448. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2449. public СпециальностиRow Row {
  2450. get {
  2451. return this.eventRow;
  2452. }
  2453. }
  2454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2455. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2456. public global::System.Data.DataRowAction Action {
  2457. get {
  2458. return this.eventAction;
  2459. }
  2460. }
  2461. }
  2462. /// <summary>
  2463. ///Row event argument class
  2464. ///</summary>
  2465. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2466. public class СтудентыRowChangeEvent : global::System.EventArgs {
  2467. private СтудентыRow eventRow;
  2468. private global::System.Data.DataRowAction eventAction;
  2469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2470. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2471. public СтудентыRowChangeEvent(СтудентыRow row, global::System.Data.DataRowAction action) {
  2472. this.eventRow = row;
  2473. this.eventAction = action;
  2474. }
  2475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2477. public СтудентыRow Row {
  2478. get {
  2479. return this.eventRow;
  2480. }
  2481. }
  2482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2484. public global::System.Data.DataRowAction Action {
  2485. get {
  2486. return this.eventAction;
  2487. }
  2488. }
  2489. }
  2490. }
  2491. }
  2492. namespace DiachkovStudents.РП31ДьячковНикитинСтудентыDataSet1TableAdapters {
  2493. /// <summary>
  2494. ///Represents the connection and commands used to retrieve and save data.
  2495. ///</summary>
  2496. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  2497. [global::System.ComponentModel.ToolboxItem(true)]
  2498. [global::System.ComponentModel.DataObjectAttribute(true)]
  2499. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  2500. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  2501. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2502. public partial class ОценкиTableAdapter : global::System.ComponentModel.Component {
  2503. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  2504. private global::System.Data.SqlClient.SqlConnection _connection;
  2505. private global::System.Data.SqlClient.SqlTransaction _transaction;
  2506. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  2507. private bool _clearBeforeFill;
  2508. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2509. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2510. public ОценкиTableAdapter() {
  2511. this.ClearBeforeFill = true;
  2512. }
  2513. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2514. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2515. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  2516. get {
  2517. if ((this._adapter == null)) {
  2518. this.InitAdapter();
  2519. }
  2520. return this._adapter;
  2521. }
  2522. }
  2523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2524. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2525. internal global::System.Data.SqlClient.SqlConnection Connection {
  2526. get {
  2527. if ((this._connection == null)) {
  2528. this.InitConnection();
  2529. }
  2530. return this._connection;
  2531. }
  2532. set {
  2533. this._connection = value;
  2534. if ((this.Adapter.InsertCommand != null)) {
  2535. this.Adapter.InsertCommand.Connection = value;
  2536. }
  2537. if ((this.Adapter.DeleteCommand != null)) {
  2538. this.Adapter.DeleteCommand.Connection = value;
  2539. }
  2540. if ((this.Adapter.UpdateCommand != null)) {
  2541. this.Adapter.UpdateCommand.Connection = value;
  2542. }
  2543. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2544. if ((this.CommandCollection[i] != null)) {
  2545. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  2546. }
  2547. }
  2548. }
  2549. }
  2550. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2551. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2552. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  2553. get {
  2554. return this._transaction;
  2555. }
  2556. set {
  2557. this._transaction = value;
  2558. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2559. this.CommandCollection[i].Transaction = this._transaction;
  2560. }
  2561. if (((this.Adapter != null)
  2562. && (this.Adapter.DeleteCommand != null))) {
  2563. this.Adapter.DeleteCommand.Transaction = this._transaction;
  2564. }
  2565. if (((this.Adapter != null)
  2566. && (this.Adapter.InsertCommand != null))) {
  2567. this.Adapter.InsertCommand.Transaction = this._transaction;
  2568. }
  2569. if (((this.Adapter != null)
  2570. && (this.Adapter.UpdateCommand != null))) {
  2571. this.Adapter.UpdateCommand.Transaction = this._transaction;
  2572. }
  2573. }
  2574. }
  2575. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2576. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2577. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  2578. get {
  2579. if ((this._commandCollection == null)) {
  2580. this.InitCommandCollection();
  2581. }
  2582. return this._commandCollection;
  2583. }
  2584. }
  2585. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2586. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2587. public bool ClearBeforeFill {
  2588. get {
  2589. return this._clearBeforeFill;
  2590. }
  2591. set {
  2592. this._clearBeforeFill = value;
  2593. }
  2594. }
  2595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2596. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2597. private void InitAdapter() {
  2598. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  2599. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  2600. tableMapping.SourceTable = "Table";
  2601. tableMapping.DataSetTable = "Оценки";
  2602. tableMapping.ColumnMappings.Add("КодСтудента", "КодСтудента");
  2603. tableMapping.ColumnMappings.Add("ДатаЭкзамена1", "ДатаЭкзамена1");
  2604. tableMapping.ColumnMappings.Add("КодПредмета1", "КодПредмета1");
  2605. tableMapping.ColumnMappings.Add("Оценка1", "Оценка1");
  2606. tableMapping.ColumnMappings.Add("ДатаЭкзамена2", "ДатаЭкзамена2");
  2607. tableMapping.ColumnMappings.Add("КодПредмета2", "КодПредмета2");
  2608. tableMapping.ColumnMappings.Add("Оценка2", "Оценка2");
  2609. tableMapping.ColumnMappings.Add("ДатаЭкзамена3", "ДатаЭкзамена3");
  2610. tableMapping.ColumnMappings.Add("КодПредмета3", "КодПредмета3");
  2611. tableMapping.ColumnMappings.Add("Оценка3", "Оценка3");
  2612. tableMapping.ColumnMappings.Add("СреднийБалл", "СреднийБалл");
  2613. this._adapter.TableMappings.Add(tableMapping);
  2614. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  2615. this._adapter.DeleteCommand.Connection = this.Connection;
  2616. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Оценки] WHERE (([КодСтудента] = @Original_КодСтудента) AND ((@IsNull_ДатаЭкзамена1 = 1 AND [ДатаЭкзамена1] IS NULL) OR ([ДатаЭкзамена1] = @Original_ДатаЭкзамена1)) AND ((@IsNull_КодПредмета1 = 1 AND [КодПредмета1] IS NULL) OR ([КодПредмета1] = @Original_КодПредмета1)) AND ((@IsNull_Оценка1 = 1 AND [Оценка1] IS NULL) OR ([Оценка1] = @Original_Оценка1)) AND ((@IsNull_ДатаЭкзамена2 = 1 AND [ДатаЭкзамена2] IS NULL) OR ([ДатаЭкзамена2] = @Original_ДатаЭкзамена2)) AND ((@IsNull_КодПредмета2 = 1 AND [КодПредмета2] IS NULL) OR ([КодПредмета2] = @Original_КодПредмета2)) AND ((@IsNull_Оценка2 = 1 AND [Оценка2] IS NULL) OR ([Оценка2] = @Original_Оценка2)) AND ((@IsNull_ДатаЭкзамена3 = 1 AND [ДатаЭкзамена3] IS NULL) OR ([ДатаЭкзамена3] = @Original_ДатаЭкзамена3)) AND ((@IsNull_КодПредмета3 = 1 AND [КодПредмета3] IS NULL) OR ([КодПредмета3] = @Original_КодПредмета3)) AND ((@IsNull_Оценка3 = 1 AND [Оценка3] IS NULL) OR ([Оценка3] = @Original_Оценка3)) AND ((@IsNull_СреднийБалл = 1 AND [СреднийБалл] IS NULL) OR ([СреднийБалл] = @Original_СреднийБалл)))";
  2617. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  2618. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_КодСтудента", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодСтудента", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2619. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ДатаЭкзамена1", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаЭкзамена1", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  2620. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ДатаЭкзамена1", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаЭкзамена1", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2621. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_КодПредмета1", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодПредмета1", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  2622. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_КодПредмета1", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодПредмета1", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2623. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Оценка1", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Оценка1", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  2624. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Оценка1", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Оценка1", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2625. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ДатаЭкзамена2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаЭкзамена2", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  2626. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ДатаЭкзамена2", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаЭкзамена2", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2627. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_КодПредмета2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодПредмета2", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  2628. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_КодПредмета2", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодПредмета2", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2629. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Оценка2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Оценка2", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  2630. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Оценка2", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Оценка2", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2631. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ДатаЭкзамена3", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаЭкзамена3", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  2632. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ДатаЭкзамена3", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаЭкзамена3", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2633. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_КодПредмета3", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодПредмета3", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  2634. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_КодПредмета3", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодПредмета3", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2635. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Оценка3", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Оценка3", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  2636. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Оценка3", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Оценка3", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2637. 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, "", "", ""));
  2638. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_СреднийБалл", global::System.Data.SqlDbType.Real, 0, global::System.Data.ParameterDirection.Input, 0, 0, "СреднийБалл", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2639. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  2640. this._adapter.InsertCommand.Connection = this.Connection;
  2641. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Оценки] ([ДатаЭкзамена1], [КодПредмета1], [Оценка1], [ДатаЭкзамена2], [КодПредмета2], [Оценка2], [ДатаЭкзамена3], [КодПредмета3], [Оценка3], [СреднийБалл]) VALUES (@ДатаЭкзамена1, @КодПредмета1, @Оценка1, @ДатаЭкзамена2, @КодПредмета2, @Оценка2, @ДатаЭкзамена3, @КодПредмета3, @Оценка3, @СреднийБалл);
  2642. SELECT КодСтудента, ДатаЭкзамена1, КодПредмета1, Оценка1, ДатаЭкзамена2, КодПредмета2, Оценка2, ДатаЭкзамена3, КодПредмета3, Оценка3, СреднийБалл FROM Оценки WHERE (КодСтудента = SCOPE_IDENTITY())";
  2643. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  2644. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ДатаЭкзамена1", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаЭкзамена1", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2645. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@КодПредмета1", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодПредмета1", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2646. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Оценка1", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Оценка1", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2647. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ДатаЭкзамена2", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаЭкзамена2", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2648. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@КодПредмета2", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодПредмета2", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2649. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Оценка2", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Оценка2", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2650. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ДатаЭкзамена3", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаЭкзамена3", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2651. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@КодПредмета3", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодПредмета3", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2652. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Оценка3", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Оценка3", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2653. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@СреднийБалл", global::System.Data.SqlDbType.Real, 0, global::System.Data.ParameterDirection.Input, 0, 0, "СреднийБалл", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2654. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  2655. this._adapter.UpdateCommand.Connection = this.Connection;
  2656. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Оценки] SET [ДатаЭкзамена1] = @ДатаЭкзамена1, [КодПредмета1] = @Код" +
  2657. "Предмета1, [Оценка1] = @Оценка1, [ДатаЭкзамена2] = @ДатаЭкзамена2, [КодПредмета2" +
  2658. "] = @КодПредмета2, [Оценка2] = @Оценка2, [ДатаЭкзамена3] = @ДатаЭкзамена3, [КодП" +
  2659. "редмета3] = @КодПредмета3, [Оценка3] = @Оценка3, [СреднийБалл] = @СреднийБалл WH" +
  2660. "ERE (([КодСтудента] = @Original_КодСтудента) AND ((@IsNull_ДатаЭкзамена1 = 1 AND" +
  2661. " [ДатаЭкзамена1] IS NULL) OR ([ДатаЭкзамена1] = @Original_ДатаЭкзамена1)) AND ((" +
  2662. "@IsNull_КодПредмета1 = 1 AND [КодПредмета1] IS NULL) OR ([КодПредмета1] = @Origi" +
  2663. "nal_КодПредмета1)) AND ((@IsNull_Оценка1 = 1 AND [Оценка1] IS NULL) OR ([Оценка1" +
  2664. "] = @Original_Оценка1)) AND ((@IsNull_ДатаЭкзамена2 = 1 AND [ДатаЭкзамена2] IS N" +
  2665. "ULL) OR ([ДатаЭкзамена2] = @Original_ДатаЭкзамена2)) AND ((@IsNull_КодПредмета2 " +
  2666. "= 1 AND [КодПредмета2] IS NULL) OR ([КодПредмета2] = @Original_КодПредмета2)) AN" +
  2667. "D ((@IsNull_Оценка2 = 1 AND [Оценка2] IS NULL) OR ([Оценка2] = @Original_Оценка2" +
  2668. ")) AND ((@IsNull_ДатаЭкзамена3 = 1 AND [ДатаЭкзамена3] IS NULL) OR ([ДатаЭкзамен" +
  2669. "а3] = @Original_ДатаЭкзамена3)) AND ((@IsNull_КодПредмета3 = 1 AND [КодПредмета3" +
  2670. "] IS NULL) OR ([КодПредмета3] = @Original_КодПредмета3)) AND ((@IsNull_Оценка3 =" +
  2671. " 1 AND [Оценка3] IS NULL) OR ([Оценка3] = @Original_Оценка3)) AND ((@IsNull_Сред" +
  2672. "нийБалл = 1 AND [СреднийБалл] IS NULL) OR ([СреднийБалл] = @Original_СреднийБалл" +
  2673. ")));\r\nSELECT КодСтудента, ДатаЭкзамена1, КодПредмета1, Оценка1, ДатаЭкзамена2, К" +
  2674. "одПредмета2, Оценка2, ДатаЭкзамена3, КодПредмета3, Оценка3, СреднийБалл FROM Оце" +
  2675. "нки WHERE (КодСтудента = @КодСтудента)";
  2676. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  2677. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ДатаЭкзамена1", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаЭкзамена1", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2678. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@КодПредмета1", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодПредмета1", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2679. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Оценка1", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Оценка1", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2680. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ДатаЭкзамена2", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаЭкзамена2", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2681. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@КодПредмета2", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодПредмета2", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2682. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Оценка2", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Оценка2", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2683. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ДатаЭкзамена3", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаЭкзамена3", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2684. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@КодПредмета3", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодПредмета3", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2685. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Оценка3", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Оценка3", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2686. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@СреднийБалл", global::System.Data.SqlDbType.Real, 0, global::System.Data.ParameterDirection.Input, 0, 0, "СреднийБалл", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2687. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_КодСтудента", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодСтудента", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2688. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ДатаЭкзамена1", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаЭкзамена1", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  2689. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ДатаЭкзамена1", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаЭкзамена1", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2690. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_КодПредмета1", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодПредмета1", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  2691. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_КодПредмета1", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодПредмета1", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2692. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Оценка1", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Оценка1", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  2693. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Оценка1", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Оценка1", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2694. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ДатаЭкзамена2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаЭкзамена2", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  2695. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ДатаЭкзамена2", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаЭкзамена2", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2696. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_КодПредмета2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодПредмета2", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  2697. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_КодПредмета2", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодПредмета2", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2698. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Оценка2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Оценка2", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  2699. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Оценка2", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Оценка2", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2700. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ДатаЭкзамена3", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаЭкзамена3", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  2701. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ДатаЭкзамена3", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаЭкзамена3", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2702. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_КодПредмета3", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодПредмета3", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  2703. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_КодПредмета3", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодПредмета3", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2704. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Оценка3", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Оценка3", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  2705. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Оценка3", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Оценка3", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2706. 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, "", "", ""));
  2707. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_СреднийБалл", global::System.Data.SqlDbType.Real, 0, global::System.Data.ParameterDirection.Input, 0, 0, "СреднийБалл", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2708. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@КодСтудента", global::System.Data.SqlDbType.BigInt, 8, global::System.Data.ParameterDirection.Input, 0, 0, "КодСтудента", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2709. }
  2710. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2711. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2712. private void InitConnection() {
  2713. this._connection = new global::System.Data.SqlClient.SqlConnection();
  2714. this._connection.ConnectionString = global::DiachkovStudents.Properties.Settings.Default.РП31ДьячковНикитинСтудентыConnectionString;
  2715. }
  2716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2717. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2718. private void InitCommandCollection() {
  2719. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  2720. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  2721. this._commandCollection[0].Connection = this.Connection;
  2722. this._commandCollection[0].CommandText = "SELECT КодСтудента, ДатаЭкзамена1, КодПредмета1, Оценка1, ДатаЭкзамена2, КодПредм" +
  2723. "ета2, Оценка2, ДатаЭкзамена3, КодПредмета3, Оценка3, СреднийБалл FROM dbo.Оценки" +
  2724. "";
  2725. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  2726. }
  2727. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2728. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2729. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2730. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  2731. public virtual int Fill(РП31ДьячковНикитинСтудентыDataSet1.ОценкиDataTable dataTable) {
  2732. this.Adapter.SelectCommand = this.CommandCollection[0];
  2733. if ((this.ClearBeforeFill == true)) {
  2734. dataTable.Clear();
  2735. }
  2736. int returnValue = this.Adapter.Fill(dataTable);
  2737. return returnValue;
  2738. }
  2739. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2740. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2741. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2742. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  2743. public virtual РП31ДьячковНикитинСтудентыDataSet1.ОценкиDataTable GetData() {
  2744. this.Adapter.SelectCommand = this.CommandCollection[0];
  2745. РП31ДьячковНикитинСтудентыDataSet1.ОценкиDataTable dataTable = new РП31ДьячковНикитинСтудентыDataSet1.ОценкиDataTable();
  2746. this.Adapter.Fill(dataTable);
  2747. return dataTable;
  2748. }
  2749. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2750. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2751. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2752. public virtual int Update(РП31ДьячковНикитинСтудентыDataSet1.ОценкиDataTable dataTable) {
  2753. return this.Adapter.Update(dataTable);
  2754. }
  2755. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2756. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2757. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2758. public virtual int Update(РП31ДьячковНикитинСтудентыDataSet1 dataSet) {
  2759. return this.Adapter.Update(dataSet, "Оценки");
  2760. }
  2761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2763. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2764. public virtual int Update(global::System.Data.DataRow dataRow) {
  2765. return this.Adapter.Update(new global::System.Data.DataRow[] {
  2766. dataRow});
  2767. }
  2768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2770. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2771. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  2772. return this.Adapter.Update(dataRows);
  2773. }
  2774. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2775. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2776. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2777. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  2778. public virtual int Delete(long Original_КодСтудента, global::System.Nullable<global::System.DateTime> Original_ДатаЭкзамена1, global::System.Nullable<long> Original_КодПредмета1, global::System.Nullable<byte> Original_Оценка1, global::System.Nullable<global::System.DateTime> Original_ДатаЭкзамена2, global::System.Nullable<long> Original_КодПредмета2, global::System.Nullable<byte> Original_Оценка2, global::System.Nullable<global::System.DateTime> Original_ДатаЭкзамена3, global::System.Nullable<long> Original_КодПредмета3, global::System.Nullable<byte> Original_Оценка3, global::System.Nullable<float> Original_СреднийБалл) {
  2779. this.Adapter.DeleteCommand.Parameters[0].Value = ((long)(Original_КодСтудента));
  2780. if ((Original_ДатаЭкзамена1.HasValue == true)) {
  2781. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  2782. this.Adapter.DeleteCommand.Parameters[2].Value = ((System.DateTime)(Original_ДатаЭкзамена1.Value));
  2783. }
  2784. else {
  2785. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  2786. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  2787. }
  2788. if ((Original_КодПредмета1.HasValue == true)) {
  2789. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  2790. this.Adapter.DeleteCommand.Parameters[4].Value = ((long)(Original_КодПредмета1.Value));
  2791. }
  2792. else {
  2793. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  2794. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  2795. }
  2796. if ((Original_Оценка1.HasValue == true)) {
  2797. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  2798. this.Adapter.DeleteCommand.Parameters[6].Value = ((byte)(Original_Оценка1.Value));
  2799. }
  2800. else {
  2801. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  2802. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  2803. }
  2804. if ((Original_ДатаЭкзамена2.HasValue == true)) {
  2805. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  2806. this.Adapter.DeleteCommand.Parameters[8].Value = ((System.DateTime)(Original_ДатаЭкзамена2.Value));
  2807. }
  2808. else {
  2809. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  2810. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  2811. }
  2812. if ((Original_КодПредмета2.HasValue == true)) {
  2813. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  2814. this.Adapter.DeleteCommand.Parameters[10].Value = ((long)(Original_КодПредмета2.Value));
  2815. }
  2816. else {
  2817. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  2818. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  2819. }
  2820. if ((Original_Оценка2.HasValue == true)) {
  2821. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  2822. this.Adapter.DeleteCommand.Parameters[12].Value = ((byte)(Original_Оценка2.Value));
  2823. }
  2824. else {
  2825. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  2826. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  2827. }
  2828. if ((Original_ДатаЭкзамена3.HasValue == true)) {
  2829. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
  2830. this.Adapter.DeleteCommand.Parameters[14].Value = ((System.DateTime)(Original_ДатаЭкзамена3.Value));
  2831. }
  2832. else {
  2833. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
  2834. this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
  2835. }
  2836. if ((Original_КодПредмета3.HasValue == true)) {
  2837. this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(0));
  2838. this.Adapter.DeleteCommand.Parameters[16].Value = ((long)(Original_КодПредмета3.Value));
  2839. }
  2840. else {
  2841. this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(1));
  2842. this.Adapter.DeleteCommand.Parameters[16].Value = global::System.DBNull.Value;
  2843. }
  2844. if ((Original_Оценка3.HasValue == true)) {
  2845. this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(0));
  2846. this.Adapter.DeleteCommand.Parameters[18].Value = ((byte)(Original_Оценка3.Value));
  2847. }
  2848. else {
  2849. this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(1));
  2850. this.Adapter.DeleteCommand.Parameters[18].Value = global::System.DBNull.Value;
  2851. }
  2852. if ((Original_СреднийБалл.HasValue == true)) {
  2853. this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(0));
  2854. this.Adapter.DeleteCommand.Parameters[20].Value = ((float)(Original_СреднийБалл.Value));
  2855. }
  2856. else {
  2857. this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(1));
  2858. this.Adapter.DeleteCommand.Parameters[20].Value = global::System.DBNull.Value;
  2859. }
  2860. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  2861. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  2862. != global::System.Data.ConnectionState.Open)) {
  2863. this.Adapter.DeleteCommand.Connection.Open();
  2864. }
  2865. try {
  2866. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  2867. return returnValue;
  2868. }
  2869. finally {
  2870. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  2871. this.Adapter.DeleteCommand.Connection.Close();
  2872. }
  2873. }
  2874. }
  2875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2876. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2877. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2878. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  2879. public virtual int Insert(global::System.Nullable<global::System.DateTime> ДатаЭкзамена1, global::System.Nullable<long> КодПредмета1, global::System.Nullable<byte> Оценка1, global::System.Nullable<global::System.DateTime> ДатаЭкзамена2, global::System.Nullable<long> КодПредмета2, global::System.Nullable<byte> Оценка2, global::System.Nullable<global::System.DateTime> ДатаЭкзамена3, global::System.Nullable<long> КодПредмета3, global::System.Nullable<byte> Оценка3, global::System.Nullable<float> СреднийБалл) {
  2880. if ((ДатаЭкзамена1.HasValue == true)) {
  2881. this.Adapter.InsertCommand.Parameters[0].Value = ((System.DateTime)(ДатаЭкзамена1.Value));
  2882. }
  2883. else {
  2884. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  2885. }
  2886. if ((КодПредмета1.HasValue == true)) {
  2887. this.Adapter.InsertCommand.Parameters[1].Value = ((long)(КодПредмета1.Value));
  2888. }
  2889. else {
  2890. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  2891. }
  2892. if ((Оценка1.HasValue == true)) {
  2893. this.Adapter.InsertCommand.Parameters[2].Value = ((byte)(Оценка1.Value));
  2894. }
  2895. else {
  2896. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  2897. }
  2898. if ((ДатаЭкзамена2.HasValue == true)) {
  2899. this.Adapter.InsertCommand.Parameters[3].Value = ((System.DateTime)(ДатаЭкзамена2.Value));
  2900. }
  2901. else {
  2902. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  2903. }
  2904. if ((КодПредмета2.HasValue == true)) {
  2905. this.Adapter.InsertCommand.Parameters[4].Value = ((long)(КодПредмета2.Value));
  2906. }
  2907. else {
  2908. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  2909. }
  2910. if ((Оценка2.HasValue == true)) {
  2911. this.Adapter.InsertCommand.Parameters[5].Value = ((byte)(Оценка2.Value));
  2912. }
  2913. else {
  2914. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  2915. }
  2916. if ((ДатаЭкзамена3.HasValue == true)) {
  2917. this.Adapter.InsertCommand.Parameters[6].Value = ((System.DateTime)(ДатаЭкзамена3.Value));
  2918. }
  2919. else {
  2920. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  2921. }
  2922. if ((КодПредмета3.HasValue == true)) {
  2923. this.Adapter.InsertCommand.Parameters[7].Value = ((long)(КодПредмета3.Value));
  2924. }
  2925. else {
  2926. this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
  2927. }
  2928. if ((Оценка3.HasValue == true)) {
  2929. this.Adapter.InsertCommand.Parameters[8].Value = ((byte)(Оценка3.Value));
  2930. }
  2931. else {
  2932. this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
  2933. }
  2934. if ((СреднийБалл.HasValue == true)) {
  2935. this.Adapter.InsertCommand.Parameters[9].Value = ((float)(СреднийБалл.Value));
  2936. }
  2937. else {
  2938. this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value;
  2939. }
  2940. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  2941. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  2942. != global::System.Data.ConnectionState.Open)) {
  2943. this.Adapter.InsertCommand.Connection.Open();
  2944. }
  2945. try {
  2946. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  2947. return returnValue;
  2948. }
  2949. finally {
  2950. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  2951. this.Adapter.InsertCommand.Connection.Close();
  2952. }
  2953. }
  2954. }
  2955. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2956. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2957. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2958. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  2959. public virtual int Update(
  2960. global::System.Nullable<global::System.DateTime> ДатаЭкзамена1,
  2961. global::System.Nullable<long> КодПредмета1,
  2962. global::System.Nullable<byte> Оценка1,
  2963. global::System.Nullable<global::System.DateTime> ДатаЭкзамена2,
  2964. global::System.Nullable<long> КодПредмета2,
  2965. global::System.Nullable<byte> Оценка2,
  2966. global::System.Nullable<global::System.DateTime> ДатаЭкзамена3,
  2967. global::System.Nullable<long> КодПредмета3,
  2968. global::System.Nullable<byte> Оценка3,
  2969. global::System.Nullable<float> СреднийБалл,
  2970. long Original_КодСтудента,
  2971. global::System.Nullable<global::System.DateTime> Original_ДатаЭкзамена1,
  2972. global::System.Nullable<long> Original_КодПредмета1,
  2973. global::System.Nullable<byte> Original_Оценка1,
  2974. global::System.Nullable<global::System.DateTime> Original_ДатаЭкзамена2,
  2975. global::System.Nullable<long> Original_КодПредмета2,
  2976. global::System.Nullable<byte> Original_Оценка2,
  2977. global::System.Nullable<global::System.DateTime> Original_ДатаЭкзамена3,
  2978. global::System.Nullable<long> Original_КодПредмета3,
  2979. global::System.Nullable<byte> Original_Оценка3,
  2980. global::System.Nullable<float> Original_СреднийБалл,
  2981. long КодСтудента) {
  2982. if ((ДатаЭкзамена1.HasValue == true)) {
  2983. this.Adapter.UpdateCommand.Parameters[0].Value = ((System.DateTime)(ДатаЭкзамена1.Value));
  2984. }
  2985. else {
  2986. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  2987. }
  2988. if ((КодПредмета1.HasValue == true)) {
  2989. this.Adapter.UpdateCommand.Parameters[1].Value = ((long)(КодПредмета1.Value));
  2990. }
  2991. else {
  2992. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  2993. }
  2994. if ((Оценка1.HasValue == true)) {
  2995. this.Adapter.UpdateCommand.Parameters[2].Value = ((byte)(Оценка1.Value));
  2996. }
  2997. else {
  2998. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  2999. }
  3000. if ((ДатаЭкзамена2.HasValue == true)) {
  3001. this.Adapter.UpdateCommand.Parameters[3].Value = ((System.DateTime)(ДатаЭкзамена2.Value));
  3002. }
  3003. else {
  3004. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  3005. }
  3006. if ((КодПредмета2.HasValue == true)) {
  3007. this.Adapter.UpdateCommand.Parameters[4].Value = ((long)(КодПредмета2.Value));
  3008. }
  3009. else {
  3010. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  3011. }
  3012. if ((Оценка2.HasValue == true)) {
  3013. this.Adapter.UpdateCommand.Parameters[5].Value = ((byte)(Оценка2.Value));
  3014. }
  3015. else {
  3016. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  3017. }
  3018. if ((ДатаЭкзамена3.HasValue == true)) {
  3019. this.Adapter.UpdateCommand.Parameters[6].Value = ((System.DateTime)(ДатаЭкзамена3.Value));
  3020. }
  3021. else {
  3022. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  3023. }
  3024. if ((КодПредмета3.HasValue == true)) {
  3025. this.Adapter.UpdateCommand.Parameters[7].Value = ((long)(КодПредмета3.Value));
  3026. }
  3027. else {
  3028. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  3029. }
  3030. if ((Оценка3.HasValue == true)) {
  3031. this.Adapter.UpdateCommand.Parameters[8].Value = ((byte)(Оценка3.Value));
  3032. }
  3033. else {
  3034. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  3035. }
  3036. if ((СреднийБалл.HasValue == true)) {
  3037. this.Adapter.UpdateCommand.Parameters[9].Value = ((float)(СреднийБалл.Value));
  3038. }
  3039. else {
  3040. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  3041. }
  3042. this.Adapter.UpdateCommand.Parameters[10].Value = ((long)(Original_КодСтудента));
  3043. if ((Original_ДатаЭкзамена1.HasValue == true)) {
  3044. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  3045. this.Adapter.UpdateCommand.Parameters[12].Value = ((System.DateTime)(Original_ДатаЭкзамена1.Value));
  3046. }
  3047. else {
  3048. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  3049. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  3050. }
  3051. if ((Original_КодПредмета1.HasValue == true)) {
  3052. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
  3053. this.Adapter.UpdateCommand.Parameters[14].Value = ((long)(Original_КодПредмета1.Value));
  3054. }
  3055. else {
  3056. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
  3057. this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
  3058. }
  3059. if ((Original_Оценка1.HasValue == true)) {
  3060. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
  3061. this.Adapter.UpdateCommand.Parameters[16].Value = ((byte)(Original_Оценка1.Value));
  3062. }
  3063. else {
  3064. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
  3065. this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
  3066. }
  3067. if ((Original_ДатаЭкзамена2.HasValue == true)) {
  3068. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
  3069. this.Adapter.UpdateCommand.Parameters[18].Value = ((System.DateTime)(Original_ДатаЭкзамена2.Value));
  3070. }
  3071. else {
  3072. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
  3073. this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
  3074. }
  3075. if ((Original_КодПредмета2.HasValue == true)) {
  3076. this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(0));
  3077. this.Adapter.UpdateCommand.Parameters[20].Value = ((long)(Original_КодПредмета2.Value));
  3078. }
  3079. else {
  3080. this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(1));
  3081. this.Adapter.UpdateCommand.Parameters[20].Value = global::System.DBNull.Value;
  3082. }
  3083. if ((Original_Оценка2.HasValue == true)) {
  3084. this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(0));
  3085. this.Adapter.UpdateCommand.Parameters[22].Value = ((byte)(Original_Оценка2.Value));
  3086. }
  3087. else {
  3088. this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(1));
  3089. this.Adapter.UpdateCommand.Parameters[22].Value = global::System.DBNull.Value;
  3090. }
  3091. if ((Original_ДатаЭкзамена3.HasValue == true)) {
  3092. this.Adapter.UpdateCommand.Parameters[23].Value = ((object)(0));
  3093. this.Adapter.UpdateCommand.Parameters[24].Value = ((System.DateTime)(Original_ДатаЭкзамена3.Value));
  3094. }
  3095. else {
  3096. this.Adapter.UpdateCommand.Parameters[23].Value = ((object)(1));
  3097. this.Adapter.UpdateCommand.Parameters[24].Value = global::System.DBNull.Value;
  3098. }
  3099. if ((Original_КодПредмета3.HasValue == true)) {
  3100. this.Adapter.UpdateCommand.Parameters[25].Value = ((object)(0));
  3101. this.Adapter.UpdateCommand.Parameters[26].Value = ((long)(Original_КодПредмета3.Value));
  3102. }
  3103. else {
  3104. this.Adapter.UpdateCommand.Parameters[25].Value = ((object)(1));
  3105. this.Adapter.UpdateCommand.Parameters[26].Value = global::System.DBNull.Value;
  3106. }
  3107. if ((Original_Оценка3.HasValue == true)) {
  3108. this.Adapter.UpdateCommand.Parameters[27].Value = ((object)(0));
  3109. this.Adapter.UpdateCommand.Parameters[28].Value = ((byte)(Original_Оценка3.Value));
  3110. }
  3111. else {
  3112. this.Adapter.UpdateCommand.Parameters[27].Value = ((object)(1));
  3113. this.Adapter.UpdateCommand.Parameters[28].Value = global::System.DBNull.Value;
  3114. }
  3115. if ((Original_СреднийБалл.HasValue == true)) {
  3116. this.Adapter.UpdateCommand.Parameters[29].Value = ((object)(0));
  3117. this.Adapter.UpdateCommand.Parameters[30].Value = ((float)(Original_СреднийБалл.Value));
  3118. }
  3119. else {
  3120. this.Adapter.UpdateCommand.Parameters[29].Value = ((object)(1));
  3121. this.Adapter.UpdateCommand.Parameters[30].Value = global::System.DBNull.Value;
  3122. }
  3123. this.Adapter.UpdateCommand.Parameters[31].Value = ((long)(КодСтудента));
  3124. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  3125. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3126. != global::System.Data.ConnectionState.Open)) {
  3127. this.Adapter.UpdateCommand.Connection.Open();
  3128. }
  3129. try {
  3130. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  3131. return returnValue;
  3132. }
  3133. finally {
  3134. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3135. this.Adapter.UpdateCommand.Connection.Close();
  3136. }
  3137. }
  3138. }
  3139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3141. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3142. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3143. public virtual int Update(
  3144. global::System.Nullable<global::System.DateTime> ДатаЭкзамена1,
  3145. global::System.Nullable<long> КодПредмета1,
  3146. global::System.Nullable<byte> Оценка1,
  3147. global::System.Nullable<global::System.DateTime> ДатаЭкзамена2,
  3148. global::System.Nullable<long> КодПредмета2,
  3149. global::System.Nullable<byte> Оценка2,
  3150. global::System.Nullable<global::System.DateTime> ДатаЭкзамена3,
  3151. global::System.Nullable<long> КодПредмета3,
  3152. global::System.Nullable<byte> Оценка3,
  3153. global::System.Nullable<float> СреднийБалл,
  3154. long Original_КодСтудента,
  3155. global::System.Nullable<global::System.DateTime> Original_ДатаЭкзамена1,
  3156. global::System.Nullable<long> Original_КодПредмета1,
  3157. global::System.Nullable<byte> Original_Оценка1,
  3158. global::System.Nullable<global::System.DateTime> Original_ДатаЭкзамена2,
  3159. global::System.Nullable<long> Original_КодПредмета2,
  3160. global::System.Nullable<byte> Original_Оценка2,
  3161. global::System.Nullable<global::System.DateTime> Original_ДатаЭкзамена3,
  3162. global::System.Nullable<long> Original_КодПредмета3,
  3163. global::System.Nullable<byte> Original_Оценка3,
  3164. global::System.Nullable<float> Original_СреднийБалл) {
  3165. return this.Update(ДатаЭкзамена1, КодПредмета1, Оценка1, ДатаЭкзамена2, КодПредмета2, Оценка2, ДатаЭкзамена3, КодПредмета3, Оценка3, СреднийБалл, Original_КодСтудента, Original_ДатаЭкзамена1, Original_КодПредмета1, Original_Оценка1, Original_ДатаЭкзамена2, Original_КодПредмета2, Original_Оценка2, Original_ДатаЭкзамена3, Original_КодПредмета3, Original_Оценка3, Original_СреднийБалл, Original_КодСтудента);
  3166. }
  3167. }
  3168. /// <summary>
  3169. ///Represents the connection and commands used to retrieve and save data.
  3170. ///</summary>
  3171. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3172. [global::System.ComponentModel.ToolboxItem(true)]
  3173. [global::System.ComponentModel.DataObjectAttribute(true)]
  3174. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  3175. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3176. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3177. public partial class ПредметыTableAdapter : global::System.ComponentModel.Component {
  3178. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  3179. private global::System.Data.SqlClient.SqlConnection _connection;
  3180. private global::System.Data.SqlClient.SqlTransaction _transaction;
  3181. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  3182. private bool _clearBeforeFill;
  3183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3185. public ПредметыTableAdapter() {
  3186. this.ClearBeforeFill = true;
  3187. }
  3188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3190. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  3191. get {
  3192. if ((this._adapter == null)) {
  3193. this.InitAdapter();
  3194. }
  3195. return this._adapter;
  3196. }
  3197. }
  3198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3199. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3200. internal global::System.Data.SqlClient.SqlConnection Connection {
  3201. get {
  3202. if ((this._connection == null)) {
  3203. this.InitConnection();
  3204. }
  3205. return this._connection;
  3206. }
  3207. set {
  3208. this._connection = value;
  3209. if ((this.Adapter.InsertCommand != null)) {
  3210. this.Adapter.InsertCommand.Connection = value;
  3211. }
  3212. if ((this.Adapter.DeleteCommand != null)) {
  3213. this.Adapter.DeleteCommand.Connection = value;
  3214. }
  3215. if ((this.Adapter.UpdateCommand != null)) {
  3216. this.Adapter.UpdateCommand.Connection = value;
  3217. }
  3218. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3219. if ((this.CommandCollection[i] != null)) {
  3220. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  3221. }
  3222. }
  3223. }
  3224. }
  3225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3227. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  3228. get {
  3229. return this._transaction;
  3230. }
  3231. set {
  3232. this._transaction = value;
  3233. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3234. this.CommandCollection[i].Transaction = this._transaction;
  3235. }
  3236. if (((this.Adapter != null)
  3237. && (this.Adapter.DeleteCommand != null))) {
  3238. this.Adapter.DeleteCommand.Transaction = this._transaction;
  3239. }
  3240. if (((this.Adapter != null)
  3241. && (this.Adapter.InsertCommand != null))) {
  3242. this.Adapter.InsertCommand.Transaction = this._transaction;
  3243. }
  3244. if (((this.Adapter != null)
  3245. && (this.Adapter.UpdateCommand != null))) {
  3246. this.Adapter.UpdateCommand.Transaction = this._transaction;
  3247. }
  3248. }
  3249. }
  3250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3252. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  3253. get {
  3254. if ((this._commandCollection == null)) {
  3255. this.InitCommandCollection();
  3256. }
  3257. return this._commandCollection;
  3258. }
  3259. }
  3260. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3261. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3262. public bool ClearBeforeFill {
  3263. get {
  3264. return this._clearBeforeFill;
  3265. }
  3266. set {
  3267. this._clearBeforeFill = value;
  3268. }
  3269. }
  3270. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3271. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3272. private void InitAdapter() {
  3273. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  3274. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  3275. tableMapping.SourceTable = "Table";
  3276. tableMapping.DataSetTable = "Предметы";
  3277. tableMapping.ColumnMappings.Add("КодПредмета", "КодПредмета");
  3278. tableMapping.ColumnMappings.Add("НаименованиеПредмета", "НаименованиеПредмета");
  3279. tableMapping.ColumnMappings.Add("ОписаниеПредмета", "ОписаниеПредмета");
  3280. this._adapter.TableMappings.Add(tableMapping);
  3281. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  3282. this._adapter.DeleteCommand.Connection = this.Connection;
  3283. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Предметы] WHERE (([КодПредмета] = @Original_КодПредмета) AND (" +
  3284. "(@IsNull_НаименованиеПредмета = 1 AND [НаименованиеПредмета] IS NULL) OR ([Наиме" +
  3285. "нованиеПредмета] = @Original_НаименованиеПредмета)))";
  3286. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  3287. 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, "", "", ""));
  3288. 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, "", "", ""));
  3289. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_НаименованиеПредмета", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "НаименованиеПредмета", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3290. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  3291. this._adapter.InsertCommand.Connection = this.Connection;
  3292. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Предметы] ([НаименованиеПредмета], [ОписаниеПредмета]) VALUES " +
  3293. "(@НаименованиеПредмета, @ОписаниеПредмета);\r\nSELECT КодПредмета, НаименованиеПре" +
  3294. "дмета, ОписаниеПредмета FROM Предметы WHERE (КодПредмета = SCOPE_IDENTITY())";
  3295. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  3296. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@НаименованиеПредмета", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "НаименованиеПредмета", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3297. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ОписаниеПредмета", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ОписаниеПредмета", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3298. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  3299. this._adapter.UpdateCommand.Connection = this.Connection;
  3300. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Предметы] SET [НаименованиеПредмета] = @НаименованиеПредмета, [ОписаниеПредмета] = @ОписаниеПредмета WHERE (([КодПредмета] = @Original_КодПредмета) AND ((@IsNull_НаименованиеПредмета = 1 AND [НаименованиеПредмета] IS NULL) OR ([НаименованиеПредмета] = @Original_НаименованиеПредмета)));
  3301. SELECT КодПредмета, НаименованиеПредмета, ОписаниеПредмета FROM Предметы WHERE (КодПредмета = @КодПредмета)";
  3302. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  3303. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@НаименованиеПредмета", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "НаименованиеПредмета", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3304. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ОписаниеПредмета", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ОписаниеПредмета", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3305. 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, "", "", ""));
  3306. 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, "", "", ""));
  3307. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_НаименованиеПредмета", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "НаименованиеПредмета", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3308. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@КодПредмета", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "КодПредмета", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3309. }
  3310. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3311. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3312. private void InitConnection() {
  3313. this._connection = new global::System.Data.SqlClient.SqlConnection();
  3314. this._connection.ConnectionString = global::DiachkovStudents.Properties.Settings.Default.РП31ДьячковНикитинСтудентыConnectionString;
  3315. }
  3316. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3317. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3318. private void InitCommandCollection() {
  3319. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  3320. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  3321. this._commandCollection[0].Connection = this.Connection;
  3322. this._commandCollection[0].CommandText = "SELECT КодПредмета, НаименованиеПредмета, ОписаниеПредмета FROM dbo.Предметы";
  3323. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  3324. }
  3325. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3326. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3327. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3328. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  3329. public virtual int Fill(РП31ДьячковНикитинСтудентыDataSet1.ПредметыDataTable dataTable) {
  3330. this.Adapter.SelectCommand = this.CommandCollection[0];
  3331. if ((this.ClearBeforeFill == true)) {
  3332. dataTable.Clear();
  3333. }
  3334. int returnValue = this.Adapter.Fill(dataTable);
  3335. return returnValue;
  3336. }
  3337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3339. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3340. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  3341. public virtual РП31ДьячковНикитинСтудентыDataSet1.ПредметыDataTable GetData() {
  3342. this.Adapter.SelectCommand = this.CommandCollection[0];
  3343. РП31ДьячковНикитинСтудентыDataSet1.ПредметыDataTable dataTable = new РП31ДьячковНикитинСтудентыDataSet1.ПредметыDataTable();
  3344. this.Adapter.Fill(dataTable);
  3345. return dataTable;
  3346. }
  3347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3349. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3350. public virtual int Update(РП31ДьячковНикитинСтудентыDataSet1.ПредметыDataTable dataTable) {
  3351. return this.Adapter.Update(dataTable);
  3352. }
  3353. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3354. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3355. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3356. public virtual int Update(РП31ДьячковНикитинСтудентыDataSet1 dataSet) {
  3357. return this.Adapter.Update(dataSet, "Предметы");
  3358. }
  3359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3360. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3361. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3362. public virtual int Update(global::System.Data.DataRow dataRow) {
  3363. return this.Adapter.Update(new global::System.Data.DataRow[] {
  3364. dataRow});
  3365. }
  3366. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3367. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3368. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3369. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  3370. return this.Adapter.Update(dataRows);
  3371. }
  3372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3374. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3375. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  3376. public virtual int Delete(int Original_КодПредмета, string Original_НаименованиеПредмета) {
  3377. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_КодПредмета));
  3378. if ((Original_НаименованиеПредмета == null)) {
  3379. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  3380. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  3381. }
  3382. else {
  3383. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  3384. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_НаименованиеПредмета));
  3385. }
  3386. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  3387. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3388. != global::System.Data.ConnectionState.Open)) {
  3389. this.Adapter.DeleteCommand.Connection.Open();
  3390. }
  3391. try {
  3392. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  3393. return returnValue;
  3394. }
  3395. finally {
  3396. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3397. this.Adapter.DeleteCommand.Connection.Close();
  3398. }
  3399. }
  3400. }
  3401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3402. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3403. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3404. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  3405. public virtual int Insert(string НаименованиеПредмета, string ОписаниеПредмета) {
  3406. if ((НаименованиеПредмета == null)) {
  3407. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  3408. }
  3409. else {
  3410. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(НаименованиеПредмета));
  3411. }
  3412. if ((ОписаниеПредмета == null)) {
  3413. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  3414. }
  3415. else {
  3416. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(ОписаниеПредмета));
  3417. }
  3418. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  3419. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3420. != global::System.Data.ConnectionState.Open)) {
  3421. this.Adapter.InsertCommand.Connection.Open();
  3422. }
  3423. try {
  3424. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  3425. return returnValue;
  3426. }
  3427. finally {
  3428. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3429. this.Adapter.InsertCommand.Connection.Close();
  3430. }
  3431. }
  3432. }
  3433. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3434. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3435. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3436. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3437. public virtual int Update(string НаименованиеПредмета, string ОписаниеПредмета, int Original_КодПредмета, string Original_НаименованиеПредмета, int КодПредмета) {
  3438. if ((НаименованиеПредмета == null)) {
  3439. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  3440. }
  3441. else {
  3442. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(НаименованиеПредмета));
  3443. }
  3444. if ((ОписаниеПредмета == null)) {
  3445. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  3446. }
  3447. else {
  3448. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(ОписаниеПредмета));
  3449. }
  3450. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_КодПредмета));
  3451. if ((Original_НаименованиеПредмета == null)) {
  3452. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  3453. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  3454. }
  3455. else {
  3456. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  3457. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_НаименованиеПредмета));
  3458. }
  3459. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(КодПредмета));
  3460. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  3461. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3462. != global::System.Data.ConnectionState.Open)) {
  3463. this.Adapter.UpdateCommand.Connection.Open();
  3464. }
  3465. try {
  3466. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  3467. return returnValue;
  3468. }
  3469. finally {
  3470. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3471. this.Adapter.UpdateCommand.Connection.Close();
  3472. }
  3473. }
  3474. }
  3475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3477. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3478. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3479. public virtual int Update(string НаименованиеПредмета, string ОписаниеПредмета, int Original_КодПредмета, string Original_НаименованиеПредмета) {
  3480. return this.Update(НаименованиеПредмета, ОписаниеПредмета, Original_КодПредмета, Original_НаименованиеПредмета, Original_КодПредмета);
  3481. }
  3482. }
  3483. /// <summary>
  3484. ///Represents the connection and commands used to retrieve and save data.
  3485. ///</summary>
  3486. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3487. [global::System.ComponentModel.ToolboxItem(true)]
  3488. [global::System.ComponentModel.DataObjectAttribute(true)]
  3489. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  3490. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3491. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3492. public partial class СпециальностиTableAdapter : global::System.ComponentModel.Component {
  3493. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  3494. private global::System.Data.SqlClient.SqlConnection _connection;
  3495. private global::System.Data.SqlClient.SqlTransaction _transaction;
  3496. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  3497. private bool _clearBeforeFill;
  3498. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3499. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3500. public СпециальностиTableAdapter() {
  3501. this.ClearBeforeFill = true;
  3502. }
  3503. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3504. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3505. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  3506. get {
  3507. if ((this._adapter == null)) {
  3508. this.InitAdapter();
  3509. }
  3510. return this._adapter;
  3511. }
  3512. }
  3513. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3514. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3515. internal global::System.Data.SqlClient.SqlConnection Connection {
  3516. get {
  3517. if ((this._connection == null)) {
  3518. this.InitConnection();
  3519. }
  3520. return this._connection;
  3521. }
  3522. set {
  3523. this._connection = value;
  3524. if ((this.Adapter.InsertCommand != null)) {
  3525. this.Adapter.InsertCommand.Connection = value;
  3526. }
  3527. if ((this.Adapter.DeleteCommand != null)) {
  3528. this.Adapter.DeleteCommand.Connection = value;
  3529. }
  3530. if ((this.Adapter.UpdateCommand != null)) {
  3531. this.Adapter.UpdateCommand.Connection = value;
  3532. }
  3533. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3534. if ((this.CommandCollection[i] != null)) {
  3535. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  3536. }
  3537. }
  3538. }
  3539. }
  3540. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3541. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3542. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  3543. get {
  3544. return this._transaction;
  3545. }
  3546. set {
  3547. this._transaction = value;
  3548. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3549. this.CommandCollection[i].Transaction = this._transaction;
  3550. }
  3551. if (((this.Adapter != null)
  3552. && (this.Adapter.DeleteCommand != null))) {
  3553. this.Adapter.DeleteCommand.Transaction = this._transaction;
  3554. }
  3555. if (((this.Adapter != null)
  3556. && (this.Adapter.InsertCommand != null))) {
  3557. this.Adapter.InsertCommand.Transaction = this._transaction;
  3558. }
  3559. if (((this.Adapter != null)
  3560. && (this.Adapter.UpdateCommand != null))) {
  3561. this.Adapter.UpdateCommand.Transaction = this._transaction;
  3562. }
  3563. }
  3564. }
  3565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3567. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  3568. get {
  3569. if ((this._commandCollection == null)) {
  3570. this.InitCommandCollection();
  3571. }
  3572. return this._commandCollection;
  3573. }
  3574. }
  3575. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3576. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3577. public bool ClearBeforeFill {
  3578. get {
  3579. return this._clearBeforeFill;
  3580. }
  3581. set {
  3582. this._clearBeforeFill = value;
  3583. }
  3584. }
  3585. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3586. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3587. private void InitAdapter() {
  3588. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  3589. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  3590. tableMapping.SourceTable = "Table";
  3591. tableMapping.DataSetTable = "Специальности";
  3592. tableMapping.ColumnMappings.Add("КодСпециальности", "КодСпециальности");
  3593. tableMapping.ColumnMappings.Add("НаименованиеСпециальности", "НаименованиеСпециальности");
  3594. tableMapping.ColumnMappings.Add("ОписаниеСпециальности", "ОписаниеСпециальности");
  3595. this._adapter.TableMappings.Add(tableMapping);
  3596. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  3597. this._adapter.DeleteCommand.Connection = this.Connection;
  3598. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Специальности] WHERE (([КодСпециальности] = @Original_КодСпеци" +
  3599. "альности) AND ((@IsNull_НаименованиеСпециальности = 1 AND [НаименованиеСпециальн" +
  3600. "ости] IS NULL) OR ([НаименованиеСпециальности] = @Original_НаименованиеСпециальн" +
  3601. "ости)))";
  3602. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  3603. 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, "", "", ""));
  3604. 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, "", "", ""));
  3605. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_НаименованиеСпециальности", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "НаименованиеСпециальности", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3606. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  3607. this._adapter.InsertCommand.Connection = this.Connection;
  3608. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Специальности] ([НаименованиеСпециальности], [ОписаниеСпециальности]) VALUES (@НаименованиеСпециальности, @ОписаниеСпециальности);
  3609. SELECT КодСпециальности, НаименованиеСпециальности, ОписаниеСпециальности FROM Специальности WHERE (КодСпециальности = SCOPE_IDENTITY())";
  3610. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  3611. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@НаименованиеСпециальности", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "НаименованиеСпециальности", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3612. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ОписаниеСпециальности", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ОписаниеСпециальности", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3613. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  3614. this._adapter.UpdateCommand.Connection = this.Connection;
  3615. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Специальности] SET [НаименованиеСпециальности] = @НаименованиеСпециальности, [ОписаниеСпециальности] = @ОписаниеСпециальности WHERE (([КодСпециальности] = @Original_КодСпециальности) AND ((@IsNull_НаименованиеСпециальности = 1 AND [НаименованиеСпециальности] IS NULL) OR ([НаименованиеСпециальности] = @Original_НаименованиеСпециальности)));
  3616. SELECT КодСпециальности, НаименованиеСпециальности, ОписаниеСпециальности FROM Специальности WHERE (КодСпециальности = @КодСпециальности)";
  3617. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  3618. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@НаименованиеСпециальности", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "НаименованиеСпециальности", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3619. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ОписаниеСпециальности", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ОписаниеСпециальности", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3620. 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, "", "", ""));
  3621. 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, "", "", ""));
  3622. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_НаименованиеСпециальности", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "НаименованиеСпециальности", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3623. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@КодСпециальности", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "КодСпециальности", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3624. }
  3625. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3626. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3627. private void InitConnection() {
  3628. this._connection = new global::System.Data.SqlClient.SqlConnection();
  3629. this._connection.ConnectionString = global::DiachkovStudents.Properties.Settings.Default.РП31ДьячковНикитинСтудентыConnectionString;
  3630. }
  3631. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3632. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3633. private void InitCommandCollection() {
  3634. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  3635. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  3636. this._commandCollection[0].Connection = this.Connection;
  3637. this._commandCollection[0].CommandText = "SELECT КодСпециальности, НаименованиеСпециальности, ОписаниеСпециальности FROM db" +
  3638. "o.Специальности";
  3639. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  3640. }
  3641. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3642. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3643. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3644. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  3645. public virtual int Fill(РП31ДьячковНикитинСтудентыDataSet1.СпециальностиDataTable dataTable) {
  3646. this.Adapter.SelectCommand = this.CommandCollection[0];
  3647. if ((this.ClearBeforeFill == true)) {
  3648. dataTable.Clear();
  3649. }
  3650. int returnValue = this.Adapter.Fill(dataTable);
  3651. return returnValue;
  3652. }
  3653. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3654. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3655. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3656. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  3657. public virtual РП31ДьячковНикитинСтудентыDataSet1.СпециальностиDataTable GetData() {
  3658. this.Adapter.SelectCommand = this.CommandCollection[0];
  3659. РП31ДьячковНикитинСтудентыDataSet1.СпециальностиDataTable dataTable = new РП31ДьячковНикитинСтудентыDataSet1.СпециальностиDataTable();
  3660. this.Adapter.Fill(dataTable);
  3661. return dataTable;
  3662. }
  3663. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3664. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3665. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3666. public virtual int Update(РП31ДьячковНикитинСтудентыDataSet1.СпециальностиDataTable dataTable) {
  3667. return this.Adapter.Update(dataTable);
  3668. }
  3669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3670. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3671. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3672. public virtual int Update(РП31ДьячковНикитинСтудентыDataSet1 dataSet) {
  3673. return this.Adapter.Update(dataSet, "Специальности");
  3674. }
  3675. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3676. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3677. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3678. public virtual int Update(global::System.Data.DataRow dataRow) {
  3679. return this.Adapter.Update(new global::System.Data.DataRow[] {
  3680. dataRow});
  3681. }
  3682. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3683. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3684. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3685. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  3686. return this.Adapter.Update(dataRows);
  3687. }
  3688. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3689. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3690. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3691. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  3692. public virtual int Delete(int Original_КодСпециальности, string Original_НаименованиеСпециальности) {
  3693. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_КодСпециальности));
  3694. if ((Original_НаименованиеСпециальности == null)) {
  3695. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  3696. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  3697. }
  3698. else {
  3699. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  3700. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_НаименованиеСпециальности));
  3701. }
  3702. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  3703. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3704. != global::System.Data.ConnectionState.Open)) {
  3705. this.Adapter.DeleteCommand.Connection.Open();
  3706. }
  3707. try {
  3708. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  3709. return returnValue;
  3710. }
  3711. finally {
  3712. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3713. this.Adapter.DeleteCommand.Connection.Close();
  3714. }
  3715. }
  3716. }
  3717. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3718. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3719. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3720. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  3721. public virtual int Insert(string НаименованиеСпециальности, string ОписаниеСпециальности) {
  3722. if ((НаименованиеСпециальности == null)) {
  3723. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  3724. }
  3725. else {
  3726. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(НаименованиеСпециальности));
  3727. }
  3728. if ((ОписаниеСпециальности == null)) {
  3729. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  3730. }
  3731. else {
  3732. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(ОписаниеСпециальности));
  3733. }
  3734. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  3735. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3736. != global::System.Data.ConnectionState.Open)) {
  3737. this.Adapter.InsertCommand.Connection.Open();
  3738. }
  3739. try {
  3740. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  3741. return returnValue;
  3742. }
  3743. finally {
  3744. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3745. this.Adapter.InsertCommand.Connection.Close();
  3746. }
  3747. }
  3748. }
  3749. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3750. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3751. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3752. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3753. public virtual int Update(string НаименованиеСпециальности, string ОписаниеСпециальности, int Original_КодСпециальности, string Original_НаименованиеСпециальности, int КодСпециальности) {
  3754. if ((НаименованиеСпециальности == null)) {
  3755. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  3756. }
  3757. else {
  3758. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(НаименованиеСпециальности));
  3759. }
  3760. if ((ОписаниеСпециальности == null)) {
  3761. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  3762. }
  3763. else {
  3764. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(ОписаниеСпециальности));
  3765. }
  3766. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_КодСпециальности));
  3767. if ((Original_НаименованиеСпециальности == null)) {
  3768. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  3769. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  3770. }
  3771. else {
  3772. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  3773. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_НаименованиеСпециальности));
  3774. }
  3775. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(КодСпециальности));
  3776. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  3777. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3778. != global::System.Data.ConnectionState.Open)) {
  3779. this.Adapter.UpdateCommand.Connection.Open();
  3780. }
  3781. try {
  3782. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  3783. return returnValue;
  3784. }
  3785. finally {
  3786. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3787. this.Adapter.UpdateCommand.Connection.Close();
  3788. }
  3789. }
  3790. }
  3791. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3792. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3793. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3794. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3795. public virtual int Update(string НаименованиеСпециальности, string ОписаниеСпециальности, int Original_КодСпециальности, string Original_НаименованиеСпециальности) {
  3796. return this.Update(НаименованиеСпециальности, ОписаниеСпециальности, Original_КодСпециальности, Original_НаименованиеСпециальности, Original_КодСпециальности);
  3797. }
  3798. }
  3799. /// <summary>
  3800. ///Represents the connection and commands used to retrieve and save data.
  3801. ///</summary>
  3802. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3803. [global::System.ComponentModel.ToolboxItem(true)]
  3804. [global::System.ComponentModel.DataObjectAttribute(true)]
  3805. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  3806. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3807. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3808. public partial class СтудентыTableAdapter : global::System.ComponentModel.Component {
  3809. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  3810. private global::System.Data.SqlClient.SqlConnection _connection;
  3811. private global::System.Data.SqlClient.SqlTransaction _transaction;
  3812. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  3813. private bool _clearBeforeFill;
  3814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3816. public СтудентыTableAdapter() {
  3817. this.ClearBeforeFill = true;
  3818. }
  3819. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3820. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3821. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  3822. get {
  3823. if ((this._adapter == null)) {
  3824. this.InitAdapter();
  3825. }
  3826. return this._adapter;
  3827. }
  3828. }
  3829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3830. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3831. internal global::System.Data.SqlClient.SqlConnection Connection {
  3832. get {
  3833. if ((this._connection == null)) {
  3834. this.InitConnection();
  3835. }
  3836. return this._connection;
  3837. }
  3838. set {
  3839. this._connection = value;
  3840. if ((this.Adapter.InsertCommand != null)) {
  3841. this.Adapter.InsertCommand.Connection = value;
  3842. }
  3843. if ((this.Adapter.DeleteCommand != null)) {
  3844. this.Adapter.DeleteCommand.Connection = value;
  3845. }
  3846. if ((this.Adapter.UpdateCommand != null)) {
  3847. this.Adapter.UpdateCommand.Connection = value;
  3848. }
  3849. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3850. if ((this.CommandCollection[i] != null)) {
  3851. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  3852. }
  3853. }
  3854. }
  3855. }
  3856. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3857. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3858. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  3859. get {
  3860. return this._transaction;
  3861. }
  3862. set {
  3863. this._transaction = value;
  3864. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3865. this.CommandCollection[i].Transaction = this._transaction;
  3866. }
  3867. if (((this.Adapter != null)
  3868. && (this.Adapter.DeleteCommand != null))) {
  3869. this.Adapter.DeleteCommand.Transaction = this._transaction;
  3870. }
  3871. if (((this.Adapter != null)
  3872. && (this.Adapter.InsertCommand != null))) {
  3873. this.Adapter.InsertCommand.Transaction = this._transaction;
  3874. }
  3875. if (((this.Adapter != null)
  3876. && (this.Adapter.UpdateCommand != null))) {
  3877. this.Adapter.UpdateCommand.Transaction = this._transaction;
  3878. }
  3879. }
  3880. }
  3881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3883. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  3884. get {
  3885. if ((this._commandCollection == null)) {
  3886. this.InitCommandCollection();
  3887. }
  3888. return this._commandCollection;
  3889. }
  3890. }
  3891. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3892. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3893. public bool ClearBeforeFill {
  3894. get {
  3895. return this._clearBeforeFill;
  3896. }
  3897. set {
  3898. this._clearBeforeFill = value;
  3899. }
  3900. }
  3901. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3902. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3903. private void InitAdapter() {
  3904. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  3905. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  3906. tableMapping.SourceTable = "Table";
  3907. tableMapping.DataSetTable = "Студенты";
  3908. tableMapping.ColumnMappings.Add("КодСтудента", "КодСтудента");
  3909. tableMapping.ColumnMappings.Add("ФИО", "ФИО");
  3910. tableMapping.ColumnMappings.Add("Пол", "Пол");
  3911. tableMapping.ColumnMappings.Add("ДатаРождения", "ДатаРождения");
  3912. tableMapping.ColumnMappings.Add("Родители", "Родители");
  3913. tableMapping.ColumnMappings.Add("Адрес", "Адрес");
  3914. tableMapping.ColumnMappings.Add("Телефон", "Телефон");
  3915. tableMapping.ColumnMappings.Add("ПаспортныеДанные", "ПаспортныеДанные");
  3916. tableMapping.ColumnMappings.Add("НомерЗачетки", "НомерЗачетки");
  3917. tableMapping.ColumnMappings.Add("ДатаПоступления", "ДатаПоступления");
  3918. tableMapping.ColumnMappings.Add("Группа", "Группа");
  3919. tableMapping.ColumnMappings.Add("Курс", "Курс");
  3920. tableMapping.ColumnMappings.Add("КодСпециальности", "КодСпециальности");
  3921. tableMapping.ColumnMappings.Add("ОчнаяФормаОбучения", "ОчнаяФормаОбучения");
  3922. this._adapter.TableMappings.Add(tableMapping);
  3923. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  3924. this._adapter.DeleteCommand.Connection = this.Connection;
  3925. 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_Телефон)) 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_КодСпециальности)) AND ((@IsNull_ОчнаяФормаОбучения = 1 AND [ОчнаяФормаОбучения] IS NULL) OR ([ОчнаяФормаОбучения] = @Original_ОчнаяФормаОбучения)))";
  3926. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  3927. 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, "", "", ""));
  3928. 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, "", "", ""));
  3929. 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, "", "", ""));
  3930. 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, "", "", ""));
  3931. 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, "", "", ""));
  3932. 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, "", "", ""));
  3933. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ДатаРождения", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаРождения", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3934. 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, "", "", ""));
  3935. 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, "", "", ""));
  3936. 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, "", "", ""));
  3937. 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, "", "", ""));
  3938. 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, "", "", ""));
  3939. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_НомерЗачетки", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "НомерЗачетки", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3940. 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, "", "", ""));
  3941. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ДатаПоступления", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаПоступления", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3942. 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, "", "", ""));
  3943. 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, "", "", ""));
  3944. 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, "", "", ""));
  3945. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Курс", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Курс", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3946. 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, "", "", ""));
  3947. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_КодСпециальности", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодСпециальности", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3948. 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, "", "", ""));
  3949. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ОчнаяФормаОбучения", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ОчнаяФормаОбучения", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3950. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  3951. this._adapter.InsertCommand.Connection = this.Connection;
  3952. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Студенты] ([ФИО], [Пол], [ДатаРождения], [Родители], [Адрес], [Телефон], [ПаспортныеДанные], [НомерЗачетки], [ДатаПоступления], [Группа], [Курс], [КодСпециальности], [ОчнаяФормаОбучения]) VALUES (@ФИО, @Пол, @ДатаРождения, @Родители, @Адрес, @Телефон, @ПаспортныеДанные, @НомерЗачетки, @ДатаПоступления, @Группа, @Курс, @КодСпециальности, @ОчнаяФормаОбучения);
  3953. SELECT КодСтудента, ФИО, Пол, ДатаРождения, Родители, Адрес, Телефон, ПаспортныеДанные, НомерЗачетки, ДатаПоступления, Группа, Курс, КодСпециальности, ОчнаяФормаОбучения FROM Студенты WHERE (КодСтудента = SCOPE_IDENTITY())";
  3954. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  3955. 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, "", "", ""));
  3956. 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, "", "", ""));
  3957. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ДатаРождения", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаРождения", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3958. 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, "", "", ""));
  3959. 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, "", "", ""));
  3960. 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, "", "", ""));
  3961. 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, "", "", ""));
  3962. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@НомерЗачетки", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "НомерЗачетки", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3963. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ДатаПоступления", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаПоступления", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3964. 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, "", "", ""));
  3965. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Курс", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Курс", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3966. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@КодСпециальности", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодСпециальности", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3967. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ОчнаяФормаОбучения", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ОчнаяФормаОбучения", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3968. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  3969. this._adapter.UpdateCommand.Connection = this.Connection;
  3970. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Студенты] SET [ФИО] = @ФИО, [Пол] = @Пол, [ДатаРождения] = @ДатаРож" +
  3971. "дения, [Родители] = @Родители, [Адрес] = @Адрес, [Телефон] = @Телефон, [Паспортн" +
  3972. "ыеДанные] = @ПаспортныеДанные, [НомерЗачетки] = @НомерЗачетки, [ДатаПоступления]" +
  3973. " = @ДатаПоступления, [Группа] = @Группа, [Курс] = @Курс, [КодСпециальности] = @К" +
  3974. "одСпециальности, [ОчнаяФормаОбучения] = @ОчнаяФормаОбучения WHERE (([КодСтудента" +
  3975. "] = @Original_КодСтудента) AND ((@IsNull_ФИО = 1 AND [ФИО] IS NULL) OR ([ФИО] = " +
  3976. "@Original_ФИО)) AND ((@IsNull_Пол = 1 AND [Пол] IS NULL) OR ([Пол] = @Original_П" +
  3977. "ол)) AND ((@IsNull_ДатаРождения = 1 AND [ДатаРождения] IS NULL) OR ([ДатаРождени" +
  3978. "я] = @Original_ДатаРождения)) AND ((@IsNull_Родители = 1 AND [Родители] IS NULL)" +
  3979. " OR ([Родители] = @Original_Родители)) AND ((@IsNull_Телефон = 1 AND [Телефон] I" +
  3980. "S NULL) OR ([Телефон] = @Original_Телефон)) AND ((@IsNull_НомерЗачетки = 1 AND [" +
  3981. "НомерЗачетки] IS NULL) OR ([НомерЗачетки] = @Original_НомерЗачетки)) AND ((@IsNu" +
  3982. "ll_ДатаПоступления = 1 AND [ДатаПоступления] IS NULL) OR ([ДатаПоступления] = @O" +
  3983. "riginal_ДатаПоступления)) AND ((@IsNull_Группа = 1 AND [Группа] IS NULL) OR ([Гр" +
  3984. "уппа] = @Original_Группа)) AND ((@IsNull_Курс = 1 AND [Курс] IS NULL) OR ([Курс]" +
  3985. " = @Original_Курс)) AND ((@IsNull_КодСпециальности = 1 AND [КодСпециальности] IS" +
  3986. " NULL) OR ([КодСпециальности] = @Original_КодСпециальности)) AND ((@IsNull_Очная" +
  3987. "ФормаОбучения = 1 AND [ОчнаяФормаОбучения] IS NULL) OR ([ОчнаяФормаОбучения] = @" +
  3988. "Original_ОчнаяФормаОбучения)));\r\nSELECT КодСтудента, ФИО, Пол, ДатаРождения, Род" +
  3989. "ители, Адрес, Телефон, ПаспортныеДанные, НомерЗачетки, ДатаПоступления, Группа, " +
  3990. "Курс, КодСпециальности, ОчнаяФормаОбучения FROM Студенты WHERE (КодСтудента = @К" +
  3991. "одСтудента)";
  3992. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  3993. 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, "", "", ""));
  3994. 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, "", "", ""));
  3995. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ДатаРождения", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаРождения", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3996. 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, "", "", ""));
  3997. 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, "", "", ""));
  3998. 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, "", "", ""));
  3999. 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, "", "", ""));
  4000. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@НомерЗачетки", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "НомерЗачетки", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4001. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ДатаПоступления", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаПоступления", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4002. 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, "", "", ""));
  4003. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Курс", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Курс", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4004. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@КодСпециальности", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодСпециальности", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4005. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ОчнаяФормаОбучения", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ОчнаяФормаОбучения", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4006. 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, "", "", ""));
  4007. 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, "", "", ""));
  4008. 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, "", "", ""));
  4009. 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, "", "", ""));
  4010. 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, "", "", ""));
  4011. 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, "", "", ""));
  4012. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ДатаРождения", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаРождения", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4013. 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, "", "", ""));
  4014. 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, "", "", ""));
  4015. 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, "", "", ""));
  4016. 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, "", "", ""));
  4017. 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, "", "", ""));
  4018. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_НомерЗачетки", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "НомерЗачетки", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4019. 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, "", "", ""));
  4020. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ДатаПоступления", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаПоступления", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4021. 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, "", "", ""));
  4022. 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, "", "", ""));
  4023. 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, "", "", ""));
  4024. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Курс", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Курс", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4025. 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, "", "", ""));
  4026. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_КодСпециальности", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "КодСпециальности", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4027. 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, "", "", ""));
  4028. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ОчнаяФормаОбучения", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ОчнаяФормаОбучения", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4029. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@КодСтудента", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "КодСтудента", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4030. }
  4031. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4032. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4033. private void InitConnection() {
  4034. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4035. this._connection.ConnectionString = global::DiachkovStudents.Properties.Settings.Default.РП31ДьячковНикитинСтудентыConnectionString;
  4036. }
  4037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4038. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4039. private void InitCommandCollection() {
  4040. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4041. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4042. this._commandCollection[0].Connection = this.Connection;
  4043. this._commandCollection[0].CommandText = "SELECT КодСтудента, ФИО, Пол, ДатаРождения, Родители, Адрес, Телефон, ПаспортныеД" +
  4044. "анные, НомерЗачетки, ДатаПоступления, Группа, Курс, КодСпециальности, ОчнаяФорма" +
  4045. "Обучения FROM dbo.Студенты";
  4046. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4047. }
  4048. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4049. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4050. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4051. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4052. public virtual int Fill(РП31ДьячковНикитинСтудентыDataSet1.СтудентыDataTable dataTable) {
  4053. this.Adapter.SelectCommand = this.CommandCollection[0];
  4054. if ((this.ClearBeforeFill == true)) {
  4055. dataTable.Clear();
  4056. }
  4057. int returnValue = this.Adapter.Fill(dataTable);
  4058. return returnValue;
  4059. }
  4060. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4061. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4062. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4063. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4064. public virtual РП31ДьячковНикитинСтудентыDataSet1.СтудентыDataTable GetData() {
  4065. this.Adapter.SelectCommand = this.CommandCollection[0];
  4066. РП31ДьячковНикитинСтудентыDataSet1.СтудентыDataTable dataTable = new РП31ДьячковНикитинСтудентыDataSet1.СтудентыDataTable();
  4067. this.Adapter.Fill(dataTable);
  4068. return dataTable;
  4069. }
  4070. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4071. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4072. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4073. public virtual int Update(РП31ДьячковНикитинСтудентыDataSet1.СтудентыDataTable dataTable) {
  4074. return this.Adapter.Update(dataTable);
  4075. }
  4076. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4077. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4078. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4079. public virtual int Update(РП31ДьячковНикитинСтудентыDataSet1 dataSet) {
  4080. return this.Adapter.Update(dataSet, "Студенты");
  4081. }
  4082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4084. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4085. public virtual int Update(global::System.Data.DataRow dataRow) {
  4086. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4087. dataRow});
  4088. }
  4089. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4090. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4091. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4092. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  4093. return this.Adapter.Update(dataRows);
  4094. }
  4095. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4096. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4097. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4098. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  4099. public virtual int Delete(int Original_КодСтудента, string Original_ФИО, string Original_Пол, global::System.Nullable<global::System.DateTime> Original_ДатаРождения, string Original_Родители, string Original_Телефон, global::System.Nullable<long> Original_НомерЗачетки, global::System.Nullable<global::System.DateTime> Original_ДатаПоступления, string Original_Группа, global::System.Nullable<byte> Original_Курс, global::System.Nullable<long> Original_КодСпециальности, global::System.Nullable<bool> Original_ОчнаяФормаОбучения) {
  4100. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_КодСтудента));
  4101. if ((Original_ФИО == null)) {
  4102. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  4103. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  4104. }
  4105. else {
  4106. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  4107. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_ФИО));
  4108. }
  4109. if ((Original_Пол == null)) {
  4110. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  4111. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  4112. }
  4113. else {
  4114. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  4115. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Пол));
  4116. }
  4117. if ((Original_ДатаРождения.HasValue == true)) {
  4118. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  4119. this.Adapter.DeleteCommand.Parameters[6].Value = ((System.DateTime)(Original_ДатаРождения.Value));
  4120. }
  4121. else {
  4122. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  4123. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  4124. }
  4125. if ((Original_Родители == null)) {
  4126. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  4127. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  4128. }
  4129. else {
  4130. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  4131. this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Родители));
  4132. }
  4133. if ((Original_Телефон == null)) {
  4134. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  4135. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  4136. }
  4137. else {
  4138. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  4139. this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_Телефон));
  4140. }
  4141. if ((Original_НомерЗачетки.HasValue == true)) {
  4142. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  4143. this.Adapter.DeleteCommand.Parameters[12].Value = ((long)(Original_НомерЗачетки.Value));
  4144. }
  4145. else {
  4146. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  4147. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  4148. }
  4149. if ((Original_ДатаПоступления.HasValue == true)) {
  4150. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
  4151. this.Adapter.DeleteCommand.Parameters[14].Value = ((System.DateTime)(Original_ДатаПоступления.Value));
  4152. }
  4153. else {
  4154. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
  4155. this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
  4156. }
  4157. if ((Original_Группа == null)) {
  4158. this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(1));
  4159. this.Adapter.DeleteCommand.Parameters[16].Value = global::System.DBNull.Value;
  4160. }
  4161. else {
  4162. this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(0));
  4163. this.Adapter.DeleteCommand.Parameters[16].Value = ((string)(Original_Группа));
  4164. }
  4165. if ((Original_Курс.HasValue == true)) {
  4166. this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(0));
  4167. this.Adapter.DeleteCommand.Parameters[18].Value = ((byte)(Original_Курс.Value));
  4168. }
  4169. else {
  4170. this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(1));
  4171. this.Adapter.DeleteCommand.Parameters[18].Value = global::System.DBNull.Value;
  4172. }
  4173. if ((Original_КодСпециальности.HasValue == true)) {
  4174. this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(0));
  4175. this.Adapter.DeleteCommand.Parameters[20].Value = ((long)(Original_КодСпециальности.Value));
  4176. }
  4177. else {
  4178. this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(1));
  4179. this.Adapter.DeleteCommand.Parameters[20].Value = global::System.DBNull.Value;
  4180. }
  4181. if ((Original_ОчнаяФормаОбучения.HasValue == true)) {
  4182. this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(0));
  4183. this.Adapter.DeleteCommand.Parameters[22].Value = ((bool)(Original_ОчнаяФормаОбучения.Value));
  4184. }
  4185. else {
  4186. this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(1));
  4187. this.Adapter.DeleteCommand.Parameters[22].Value = global::System.DBNull.Value;
  4188. }
  4189. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  4190. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4191. != global::System.Data.ConnectionState.Open)) {
  4192. this.Adapter.DeleteCommand.Connection.Open();
  4193. }
  4194. try {
  4195. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  4196. return returnValue;
  4197. }
  4198. finally {
  4199. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4200. this.Adapter.DeleteCommand.Connection.Close();
  4201. }
  4202. }
  4203. }
  4204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4205. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4206. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4207. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  4208. public virtual int Insert(string ФИО, string Пол, global::System.Nullable<global::System.DateTime> ДатаРождения, string Родители, string Адрес, string Телефон, string ПаспортныеДанные, global::System.Nullable<long> НомерЗачетки, global::System.Nullable<global::System.DateTime> ДатаПоступления, string Группа, global::System.Nullable<byte> Курс, global::System.Nullable<long> КодСпециальности, global::System.Nullable<bool> ОчнаяФормаОбучения) {
  4209. if ((ФИО == null)) {
  4210. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  4211. }
  4212. else {
  4213. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(ФИО));
  4214. }
  4215. if ((Пол == null)) {
  4216. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  4217. }
  4218. else {
  4219. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Пол));
  4220. }
  4221. if ((ДатаРождения.HasValue == true)) {
  4222. this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(ДатаРождения.Value));
  4223. }
  4224. else {
  4225. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  4226. }
  4227. if ((Родители == null)) {
  4228. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  4229. }
  4230. else {
  4231. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Родители));
  4232. }
  4233. if ((Адрес == null)) {
  4234. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  4235. }
  4236. else {
  4237. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Адрес));
  4238. }
  4239. if ((Телефон == null)) {
  4240. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  4241. }
  4242. else {
  4243. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Телефон));
  4244. }
  4245. if ((ПаспортныеДанные == null)) {
  4246. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  4247. }
  4248. else {
  4249. this.Adapter.InsertCommand.Parameters[6].Value = ((string)(ПаспортныеДанные));
  4250. }
  4251. if ((НомерЗачетки.HasValue == true)) {
  4252. this.Adapter.InsertCommand.Parameters[7].Value = ((long)(НомерЗачетки.Value));
  4253. }
  4254. else {
  4255. this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
  4256. }
  4257. if ((ДатаПоступления.HasValue == true)) {
  4258. this.Adapter.InsertCommand.Parameters[8].Value = ((System.DateTime)(ДатаПоступления.Value));
  4259. }
  4260. else {
  4261. this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
  4262. }
  4263. if ((Группа == null)) {
  4264. this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value;
  4265. }
  4266. else {
  4267. this.Adapter.InsertCommand.Parameters[9].Value = ((string)(Группа));
  4268. }
  4269. if ((Курс.HasValue == true)) {
  4270. this.Adapter.InsertCommand.Parameters[10].Value = ((byte)(Курс.Value));
  4271. }
  4272. else {
  4273. this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value;
  4274. }
  4275. if ((КодСпециальности.HasValue == true)) {
  4276. this.Adapter.InsertCommand.Parameters[11].Value = ((long)(КодСпециальности.Value));
  4277. }
  4278. else {
  4279. this.Adapter.InsertCommand.Parameters[11].Value = global::System.DBNull.Value;
  4280. }
  4281. if ((ОчнаяФормаОбучения.HasValue == true)) {
  4282. this.Adapter.InsertCommand.Parameters[12].Value = ((bool)(ОчнаяФормаОбучения.Value));
  4283. }
  4284. else {
  4285. this.Adapter.InsertCommand.Parameters[12].Value = global::System.DBNull.Value;
  4286. }
  4287. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  4288. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4289. != global::System.Data.ConnectionState.Open)) {
  4290. this.Adapter.InsertCommand.Connection.Open();
  4291. }
  4292. try {
  4293. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  4294. return returnValue;
  4295. }
  4296. finally {
  4297. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4298. this.Adapter.InsertCommand.Connection.Close();
  4299. }
  4300. }
  4301. }
  4302. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4303. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4304. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4305. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4306. public virtual int Update(
  4307. string ФИО,
  4308. string Пол,
  4309. global::System.Nullable<global::System.DateTime> ДатаРождения,
  4310. string Родители,
  4311. string Адрес,
  4312. string Телефон,
  4313. string ПаспортныеДанные,
  4314. global::System.Nullable<long> НомерЗачетки,
  4315. global::System.Nullable<global::System.DateTime> ДатаПоступления,
  4316. string Группа,
  4317. global::System.Nullable<byte> Курс,
  4318. global::System.Nullable<long> КодСпециальности,
  4319. global::System.Nullable<bool> ОчнаяФормаОбучения,
  4320. int Original_КодСтудента,
  4321. string Original_ФИО,
  4322. string Original_Пол,
  4323. global::System.Nullable<global::System.DateTime> Original_ДатаРождения,
  4324. string Original_Родители,
  4325. string Original_Телефон,
  4326. global::System.Nullable<long> Original_НомерЗачетки,
  4327. global::System.Nullable<global::System.DateTime> Original_ДатаПоступления,
  4328. string Original_Группа,
  4329. global::System.Nullable<byte> Original_Курс,
  4330. global::System.Nullable<long> Original_КодСпециальности,
  4331. global::System.Nullable<bool> Original_ОчнаяФормаОбучения,
  4332. int КодСтудента) {
  4333. if ((ФИО == null)) {
  4334. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  4335. }
  4336. else {
  4337. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(ФИО));
  4338. }
  4339. if ((Пол == null)) {
  4340. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  4341. }
  4342. else {
  4343. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Пол));
  4344. }
  4345. if ((ДатаРождения.HasValue == true)) {
  4346. this.Adapter.UpdateCommand.Parameters[2].Value = ((System.DateTime)(ДатаРождения.Value));
  4347. }
  4348. else {
  4349. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  4350. }
  4351. if ((Родители == null)) {
  4352. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  4353. }
  4354. else {
  4355. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Родители));
  4356. }
  4357. if ((Адрес == null)) {
  4358. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  4359. }
  4360. else {
  4361. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Адрес));
  4362. }
  4363. if ((Телефон == null)) {
  4364. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  4365. }
  4366. else {
  4367. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Телефон));
  4368. }
  4369. if ((ПаспортныеДанные == null)) {
  4370. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  4371. }
  4372. else {
  4373. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(ПаспортныеДанные));
  4374. }
  4375. if ((НомерЗачетки.HasValue == true)) {
  4376. this.Adapter.UpdateCommand.Parameters[7].Value = ((long)(НомерЗачетки.Value));
  4377. }
  4378. else {
  4379. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  4380. }
  4381. if ((ДатаПоступления.HasValue == true)) {
  4382. this.Adapter.UpdateCommand.Parameters[8].Value = ((System.DateTime)(ДатаПоступления.Value));
  4383. }
  4384. else {
  4385. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  4386. }
  4387. if ((Группа == null)) {
  4388. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  4389. }
  4390. else {
  4391. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Группа));
  4392. }
  4393. if ((Курс.HasValue == true)) {
  4394. this.Adapter.UpdateCommand.Parameters[10].Value = ((byte)(Курс.Value));
  4395. }
  4396. else {
  4397. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  4398. }
  4399. if ((КодСпециальности.HasValue == true)) {
  4400. this.Adapter.UpdateCommand.Parameters[11].Value = ((long)(КодСпециальности.Value));
  4401. }
  4402. else {
  4403. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  4404. }
  4405. if ((ОчнаяФормаОбучения.HasValue == true)) {
  4406. this.Adapter.UpdateCommand.Parameters[12].Value = ((bool)(ОчнаяФормаОбучения.Value));
  4407. }
  4408. else {
  4409. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  4410. }
  4411. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Original_КодСтудента));
  4412. if ((Original_ФИО == null)) {
  4413. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
  4414. this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
  4415. }
  4416. else {
  4417. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
  4418. this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_ФИО));
  4419. }
  4420. if ((Original_Пол == null)) {
  4421. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
  4422. this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
  4423. }
  4424. else {
  4425. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
  4426. this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_Пол));
  4427. }
  4428. if ((Original_ДатаРождения.HasValue == true)) {
  4429. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
  4430. this.Adapter.UpdateCommand.Parameters[19].Value = ((System.DateTime)(Original_ДатаРождения.Value));
  4431. }
  4432. else {
  4433. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
  4434. this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
  4435. }
  4436. if ((Original_Родители == null)) {
  4437. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
  4438. this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
  4439. }
  4440. else {
  4441. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
  4442. this.Adapter.UpdateCommand.Parameters[21].Value = ((string)(Original_Родители));
  4443. }
  4444. if ((Original_Телефон == null)) {
  4445. this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1));
  4446. this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value;
  4447. }
  4448. else {
  4449. this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0));
  4450. this.Adapter.UpdateCommand.Parameters[23].Value = ((string)(Original_Телефон));
  4451. }
  4452. if ((Original_НомерЗачетки.HasValue == true)) {
  4453. this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(0));
  4454. this.Adapter.UpdateCommand.Parameters[25].Value = ((long)(Original_НомерЗачетки.Value));
  4455. }
  4456. else {
  4457. this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(1));
  4458. this.Adapter.UpdateCommand.Parameters[25].Value = global::System.DBNull.Value;
  4459. }
  4460. if ((Original_ДатаПоступления.HasValue == true)) {
  4461. this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(0));
  4462. this.Adapter.UpdateCommand.Parameters[27].Value = ((System.DateTime)(Original_ДатаПоступления.Value));
  4463. }
  4464. else {
  4465. this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(1));
  4466. this.Adapter.UpdateCommand.Parameters[27].Value = global::System.DBNull.Value;
  4467. }
  4468. if ((Original_Группа == null)) {
  4469. this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(1));
  4470. this.Adapter.UpdateCommand.Parameters[29].Value = global::System.DBNull.Value;
  4471. }
  4472. else {
  4473. this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(0));
  4474. this.Adapter.UpdateCommand.Parameters[29].Value = ((string)(Original_Группа));
  4475. }
  4476. if ((Original_Курс.HasValue == true)) {
  4477. this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(0));
  4478. this.Adapter.UpdateCommand.Parameters[31].Value = ((byte)(Original_Курс.Value));
  4479. }
  4480. else {
  4481. this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(1));
  4482. this.Adapter.UpdateCommand.Parameters[31].Value = global::System.DBNull.Value;
  4483. }
  4484. if ((Original_КодСпециальности.HasValue == true)) {
  4485. this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(0));
  4486. this.Adapter.UpdateCommand.Parameters[33].Value = ((long)(Original_КодСпециальности.Value));
  4487. }
  4488. else {
  4489. this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(1));
  4490. this.Adapter.UpdateCommand.Parameters[33].Value = global::System.DBNull.Value;
  4491. }
  4492. if ((Original_ОчнаяФормаОбучения.HasValue == true)) {
  4493. this.Adapter.UpdateCommand.Parameters[34].Value = ((object)(0));
  4494. this.Adapter.UpdateCommand.Parameters[35].Value = ((bool)(Original_ОчнаяФормаОбучения.Value));
  4495. }
  4496. else {
  4497. this.Adapter.UpdateCommand.Parameters[34].Value = ((object)(1));
  4498. this.Adapter.UpdateCommand.Parameters[35].Value = global::System.DBNull.Value;
  4499. }
  4500. this.Adapter.UpdateCommand.Parameters[36].Value = ((int)(КодСтудента));
  4501. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  4502. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4503. != global::System.Data.ConnectionState.Open)) {
  4504. this.Adapter.UpdateCommand.Connection.Open();
  4505. }
  4506. try {
  4507. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  4508. return returnValue;
  4509. }
  4510. finally {
  4511. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4512. this.Adapter.UpdateCommand.Connection.Close();
  4513. }
  4514. }
  4515. }
  4516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4517. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4518. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4519. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4520. public virtual int Update(
  4521. string ФИО,
  4522. string Пол,
  4523. global::System.Nullable<global::System.DateTime> ДатаРождения,
  4524. string Родители,
  4525. string Адрес,
  4526. string Телефон,
  4527. string ПаспортныеДанные,
  4528. global::System.Nullable<long> НомерЗачетки,
  4529. global::System.Nullable<global::System.DateTime> ДатаПоступления,
  4530. string Группа,
  4531. global::System.Nullable<byte> Курс,
  4532. global::System.Nullable<long> КодСпециальности,
  4533. global::System.Nullable<bool> ОчнаяФормаОбучения,
  4534. int Original_КодСтудента,
  4535. string Original_ФИО,
  4536. string Original_Пол,
  4537. global::System.Nullable<global::System.DateTime> Original_ДатаРождения,
  4538. string Original_Родители,
  4539. string Original_Телефон,
  4540. global::System.Nullable<long> Original_НомерЗачетки,
  4541. global::System.Nullable<global::System.DateTime> Original_ДатаПоступления,
  4542. string Original_Группа,
  4543. global::System.Nullable<byte> Original_Курс,
  4544. global::System.Nullable<long> Original_КодСпециальности,
  4545. global::System.Nullable<bool> Original_ОчнаяФормаОбучения) {
  4546. return this.Update(ФИО, Пол, ДатаРождения, Родители, Адрес, Телефон, ПаспортныеДанные, НомерЗачетки, ДатаПоступления, Группа, Курс, КодСпециальности, ОчнаяФормаОбучения, Original_КодСтудента, Original_ФИО, Original_Пол, Original_ДатаРождения, Original_Родители, Original_Телефон, Original_НомерЗачетки, Original_ДатаПоступления, Original_Группа, Original_Курс, Original_КодСпециальности, Original_ОчнаяФормаОбучения, Original_КодСтудента);
  4547. }
  4548. }
  4549. /// <summary>
  4550. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  4551. ///</summary>
  4552. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4553. [global::System.ComponentModel.ToolboxItem(true)]
  4554. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  4555. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4556. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  4557. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  4558. private UpdateOrderOption _updateOrder;
  4559. private ОценкиTableAdapter _оценкиTableAdapter;
  4560. private ПредметыTableAdapter _предметыTableAdapter;
  4561. private СпециальностиTableAdapter _специальностиTableAdapter;
  4562. private СтудентыTableAdapter _студентыTableAdapter;
  4563. private bool _backupDataSetBeforeUpdate;
  4564. private global::System.Data.IDbConnection _connection;
  4565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4567. public UpdateOrderOption UpdateOrder {
  4568. get {
  4569. return this._updateOrder;
  4570. }
  4571. set {
  4572. this._updateOrder = value;
  4573. }
  4574. }
  4575. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4576. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4577. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  4578. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  4579. "a", "System.Drawing.Design.UITypeEditor")]
  4580. public ОценкиTableAdapter ОценкиTableAdapter {
  4581. get {
  4582. return this._оценкиTableAdapter;
  4583. }
  4584. set {
  4585. this._оценкиTableAdapter = value;
  4586. }
  4587. }
  4588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4589. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4590. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  4591. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  4592. "a", "System.Drawing.Design.UITypeEditor")]
  4593. public ПредметыTableAdapter ПредметыTableAdapter {
  4594. get {
  4595. return this._предметыTableAdapter;
  4596. }
  4597. set {
  4598. this._предметыTableAdapter = value;
  4599. }
  4600. }
  4601. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4602. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4603. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  4604. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  4605. "a", "System.Drawing.Design.UITypeEditor")]
  4606. public СпециальностиTableAdapter СпециальностиTableAdapter {
  4607. get {
  4608. return this._специальностиTableAdapter;
  4609. }
  4610. set {
  4611. this._специальностиTableAdapter = value;
  4612. }
  4613. }
  4614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4615. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4616. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  4617. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  4618. "a", "System.Drawing.Design.UITypeEditor")]
  4619. public СтудентыTableAdapter СтудентыTableAdapter {
  4620. get {
  4621. return this._студентыTableAdapter;
  4622. }
  4623. set {
  4624. this._студентыTableAdapter = value;
  4625. }
  4626. }
  4627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4629. public bool BackupDataSetBeforeUpdate {
  4630. get {
  4631. return this._backupDataSetBeforeUpdate;
  4632. }
  4633. set {
  4634. this._backupDataSetBeforeUpdate = value;
  4635. }
  4636. }
  4637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4638. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4639. [global::System.ComponentModel.Browsable(false)]
  4640. public global::System.Data.IDbConnection Connection {
  4641. get {
  4642. if ((this._connection != null)) {
  4643. return this._connection;
  4644. }
  4645. if (((this._оценкиTableAdapter != null)
  4646. && (this._оценкиTableAdapter.Connection != null))) {
  4647. return this._оценкиTableAdapter.Connection;
  4648. }
  4649. if (((this._предметыTableAdapter != null)
  4650. && (this._предметыTableAdapter.Connection != null))) {
  4651. return this._предметыTableAdapter.Connection;
  4652. }
  4653. if (((this._специальностиTableAdapter != null)
  4654. && (this._специальностиTableAdapter.Connection != null))) {
  4655. return this._специальностиTableAdapter.Connection;
  4656. }
  4657. if (((this._студентыTableAdapter != null)
  4658. && (this._студентыTableAdapter.Connection != null))) {
  4659. return this._студентыTableAdapter.Connection;
  4660. }
  4661. return null;
  4662. }
  4663. set {
  4664. this._connection = value;
  4665. }
  4666. }
  4667. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4668. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4669. [global::System.ComponentModel.Browsable(false)]
  4670. public int TableAdapterInstanceCount {
  4671. get {
  4672. int count = 0;
  4673. if ((this._оценкиTableAdapter != null)) {
  4674. count = (count + 1);
  4675. }
  4676. if ((this._предметыTableAdapter != null)) {
  4677. count = (count + 1);
  4678. }
  4679. if ((this._специальностиTableAdapter != null)) {
  4680. count = (count + 1);
  4681. }
  4682. if ((this._студентыTableAdapter != null)) {
  4683. count = (count + 1);
  4684. }
  4685. return count;
  4686. }
  4687. }
  4688. /// <summary>
  4689. ///Update rows in top-down order.
  4690. ///</summary>
  4691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4692. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4693. private int UpdateUpdatedRows(РП31ДьячковНикитинСтудентыDataSet1 dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  4694. int result = 0;
  4695. if ((this._оценкиTableAdapter != null)) {
  4696. global::System.Data.DataRow[] updatedRows = dataSet.Оценки.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  4697. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  4698. if (((updatedRows != null)
  4699. && (0 < updatedRows.Length))) {
  4700. result = (result + this._оценкиTableAdapter.Update(updatedRows));
  4701. allChangedRows.AddRange(updatedRows);
  4702. }
  4703. }
  4704. if ((this._предметыTableAdapter != null)) {
  4705. global::System.Data.DataRow[] updatedRows = dataSet.Предметы.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  4706. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  4707. if (((updatedRows != null)
  4708. && (0 < updatedRows.Length))) {
  4709. result = (result + this._предметыTableAdapter.Update(updatedRows));
  4710. allChangedRows.AddRange(updatedRows);
  4711. }
  4712. }
  4713. if ((this._специальностиTableAdapter != null)) {
  4714. global::System.Data.DataRow[] updatedRows = dataSet.Специальности.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  4715. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  4716. if (((updatedRows != null)
  4717. && (0 < updatedRows.Length))) {
  4718. result = (result + this._специальностиTableAdapter.Update(updatedRows));
  4719. allChangedRows.AddRange(updatedRows);
  4720. }
  4721. }
  4722. if ((this._студентыTableAdapter != null)) {
  4723. global::System.Data.DataRow[] updatedRows = dataSet.Студенты.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  4724. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  4725. if (((updatedRows != null)
  4726. && (0 < updatedRows.Length))) {
  4727. result = (result + this._студентыTableAdapter.Update(updatedRows));
  4728. allChangedRows.AddRange(updatedRows);
  4729. }
  4730. }
  4731. return result;
  4732. }
  4733. /// <summary>
  4734. ///Insert rows in top-down order.
  4735. ///</summary>
  4736. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4737. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4738. private int UpdateInsertedRows(РП31ДьячковНикитинСтудентыDataSet1 dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  4739. int result = 0;
  4740. if ((this._оценкиTableAdapter != null)) {
  4741. global::System.Data.DataRow[] addedRows = dataSet.Оценки.Select(null, null, global::System.Data.DataViewRowState.Added);
  4742. if (((addedRows != null)
  4743. && (0 < addedRows.Length))) {
  4744. result = (result + this._оценкиTableAdapter.Update(addedRows));
  4745. allAddedRows.AddRange(addedRows);
  4746. }
  4747. }
  4748. if ((this._предметыTableAdapter != null)) {
  4749. global::System.Data.DataRow[] addedRows = dataSet.Предметы.Select(null, null, global::System.Data.DataViewRowState.Added);
  4750. if (((addedRows != null)
  4751. && (0 < addedRows.Length))) {
  4752. result = (result + this._предметыTableAdapter.Update(addedRows));
  4753. allAddedRows.AddRange(addedRows);
  4754. }
  4755. }
  4756. if ((this._специальностиTableAdapter != null)) {
  4757. global::System.Data.DataRow[] addedRows = dataSet.Специальности.Select(null, null, global::System.Data.DataViewRowState.Added);
  4758. if (((addedRows != null)
  4759. && (0 < addedRows.Length))) {
  4760. result = (result + this._специальностиTableAdapter.Update(addedRows));
  4761. allAddedRows.AddRange(addedRows);
  4762. }
  4763. }
  4764. if ((this._студентыTableAdapter != null)) {
  4765. global::System.Data.DataRow[] addedRows = dataSet.Студенты.Select(null, null, global::System.Data.DataViewRowState.Added);
  4766. if (((addedRows != null)
  4767. && (0 < addedRows.Length))) {
  4768. result = (result + this._студентыTableAdapter.Update(addedRows));
  4769. allAddedRows.AddRange(addedRows);
  4770. }
  4771. }
  4772. return result;
  4773. }
  4774. /// <summary>
  4775. ///Delete rows in bottom-up order.
  4776. ///</summary>
  4777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4779. private int UpdateDeletedRows(РП31ДьячковНикитинСтудентыDataSet1 dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  4780. int result = 0;
  4781. if ((this._студентыTableAdapter != null)) {
  4782. global::System.Data.DataRow[] deletedRows = dataSet.Студенты.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  4783. if (((deletedRows != null)
  4784. && (0 < deletedRows.Length))) {
  4785. result = (result + this._студентыTableAdapter.Update(deletedRows));
  4786. allChangedRows.AddRange(deletedRows);
  4787. }
  4788. }
  4789. if ((this._специальностиTableAdapter != null)) {
  4790. global::System.Data.DataRow[] deletedRows = dataSet.Специальности.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  4791. if (((deletedRows != null)
  4792. && (0 < deletedRows.Length))) {
  4793. result = (result + this._специальностиTableAdapter.Update(deletedRows));
  4794. allChangedRows.AddRange(deletedRows);
  4795. }
  4796. }
  4797. if ((this._предметыTableAdapter != null)) {
  4798. global::System.Data.DataRow[] deletedRows = dataSet.Предметы.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  4799. if (((deletedRows != null)
  4800. && (0 < deletedRows.Length))) {
  4801. result = (result + this._предметыTableAdapter.Update(deletedRows));
  4802. allChangedRows.AddRange(deletedRows);
  4803. }
  4804. }
  4805. if ((this._оценкиTableAdapter != null)) {
  4806. global::System.Data.DataRow[] deletedRows = dataSet.Оценки.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  4807. if (((deletedRows != null)
  4808. && (0 < deletedRows.Length))) {
  4809. result = (result + this._оценкиTableAdapter.Update(deletedRows));
  4810. allChangedRows.AddRange(deletedRows);
  4811. }
  4812. }
  4813. return result;
  4814. }
  4815. /// <summary>
  4816. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  4817. ///</summary>
  4818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4819. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4820. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  4821. if (((updatedRows == null)
  4822. || (updatedRows.Length < 1))) {
  4823. return updatedRows;
  4824. }
  4825. if (((allAddedRows == null)
  4826. || (allAddedRows.Count < 1))) {
  4827. return updatedRows;
  4828. }
  4829. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  4830. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  4831. global::System.Data.DataRow row = updatedRows[i];
  4832. if ((allAddedRows.Contains(row) == false)) {
  4833. realUpdatedRows.Add(row);
  4834. }
  4835. }
  4836. return realUpdatedRows.ToArray();
  4837. }
  4838. /// <summary>
  4839. ///Update all changes to the dataset.
  4840. ///</summary>
  4841. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4842. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4843. public virtual int UpdateAll(РП31ДьячковНикитинСтудентыDataSet1 dataSet) {
  4844. if ((dataSet == null)) {
  4845. throw new global::System.ArgumentNullException("dataSet");
  4846. }
  4847. if ((dataSet.HasChanges() == false)) {
  4848. return 0;
  4849. }
  4850. if (((this._оценкиTableAdapter != null)
  4851. && (this.MatchTableAdapterConnection(this._оценкиTableAdapter.Connection) == false))) {
  4852. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  4853. "r, должны использовать одинаковую строку подключения.");
  4854. }
  4855. if (((this._предметыTableAdapter != null)
  4856. && (this.MatchTableAdapterConnection(this._предметыTableAdapter.Connection) == false))) {
  4857. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  4858. "r, должны использовать одинаковую строку подключения.");
  4859. }
  4860. if (((this._специальностиTableAdapter != null)
  4861. && (this.MatchTableAdapterConnection(this._специальностиTableAdapter.Connection) == false))) {
  4862. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  4863. "r, должны использовать одинаковую строку подключения.");
  4864. }
  4865. if (((this._студентыTableAdapter != null)
  4866. && (this.MatchTableAdapterConnection(this._студентыTableAdapter.Connection) == false))) {
  4867. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  4868. "r, должны использовать одинаковую строку подключения.");
  4869. }
  4870. global::System.Data.IDbConnection workConnection = this.Connection;
  4871. if ((workConnection == null)) {
  4872. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  4873. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  4874. }
  4875. bool workConnOpened = false;
  4876. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  4877. == global::System.Data.ConnectionState.Broken)) {
  4878. workConnection.Close();
  4879. }
  4880. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  4881. workConnection.Open();
  4882. workConnOpened = true;
  4883. }
  4884. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  4885. if ((workTransaction == null)) {
  4886. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  4887. "и или текущее состояние не позволяет начать транзакцию.");
  4888. }
  4889. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  4890. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  4891. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  4892. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  4893. int result = 0;
  4894. global::System.Data.DataSet backupDataSet = null;
  4895. if (this.BackupDataSetBeforeUpdate) {
  4896. backupDataSet = new global::System.Data.DataSet();
  4897. backupDataSet.Merge(dataSet);
  4898. }
  4899. try {
  4900. // ---- Prepare for update -----------
  4901. //
  4902. if ((this._оценкиTableAdapter != null)) {
  4903. revertConnections.Add(this._оценкиTableAdapter, this._оценкиTableAdapter.Connection);
  4904. this._оценкиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  4905. this._оценкиTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  4906. if (this._оценкиTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  4907. this._оценкиTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  4908. adaptersWithAcceptChangesDuringUpdate.Add(this._оценкиTableAdapter.Adapter);
  4909. }
  4910. }
  4911. if ((this._предметыTableAdapter != null)) {
  4912. revertConnections.Add(this._предметыTableAdapter, this._предметыTableAdapter.Connection);
  4913. this._предметыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  4914. this._предметыTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  4915. if (this._предметыTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  4916. this._предметыTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  4917. adaptersWithAcceptChangesDuringUpdate.Add(this._предметыTableAdapter.Adapter);
  4918. }
  4919. }
  4920. if ((this._специальностиTableAdapter != null)) {
  4921. revertConnections.Add(this._специальностиTableAdapter, this._специальностиTableAdapter.Connection);
  4922. this._специальностиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  4923. this._специальностиTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  4924. if (this._специальностиTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  4925. this._специальностиTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  4926. adaptersWithAcceptChangesDuringUpdate.Add(this._специальностиTableAdapter.Adapter);
  4927. }
  4928. }
  4929. if ((this._студентыTableAdapter != null)) {
  4930. revertConnections.Add(this._студентыTableAdapter, this._студентыTableAdapter.Connection);
  4931. this._студентыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  4932. this._студентыTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  4933. if (this._студентыTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  4934. this._студентыTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  4935. adaptersWithAcceptChangesDuringUpdate.Add(this._студентыTableAdapter.Adapter);
  4936. }
  4937. }
  4938. //
  4939. //---- Perform updates -----------
  4940. //
  4941. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  4942. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  4943. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  4944. }
  4945. else {
  4946. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  4947. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  4948. }
  4949. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  4950. //
  4951. //---- Commit updates -----------
  4952. //
  4953. workTransaction.Commit();
  4954. if ((0 < allAddedRows.Count)) {
  4955. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  4956. allAddedRows.CopyTo(rows);
  4957. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  4958. global::System.Data.DataRow row = rows[i];
  4959. row.AcceptChanges();
  4960. }
  4961. }
  4962. if ((0 < allChangedRows.Count)) {
  4963. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  4964. allChangedRows.CopyTo(rows);
  4965. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  4966. global::System.Data.DataRow row = rows[i];
  4967. row.AcceptChanges();
  4968. }
  4969. }
  4970. }
  4971. catch (global::System.Exception ex) {
  4972. workTransaction.Rollback();
  4973. // ---- Restore the dataset -----------
  4974. if (this.BackupDataSetBeforeUpdate) {
  4975. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  4976. dataSet.Clear();
  4977. dataSet.Merge(backupDataSet);
  4978. }
  4979. else {
  4980. if ((0 < allAddedRows.Count)) {
  4981. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  4982. allAddedRows.CopyTo(rows);
  4983. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  4984. global::System.Data.DataRow row = rows[i];
  4985. row.AcceptChanges();
  4986. row.SetAdded();
  4987. }
  4988. }
  4989. }
  4990. throw ex;
  4991. }
  4992. finally {
  4993. if (workConnOpened) {
  4994. workConnection.Close();
  4995. }
  4996. if ((this._оценкиTableAdapter != null)) {
  4997. this._оценкиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._оценкиTableAdapter]));
  4998. this._оценкиTableAdapter.Transaction = null;
  4999. }
  5000. if ((this._предметыTableAdapter != null)) {
  5001. this._предметыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._предметыTableAdapter]));
  5002. this._предметыTableAdapter.Transaction = null;
  5003. }
  5004. if ((this._специальностиTableAdapter != null)) {
  5005. this._специальностиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._специальностиTableAdapter]));
  5006. this._специальностиTableAdapter.Transaction = null;
  5007. }
  5008. if ((this._студентыTableAdapter != null)) {
  5009. this._студентыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._студентыTableAdapter]));
  5010. this._студентыTableAdapter.Transaction = null;
  5011. }
  5012. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  5013. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  5014. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  5015. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  5016. global::System.Data.Common.DataAdapter adapter = adapters[i];
  5017. adapter.AcceptChangesDuringUpdate = true;
  5018. }
  5019. }
  5020. }
  5021. return result;
  5022. }
  5023. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5024. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5025. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  5026. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  5027. }
  5028. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5029. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5030. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  5031. if ((this._connection != null)) {
  5032. return true;
  5033. }
  5034. if (((this.Connection == null)
  5035. || (inputConnection == null))) {
  5036. return true;
  5037. }
  5038. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  5039. return true;
  5040. }
  5041. return false;
  5042. }
  5043. /// <summary>
  5044. ///Update Order Option
  5045. ///</summary>
  5046. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5047. public enum UpdateOrderOption {
  5048. InsertUpdateDelete = 0,
  5049. UpdateInsertDelete = 1,
  5050. }
  5051. /// <summary>
  5052. ///Used to sort self-referenced table's rows
  5053. ///</summary>
  5054. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5055. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  5056. private global::System.Data.DataRelation _relation;
  5057. private int _childFirst;
  5058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5059. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5060. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  5061. this._relation = relation;
  5062. if (childFirst) {
  5063. this._childFirst = -1;
  5064. }
  5065. else {
  5066. this._childFirst = 1;
  5067. }
  5068. }
  5069. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5070. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5071. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  5072. global::System.Diagnostics.Debug.Assert((row != null));
  5073. global::System.Data.DataRow root = row;
  5074. distance = 0;
  5075. 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>();
  5076. traversedRows[row] = row;
  5077. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  5078. for (
  5079. ; ((parent != null)
  5080. && (traversedRows.ContainsKey(parent) == false));
  5081. ) {
  5082. distance = (distance + 1);
  5083. root = parent;
  5084. traversedRows[parent] = parent;
  5085. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  5086. }
  5087. if ((distance == 0)) {
  5088. traversedRows.Clear();
  5089. traversedRows[row] = row;
  5090. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  5091. for (
  5092. ; ((parent != null)
  5093. && (traversedRows.ContainsKey(parent) == false));
  5094. ) {
  5095. distance = (distance + 1);
  5096. root = parent;
  5097. traversedRows[parent] = parent;
  5098. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  5099. }
  5100. }
  5101. return root;
  5102. }
  5103. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5104. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5105. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  5106. if (object.ReferenceEquals(row1, row2)) {
  5107. return 0;
  5108. }
  5109. if ((row1 == null)) {
  5110. return -1;
  5111. }
  5112. if ((row2 == null)) {
  5113. return 1;
  5114. }
  5115. int distance1 = 0;
  5116. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  5117. int distance2 = 0;
  5118. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  5119. if (object.ReferenceEquals(root1, root2)) {
  5120. return (this._childFirst * distance1.CompareTo(distance2));
  5121. }
  5122. else {
  5123. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  5124. && (root2.Table != null)));
  5125. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  5126. return -1;
  5127. }
  5128. else {
  5129. return 1;
  5130. }
  5131. }
  5132. }
  5133. }
  5134. }
  5135. }
  5136. #pragma warning restore 1591