RP31DyakonovStudentsDataSet.Designer.cs 328 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace DyakonovSTUD {
  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("RP31DyakonovStudentsDataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class RP31DyakonovStudentsDataSet : 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 RP31DyakonovStudentsDataSet() {
  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 RP31DyakonovStudentsDataSet(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. RP31DyakonovStudentsDataSet cln = ((RP31DyakonovStudentsDataSet)(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 = "RP31DyakonovStudentsDataSet";
  248. this.Prefix = "";
  249. this.Namespace = "http://tempuri.org/RP31DyakonovStudentsDataSet.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. RP31DyakonovStudentsDataSet ds = new RP31DyakonovStudentsDataSet();
  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(int Код_студента, System.DateTime Дата_экзамена_1, int Код_предмета_1, byte Оценка_1, System.DateTime Дата_экзамена_2, int Код_предмета_2, byte Оценка_2, System.DateTime Дата_экзамена_3, int Код_предмета_3, byte Оценка_3, float Средний_балл) {
  497. ОценкиRow rowОценкиRow = ((ОценкиRow)(this.NewRow()));
  498. object[] columnValuesArray = new object[] {
  499. Код_студента,
  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 override global::System.Data.DataTable Clone() {
  517. ОценкиDataTable cln = ((ОценкиDataTable)(base.Clone()));
  518. cln.InitVars();
  519. return cln;
  520. }
  521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  523. protected override global::System.Data.DataTable CreateInstance() {
  524. return new ОценкиDataTable();
  525. }
  526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  528. internal void InitVars() {
  529. this.columnКод_студента = base.Columns["Код студента"];
  530. this.columnДата_экзамена_1 = base.Columns["Дата экзамена 1"];
  531. this.columnКод_предмета_1 = base.Columns["Код предмета 1"];
  532. this.columnОценка_1 = base.Columns["Оценка 1"];
  533. this.columnДата_экзамена_2 = base.Columns["Дата экзамена 2"];
  534. this.columnКод_предмета_2 = base.Columns["Код предмета 2"];
  535. this.columnОценка_2 = base.Columns["Оценка 2"];
  536. this.columnДата_экзамена_3 = base.Columns["Дата экзамена 3"];
  537. this.columnКод_предмета_3 = base.Columns["Код предмета 3"];
  538. this.columnОценка_3 = base.Columns["Оценка 3"];
  539. this.columnСредний_балл = base.Columns["Средний балл"];
  540. }
  541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  543. private void InitClass() {
  544. this.columnКод_студента = new global::System.Data.DataColumn("Код студента", typeof(int), null, global::System.Data.MappingType.Element);
  545. base.Columns.Add(this.columnКод_студента);
  546. this.columnДата_экзамена_1 = new global::System.Data.DataColumn("Дата экзамена 1", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  547. base.Columns.Add(this.columnДата_экзамена_1);
  548. this.columnКод_предмета_1 = new global::System.Data.DataColumn("Код предмета 1", typeof(int), null, global::System.Data.MappingType.Element);
  549. base.Columns.Add(this.columnКод_предмета_1);
  550. this.columnОценка_1 = new global::System.Data.DataColumn("Оценка 1", typeof(byte), null, global::System.Data.MappingType.Element);
  551. base.Columns.Add(this.columnОценка_1);
  552. this.columnДата_экзамена_2 = new global::System.Data.DataColumn("Дата экзамена 2", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  553. base.Columns.Add(this.columnДата_экзамена_2);
  554. this.columnКод_предмета_2 = new global::System.Data.DataColumn("Код предмета 2", typeof(int), null, global::System.Data.MappingType.Element);
  555. base.Columns.Add(this.columnКод_предмета_2);
  556. this.columnОценка_2 = new global::System.Data.DataColumn("Оценка 2", typeof(byte), null, global::System.Data.MappingType.Element);
  557. base.Columns.Add(this.columnОценка_2);
  558. this.columnДата_экзамена_3 = new global::System.Data.DataColumn("Дата экзамена 3", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  559. base.Columns.Add(this.columnДата_экзамена_3);
  560. this.columnКод_предмета_3 = new global::System.Data.DataColumn("Код предмета 3", typeof(int), null, global::System.Data.MappingType.Element);
  561. base.Columns.Add(this.columnКод_предмета_3);
  562. this.columnОценка_3 = new global::System.Data.DataColumn("Оценка 3", typeof(byte), null, global::System.Data.MappingType.Element);
  563. base.Columns.Add(this.columnОценка_3);
  564. this.columnСредний_балл = new global::System.Data.DataColumn("Средний балл", typeof(float), null, global::System.Data.MappingType.Element);
  565. base.Columns.Add(this.columnСредний_балл);
  566. this.columnКод_студента.AllowDBNull = false;
  567. this.columnДата_экзамена_1.AllowDBNull = false;
  568. this.columnКод_предмета_1.AllowDBNull = false;
  569. this.columnОценка_1.AllowDBNull = false;
  570. this.columnДата_экзамена_2.AllowDBNull = false;
  571. this.columnКод_предмета_2.AllowDBNull = false;
  572. this.columnОценка_2.AllowDBNull = false;
  573. this.columnДата_экзамена_3.AllowDBNull = false;
  574. this.columnКод_предмета_3.AllowDBNull = false;
  575. this.columnОценка_3.AllowDBNull = false;
  576. this.columnСредний_балл.AllowDBNull = false;
  577. }
  578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  580. public ОценкиRow NewОценкиRow() {
  581. return ((ОценкиRow)(this.NewRow()));
  582. }
  583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  585. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  586. return new ОценкиRow(builder);
  587. }
  588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  589. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  590. protected override global::System.Type GetRowType() {
  591. return typeof(ОценкиRow);
  592. }
  593. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  594. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  595. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  596. base.OnRowChanged(e);
  597. if ((this.ОценкиRowChanged != null)) {
  598. this.ОценкиRowChanged(this, new ОценкиRowChangeEvent(((ОценкиRow)(e.Row)), e.Action));
  599. }
  600. }
  601. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  602. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  603. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  604. base.OnRowChanging(e);
  605. if ((this.ОценкиRowChanging != null)) {
  606. this.ОценкиRowChanging(this, new ОценкиRowChangeEvent(((ОценкиRow)(e.Row)), e.Action));
  607. }
  608. }
  609. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  610. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  611. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  612. base.OnRowDeleted(e);
  613. if ((this.ОценкиRowDeleted != null)) {
  614. this.ОценкиRowDeleted(this, new ОценкиRowChangeEvent(((ОценкиRow)(e.Row)), e.Action));
  615. }
  616. }
  617. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  618. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  619. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  620. base.OnRowDeleting(e);
  621. if ((this.ОценкиRowDeleting != null)) {
  622. this.ОценкиRowDeleting(this, new ОценкиRowChangeEvent(((ОценкиRow)(e.Row)), e.Action));
  623. }
  624. }
  625. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  626. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  627. public void RemoveОценкиRow(ОценкиRow row) {
  628. this.Rows.Remove(row);
  629. }
  630. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  631. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  632. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  633. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  634. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  635. RP31DyakonovStudentsDataSet ds = new RP31DyakonovStudentsDataSet();
  636. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  637. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  638. any1.MinOccurs = new decimal(0);
  639. any1.MaxOccurs = decimal.MaxValue;
  640. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  641. sequence.Items.Add(any1);
  642. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  643. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  644. any2.MinOccurs = new decimal(1);
  645. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  646. sequence.Items.Add(any2);
  647. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  648. attribute1.Name = "namespace";
  649. attribute1.FixedValue = ds.Namespace;
  650. type.Attributes.Add(attribute1);
  651. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  652. attribute2.Name = "tableTypeName";
  653. attribute2.FixedValue = "ОценкиDataTable";
  654. type.Attributes.Add(attribute2);
  655. type.Particle = sequence;
  656. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  657. if (xs.Contains(dsSchema.TargetNamespace)) {
  658. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  659. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  660. try {
  661. global::System.Xml.Schema.XmlSchema schema = null;
  662. dsSchema.Write(s1);
  663. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  664. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  665. s2.SetLength(0);
  666. schema.Write(s2);
  667. if ((s1.Length == s2.Length)) {
  668. s1.Position = 0;
  669. s2.Position = 0;
  670. for (; ((s1.Position != s1.Length)
  671. && (s1.ReadByte() == s2.ReadByte())); ) {
  672. ;
  673. }
  674. if ((s1.Position == s1.Length)) {
  675. return type;
  676. }
  677. }
  678. }
  679. }
  680. finally {
  681. if ((s1 != null)) {
  682. s1.Close();
  683. }
  684. if ((s2 != null)) {
  685. s2.Close();
  686. }
  687. }
  688. }
  689. xs.Add(dsSchema);
  690. return type;
  691. }
  692. }
  693. /// <summary>
  694. ///Represents the strongly named DataTable class.
  695. ///</summary>
  696. [global::System.Serializable()]
  697. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  698. public partial class ПредметыDataTable : global::System.Data.TypedTableBase<ПредметыRow> {
  699. private global::System.Data.DataColumn columnКод_предмета;
  700. private global::System.Data.DataColumn columnНаименование_предмета;
  701. private global::System.Data.DataColumn columnОписание_предмета;
  702. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  703. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  704. public ПредметыDataTable() {
  705. this.TableName = "Предметы";
  706. this.BeginInit();
  707. this.InitClass();
  708. this.EndInit();
  709. }
  710. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  711. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  712. internal ПредметыDataTable(global::System.Data.DataTable table) {
  713. this.TableName = table.TableName;
  714. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  715. this.CaseSensitive = table.CaseSensitive;
  716. }
  717. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  718. this.Locale = table.Locale;
  719. }
  720. if ((table.Namespace != table.DataSet.Namespace)) {
  721. this.Namespace = table.Namespace;
  722. }
  723. this.Prefix = table.Prefix;
  724. this.MinimumCapacity = table.MinimumCapacity;
  725. }
  726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  728. protected ПредметыDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  729. base(info, context) {
  730. this.InitVars();
  731. }
  732. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  733. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  734. public global::System.Data.DataColumn Код_предметаColumn {
  735. get {
  736. return this.columnКод_предмета;
  737. }
  738. }
  739. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  740. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  741. public global::System.Data.DataColumn Наименование_предметаColumn {
  742. get {
  743. return this.columnНаименование_предмета;
  744. }
  745. }
  746. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  747. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  748. public global::System.Data.DataColumn Описание_предметаColumn {
  749. get {
  750. return this.columnОписание_предмета;
  751. }
  752. }
  753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  755. [global::System.ComponentModel.Browsable(false)]
  756. public int Count {
  757. get {
  758. return this.Rows.Count;
  759. }
  760. }
  761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  763. public ПредметыRow this[int index] {
  764. get {
  765. return ((ПредметыRow)(this.Rows[index]));
  766. }
  767. }
  768. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  769. public event ПредметыRowChangeEventHandler ПредметыRowChanging;
  770. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  771. public event ПредметыRowChangeEventHandler ПредметыRowChanged;
  772. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  773. public event ПредметыRowChangeEventHandler ПредметыRowDeleting;
  774. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  775. public event ПредметыRowChangeEventHandler ПредметыRowDeleted;
  776. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  777. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  778. public void AddПредметыRow(ПредметыRow row) {
  779. this.Rows.Add(row);
  780. }
  781. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  782. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  783. public ПредметыRow AddПредметыRow(string Наименование_предмета, string Описание_предмета) {
  784. ПредметыRow rowПредметыRow = ((ПредметыRow)(this.NewRow()));
  785. object[] columnValuesArray = new object[] {
  786. null,
  787. Наименование_предмета,
  788. Описание_предмета};
  789. rowПредметыRow.ItemArray = columnValuesArray;
  790. this.Rows.Add(rowПредметыRow);
  791. return rowПредметыRow;
  792. }
  793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  794. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  795. public ПредметыRow FindByКод_предмета(int Код_предмета) {
  796. return ((ПредметыRow)(this.Rows.Find(new object[] {
  797. Код_предмета})));
  798. }
  799. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  800. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  801. public override global::System.Data.DataTable Clone() {
  802. ПредметыDataTable cln = ((ПредметыDataTable)(base.Clone()));
  803. cln.InitVars();
  804. return cln;
  805. }
  806. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  807. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  808. protected override global::System.Data.DataTable CreateInstance() {
  809. return new ПредметыDataTable();
  810. }
  811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  812. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  813. internal void InitVars() {
  814. this.columnКод_предмета = base.Columns["Код предмета"];
  815. this.columnНаименование_предмета = base.Columns["Наименование предмета"];
  816. this.columnОписание_предмета = base.Columns["Описание предмета"];
  817. }
  818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  819. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  820. private void InitClass() {
  821. this.columnКод_предмета = new global::System.Data.DataColumn("Код предмета", typeof(int), null, global::System.Data.MappingType.Element);
  822. base.Columns.Add(this.columnКод_предмета);
  823. this.columnНаименование_предмета = new global::System.Data.DataColumn("Наименование предмета", typeof(string), null, global::System.Data.MappingType.Element);
  824. base.Columns.Add(this.columnНаименование_предмета);
  825. this.columnОписание_предмета = new global::System.Data.DataColumn("Описание предмета", typeof(string), null, global::System.Data.MappingType.Element);
  826. base.Columns.Add(this.columnОписание_предмета);
  827. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  828. this.columnКод_предмета}, true));
  829. this.columnКод_предмета.AutoIncrement = true;
  830. this.columnКод_предмета.AutoIncrementSeed = -1;
  831. this.columnКод_предмета.AutoIncrementStep = -1;
  832. this.columnКод_предмета.AllowDBNull = false;
  833. this.columnКод_предмета.ReadOnly = true;
  834. this.columnКод_предмета.Unique = true;
  835. this.columnНаименование_предмета.MaxLength = 50;
  836. this.columnОписание_предмета.MaxLength = 2147483647;
  837. }
  838. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  839. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  840. public ПредметыRow NewПредметыRow() {
  841. return ((ПредметыRow)(this.NewRow()));
  842. }
  843. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  844. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  845. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  846. return new ПредметыRow(builder);
  847. }
  848. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  849. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  850. protected override global::System.Type GetRowType() {
  851. return typeof(ПредметыRow);
  852. }
  853. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  854. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  855. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  856. base.OnRowChanged(e);
  857. if ((this.ПредметыRowChanged != null)) {
  858. this.ПредметыRowChanged(this, new ПредметыRowChangeEvent(((ПредметыRow)(e.Row)), e.Action));
  859. }
  860. }
  861. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  862. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  863. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  864. base.OnRowChanging(e);
  865. if ((this.ПредметыRowChanging != null)) {
  866. this.ПредметыRowChanging(this, new ПредметыRowChangeEvent(((ПредметыRow)(e.Row)), e.Action));
  867. }
  868. }
  869. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  870. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  871. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  872. base.OnRowDeleted(e);
  873. if ((this.ПредметыRowDeleted != null)) {
  874. this.ПредметыRowDeleted(this, new ПредметыRowChangeEvent(((ПредметыRow)(e.Row)), e.Action));
  875. }
  876. }
  877. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  878. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  879. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  880. base.OnRowDeleting(e);
  881. if ((this.ПредметыRowDeleting != null)) {
  882. this.ПредметыRowDeleting(this, new ПредметыRowChangeEvent(((ПредметыRow)(e.Row)), e.Action));
  883. }
  884. }
  885. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  886. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  887. public void RemoveПредметыRow(ПредметыRow row) {
  888. this.Rows.Remove(row);
  889. }
  890. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  891. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  892. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  893. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  894. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  895. RP31DyakonovStudentsDataSet ds = new RP31DyakonovStudentsDataSet();
  896. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  897. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  898. any1.MinOccurs = new decimal(0);
  899. any1.MaxOccurs = decimal.MaxValue;
  900. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  901. sequence.Items.Add(any1);
  902. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  903. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  904. any2.MinOccurs = new decimal(1);
  905. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  906. sequence.Items.Add(any2);
  907. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  908. attribute1.Name = "namespace";
  909. attribute1.FixedValue = ds.Namespace;
  910. type.Attributes.Add(attribute1);
  911. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  912. attribute2.Name = "tableTypeName";
  913. attribute2.FixedValue = "ПредметыDataTable";
  914. type.Attributes.Add(attribute2);
  915. type.Particle = sequence;
  916. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  917. if (xs.Contains(dsSchema.TargetNamespace)) {
  918. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  919. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  920. try {
  921. global::System.Xml.Schema.XmlSchema schema = null;
  922. dsSchema.Write(s1);
  923. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  924. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  925. s2.SetLength(0);
  926. schema.Write(s2);
  927. if ((s1.Length == s2.Length)) {
  928. s1.Position = 0;
  929. s2.Position = 0;
  930. for (; ((s1.Position != s1.Length)
  931. && (s1.ReadByte() == s2.ReadByte())); ) {
  932. ;
  933. }
  934. if ((s1.Position == s1.Length)) {
  935. return type;
  936. }
  937. }
  938. }
  939. }
  940. finally {
  941. if ((s1 != null)) {
  942. s1.Close();
  943. }
  944. if ((s2 != null)) {
  945. s2.Close();
  946. }
  947. }
  948. }
  949. xs.Add(dsSchema);
  950. return type;
  951. }
  952. }
  953. /// <summary>
  954. ///Represents the strongly named DataTable class.
  955. ///</summary>
  956. [global::System.Serializable()]
  957. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  958. public partial class СпециальностиDataTable : global::System.Data.TypedTableBase<СпециальностиRow> {
  959. private global::System.Data.DataColumn columnКод_специальности;
  960. private global::System.Data.DataColumn columnНаименование_специальности;
  961. private global::System.Data.DataColumn columnОписание_специальности;
  962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  963. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  964. public СпециальностиDataTable() {
  965. this.TableName = "Специальности";
  966. this.BeginInit();
  967. this.InitClass();
  968. this.EndInit();
  969. }
  970. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  971. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  972. internal СпециальностиDataTable(global::System.Data.DataTable table) {
  973. this.TableName = table.TableName;
  974. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  975. this.CaseSensitive = table.CaseSensitive;
  976. }
  977. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  978. this.Locale = table.Locale;
  979. }
  980. if ((table.Namespace != table.DataSet.Namespace)) {
  981. this.Namespace = table.Namespace;
  982. }
  983. this.Prefix = table.Prefix;
  984. this.MinimumCapacity = table.MinimumCapacity;
  985. }
  986. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  987. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  988. protected СпециальностиDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  989. base(info, context) {
  990. this.InitVars();
  991. }
  992. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  993. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  994. public global::System.Data.DataColumn Код_специальностиColumn {
  995. get {
  996. return this.columnКод_специальности;
  997. }
  998. }
  999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1001. public global::System.Data.DataColumn Наименование_специальностиColumn {
  1002. get {
  1003. return this.columnНаименование_специальности;
  1004. }
  1005. }
  1006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1008. public global::System.Data.DataColumn Описание_специальностиColumn {
  1009. get {
  1010. return this.columnОписание_специальности;
  1011. }
  1012. }
  1013. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1014. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1015. [global::System.ComponentModel.Browsable(false)]
  1016. public int Count {
  1017. get {
  1018. return this.Rows.Count;
  1019. }
  1020. }
  1021. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1022. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1023. public СпециальностиRow this[int index] {
  1024. get {
  1025. return ((СпециальностиRow)(this.Rows[index]));
  1026. }
  1027. }
  1028. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1029. public event СпециальностиRowChangeEventHandler СпециальностиRowChanging;
  1030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1031. public event СпециальностиRowChangeEventHandler СпециальностиRowChanged;
  1032. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1033. public event СпециальностиRowChangeEventHandler СпециальностиRowDeleting;
  1034. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1035. public event СпециальностиRowChangeEventHandler СпециальностиRowDeleted;
  1036. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1037. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1038. public void AddСпециальностиRow(СпециальностиRow row) {
  1039. this.Rows.Add(row);
  1040. }
  1041. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1042. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1043. public СпециальностиRow AddСпециальностиRow(string Наименование_специальности, string Описание_специальности) {
  1044. СпециальностиRow rowСпециальностиRow = ((СпециальностиRow)(this.NewRow()));
  1045. object[] columnValuesArray = new object[] {
  1046. null,
  1047. Наименование_специальности,
  1048. Описание_специальности};
  1049. rowСпециальностиRow.ItemArray = columnValuesArray;
  1050. this.Rows.Add(rowСпециальностиRow);
  1051. return rowСпециальностиRow;
  1052. }
  1053. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1054. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1055. public СпециальностиRow FindByКод_специальности(int Код_специальности) {
  1056. return ((СпециальностиRow)(this.Rows.Find(new object[] {
  1057. Код_специальности})));
  1058. }
  1059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1060. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1061. public override global::System.Data.DataTable Clone() {
  1062. СпециальностиDataTable cln = ((СпециальностиDataTable)(base.Clone()));
  1063. cln.InitVars();
  1064. return cln;
  1065. }
  1066. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1067. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1068. protected override global::System.Data.DataTable CreateInstance() {
  1069. return new СпециальностиDataTable();
  1070. }
  1071. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1072. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1073. internal void InitVars() {
  1074. this.columnКод_специальности = base.Columns["Код специальности"];
  1075. this.columnНаименование_специальности = base.Columns["Наименование специальности"];
  1076. this.columnОписание_специальности = base.Columns["Описание специальности"];
  1077. }
  1078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1079. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1080. private void InitClass() {
  1081. this.columnКод_специальности = new global::System.Data.DataColumn("Код специальности", typeof(int), null, global::System.Data.MappingType.Element);
  1082. base.Columns.Add(this.columnКод_специальности);
  1083. this.columnНаименование_специальности = new global::System.Data.DataColumn("Наименование специальности", typeof(string), null, global::System.Data.MappingType.Element);
  1084. base.Columns.Add(this.columnНаименование_специальности);
  1085. this.columnОписание_специальности = new global::System.Data.DataColumn("Описание специальности", typeof(string), null, global::System.Data.MappingType.Element);
  1086. base.Columns.Add(this.columnОписание_специальности);
  1087. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1088. this.columnКод_специальности}, true));
  1089. this.columnКод_специальности.AutoIncrement = true;
  1090. this.columnКод_специальности.AutoIncrementSeed = -1;
  1091. this.columnКод_специальности.AutoIncrementStep = -1;
  1092. this.columnКод_специальности.AllowDBNull = false;
  1093. this.columnКод_специальности.ReadOnly = true;
  1094. this.columnКод_специальности.Unique = true;
  1095. this.columnНаименование_специальности.MaxLength = 50;
  1096. this.columnОписание_специальности.MaxLength = 50;
  1097. }
  1098. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1099. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1100. public СпециальностиRow NewСпециальностиRow() {
  1101. return ((СпециальностиRow)(this.NewRow()));
  1102. }
  1103. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1104. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1105. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1106. return new СпециальностиRow(builder);
  1107. }
  1108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1110. protected override global::System.Type GetRowType() {
  1111. return typeof(СпециальностиRow);
  1112. }
  1113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1114. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1115. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1116. base.OnRowChanged(e);
  1117. if ((this.СпециальностиRowChanged != null)) {
  1118. this.СпециальностиRowChanged(this, new СпециальностиRowChangeEvent(((СпециальностиRow)(e.Row)), e.Action));
  1119. }
  1120. }
  1121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1123. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1124. base.OnRowChanging(e);
  1125. if ((this.СпециальностиRowChanging != null)) {
  1126. this.СпециальностиRowChanging(this, new СпециальностиRowChangeEvent(((СпециальностиRow)(e.Row)), e.Action));
  1127. }
  1128. }
  1129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1131. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1132. base.OnRowDeleted(e);
  1133. if ((this.СпециальностиRowDeleted != null)) {
  1134. this.СпециальностиRowDeleted(this, new СпециальностиRowChangeEvent(((СпециальностиRow)(e.Row)), e.Action));
  1135. }
  1136. }
  1137. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1138. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1139. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1140. base.OnRowDeleting(e);
  1141. if ((this.СпециальностиRowDeleting != null)) {
  1142. this.СпециальностиRowDeleting(this, new СпециальностиRowChangeEvent(((СпециальностиRow)(e.Row)), e.Action));
  1143. }
  1144. }
  1145. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1146. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1147. public void RemoveСпециальностиRow(СпециальностиRow row) {
  1148. this.Rows.Remove(row);
  1149. }
  1150. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1151. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1152. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1153. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1154. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1155. RP31DyakonovStudentsDataSet ds = new RP31DyakonovStudentsDataSet();
  1156. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1157. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1158. any1.MinOccurs = new decimal(0);
  1159. any1.MaxOccurs = decimal.MaxValue;
  1160. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1161. sequence.Items.Add(any1);
  1162. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1163. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1164. any2.MinOccurs = new decimal(1);
  1165. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1166. sequence.Items.Add(any2);
  1167. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1168. attribute1.Name = "namespace";
  1169. attribute1.FixedValue = ds.Namespace;
  1170. type.Attributes.Add(attribute1);
  1171. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1172. attribute2.Name = "tableTypeName";
  1173. attribute2.FixedValue = "СпециальностиDataTable";
  1174. type.Attributes.Add(attribute2);
  1175. type.Particle = sequence;
  1176. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1177. if (xs.Contains(dsSchema.TargetNamespace)) {
  1178. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1179. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1180. try {
  1181. global::System.Xml.Schema.XmlSchema schema = null;
  1182. dsSchema.Write(s1);
  1183. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1184. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1185. s2.SetLength(0);
  1186. schema.Write(s2);
  1187. if ((s1.Length == s2.Length)) {
  1188. s1.Position = 0;
  1189. s2.Position = 0;
  1190. for (; ((s1.Position != s1.Length)
  1191. && (s1.ReadByte() == s2.ReadByte())); ) {
  1192. ;
  1193. }
  1194. if ((s1.Position == s1.Length)) {
  1195. return type;
  1196. }
  1197. }
  1198. }
  1199. }
  1200. finally {
  1201. if ((s1 != null)) {
  1202. s1.Close();
  1203. }
  1204. if ((s2 != null)) {
  1205. s2.Close();
  1206. }
  1207. }
  1208. }
  1209. xs.Add(dsSchema);
  1210. return type;
  1211. }
  1212. }
  1213. /// <summary>
  1214. ///Represents the strongly named DataTable class.
  1215. ///</summary>
  1216. [global::System.Serializable()]
  1217. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1218. public partial class СтудентыDataTable : global::System.Data.TypedTableBase<СтудентыRow> {
  1219. private global::System.Data.DataColumn columnКод_студента;
  1220. private global::System.Data.DataColumn columnФИО;
  1221. private global::System.Data.DataColumn columnПол;
  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. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1234. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1235. public СтудентыDataTable() {
  1236. this.TableName = "Студенты";
  1237. this.BeginInit();
  1238. this.InitClass();
  1239. this.EndInit();
  1240. }
  1241. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1242. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1243. internal СтудентыDataTable(global::System.Data.DataTable table) {
  1244. this.TableName = table.TableName;
  1245. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1246. this.CaseSensitive = table.CaseSensitive;
  1247. }
  1248. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1249. this.Locale = table.Locale;
  1250. }
  1251. if ((table.Namespace != table.DataSet.Namespace)) {
  1252. this.Namespace = table.Namespace;
  1253. }
  1254. this.Prefix = table.Prefix;
  1255. this.MinimumCapacity = table.MinimumCapacity;
  1256. }
  1257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1258. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1259. protected СтудентыDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1260. base(info, context) {
  1261. this.InitVars();
  1262. }
  1263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1264. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1265. public global::System.Data.DataColumn Код_студентаColumn {
  1266. get {
  1267. return this.columnКод_студента;
  1268. }
  1269. }
  1270. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1271. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1272. public global::System.Data.DataColumn ФИОColumn {
  1273. get {
  1274. return this.columnФИО;
  1275. }
  1276. }
  1277. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1278. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1279. public global::System.Data.DataColumn ПолColumn {
  1280. get {
  1281. return this.columnПол;
  1282. }
  1283. }
  1284. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1285. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1286. public global::System.Data.DataColumn Дата_рожденияColumn {
  1287. get {
  1288. return this.columnДата_рождения;
  1289. }
  1290. }
  1291. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1292. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1293. public global::System.Data.DataColumn РодителиColumn {
  1294. get {
  1295. return this.columnРодители;
  1296. }
  1297. }
  1298. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1299. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1300. public global::System.Data.DataColumn АдресColumn {
  1301. get {
  1302. return this.columnАдрес;
  1303. }
  1304. }
  1305. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1306. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1307. public global::System.Data.DataColumn ТелефонColumn {
  1308. get {
  1309. return this.columnТелефон;
  1310. }
  1311. }
  1312. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1313. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1314. public global::System.Data.DataColumn Паспортные_данныеColumn {
  1315. get {
  1316. return this.columnПаспортные_данные;
  1317. }
  1318. }
  1319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1320. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1321. public global::System.Data.DataColumn Номер_зачеткиColumn {
  1322. get {
  1323. return this.columnНомер_зачетки;
  1324. }
  1325. }
  1326. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1327. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1328. public global::System.Data.DataColumn Дата_поступленияColumn {
  1329. get {
  1330. return this.columnДата_поступления;
  1331. }
  1332. }
  1333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1334. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1335. public global::System.Data.DataColumn ГруппаColumn {
  1336. get {
  1337. return this.columnГруппа;
  1338. }
  1339. }
  1340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1341. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1342. public global::System.Data.DataColumn КурсColumn {
  1343. get {
  1344. return this.columnКурс;
  1345. }
  1346. }
  1347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1349. public global::System.Data.DataColumn Код_специальностиColumn {
  1350. get {
  1351. return this.columnКод_специальности;
  1352. }
  1353. }
  1354. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1355. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1356. public global::System.Data.DataColumn Очная_форма_обученияColumn {
  1357. get {
  1358. return this.columnОчная_форма_обучения;
  1359. }
  1360. }
  1361. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1362. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1363. [global::System.ComponentModel.Browsable(false)]
  1364. public int Count {
  1365. get {
  1366. return this.Rows.Count;
  1367. }
  1368. }
  1369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1371. public СтудентыRow this[int index] {
  1372. get {
  1373. return ((СтудентыRow)(this.Rows[index]));
  1374. }
  1375. }
  1376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1377. public event СтудентыRowChangeEventHandler СтудентыRowChanging;
  1378. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1379. public event СтудентыRowChangeEventHandler СтудентыRowChanged;
  1380. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1381. public event СтудентыRowChangeEventHandler СтудентыRowDeleting;
  1382. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1383. public event СтудентыRowChangeEventHandler СтудентыRowDeleted;
  1384. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1385. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1386. public void AddСтудентыRow(СтудентыRow row) {
  1387. this.Rows.Add(row);
  1388. }
  1389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1390. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1391. public СтудентыRow AddСтудентыRow(string ФИО, string Пол, System.DateTime Дата_рождения, string Родители, string Адрес, string Телефон, string Паспортные_данные, int Номер_зачетки, System.DateTime Дата_поступления, string Группа, int Курс, int Код_специальности, bool Очная_форма_обучения) {
  1392. СтудентыRow rowСтудентыRow = ((СтудентыRow)(this.NewRow()));
  1393. object[] columnValuesArray = new object[] {
  1394. null,
  1395. ФИО,
  1396. Пол,
  1397. Дата_рождения,
  1398. Родители,
  1399. Адрес,
  1400. Телефон,
  1401. Паспортные_данные,
  1402. Номер_зачетки,
  1403. Дата_поступления,
  1404. Группа,
  1405. Курс,
  1406. Код_специальности,
  1407. Очная_форма_обучения};
  1408. rowСтудентыRow.ItemArray = columnValuesArray;
  1409. this.Rows.Add(rowСтудентыRow);
  1410. return rowСтудентыRow;
  1411. }
  1412. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1413. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1414. public СтудентыRow FindByКод_студента(int Код_студента) {
  1415. return ((СтудентыRow)(this.Rows.Find(new object[] {
  1416. Код_студента})));
  1417. }
  1418. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1419. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1420. public override global::System.Data.DataTable Clone() {
  1421. СтудентыDataTable cln = ((СтудентыDataTable)(base.Clone()));
  1422. cln.InitVars();
  1423. return cln;
  1424. }
  1425. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1426. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1427. protected override global::System.Data.DataTable CreateInstance() {
  1428. return new СтудентыDataTable();
  1429. }
  1430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1431. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1432. internal void InitVars() {
  1433. this.columnКод_студента = base.Columns["Код студента"];
  1434. this.columnФИО = base.Columns["ФИО"];
  1435. this.columnПол = base.Columns["Пол"];
  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. }
  1448. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1449. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1450. private void InitClass() {
  1451. this.columnКод_студента = new global::System.Data.DataColumn("Код студента", typeof(int), null, global::System.Data.MappingType.Element);
  1452. base.Columns.Add(this.columnКод_студента);
  1453. this.columnФИО = new global::System.Data.DataColumn("ФИО", typeof(string), null, global::System.Data.MappingType.Element);
  1454. base.Columns.Add(this.columnФИО);
  1455. this.columnПол = new global::System.Data.DataColumn("Пол", typeof(string), null, global::System.Data.MappingType.Element);
  1456. base.Columns.Add(this.columnПол);
  1457. this.columnДата_рождения = new global::System.Data.DataColumn("Дата рождения", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1458. base.Columns.Add(this.columnДата_рождения);
  1459. this.columnРодители = new global::System.Data.DataColumn("Родители", typeof(string), null, global::System.Data.MappingType.Element);
  1460. base.Columns.Add(this.columnРодители);
  1461. this.columnАдрес = new global::System.Data.DataColumn("Адрес", typeof(string), null, global::System.Data.MappingType.Element);
  1462. base.Columns.Add(this.columnАдрес);
  1463. this.columnТелефон = new global::System.Data.DataColumn("Телефон", typeof(string), null, global::System.Data.MappingType.Element);
  1464. base.Columns.Add(this.columnТелефон);
  1465. this.columnПаспортные_данные = new global::System.Data.DataColumn("Паспортные данные", typeof(string), null, global::System.Data.MappingType.Element);
  1466. base.Columns.Add(this.columnПаспортные_данные);
  1467. this.columnНомер_зачетки = new global::System.Data.DataColumn("Номер зачетки", typeof(int), null, global::System.Data.MappingType.Element);
  1468. base.Columns.Add(this.columnНомер_зачетки);
  1469. this.columnДата_поступления = new global::System.Data.DataColumn("Дата поступления", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1470. base.Columns.Add(this.columnДата_поступления);
  1471. this.columnГруппа = new global::System.Data.DataColumn("Группа", typeof(string), null, global::System.Data.MappingType.Element);
  1472. base.Columns.Add(this.columnГруппа);
  1473. this.columnКурс = new global::System.Data.DataColumn("Курс", typeof(int), null, global::System.Data.MappingType.Element);
  1474. base.Columns.Add(this.columnКурс);
  1475. this.columnКод_специальности = new global::System.Data.DataColumn("Код специальности", typeof(int), null, global::System.Data.MappingType.Element);
  1476. base.Columns.Add(this.columnКод_специальности);
  1477. this.columnОчная_форма_обучения = new global::System.Data.DataColumn("Очная форма обучения", typeof(bool), null, global::System.Data.MappingType.Element);
  1478. base.Columns.Add(this.columnОчная_форма_обучения);
  1479. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1480. this.columnКод_студента}, true));
  1481. this.columnКод_студента.AutoIncrement = true;
  1482. this.columnКод_студента.AutoIncrementSeed = -1;
  1483. this.columnКод_студента.AutoIncrementStep = -1;
  1484. this.columnКод_студента.AllowDBNull = false;
  1485. this.columnКод_студента.ReadOnly = true;
  1486. this.columnКод_студента.Unique = true;
  1487. this.columnФИО.MaxLength = 50;
  1488. this.columnПол.MaxLength = 50;
  1489. this.columnРодители.MaxLength = 50;
  1490. this.columnАдрес.MaxLength = 2147483647;
  1491. this.columnТелефон.MaxLength = 50;
  1492. this.columnПаспортные_данные.MaxLength = 2147483647;
  1493. this.columnГруппа.MaxLength = 50;
  1494. }
  1495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1497. public СтудентыRow NewСтудентыRow() {
  1498. return ((СтудентыRow)(this.NewRow()));
  1499. }
  1500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1502. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1503. return new СтудентыRow(builder);
  1504. }
  1505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1507. protected override global::System.Type GetRowType() {
  1508. return typeof(СтудентыRow);
  1509. }
  1510. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1511. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1512. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1513. base.OnRowChanged(e);
  1514. if ((this.СтудентыRowChanged != null)) {
  1515. this.СтудентыRowChanged(this, new СтудентыRowChangeEvent(((СтудентыRow)(e.Row)), e.Action));
  1516. }
  1517. }
  1518. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1519. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1520. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1521. base.OnRowChanging(e);
  1522. if ((this.СтудентыRowChanging != null)) {
  1523. this.СтудентыRowChanging(this, new СтудентыRowChangeEvent(((СтудентыRow)(e.Row)), e.Action));
  1524. }
  1525. }
  1526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1528. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1529. base.OnRowDeleted(e);
  1530. if ((this.СтудентыRowDeleted != null)) {
  1531. this.СтудентыRowDeleted(this, new СтудентыRowChangeEvent(((СтудентыRow)(e.Row)), e.Action));
  1532. }
  1533. }
  1534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1535. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1536. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1537. base.OnRowDeleting(e);
  1538. if ((this.СтудентыRowDeleting != null)) {
  1539. this.СтудентыRowDeleting(this, new СтудентыRowChangeEvent(((СтудентыRow)(e.Row)), e.Action));
  1540. }
  1541. }
  1542. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1543. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1544. public void RemoveСтудентыRow(СтудентыRow row) {
  1545. this.Rows.Remove(row);
  1546. }
  1547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1549. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1550. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1551. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1552. RP31DyakonovStudentsDataSet ds = new RP31DyakonovStudentsDataSet();
  1553. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1554. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1555. any1.MinOccurs = new decimal(0);
  1556. any1.MaxOccurs = decimal.MaxValue;
  1557. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1558. sequence.Items.Add(any1);
  1559. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1560. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1561. any2.MinOccurs = new decimal(1);
  1562. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1563. sequence.Items.Add(any2);
  1564. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1565. attribute1.Name = "namespace";
  1566. attribute1.FixedValue = ds.Namespace;
  1567. type.Attributes.Add(attribute1);
  1568. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1569. attribute2.Name = "tableTypeName";
  1570. attribute2.FixedValue = "СтудентыDataTable";
  1571. type.Attributes.Add(attribute2);
  1572. type.Particle = sequence;
  1573. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1574. if (xs.Contains(dsSchema.TargetNamespace)) {
  1575. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1576. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1577. try {
  1578. global::System.Xml.Schema.XmlSchema schema = null;
  1579. dsSchema.Write(s1);
  1580. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1581. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1582. s2.SetLength(0);
  1583. schema.Write(s2);
  1584. if ((s1.Length == s2.Length)) {
  1585. s1.Position = 0;
  1586. s2.Position = 0;
  1587. for (; ((s1.Position != s1.Length)
  1588. && (s1.ReadByte() == s2.ReadByte())); ) {
  1589. ;
  1590. }
  1591. if ((s1.Position == s1.Length)) {
  1592. return type;
  1593. }
  1594. }
  1595. }
  1596. }
  1597. finally {
  1598. if ((s1 != null)) {
  1599. s1.Close();
  1600. }
  1601. if ((s2 != null)) {
  1602. s2.Close();
  1603. }
  1604. }
  1605. }
  1606. xs.Add(dsSchema);
  1607. return type;
  1608. }
  1609. }
  1610. /// <summary>
  1611. ///Represents strongly named DataRow class.
  1612. ///</summary>
  1613. public partial class ОценкиRow : global::System.Data.DataRow {
  1614. private ОценкиDataTable tableОценки;
  1615. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1616. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1617. internal ОценкиRow(global::System.Data.DataRowBuilder rb) :
  1618. base(rb) {
  1619. this.tableОценки = ((ОценкиDataTable)(this.Table));
  1620. }
  1621. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1622. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1623. public int Код_студента {
  1624. get {
  1625. return ((int)(this[this.tableОценки.Код_студентаColumn]));
  1626. }
  1627. set {
  1628. this[this.tableОценки.Код_студентаColumn] = value;
  1629. }
  1630. }
  1631. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1632. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1633. public System.DateTime Дата_экзамена_1 {
  1634. get {
  1635. return ((global::System.DateTime)(this[this.tableОценки.Дата_экзамена_1Column]));
  1636. }
  1637. set {
  1638. this[this.tableОценки.Дата_экзамена_1Column] = value;
  1639. }
  1640. }
  1641. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1642. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1643. public int Код_предмета_1 {
  1644. get {
  1645. return ((int)(this[this.tableОценки.Код_предмета_1Column]));
  1646. }
  1647. set {
  1648. this[this.tableОценки.Код_предмета_1Column] = value;
  1649. }
  1650. }
  1651. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1652. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1653. public byte Оценка_1 {
  1654. get {
  1655. return ((byte)(this[this.tableОценки.Оценка_1Column]));
  1656. }
  1657. set {
  1658. this[this.tableОценки.Оценка_1Column] = value;
  1659. }
  1660. }
  1661. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1662. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1663. public System.DateTime Дата_экзамена_2 {
  1664. get {
  1665. return ((global::System.DateTime)(this[this.tableОценки.Дата_экзамена_2Column]));
  1666. }
  1667. set {
  1668. this[this.tableОценки.Дата_экзамена_2Column] = value;
  1669. }
  1670. }
  1671. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1672. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1673. public int Код_предмета_2 {
  1674. get {
  1675. return ((int)(this[this.tableОценки.Код_предмета_2Column]));
  1676. }
  1677. set {
  1678. this[this.tableОценки.Код_предмета_2Column] = value;
  1679. }
  1680. }
  1681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1682. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1683. public byte Оценка_2 {
  1684. get {
  1685. return ((byte)(this[this.tableОценки.Оценка_2Column]));
  1686. }
  1687. set {
  1688. this[this.tableОценки.Оценка_2Column] = value;
  1689. }
  1690. }
  1691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1692. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1693. public System.DateTime Дата_экзамена_3 {
  1694. get {
  1695. return ((global::System.DateTime)(this[this.tableОценки.Дата_экзамена_3Column]));
  1696. }
  1697. set {
  1698. this[this.tableОценки.Дата_экзамена_3Column] = value;
  1699. }
  1700. }
  1701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1702. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1703. public int Код_предмета_3 {
  1704. get {
  1705. return ((int)(this[this.tableОценки.Код_предмета_3Column]));
  1706. }
  1707. set {
  1708. this[this.tableОценки.Код_предмета_3Column] = value;
  1709. }
  1710. }
  1711. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1712. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1713. public byte Оценка_3 {
  1714. get {
  1715. return ((byte)(this[this.tableОценки.Оценка_3Column]));
  1716. }
  1717. set {
  1718. this[this.tableОценки.Оценка_3Column] = value;
  1719. }
  1720. }
  1721. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1722. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1723. public float Средний_балл {
  1724. get {
  1725. return ((float)(this[this.tableОценки.Средний_баллColumn]));
  1726. }
  1727. set {
  1728. this[this.tableОценки.Средний_баллColumn] = value;
  1729. }
  1730. }
  1731. }
  1732. /// <summary>
  1733. ///Represents strongly named DataRow class.
  1734. ///</summary>
  1735. public partial class ПредметыRow : global::System.Data.DataRow {
  1736. private ПредметыDataTable tableПредметы;
  1737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1738. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1739. internal ПредметыRow(global::System.Data.DataRowBuilder rb) :
  1740. base(rb) {
  1741. this.tableПредметы = ((ПредметыDataTable)(this.Table));
  1742. }
  1743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1745. public int Код_предмета {
  1746. get {
  1747. return ((int)(this[this.tableПредметы.Код_предметаColumn]));
  1748. }
  1749. set {
  1750. this[this.tableПредметы.Код_предметаColumn] = value;
  1751. }
  1752. }
  1753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1755. public string Наименование_предмета {
  1756. get {
  1757. try {
  1758. return ((string)(this[this.tableПредметы.Наименование_предметаColumn]));
  1759. }
  1760. catch (global::System.InvalidCastException e) {
  1761. throw new global::System.Data.StrongTypingException("Значение для столбца \'Наименование предмета\' в таблице \'Предметы\' равно DBNull.", e);
  1762. }
  1763. }
  1764. set {
  1765. this[this.tableПредметы.Наименование_предметаColumn] = value;
  1766. }
  1767. }
  1768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1770. public string Описание_предмета {
  1771. get {
  1772. try {
  1773. return ((string)(this[this.tableПредметы.Описание_предметаColumn]));
  1774. }
  1775. catch (global::System.InvalidCastException e) {
  1776. throw new global::System.Data.StrongTypingException("Значение для столбца \'Описание предмета\' в таблице \'Предметы\' равно DBNull.", e);
  1777. }
  1778. }
  1779. set {
  1780. this[this.tableПредметы.Описание_предметаColumn] = value;
  1781. }
  1782. }
  1783. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1784. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1785. public bool IsНаименование_предметаNull() {
  1786. return this.IsNull(this.tableПредметы.Наименование_предметаColumn);
  1787. }
  1788. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1789. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1790. public void SetНаименование_предметаNull() {
  1791. this[this.tableПредметы.Наименование_предметаColumn] = global::System.Convert.DBNull;
  1792. }
  1793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1794. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1795. public bool IsОписание_предметаNull() {
  1796. return this.IsNull(this.tableПредметы.Описание_предметаColumn);
  1797. }
  1798. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1799. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1800. public void SetОписание_предметаNull() {
  1801. this[this.tableПредметы.Описание_предметаColumn] = global::System.Convert.DBNull;
  1802. }
  1803. }
  1804. /// <summary>
  1805. ///Represents strongly named DataRow class.
  1806. ///</summary>
  1807. public partial class СпециальностиRow : global::System.Data.DataRow {
  1808. private СпециальностиDataTable tableСпециальности;
  1809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1810. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1811. internal СпециальностиRow(global::System.Data.DataRowBuilder rb) :
  1812. base(rb) {
  1813. this.tableСпециальности = ((СпециальностиDataTable)(this.Table));
  1814. }
  1815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1816. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1817. public int Код_специальности {
  1818. get {
  1819. return ((int)(this[this.tableСпециальности.Код_специальностиColumn]));
  1820. }
  1821. set {
  1822. this[this.tableСпециальности.Код_специальностиColumn] = value;
  1823. }
  1824. }
  1825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1826. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1827. public string Наименование_специальности {
  1828. get {
  1829. try {
  1830. return ((string)(this[this.tableСпециальности.Наименование_специальностиColumn]));
  1831. }
  1832. catch (global::System.InvalidCastException e) {
  1833. throw new global::System.Data.StrongTypingException("Значение для столбца \'Наименование специальности\' в таблице \'Специальности\' равно" +
  1834. " DBNull.", e);
  1835. }
  1836. }
  1837. set {
  1838. this[this.tableСпециальности.Наименование_специальностиColumn] = value;
  1839. }
  1840. }
  1841. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1842. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1843. public string Описание_специальности {
  1844. get {
  1845. try {
  1846. return ((string)(this[this.tableСпециальности.Описание_специальностиColumn]));
  1847. }
  1848. catch (global::System.InvalidCastException e) {
  1849. throw new global::System.Data.StrongTypingException("Значение для столбца \'Описание специальности\' в таблице \'Специальности\' равно DBN" +
  1850. "ull.", e);
  1851. }
  1852. }
  1853. set {
  1854. this[this.tableСпециальности.Описание_специальностиColumn] = value;
  1855. }
  1856. }
  1857. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1858. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1859. public bool IsНаименование_специальностиNull() {
  1860. return this.IsNull(this.tableСпециальности.Наименование_специальностиColumn);
  1861. }
  1862. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1863. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1864. public void SetНаименование_специальностиNull() {
  1865. this[this.tableСпециальности.Наименование_специальностиColumn] = global::System.Convert.DBNull;
  1866. }
  1867. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1868. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1869. public bool IsОписание_специальностиNull() {
  1870. return this.IsNull(this.tableСпециальности.Описание_специальностиColumn);
  1871. }
  1872. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1873. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1874. public void SetОписание_специальностиNull() {
  1875. this[this.tableСпециальности.Описание_специальностиColumn] = global::System.Convert.DBNull;
  1876. }
  1877. }
  1878. /// <summary>
  1879. ///Represents strongly named DataRow class.
  1880. ///</summary>
  1881. public partial class СтудентыRow : global::System.Data.DataRow {
  1882. private СтудентыDataTable tableСтуденты;
  1883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1884. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1885. internal СтудентыRow(global::System.Data.DataRowBuilder rb) :
  1886. base(rb) {
  1887. this.tableСтуденты = ((СтудентыDataTable)(this.Table));
  1888. }
  1889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1890. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1891. public int Код_студента {
  1892. get {
  1893. return ((int)(this[this.tableСтуденты.Код_студентаColumn]));
  1894. }
  1895. set {
  1896. this[this.tableСтуденты.Код_студентаColumn] = value;
  1897. }
  1898. }
  1899. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1900. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1901. public string ФИО {
  1902. get {
  1903. try {
  1904. return ((string)(this[this.tableСтуденты.ФИОColumn]));
  1905. }
  1906. catch (global::System.InvalidCastException e) {
  1907. throw new global::System.Data.StrongTypingException("Значение для столбца \'ФИО\' в таблице \'Студенты\' равно DBNull.", e);
  1908. }
  1909. }
  1910. set {
  1911. this[this.tableСтуденты.ФИОColumn] = value;
  1912. }
  1913. }
  1914. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1915. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1916. public string Пол {
  1917. get {
  1918. try {
  1919. return ((string)(this[this.tableСтуденты.ПолColumn]));
  1920. }
  1921. catch (global::System.InvalidCastException e) {
  1922. throw new global::System.Data.StrongTypingException("Значение для столбца \'Пол\' в таблице \'Студенты\' равно DBNull.", e);
  1923. }
  1924. }
  1925. set {
  1926. this[this.tableСтуденты.ПолColumn] = value;
  1927. }
  1928. }
  1929. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1930. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1931. public System.DateTime Дата_рождения {
  1932. get {
  1933. try {
  1934. return ((global::System.DateTime)(this[this.tableСтуденты.Дата_рожденияColumn]));
  1935. }
  1936. catch (global::System.InvalidCastException e) {
  1937. throw new global::System.Data.StrongTypingException("Значение для столбца \'Дата рождения\' в таблице \'Студенты\' равно DBNull.", e);
  1938. }
  1939. }
  1940. set {
  1941. this[this.tableСтуденты.Дата_рожденияColumn] = value;
  1942. }
  1943. }
  1944. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1945. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1946. public string Родители {
  1947. get {
  1948. try {
  1949. return ((string)(this[this.tableСтуденты.РодителиColumn]));
  1950. }
  1951. catch (global::System.InvalidCastException e) {
  1952. throw new global::System.Data.StrongTypingException("Значение для столбца \'Родители\' в таблице \'Студенты\' равно DBNull.", e);
  1953. }
  1954. }
  1955. set {
  1956. this[this.tableСтуденты.РодителиColumn] = value;
  1957. }
  1958. }
  1959. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1960. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1961. public string Адрес {
  1962. get {
  1963. try {
  1964. return ((string)(this[this.tableСтуденты.АдресColumn]));
  1965. }
  1966. catch (global::System.InvalidCastException e) {
  1967. throw new global::System.Data.StrongTypingException("Значение для столбца \'Адрес\' в таблице \'Студенты\' равно DBNull.", e);
  1968. }
  1969. }
  1970. set {
  1971. this[this.tableСтуденты.АдресColumn] = value;
  1972. }
  1973. }
  1974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1975. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1976. public string Телефон {
  1977. get {
  1978. try {
  1979. return ((string)(this[this.tableСтуденты.ТелефонColumn]));
  1980. }
  1981. catch (global::System.InvalidCastException e) {
  1982. throw new global::System.Data.StrongTypingException("Значение для столбца \'Телефон\' в таблице \'Студенты\' равно DBNull.", e);
  1983. }
  1984. }
  1985. set {
  1986. this[this.tableСтуденты.ТелефонColumn] = value;
  1987. }
  1988. }
  1989. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1990. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1991. public string Паспортные_данные {
  1992. get {
  1993. try {
  1994. return ((string)(this[this.tableСтуденты.Паспортные_данныеColumn]));
  1995. }
  1996. catch (global::System.InvalidCastException e) {
  1997. throw new global::System.Data.StrongTypingException("Значение для столбца \'Паспортные данные\' в таблице \'Студенты\' равно DBNull.", e);
  1998. }
  1999. }
  2000. set {
  2001. this[this.tableСтуденты.Паспортные_данныеColumn] = value;
  2002. }
  2003. }
  2004. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2005. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2006. public int Номер_зачетки {
  2007. get {
  2008. try {
  2009. return ((int)(this[this.tableСтуденты.Номер_зачеткиColumn]));
  2010. }
  2011. catch (global::System.InvalidCastException e) {
  2012. throw new global::System.Data.StrongTypingException("Значение для столбца \'Номер зачетки\' в таблице \'Студенты\' равно DBNull.", e);
  2013. }
  2014. }
  2015. set {
  2016. this[this.tableСтуденты.Номер_зачеткиColumn] = value;
  2017. }
  2018. }
  2019. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2020. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2021. public System.DateTime Дата_поступления {
  2022. get {
  2023. try {
  2024. return ((global::System.DateTime)(this[this.tableСтуденты.Дата_поступленияColumn]));
  2025. }
  2026. catch (global::System.InvalidCastException e) {
  2027. throw new global::System.Data.StrongTypingException("Значение для столбца \'Дата поступления\' в таблице \'Студенты\' равно DBNull.", e);
  2028. }
  2029. }
  2030. set {
  2031. this[this.tableСтуденты.Дата_поступленияColumn] = value;
  2032. }
  2033. }
  2034. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2035. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2036. public string Группа {
  2037. get {
  2038. try {
  2039. return ((string)(this[this.tableСтуденты.ГруппаColumn]));
  2040. }
  2041. catch (global::System.InvalidCastException e) {
  2042. throw new global::System.Data.StrongTypingException("Значение для столбца \'Группа\' в таблице \'Студенты\' равно DBNull.", e);
  2043. }
  2044. }
  2045. set {
  2046. this[this.tableСтуденты.ГруппаColumn] = value;
  2047. }
  2048. }
  2049. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2050. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2051. public int Курс {
  2052. get {
  2053. try {
  2054. return ((int)(this[this.tableСтуденты.КурсColumn]));
  2055. }
  2056. catch (global::System.InvalidCastException e) {
  2057. throw new global::System.Data.StrongTypingException("Значение для столбца \'Курс\' в таблице \'Студенты\' равно DBNull.", e);
  2058. }
  2059. }
  2060. set {
  2061. this[this.tableСтуденты.КурсColumn] = value;
  2062. }
  2063. }
  2064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2065. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2066. public int Код_специальности {
  2067. get {
  2068. try {
  2069. return ((int)(this[this.tableСтуденты.Код_специальностиColumn]));
  2070. }
  2071. catch (global::System.InvalidCastException e) {
  2072. throw new global::System.Data.StrongTypingException("Значение для столбца \'Код специальности\' в таблице \'Студенты\' равно DBNull.", e);
  2073. }
  2074. }
  2075. set {
  2076. this[this.tableСтуденты.Код_специальностиColumn] = value;
  2077. }
  2078. }
  2079. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2080. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2081. public bool Очная_форма_обучения {
  2082. get {
  2083. try {
  2084. return ((bool)(this[this.tableСтуденты.Очная_форма_обученияColumn]));
  2085. }
  2086. catch (global::System.InvalidCastException e) {
  2087. throw new global::System.Data.StrongTypingException("Значение для столбца \'Очная форма обучения\' в таблице \'Студенты\' равно DBNull.", e);
  2088. }
  2089. }
  2090. set {
  2091. this[this.tableСтуденты.Очная_форма_обученияColumn] = value;
  2092. }
  2093. }
  2094. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2095. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2096. public bool IsФИОNull() {
  2097. return this.IsNull(this.tableСтуденты.ФИОColumn);
  2098. }
  2099. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2100. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2101. public void SetФИОNull() {
  2102. this[this.tableСтуденты.ФИОColumn] = global::System.Convert.DBNull;
  2103. }
  2104. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2105. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2106. public bool IsПолNull() {
  2107. return this.IsNull(this.tableСтуденты.ПолColumn);
  2108. }
  2109. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2110. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2111. public void SetПолNull() {
  2112. this[this.tableСтуденты.ПолColumn] = global::System.Convert.DBNull;
  2113. }
  2114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2115. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2116. public bool IsДата_рожденияNull() {
  2117. return this.IsNull(this.tableСтуденты.Дата_рожденияColumn);
  2118. }
  2119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2120. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2121. public void SetДата_рожденияNull() {
  2122. this[this.tableСтуденты.Дата_рожденияColumn] = global::System.Convert.DBNull;
  2123. }
  2124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2125. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2126. public bool IsРодителиNull() {
  2127. return this.IsNull(this.tableСтуденты.РодителиColumn);
  2128. }
  2129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2131. public void SetРодителиNull() {
  2132. this[this.tableСтуденты.РодителиColumn] = global::System.Convert.DBNull;
  2133. }
  2134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2135. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2136. public bool IsАдресNull() {
  2137. return this.IsNull(this.tableСтуденты.АдресColumn);
  2138. }
  2139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2141. public void SetАдресNull() {
  2142. this[this.tableСтуденты.АдресColumn] = global::System.Convert.DBNull;
  2143. }
  2144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2146. public bool IsТелефонNull() {
  2147. return this.IsNull(this.tableСтуденты.ТелефонColumn);
  2148. }
  2149. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2150. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2151. public void SetТелефонNull() {
  2152. this[this.tableСтуденты.ТелефонColumn] = global::System.Convert.DBNull;
  2153. }
  2154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2155. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2156. public bool IsПаспортные_данныеNull() {
  2157. return this.IsNull(this.tableСтуденты.Паспортные_данныеColumn);
  2158. }
  2159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2160. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2161. public void SetПаспортные_данныеNull() {
  2162. this[this.tableСтуденты.Паспортные_данныеColumn] = global::System.Convert.DBNull;
  2163. }
  2164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2165. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2166. public bool IsНомер_зачеткиNull() {
  2167. return this.IsNull(this.tableСтуденты.Номер_зачеткиColumn);
  2168. }
  2169. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2170. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2171. public void SetНомер_зачеткиNull() {
  2172. this[this.tableСтуденты.Номер_зачеткиColumn] = global::System.Convert.DBNull;
  2173. }
  2174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2175. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2176. public bool IsДата_поступленияNull() {
  2177. return this.IsNull(this.tableСтуденты.Дата_поступленияColumn);
  2178. }
  2179. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2180. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2181. public void SetДата_поступленияNull() {
  2182. this[this.tableСтуденты.Дата_поступленияColumn] = global::System.Convert.DBNull;
  2183. }
  2184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2186. public bool IsГруппаNull() {
  2187. return this.IsNull(this.tableСтуденты.ГруппаColumn);
  2188. }
  2189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2191. public void SetГруппаNull() {
  2192. this[this.tableСтуденты.ГруппаColumn] = global::System.Convert.DBNull;
  2193. }
  2194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2196. public bool IsКурсNull() {
  2197. return this.IsNull(this.tableСтуденты.КурсColumn);
  2198. }
  2199. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2200. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2201. public void SetКурсNull() {
  2202. this[this.tableСтуденты.КурсColumn] = global::System.Convert.DBNull;
  2203. }
  2204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2205. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2206. public bool IsКод_специальностиNull() {
  2207. return this.IsNull(this.tableСтуденты.Код_специальностиColumn);
  2208. }
  2209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2210. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2211. public void SetКод_специальностиNull() {
  2212. this[this.tableСтуденты.Код_специальностиColumn] = global::System.Convert.DBNull;
  2213. }
  2214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2215. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2216. public bool IsОчная_форма_обученияNull() {
  2217. return this.IsNull(this.tableСтуденты.Очная_форма_обученияColumn);
  2218. }
  2219. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2220. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2221. public void SetОчная_форма_обученияNull() {
  2222. this[this.tableСтуденты.Очная_форма_обученияColumn] = global::System.Convert.DBNull;
  2223. }
  2224. }
  2225. /// <summary>
  2226. ///Row event argument class
  2227. ///</summary>
  2228. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2229. public class ОценкиRowChangeEvent : global::System.EventArgs {
  2230. private ОценкиRow eventRow;
  2231. private global::System.Data.DataRowAction eventAction;
  2232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2233. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2234. public ОценкиRowChangeEvent(ОценкиRow row, global::System.Data.DataRowAction action) {
  2235. this.eventRow = row;
  2236. this.eventAction = action;
  2237. }
  2238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2239. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2240. public ОценкиRow Row {
  2241. get {
  2242. return this.eventRow;
  2243. }
  2244. }
  2245. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2246. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2247. public global::System.Data.DataRowAction Action {
  2248. get {
  2249. return this.eventAction;
  2250. }
  2251. }
  2252. }
  2253. /// <summary>
  2254. ///Row event argument class
  2255. ///</summary>
  2256. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2257. public class ПредметыRowChangeEvent : global::System.EventArgs {
  2258. private ПредметыRow eventRow;
  2259. private global::System.Data.DataRowAction eventAction;
  2260. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2261. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2262. public ПредметыRowChangeEvent(ПредметыRow row, global::System.Data.DataRowAction action) {
  2263. this.eventRow = row;
  2264. this.eventAction = action;
  2265. }
  2266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2268. public ПредметыRow Row {
  2269. get {
  2270. return this.eventRow;
  2271. }
  2272. }
  2273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2274. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2275. public global::System.Data.DataRowAction Action {
  2276. get {
  2277. return this.eventAction;
  2278. }
  2279. }
  2280. }
  2281. /// <summary>
  2282. ///Row event argument class
  2283. ///</summary>
  2284. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2285. public class СпециальностиRowChangeEvent : global::System.EventArgs {
  2286. private СпециальностиRow eventRow;
  2287. private global::System.Data.DataRowAction eventAction;
  2288. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2289. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2290. public СпециальностиRowChangeEvent(СпециальностиRow row, global::System.Data.DataRowAction action) {
  2291. this.eventRow = row;
  2292. this.eventAction = action;
  2293. }
  2294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2296. public СпециальностиRow Row {
  2297. get {
  2298. return this.eventRow;
  2299. }
  2300. }
  2301. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2302. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2303. public global::System.Data.DataRowAction Action {
  2304. get {
  2305. return this.eventAction;
  2306. }
  2307. }
  2308. }
  2309. /// <summary>
  2310. ///Row event argument class
  2311. ///</summary>
  2312. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2313. public class СтудентыRowChangeEvent : global::System.EventArgs {
  2314. private СтудентыRow eventRow;
  2315. private global::System.Data.DataRowAction eventAction;
  2316. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2317. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2318. public СтудентыRowChangeEvent(СтудентыRow row, global::System.Data.DataRowAction action) {
  2319. this.eventRow = row;
  2320. this.eventAction = action;
  2321. }
  2322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2323. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2324. public СтудентыRow Row {
  2325. get {
  2326. return this.eventRow;
  2327. }
  2328. }
  2329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2331. public global::System.Data.DataRowAction Action {
  2332. get {
  2333. return this.eventAction;
  2334. }
  2335. }
  2336. }
  2337. }
  2338. }
  2339. namespace DyakonovSTUD.RP31DyakonovStudentsDataSetTableAdapters {
  2340. /// <summary>
  2341. ///Represents the connection and commands used to retrieve and save data.
  2342. ///</summary>
  2343. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  2344. [global::System.ComponentModel.ToolboxItem(true)]
  2345. [global::System.ComponentModel.DataObjectAttribute(true)]
  2346. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  2347. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  2348. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2349. public partial class ОценкиTableAdapter : global::System.ComponentModel.Component {
  2350. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  2351. private global::System.Data.SqlClient.SqlConnection _connection;
  2352. private global::System.Data.SqlClient.SqlTransaction _transaction;
  2353. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  2354. private bool _clearBeforeFill;
  2355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2357. public ОценкиTableAdapter() {
  2358. this.ClearBeforeFill = true;
  2359. }
  2360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2361. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2362. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  2363. get {
  2364. if ((this._adapter == null)) {
  2365. this.InitAdapter();
  2366. }
  2367. return this._adapter;
  2368. }
  2369. }
  2370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2371. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2372. internal global::System.Data.SqlClient.SqlConnection Connection {
  2373. get {
  2374. if ((this._connection == null)) {
  2375. this.InitConnection();
  2376. }
  2377. return this._connection;
  2378. }
  2379. set {
  2380. this._connection = value;
  2381. if ((this.Adapter.InsertCommand != null)) {
  2382. this.Adapter.InsertCommand.Connection = value;
  2383. }
  2384. if ((this.Adapter.DeleteCommand != null)) {
  2385. this.Adapter.DeleteCommand.Connection = value;
  2386. }
  2387. if ((this.Adapter.UpdateCommand != null)) {
  2388. this.Adapter.UpdateCommand.Connection = value;
  2389. }
  2390. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2391. if ((this.CommandCollection[i] != null)) {
  2392. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  2393. }
  2394. }
  2395. }
  2396. }
  2397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2398. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2399. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  2400. get {
  2401. return this._transaction;
  2402. }
  2403. set {
  2404. this._transaction = value;
  2405. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2406. this.CommandCollection[i].Transaction = this._transaction;
  2407. }
  2408. if (((this.Adapter != null)
  2409. && (this.Adapter.DeleteCommand != null))) {
  2410. this.Adapter.DeleteCommand.Transaction = this._transaction;
  2411. }
  2412. if (((this.Adapter != null)
  2413. && (this.Adapter.InsertCommand != null))) {
  2414. this.Adapter.InsertCommand.Transaction = this._transaction;
  2415. }
  2416. if (((this.Adapter != null)
  2417. && (this.Adapter.UpdateCommand != null))) {
  2418. this.Adapter.UpdateCommand.Transaction = this._transaction;
  2419. }
  2420. }
  2421. }
  2422. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2423. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2424. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  2425. get {
  2426. if ((this._commandCollection == null)) {
  2427. this.InitCommandCollection();
  2428. }
  2429. return this._commandCollection;
  2430. }
  2431. }
  2432. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2433. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2434. public bool ClearBeforeFill {
  2435. get {
  2436. return this._clearBeforeFill;
  2437. }
  2438. set {
  2439. this._clearBeforeFill = value;
  2440. }
  2441. }
  2442. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2443. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2444. private void InitAdapter() {
  2445. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  2446. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  2447. tableMapping.SourceTable = "Table";
  2448. tableMapping.DataSetTable = "Оценки";
  2449. tableMapping.ColumnMappings.Add("Код студента", "Код студента");
  2450. tableMapping.ColumnMappings.Add("Дата экзамена 1", "Дата экзамена 1");
  2451. tableMapping.ColumnMappings.Add("Код предмета 1", "Код предмета 1");
  2452. tableMapping.ColumnMappings.Add("Оценка 1", "Оценка 1");
  2453. tableMapping.ColumnMappings.Add("Дата экзамена 2", "Дата экзамена 2");
  2454. tableMapping.ColumnMappings.Add("Код предмета 2", "Код предмета 2");
  2455. tableMapping.ColumnMappings.Add("Оценка 2", "Оценка 2");
  2456. tableMapping.ColumnMappings.Add("Дата экзамена 3", "Дата экзамена 3");
  2457. tableMapping.ColumnMappings.Add("Код предмета 3", "Код предмета 3");
  2458. tableMapping.ColumnMappings.Add("Оценка 3", "Оценка 3");
  2459. tableMapping.ColumnMappings.Add("Средний балл", "Средний балл");
  2460. this._adapter.TableMappings.Add(tableMapping);
  2461. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  2462. this._adapter.InsertCommand.Connection = this.Connection;
  2463. 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, @Средний_балл)";
  2464. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  2465. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_студента", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код студента", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2466. 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, "", "", ""));
  2467. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_предмета_1", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код предмета 1", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2468. 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, "", "", ""));
  2469. 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, "", "", ""));
  2470. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_предмета_2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код предмета 2", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2471. 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, "", "", ""));
  2472. 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, "", "", ""));
  2473. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_предмета_3", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код предмета 3", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2474. 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, "", "", ""));
  2475. 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, "", "", ""));
  2476. }
  2477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2479. private void InitConnection() {
  2480. this._connection = new global::System.Data.SqlClient.SqlConnection();
  2481. this._connection.ConnectionString = global::DyakonovSTUD.Properties.Settings.Default.RP31DyakonovStudentsConnectionString;
  2482. }
  2483. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2484. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2485. private void InitCommandCollection() {
  2486. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  2487. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  2488. this._commandCollection[0].Connection = this.Connection;
  2489. this._commandCollection[0].CommandText = "SELECT [Код студента], [Дата экзамена 1], [Код предмета 1], [Оценка 1], [Дата экз" +
  2490. "амена 2], [Код предмета 2], [Оценка 2], [Дата экзамена 3], [Код предмета 3], [Оц" +
  2491. "енка 3], [Средний балл] FROM dbo.Оценки";
  2492. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  2493. }
  2494. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2495. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2496. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2497. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  2498. public virtual int Fill(RP31DyakonovStudentsDataSet.ОценкиDataTable dataTable) {
  2499. this.Adapter.SelectCommand = this.CommandCollection[0];
  2500. if ((this.ClearBeforeFill == true)) {
  2501. dataTable.Clear();
  2502. }
  2503. int returnValue = this.Adapter.Fill(dataTable);
  2504. return returnValue;
  2505. }
  2506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2508. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2509. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  2510. public virtual RP31DyakonovStudentsDataSet.ОценкиDataTable GetData() {
  2511. this.Adapter.SelectCommand = this.CommandCollection[0];
  2512. RP31DyakonovStudentsDataSet.ОценкиDataTable dataTable = new RP31DyakonovStudentsDataSet.ОценкиDataTable();
  2513. this.Adapter.Fill(dataTable);
  2514. return dataTable;
  2515. }
  2516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2517. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2518. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2519. public virtual int Update(RP31DyakonovStudentsDataSet.ОценкиDataTable dataTable) {
  2520. return this.Adapter.Update(dataTable);
  2521. }
  2522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2524. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2525. public virtual int Update(RP31DyakonovStudentsDataSet dataSet) {
  2526. return this.Adapter.Update(dataSet, "Оценки");
  2527. }
  2528. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2529. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2530. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2531. public virtual int Update(global::System.Data.DataRow dataRow) {
  2532. return this.Adapter.Update(new global::System.Data.DataRow[] {
  2533. dataRow});
  2534. }
  2535. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2536. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2537. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2538. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  2539. return this.Adapter.Update(dataRows);
  2540. }
  2541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2543. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2544. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  2545. public virtual int Insert(int Код_студента, System.DateTime Дата_экзамена_1, int Код_предмета_1, byte Оценка_1, System.DateTime Дата_экзамена_2, int Код_предмета_2, byte Оценка_2, System.DateTime Дата_экзамена_3, int Код_предмета_3, byte Оценка_3, float Средний_балл) {
  2546. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(Код_студента));
  2547. this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(Дата_экзамена_1));
  2548. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Код_предмета_1));
  2549. this.Adapter.InsertCommand.Parameters[3].Value = ((byte)(Оценка_1));
  2550. this.Adapter.InsertCommand.Parameters[4].Value = ((System.DateTime)(Дата_экзамена_2));
  2551. this.Adapter.InsertCommand.Parameters[5].Value = ((int)(Код_предмета_2));
  2552. this.Adapter.InsertCommand.Parameters[6].Value = ((byte)(Оценка_2));
  2553. this.Adapter.InsertCommand.Parameters[7].Value = ((System.DateTime)(Дата_экзамена_3));
  2554. this.Adapter.InsertCommand.Parameters[8].Value = ((int)(Код_предмета_3));
  2555. this.Adapter.InsertCommand.Parameters[9].Value = ((byte)(Оценка_3));
  2556. this.Adapter.InsertCommand.Parameters[10].Value = ((float)(Средний_балл));
  2557. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  2558. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  2559. != global::System.Data.ConnectionState.Open)) {
  2560. this.Adapter.InsertCommand.Connection.Open();
  2561. }
  2562. try {
  2563. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  2564. return returnValue;
  2565. }
  2566. finally {
  2567. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  2568. this.Adapter.InsertCommand.Connection.Close();
  2569. }
  2570. }
  2571. }
  2572. }
  2573. /// <summary>
  2574. ///Represents the connection and commands used to retrieve and save data.
  2575. ///</summary>
  2576. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  2577. [global::System.ComponentModel.ToolboxItem(true)]
  2578. [global::System.ComponentModel.DataObjectAttribute(true)]
  2579. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  2580. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  2581. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2582. public partial class ПредметыTableAdapter : global::System.ComponentModel.Component {
  2583. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  2584. private global::System.Data.SqlClient.SqlConnection _connection;
  2585. private global::System.Data.SqlClient.SqlTransaction _transaction;
  2586. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  2587. private bool _clearBeforeFill;
  2588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2589. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2590. public ПредметыTableAdapter() {
  2591. this.ClearBeforeFill = true;
  2592. }
  2593. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2594. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2595. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  2596. get {
  2597. if ((this._adapter == null)) {
  2598. this.InitAdapter();
  2599. }
  2600. return this._adapter;
  2601. }
  2602. }
  2603. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2604. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2605. internal global::System.Data.SqlClient.SqlConnection Connection {
  2606. get {
  2607. if ((this._connection == null)) {
  2608. this.InitConnection();
  2609. }
  2610. return this._connection;
  2611. }
  2612. set {
  2613. this._connection = value;
  2614. if ((this.Adapter.InsertCommand != null)) {
  2615. this.Adapter.InsertCommand.Connection = value;
  2616. }
  2617. if ((this.Adapter.DeleteCommand != null)) {
  2618. this.Adapter.DeleteCommand.Connection = value;
  2619. }
  2620. if ((this.Adapter.UpdateCommand != null)) {
  2621. this.Adapter.UpdateCommand.Connection = value;
  2622. }
  2623. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2624. if ((this.CommandCollection[i] != null)) {
  2625. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  2626. }
  2627. }
  2628. }
  2629. }
  2630. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2631. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2632. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  2633. get {
  2634. return this._transaction;
  2635. }
  2636. set {
  2637. this._transaction = value;
  2638. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2639. this.CommandCollection[i].Transaction = this._transaction;
  2640. }
  2641. if (((this.Adapter != null)
  2642. && (this.Adapter.DeleteCommand != null))) {
  2643. this.Adapter.DeleteCommand.Transaction = this._transaction;
  2644. }
  2645. if (((this.Adapter != null)
  2646. && (this.Adapter.InsertCommand != null))) {
  2647. this.Adapter.InsertCommand.Transaction = this._transaction;
  2648. }
  2649. if (((this.Adapter != null)
  2650. && (this.Adapter.UpdateCommand != null))) {
  2651. this.Adapter.UpdateCommand.Transaction = this._transaction;
  2652. }
  2653. }
  2654. }
  2655. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2656. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2657. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  2658. get {
  2659. if ((this._commandCollection == null)) {
  2660. this.InitCommandCollection();
  2661. }
  2662. return this._commandCollection;
  2663. }
  2664. }
  2665. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2666. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2667. public bool ClearBeforeFill {
  2668. get {
  2669. return this._clearBeforeFill;
  2670. }
  2671. set {
  2672. this._clearBeforeFill = value;
  2673. }
  2674. }
  2675. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2676. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2677. private void InitAdapter() {
  2678. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  2679. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  2680. tableMapping.SourceTable = "Table";
  2681. tableMapping.DataSetTable = "Предметы";
  2682. tableMapping.ColumnMappings.Add("Код предмета", "Код предмета");
  2683. tableMapping.ColumnMappings.Add("Наименование предмета", "Наименование предмета");
  2684. tableMapping.ColumnMappings.Add("Описание предмета", "Описание предмета");
  2685. this._adapter.TableMappings.Add(tableMapping);
  2686. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  2687. this._adapter.DeleteCommand.Connection = this.Connection;
  2688. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Предметы] WHERE (([Код предмета] = @Original_Код_предмета) AND" +
  2689. " ((@IsNull_Наименование_предмета = 1 AND [Наименование предмета] IS NULL) OR ([Н" +
  2690. "аименование предмета] = @Original_Наименование_предмета)))";
  2691. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  2692. 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, "", "", ""));
  2693. 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, "", "", ""));
  2694. 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, "", "", ""));
  2695. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  2696. this._adapter.InsertCommand.Connection = this.Connection;
  2697. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Предметы] ([Наименование предмета], [Описание предмета]) VALUE" +
  2698. "S (@Наименование_предмета, @Описание_предмета);\r\nSELECT [Код предмета], [Наимено" +
  2699. "вание предмета], [Описание предмета] FROM Предметы WHERE ([Код предмета] = SCOPE" +
  2700. "_IDENTITY())";
  2701. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  2702. 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, "", "", ""));
  2703. 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, "", "", ""));
  2704. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  2705. this._adapter.UpdateCommand.Connection = this.Connection;
  2706. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Предметы] SET [Наименование предмета] = @Наименование_предмета, [Описание предмета] = @Описание_предмета WHERE (([Код предмета] = @Original_Код_предмета) AND ((@IsNull_Наименование_предмета = 1 AND [Наименование предмета] IS NULL) OR ([Наименование предмета] = @Original_Наименование_предмета)));
  2707. SELECT [Код предмета], [Наименование предмета], [Описание предмета] FROM Предметы WHERE ([Код предмета] = @Код_предмета)";
  2708. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  2709. 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, "", "", ""));
  2710. 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, "", "", ""));
  2711. 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, "", "", ""));
  2712. 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, "", "", ""));
  2713. 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, "", "", ""));
  2714. 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, "", "", ""));
  2715. }
  2716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2717. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2718. private void InitConnection() {
  2719. this._connection = new global::System.Data.SqlClient.SqlConnection();
  2720. this._connection.ConnectionString = global::DyakonovSTUD.Properties.Settings.Default.RP31DyakonovStudentsConnectionString;
  2721. }
  2722. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2723. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2724. private void InitCommandCollection() {
  2725. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  2726. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  2727. this._commandCollection[0].Connection = this.Connection;
  2728. this._commandCollection[0].CommandText = "SELECT [Код предмета], [Наименование предмета], [Описание предмета] FROM dbo.Пред" +
  2729. "меты";
  2730. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  2731. }
  2732. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2733. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2734. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2735. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  2736. public virtual int Fill(RP31DyakonovStudentsDataSet.ПредметыDataTable dataTable) {
  2737. this.Adapter.SelectCommand = this.CommandCollection[0];
  2738. if ((this.ClearBeforeFill == true)) {
  2739. dataTable.Clear();
  2740. }
  2741. int returnValue = this.Adapter.Fill(dataTable);
  2742. return returnValue;
  2743. }
  2744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2746. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2747. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  2748. public virtual RP31DyakonovStudentsDataSet.ПредметыDataTable GetData() {
  2749. this.Adapter.SelectCommand = this.CommandCollection[0];
  2750. RP31DyakonovStudentsDataSet.ПредметыDataTable dataTable = new RP31DyakonovStudentsDataSet.ПредметыDataTable();
  2751. this.Adapter.Fill(dataTable);
  2752. return dataTable;
  2753. }
  2754. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2755. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2756. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2757. public virtual int Update(RP31DyakonovStudentsDataSet.ПредметыDataTable dataTable) {
  2758. return this.Adapter.Update(dataTable);
  2759. }
  2760. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2761. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2762. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2763. public virtual int Update(RP31DyakonovStudentsDataSet dataSet) {
  2764. return this.Adapter.Update(dataSet, "Предметы");
  2765. }
  2766. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2767. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2768. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2769. public virtual int Update(global::System.Data.DataRow dataRow) {
  2770. return this.Adapter.Update(new global::System.Data.DataRow[] {
  2771. dataRow});
  2772. }
  2773. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2774. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2775. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2776. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  2777. return this.Adapter.Update(dataRows);
  2778. }
  2779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2781. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2782. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  2783. public virtual int Delete(int Original_Код_предмета, string Original_Наименование_предмета) {
  2784. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_Код_предмета));
  2785. if ((Original_Наименование_предмета == null)) {
  2786. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  2787. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  2788. }
  2789. else {
  2790. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  2791. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Наименование_предмета));
  2792. }
  2793. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  2794. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  2795. != global::System.Data.ConnectionState.Open)) {
  2796. this.Adapter.DeleteCommand.Connection.Open();
  2797. }
  2798. try {
  2799. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  2800. return returnValue;
  2801. }
  2802. finally {
  2803. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  2804. this.Adapter.DeleteCommand.Connection.Close();
  2805. }
  2806. }
  2807. }
  2808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2810. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2811. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  2812. public virtual int Insert(string Наименование_предмета, string Описание_предмета) {
  2813. if ((Наименование_предмета == null)) {
  2814. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  2815. }
  2816. else {
  2817. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Наименование_предмета));
  2818. }
  2819. if ((Описание_предмета == null)) {
  2820. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  2821. }
  2822. else {
  2823. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Описание_предмета));
  2824. }
  2825. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  2826. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  2827. != global::System.Data.ConnectionState.Open)) {
  2828. this.Adapter.InsertCommand.Connection.Open();
  2829. }
  2830. try {
  2831. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  2832. return returnValue;
  2833. }
  2834. finally {
  2835. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  2836. this.Adapter.InsertCommand.Connection.Close();
  2837. }
  2838. }
  2839. }
  2840. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2841. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2842. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2843. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  2844. public virtual int Update(string Наименование_предмета, string Описание_предмета, int Original_Код_предмета, string Original_Наименование_предмета, int Код_предмета) {
  2845. if ((Наименование_предмета == null)) {
  2846. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  2847. }
  2848. else {
  2849. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Наименование_предмета));
  2850. }
  2851. if ((Описание_предмета == null)) {
  2852. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  2853. }
  2854. else {
  2855. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Описание_предмета));
  2856. }
  2857. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_Код_предмета));
  2858. if ((Original_Наименование_предмета == null)) {
  2859. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  2860. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  2861. }
  2862. else {
  2863. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  2864. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Наименование_предмета));
  2865. }
  2866. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Код_предмета));
  2867. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  2868. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  2869. != global::System.Data.ConnectionState.Open)) {
  2870. this.Adapter.UpdateCommand.Connection.Open();
  2871. }
  2872. try {
  2873. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  2874. return returnValue;
  2875. }
  2876. finally {
  2877. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  2878. this.Adapter.UpdateCommand.Connection.Close();
  2879. }
  2880. }
  2881. }
  2882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2883. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2884. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2885. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  2886. public virtual int Update(string Наименование_предмета, string Описание_предмета, int Original_Код_предмета, string Original_Наименование_предмета) {
  2887. return this.Update(Наименование_предмета, Описание_предмета, Original_Код_предмета, Original_Наименование_предмета, Original_Код_предмета);
  2888. }
  2889. }
  2890. /// <summary>
  2891. ///Represents the connection and commands used to retrieve and save data.
  2892. ///</summary>
  2893. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  2894. [global::System.ComponentModel.ToolboxItem(true)]
  2895. [global::System.ComponentModel.DataObjectAttribute(true)]
  2896. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  2897. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  2898. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2899. public partial class СпециальностиTableAdapter : global::System.ComponentModel.Component {
  2900. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  2901. private global::System.Data.SqlClient.SqlConnection _connection;
  2902. private global::System.Data.SqlClient.SqlTransaction _transaction;
  2903. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  2904. private bool _clearBeforeFill;
  2905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2906. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2907. public СпециальностиTableAdapter() {
  2908. this.ClearBeforeFill = true;
  2909. }
  2910. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2911. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2912. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  2913. get {
  2914. if ((this._adapter == null)) {
  2915. this.InitAdapter();
  2916. }
  2917. return this._adapter;
  2918. }
  2919. }
  2920. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2921. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2922. internal global::System.Data.SqlClient.SqlConnection Connection {
  2923. get {
  2924. if ((this._connection == null)) {
  2925. this.InitConnection();
  2926. }
  2927. return this._connection;
  2928. }
  2929. set {
  2930. this._connection = value;
  2931. if ((this.Adapter.InsertCommand != null)) {
  2932. this.Adapter.InsertCommand.Connection = value;
  2933. }
  2934. if ((this.Adapter.DeleteCommand != null)) {
  2935. this.Adapter.DeleteCommand.Connection = value;
  2936. }
  2937. if ((this.Adapter.UpdateCommand != null)) {
  2938. this.Adapter.UpdateCommand.Connection = value;
  2939. }
  2940. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2941. if ((this.CommandCollection[i] != null)) {
  2942. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  2943. }
  2944. }
  2945. }
  2946. }
  2947. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2948. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2949. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  2950. get {
  2951. return this._transaction;
  2952. }
  2953. set {
  2954. this._transaction = value;
  2955. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2956. this.CommandCollection[i].Transaction = this._transaction;
  2957. }
  2958. if (((this.Adapter != null)
  2959. && (this.Adapter.DeleteCommand != null))) {
  2960. this.Adapter.DeleteCommand.Transaction = this._transaction;
  2961. }
  2962. if (((this.Adapter != null)
  2963. && (this.Adapter.InsertCommand != null))) {
  2964. this.Adapter.InsertCommand.Transaction = this._transaction;
  2965. }
  2966. if (((this.Adapter != null)
  2967. && (this.Adapter.UpdateCommand != null))) {
  2968. this.Adapter.UpdateCommand.Transaction = this._transaction;
  2969. }
  2970. }
  2971. }
  2972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2973. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2974. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  2975. get {
  2976. if ((this._commandCollection == null)) {
  2977. this.InitCommandCollection();
  2978. }
  2979. return this._commandCollection;
  2980. }
  2981. }
  2982. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2983. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2984. public bool ClearBeforeFill {
  2985. get {
  2986. return this._clearBeforeFill;
  2987. }
  2988. set {
  2989. this._clearBeforeFill = value;
  2990. }
  2991. }
  2992. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2993. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2994. private void InitAdapter() {
  2995. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  2996. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  2997. tableMapping.SourceTable = "Table";
  2998. tableMapping.DataSetTable = "Специальности";
  2999. tableMapping.ColumnMappings.Add("Код специальности", "Код специальности");
  3000. tableMapping.ColumnMappings.Add("Наименование специальности", "Наименование специальности");
  3001. tableMapping.ColumnMappings.Add("Описание специальности", "Описание специальности");
  3002. this._adapter.TableMappings.Add(tableMapping);
  3003. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  3004. this._adapter.DeleteCommand.Connection = this.Connection;
  3005. 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_Описание_специальности)))";
  3006. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  3007. 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, "", "", ""));
  3008. 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, "", "", ""));
  3009. 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, "", "", ""));
  3010. 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, "", "", ""));
  3011. 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, "", "", ""));
  3012. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  3013. this._adapter.InsertCommand.Connection = this.Connection;
  3014. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Специальности] ([Наименование специальности], [Описание специальности]) VALUES (@Наименование_специальности, @Описание_специальности);
  3015. SELECT [Код специальности], [Наименование специальности], [Описание специальности] FROM Специальности WHERE ([Код специальности] = SCOPE_IDENTITY())";
  3016. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  3017. 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, "", "", ""));
  3018. 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, "", "", ""));
  3019. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  3020. this._adapter.UpdateCommand.Connection = this.Connection;
  3021. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Специальности] SET [Наименование специальности] = @Наименование_специальности, [Описание специальности] = @Описание_специальности WHERE (([Код специальности] = @Original_Код_специальности) AND ((@IsNull_Наименование_специальности = 1 AND [Наименование специальности] IS NULL) OR ([Наименование специальности] = @Original_Наименование_специальности)) AND ((@IsNull_Описание_специальности = 1 AND [Описание специальности] IS NULL) OR ([Описание специальности] = @Original_Описание_специальности)));
  3022. SELECT [Код специальности], [Наименование специальности], [Описание специальности] FROM Специальности WHERE ([Код специальности] = @Код_специальности)";
  3023. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  3024. 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, "", "", ""));
  3025. 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, "", "", ""));
  3026. 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, "", "", ""));
  3027. 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, "", "", ""));
  3028. 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, "", "", ""));
  3029. 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, "", "", ""));
  3030. 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, "", "", ""));
  3031. 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, "", "", ""));
  3032. }
  3033. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3034. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3035. private void InitConnection() {
  3036. this._connection = new global::System.Data.SqlClient.SqlConnection();
  3037. this._connection.ConnectionString = global::DyakonovSTUD.Properties.Settings.Default.RP31DyakonovStudentsConnectionString;
  3038. }
  3039. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3041. private void InitCommandCollection() {
  3042. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  3043. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  3044. this._commandCollection[0].Connection = this.Connection;
  3045. this._commandCollection[0].CommandText = "SELECT [Код специальности], [Наименование специальности], [Описание специальности" +
  3046. "] FROM dbo.Специальности";
  3047. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  3048. }
  3049. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3050. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3051. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3052. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  3053. public virtual int Fill(RP31DyakonovStudentsDataSet.СпециальностиDataTable dataTable) {
  3054. this.Adapter.SelectCommand = this.CommandCollection[0];
  3055. if ((this.ClearBeforeFill == true)) {
  3056. dataTable.Clear();
  3057. }
  3058. int returnValue = this.Adapter.Fill(dataTable);
  3059. return returnValue;
  3060. }
  3061. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3062. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3063. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3064. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  3065. public virtual RP31DyakonovStudentsDataSet.СпециальностиDataTable GetData() {
  3066. this.Adapter.SelectCommand = this.CommandCollection[0];
  3067. RP31DyakonovStudentsDataSet.СпециальностиDataTable dataTable = new RP31DyakonovStudentsDataSet.СпециальностиDataTable();
  3068. this.Adapter.Fill(dataTable);
  3069. return dataTable;
  3070. }
  3071. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3072. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3073. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3074. public virtual int Update(RP31DyakonovStudentsDataSet.СпециальностиDataTable dataTable) {
  3075. return this.Adapter.Update(dataTable);
  3076. }
  3077. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3078. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3079. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3080. public virtual int Update(RP31DyakonovStudentsDataSet dataSet) {
  3081. return this.Adapter.Update(dataSet, "Специальности");
  3082. }
  3083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3085. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3086. public virtual int Update(global::System.Data.DataRow dataRow) {
  3087. return this.Adapter.Update(new global::System.Data.DataRow[] {
  3088. dataRow});
  3089. }
  3090. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3091. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3092. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3093. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  3094. return this.Adapter.Update(dataRows);
  3095. }
  3096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3097. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3098. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3099. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  3100. public virtual int Delete(int Original_Код_специальности, string Original_Наименование_специальности, string Original_Описание_специальности) {
  3101. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_Код_специальности));
  3102. if ((Original_Наименование_специальности == null)) {
  3103. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  3104. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  3105. }
  3106. else {
  3107. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  3108. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Наименование_специальности));
  3109. }
  3110. if ((Original_Описание_специальности == null)) {
  3111. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  3112. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  3113. }
  3114. else {
  3115. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  3116. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Описание_специальности));
  3117. }
  3118. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  3119. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3120. != global::System.Data.ConnectionState.Open)) {
  3121. this.Adapter.DeleteCommand.Connection.Open();
  3122. }
  3123. try {
  3124. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  3125. return returnValue;
  3126. }
  3127. finally {
  3128. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3129. this.Adapter.DeleteCommand.Connection.Close();
  3130. }
  3131. }
  3132. }
  3133. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3134. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3135. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3136. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  3137. public virtual int Insert(string Наименование_специальности, string Описание_специальности) {
  3138. if ((Наименование_специальности == null)) {
  3139. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  3140. }
  3141. else {
  3142. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Наименование_специальности));
  3143. }
  3144. if ((Описание_специальности == null)) {
  3145. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  3146. }
  3147. else {
  3148. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Описание_специальности));
  3149. }
  3150. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  3151. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3152. != global::System.Data.ConnectionState.Open)) {
  3153. this.Adapter.InsertCommand.Connection.Open();
  3154. }
  3155. try {
  3156. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  3157. return returnValue;
  3158. }
  3159. finally {
  3160. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3161. this.Adapter.InsertCommand.Connection.Close();
  3162. }
  3163. }
  3164. }
  3165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3167. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3168. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3169. public virtual int Update(string Наименование_специальности, string Описание_специальности, int Original_Код_специальности, string Original_Наименование_специальности, string Original_Описание_специальности, int Код_специальности) {
  3170. if ((Наименование_специальности == null)) {
  3171. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  3172. }
  3173. else {
  3174. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Наименование_специальности));
  3175. }
  3176. if ((Описание_специальности == null)) {
  3177. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  3178. }
  3179. else {
  3180. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Описание_специальности));
  3181. }
  3182. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_Код_специальности));
  3183. if ((Original_Наименование_специальности == null)) {
  3184. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  3185. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  3186. }
  3187. else {
  3188. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  3189. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Наименование_специальности));
  3190. }
  3191. if ((Original_Описание_специальности == null)) {
  3192. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  3193. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  3194. }
  3195. else {
  3196. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  3197. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_Описание_специальности));
  3198. }
  3199. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Код_специальности));
  3200. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  3201. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3202. != global::System.Data.ConnectionState.Open)) {
  3203. this.Adapter.UpdateCommand.Connection.Open();
  3204. }
  3205. try {
  3206. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  3207. return returnValue;
  3208. }
  3209. finally {
  3210. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3211. this.Adapter.UpdateCommand.Connection.Close();
  3212. }
  3213. }
  3214. }
  3215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3216. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3217. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3218. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3219. public virtual int Update(string Наименование_специальности, string Описание_специальности, int Original_Код_специальности, string Original_Наименование_специальности, string Original_Описание_специальности) {
  3220. return this.Update(Наименование_специальности, Описание_специальности, Original_Код_специальности, Original_Наименование_специальности, Original_Описание_специальности, Original_Код_специальности);
  3221. }
  3222. }
  3223. /// <summary>
  3224. ///Represents the connection and commands used to retrieve and save data.
  3225. ///</summary>
  3226. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3227. [global::System.ComponentModel.ToolboxItem(true)]
  3228. [global::System.ComponentModel.DataObjectAttribute(true)]
  3229. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  3230. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3231. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3232. public partial class СтудентыTableAdapter : global::System.ComponentModel.Component {
  3233. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  3234. private global::System.Data.SqlClient.SqlConnection _connection;
  3235. private global::System.Data.SqlClient.SqlTransaction _transaction;
  3236. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  3237. private bool _clearBeforeFill;
  3238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3239. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3240. public СтудентыTableAdapter() {
  3241. this.ClearBeforeFill = true;
  3242. }
  3243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3245. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  3246. get {
  3247. if ((this._adapter == null)) {
  3248. this.InitAdapter();
  3249. }
  3250. return this._adapter;
  3251. }
  3252. }
  3253. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3254. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3255. internal global::System.Data.SqlClient.SqlConnection Connection {
  3256. get {
  3257. if ((this._connection == null)) {
  3258. this.InitConnection();
  3259. }
  3260. return this._connection;
  3261. }
  3262. set {
  3263. this._connection = value;
  3264. if ((this.Adapter.InsertCommand != null)) {
  3265. this.Adapter.InsertCommand.Connection = value;
  3266. }
  3267. if ((this.Adapter.DeleteCommand != null)) {
  3268. this.Adapter.DeleteCommand.Connection = value;
  3269. }
  3270. if ((this.Adapter.UpdateCommand != null)) {
  3271. this.Adapter.UpdateCommand.Connection = value;
  3272. }
  3273. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3274. if ((this.CommandCollection[i] != null)) {
  3275. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  3276. }
  3277. }
  3278. }
  3279. }
  3280. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3281. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3282. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  3283. get {
  3284. return this._transaction;
  3285. }
  3286. set {
  3287. this._transaction = value;
  3288. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3289. this.CommandCollection[i].Transaction = this._transaction;
  3290. }
  3291. if (((this.Adapter != null)
  3292. && (this.Adapter.DeleteCommand != null))) {
  3293. this.Adapter.DeleteCommand.Transaction = this._transaction;
  3294. }
  3295. if (((this.Adapter != null)
  3296. && (this.Adapter.InsertCommand != null))) {
  3297. this.Adapter.InsertCommand.Transaction = this._transaction;
  3298. }
  3299. if (((this.Adapter != null)
  3300. && (this.Adapter.UpdateCommand != null))) {
  3301. this.Adapter.UpdateCommand.Transaction = this._transaction;
  3302. }
  3303. }
  3304. }
  3305. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3306. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3307. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  3308. get {
  3309. if ((this._commandCollection == null)) {
  3310. this.InitCommandCollection();
  3311. }
  3312. return this._commandCollection;
  3313. }
  3314. }
  3315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3316. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3317. public bool ClearBeforeFill {
  3318. get {
  3319. return this._clearBeforeFill;
  3320. }
  3321. set {
  3322. this._clearBeforeFill = value;
  3323. }
  3324. }
  3325. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3326. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3327. private void InitAdapter() {
  3328. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  3329. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  3330. tableMapping.SourceTable = "Table";
  3331. tableMapping.DataSetTable = "Студенты";
  3332. tableMapping.ColumnMappings.Add("Код студента", "Код студента");
  3333. tableMapping.ColumnMappings.Add("ФИО", "ФИО");
  3334. tableMapping.ColumnMappings.Add("Пол", "Пол");
  3335. tableMapping.ColumnMappings.Add("Дата рождения", "Дата рождения");
  3336. tableMapping.ColumnMappings.Add("Родители", "Родители");
  3337. tableMapping.ColumnMappings.Add("Адрес", "Адрес");
  3338. tableMapping.ColumnMappings.Add("Телефон", "Телефон");
  3339. tableMapping.ColumnMappings.Add("Паспортные данные", "Паспортные данные");
  3340. tableMapping.ColumnMappings.Add("Номер зачетки", "Номер зачетки");
  3341. tableMapping.ColumnMappings.Add("Дата поступления", "Дата поступления");
  3342. tableMapping.ColumnMappings.Add("Группа", "Группа");
  3343. tableMapping.ColumnMappings.Add("Курс", "Курс");
  3344. tableMapping.ColumnMappings.Add("Код специальности", "Код специальности");
  3345. tableMapping.ColumnMappings.Add("Очная форма обучения", "Очная форма обучения");
  3346. this._adapter.TableMappings.Add(tableMapping);
  3347. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  3348. this._adapter.DeleteCommand.Connection = this.Connection;
  3349. 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_Очная_форма_обучения)))";
  3350. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  3351. 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, "", "", ""));
  3352. 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, "", "", ""));
  3353. 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, "", "", ""));
  3354. 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, "", "", ""));
  3355. 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, "", "", ""));
  3356. 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, "", "", ""));
  3357. 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, "", "", ""));
  3358. 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, "", "", ""));
  3359. 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, "", "", ""));
  3360. 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, "", "", ""));
  3361. 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, "", "", ""));
  3362. 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, "", "", ""));
  3363. 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, "", "", ""));
  3364. 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, "", "", ""));
  3365. 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, "", "", ""));
  3366. 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, "", "", ""));
  3367. 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, "", "", ""));
  3368. 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, "", "", ""));
  3369. 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, "", "", ""));
  3370. 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, "", "", ""));
  3371. 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, "", "", ""));
  3372. 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, "", "", ""));
  3373. 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, "", "", ""));
  3374. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  3375. this._adapter.InsertCommand.Connection = this.Connection;
  3376. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Студенты] ([ФИО], [Пол], [Дата рождения], [Родители], [Адрес], [Телефон], [Паспортные данные], [Номер зачетки], [Дата поступления], [Группа], [Курс], [Код специальности], [Очная форма обучения]) VALUES (@ФИО, @Пол, @Дата_рождения, @Родители, @Адрес, @Телефон, @Паспортные_данные, @Номер_зачетки, @Дата_поступления, @Группа, @Курс, @Код_специальности, @Очная_форма_обучения);
  3377. SELECT [Код студента], ФИО, Пол, [Дата рождения], Родители, Адрес, Телефон, [Паспортные данные], [Номер зачетки], [Дата поступления], Группа, Курс, [Код специальности], [Очная форма обучения] FROM Студенты WHERE ([Код студента] = SCOPE_IDENTITY())";
  3378. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  3379. 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, "", "", ""));
  3380. 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, "", "", ""));
  3381. 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, "", "", ""));
  3382. 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, "", "", ""));
  3383. 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, "", "", ""));
  3384. 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, "", "", ""));
  3385. 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, "", "", ""));
  3386. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Номер_зачетки", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер зачетки", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3387. 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, "", "", ""));
  3388. 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, "", "", ""));
  3389. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Курс", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Курс", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3390. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_специальности", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код специальности", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3391. 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, "", "", ""));
  3392. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  3393. this._adapter.UpdateCommand.Connection = this.Connection;
  3394. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Студенты] SET [ФИО] = @ФИО, [Пол] = @Пол, [Дата рождения] = @Дата_р" +
  3395. "ождения, [Родители] = @Родители, [Адрес] = @Адрес, [Телефон] = @Телефон, [Паспор" +
  3396. "тные данные] = @Паспортные_данные, [Номер зачетки] = @Номер_зачетки, [Дата посту" +
  3397. "пления] = @Дата_поступления, [Группа] = @Группа, [Курс] = @Курс, [Код специально" +
  3398. "сти] = @Код_специальности, [Очная форма обучения] = @Очная_форма_обучения WHERE " +
  3399. "(([Код студента] = @Original_Код_студента) AND ((@IsNull_ФИО = 1 AND [ФИО] IS NU" +
  3400. "LL) OR ([ФИО] = @Original_ФИО)) AND ((@IsNull_Пол = 1 AND [Пол] IS NULL) OR ([По" +
  3401. "л] = @Original_Пол)) AND ((@IsNull_Дата_рождения = 1 AND [Дата рождения] IS NULL" +
  3402. ") OR ([Дата рождения] = @Original_Дата_рождения)) AND ((@IsNull_Родители = 1 AND" +
  3403. " [Родители] IS NULL) OR ([Родители] = @Original_Родители)) AND ((@IsNull_Телефон" +
  3404. " = 1 AND [Телефон] IS NULL) OR ([Телефон] = @Original_Телефон)) AND ((@IsNull_Но" +
  3405. "мер_зачетки = 1 AND [Номер зачетки] IS NULL) OR ([Номер зачетки] = @Original_Ном" +
  3406. "ер_зачетки)) AND ((@IsNull_Дата_поступления = 1 AND [Дата поступления] IS NULL) " +
  3407. "OR ([Дата поступления] = @Original_Дата_поступления)) AND ((@IsNull_Группа = 1 A" +
  3408. "ND [Группа] IS NULL) OR ([Группа] = @Original_Группа)) AND ((@IsNull_Курс = 1 AN" +
  3409. "D [Курс] IS NULL) OR ([Курс] = @Original_Курс)) AND ((@IsNull_Код_специальности " +
  3410. "= 1 AND [Код специальности] IS NULL) OR ([Код специальности] = @Original_Код_спе" +
  3411. "циальности)) AND ((@IsNull_Очная_форма_обучения = 1 AND [Очная форма обучения] I" +
  3412. "S NULL) OR ([Очная форма обучения] = @Original_Очная_форма_обучения)));\r\nSELECT " +
  3413. "[Код студента], ФИО, Пол, [Дата рождения], Родители, Адрес, Телефон, [Паспортные" +
  3414. " данные], [Номер зачетки], [Дата поступления], Группа, Курс, [Код специальности]" +
  3415. ", [Очная форма обучения] FROM Студенты WHERE ([Код студента] = @Код_студента)";
  3416. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  3417. 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, "", "", ""));
  3418. 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, "", "", ""));
  3419. 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, "", "", ""));
  3420. 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, "", "", ""));
  3421. 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, "", "", ""));
  3422. 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, "", "", ""));
  3423. 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, "", "", ""));
  3424. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Номер_зачетки", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер зачетки", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3425. 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, "", "", ""));
  3426. 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, "", "", ""));
  3427. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Курс", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Курс", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3428. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_специальности", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код специальности", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3429. 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, "", "", ""));
  3430. 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, "", "", ""));
  3431. 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, "", "", ""));
  3432. 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, "", "", ""));
  3433. 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, "", "", ""));
  3434. 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, "", "", ""));
  3435. 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, "", "", ""));
  3436. 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, "", "", ""));
  3437. 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, "", "", ""));
  3438. 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, "", "", ""));
  3439. 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, "", "", ""));
  3440. 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, "", "", ""));
  3441. 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, "", "", ""));
  3442. 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, "", "", ""));
  3443. 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, "", "", ""));
  3444. 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, "", "", ""));
  3445. 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, "", "", ""));
  3446. 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, "", "", ""));
  3447. 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, "", "", ""));
  3448. 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, "", "", ""));
  3449. 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, "", "", ""));
  3450. 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, "", "", ""));
  3451. 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, "", "", ""));
  3452. 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, "", "", ""));
  3453. 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, "", "", ""));
  3454. }
  3455. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3456. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3457. private void InitConnection() {
  3458. this._connection = new global::System.Data.SqlClient.SqlConnection();
  3459. this._connection.ConnectionString = global::DyakonovSTUD.Properties.Settings.Default.RP31DyakonovStudentsConnectionString;
  3460. }
  3461. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3462. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3463. private void InitCommandCollection() {
  3464. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  3465. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  3466. this._commandCollection[0].Connection = this.Connection;
  3467. this._commandCollection[0].CommandText = "SELECT [Код студента], ФИО, Пол, [Дата рождения], Родители, Адрес, Телефон, [Пасп" +
  3468. "ортные данные], [Номер зачетки], [Дата поступления], Группа, Курс, [Код специаль" +
  3469. "ности], [Очная форма обучения] FROM dbo.Студенты";
  3470. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  3471. }
  3472. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3474. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3475. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  3476. public virtual int Fill(RP31DyakonovStudentsDataSet.СтудентыDataTable dataTable) {
  3477. this.Adapter.SelectCommand = this.CommandCollection[0];
  3478. if ((this.ClearBeforeFill == true)) {
  3479. dataTable.Clear();
  3480. }
  3481. int returnValue = this.Adapter.Fill(dataTable);
  3482. return returnValue;
  3483. }
  3484. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3485. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3486. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3487. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  3488. public virtual RP31DyakonovStudentsDataSet.СтудентыDataTable GetData() {
  3489. this.Adapter.SelectCommand = this.CommandCollection[0];
  3490. RP31DyakonovStudentsDataSet.СтудентыDataTable dataTable = new RP31DyakonovStudentsDataSet.СтудентыDataTable();
  3491. this.Adapter.Fill(dataTable);
  3492. return dataTable;
  3493. }
  3494. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3495. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3496. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3497. public virtual int Update(RP31DyakonovStudentsDataSet.СтудентыDataTable dataTable) {
  3498. return this.Adapter.Update(dataTable);
  3499. }
  3500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3502. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3503. public virtual int Update(RP31DyakonovStudentsDataSet dataSet) {
  3504. return this.Adapter.Update(dataSet, "Студенты");
  3505. }
  3506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3508. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3509. public virtual int Update(global::System.Data.DataRow dataRow) {
  3510. return this.Adapter.Update(new global::System.Data.DataRow[] {
  3511. dataRow});
  3512. }
  3513. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3514. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3515. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3516. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  3517. return this.Adapter.Update(dataRows);
  3518. }
  3519. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3520. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3521. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3522. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  3523. public virtual int Delete(int Original_Код_студента, string Original_ФИО, string Original_Пол, global::System.Nullable<global::System.DateTime> Original_Дата_рождения, string Original_Родители, string Original_Телефон, global::System.Nullable<int> Original_Номер_зачетки, global::System.Nullable<global::System.DateTime> Original_Дата_поступления, string Original_Группа, global::System.Nullable<int> Original_Курс, global::System.Nullable<int> Original_Код_специальности, global::System.Nullable<bool> Original_Очная_форма_обучения) {
  3524. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_Код_студента));
  3525. if ((Original_ФИО == null)) {
  3526. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  3527. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  3528. }
  3529. else {
  3530. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  3531. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_ФИО));
  3532. }
  3533. if ((Original_Пол == null)) {
  3534. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  3535. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  3536. }
  3537. else {
  3538. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  3539. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Пол));
  3540. }
  3541. if ((Original_Дата_рождения.HasValue == true)) {
  3542. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  3543. this.Adapter.DeleteCommand.Parameters[6].Value = ((System.DateTime)(Original_Дата_рождения.Value));
  3544. }
  3545. else {
  3546. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  3547. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  3548. }
  3549. if ((Original_Родители == null)) {
  3550. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  3551. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  3552. }
  3553. else {
  3554. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  3555. this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Родители));
  3556. }
  3557. if ((Original_Телефон == null)) {
  3558. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  3559. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  3560. }
  3561. else {
  3562. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  3563. this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_Телефон));
  3564. }
  3565. if ((Original_Номер_зачетки.HasValue == true)) {
  3566. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  3567. this.Adapter.DeleteCommand.Parameters[12].Value = ((int)(Original_Номер_зачетки.Value));
  3568. }
  3569. else {
  3570. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  3571. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  3572. }
  3573. if ((Original_Дата_поступления.HasValue == true)) {
  3574. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
  3575. this.Adapter.DeleteCommand.Parameters[14].Value = ((System.DateTime)(Original_Дата_поступления.Value));
  3576. }
  3577. else {
  3578. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
  3579. this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
  3580. }
  3581. if ((Original_Группа == null)) {
  3582. this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(1));
  3583. this.Adapter.DeleteCommand.Parameters[16].Value = global::System.DBNull.Value;
  3584. }
  3585. else {
  3586. this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(0));
  3587. this.Adapter.DeleteCommand.Parameters[16].Value = ((string)(Original_Группа));
  3588. }
  3589. if ((Original_Курс.HasValue == true)) {
  3590. this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(0));
  3591. this.Adapter.DeleteCommand.Parameters[18].Value = ((int)(Original_Курс.Value));
  3592. }
  3593. else {
  3594. this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(1));
  3595. this.Adapter.DeleteCommand.Parameters[18].Value = global::System.DBNull.Value;
  3596. }
  3597. if ((Original_Код_специальности.HasValue == true)) {
  3598. this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(0));
  3599. this.Adapter.DeleteCommand.Parameters[20].Value = ((int)(Original_Код_специальности.Value));
  3600. }
  3601. else {
  3602. this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(1));
  3603. this.Adapter.DeleteCommand.Parameters[20].Value = global::System.DBNull.Value;
  3604. }
  3605. if ((Original_Очная_форма_обучения.HasValue == true)) {
  3606. this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(0));
  3607. this.Adapter.DeleteCommand.Parameters[22].Value = ((bool)(Original_Очная_форма_обучения.Value));
  3608. }
  3609. else {
  3610. this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(1));
  3611. this.Adapter.DeleteCommand.Parameters[22].Value = global::System.DBNull.Value;
  3612. }
  3613. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  3614. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3615. != global::System.Data.ConnectionState.Open)) {
  3616. this.Adapter.DeleteCommand.Connection.Open();
  3617. }
  3618. try {
  3619. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  3620. return returnValue;
  3621. }
  3622. finally {
  3623. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3624. this.Adapter.DeleteCommand.Connection.Close();
  3625. }
  3626. }
  3627. }
  3628. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3630. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3631. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  3632. public virtual int Insert(string ФИО, string Пол, global::System.Nullable<global::System.DateTime> Дата_рождения, string Родители, string Адрес, string Телефон, string Паспортные_данные, global::System.Nullable<int> Номер_зачетки, global::System.Nullable<global::System.DateTime> Дата_поступления, string Группа, global::System.Nullable<int> Курс, global::System.Nullable<int> Код_специальности, global::System.Nullable<bool> Очная_форма_обучения) {
  3633. if ((ФИО == null)) {
  3634. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  3635. }
  3636. else {
  3637. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(ФИО));
  3638. }
  3639. if ((Пол == null)) {
  3640. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  3641. }
  3642. else {
  3643. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Пол));
  3644. }
  3645. if ((Дата_рождения.HasValue == true)) {
  3646. this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(Дата_рождения.Value));
  3647. }
  3648. else {
  3649. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  3650. }
  3651. if ((Родители == null)) {
  3652. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  3653. }
  3654. else {
  3655. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Родители));
  3656. }
  3657. if ((Адрес == null)) {
  3658. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  3659. }
  3660. else {
  3661. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Адрес));
  3662. }
  3663. if ((Телефон == null)) {
  3664. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  3665. }
  3666. else {
  3667. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Телефон));
  3668. }
  3669. if ((Паспортные_данные == null)) {
  3670. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  3671. }
  3672. else {
  3673. this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Паспортные_данные));
  3674. }
  3675. if ((Номер_зачетки.HasValue == true)) {
  3676. this.Adapter.InsertCommand.Parameters[7].Value = ((int)(Номер_зачетки.Value));
  3677. }
  3678. else {
  3679. this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
  3680. }
  3681. if ((Дата_поступления.HasValue == true)) {
  3682. this.Adapter.InsertCommand.Parameters[8].Value = ((System.DateTime)(Дата_поступления.Value));
  3683. }
  3684. else {
  3685. this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
  3686. }
  3687. if ((Группа == null)) {
  3688. this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value;
  3689. }
  3690. else {
  3691. this.Adapter.InsertCommand.Parameters[9].Value = ((string)(Группа));
  3692. }
  3693. if ((Курс.HasValue == true)) {
  3694. this.Adapter.InsertCommand.Parameters[10].Value = ((int)(Курс.Value));
  3695. }
  3696. else {
  3697. this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value;
  3698. }
  3699. if ((Код_специальности.HasValue == true)) {
  3700. this.Adapter.InsertCommand.Parameters[11].Value = ((int)(Код_специальности.Value));
  3701. }
  3702. else {
  3703. this.Adapter.InsertCommand.Parameters[11].Value = global::System.DBNull.Value;
  3704. }
  3705. if ((Очная_форма_обучения.HasValue == true)) {
  3706. this.Adapter.InsertCommand.Parameters[12].Value = ((bool)(Очная_форма_обучения.Value));
  3707. }
  3708. else {
  3709. this.Adapter.InsertCommand.Parameters[12].Value = global::System.DBNull.Value;
  3710. }
  3711. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  3712. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3713. != global::System.Data.ConnectionState.Open)) {
  3714. this.Adapter.InsertCommand.Connection.Open();
  3715. }
  3716. try {
  3717. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  3718. return returnValue;
  3719. }
  3720. finally {
  3721. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3722. this.Adapter.InsertCommand.Connection.Close();
  3723. }
  3724. }
  3725. }
  3726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3728. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3729. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3730. public virtual int Update(
  3731. string ФИО,
  3732. string Пол,
  3733. global::System.Nullable<global::System.DateTime> Дата_рождения,
  3734. string Родители,
  3735. string Адрес,
  3736. string Телефон,
  3737. string Паспортные_данные,
  3738. global::System.Nullable<int> Номер_зачетки,
  3739. global::System.Nullable<global::System.DateTime> Дата_поступления,
  3740. string Группа,
  3741. global::System.Nullable<int> Курс,
  3742. global::System.Nullable<int> Код_специальности,
  3743. global::System.Nullable<bool> Очная_форма_обучения,
  3744. int Original_Код_студента,
  3745. string Original_ФИО,
  3746. string Original_Пол,
  3747. global::System.Nullable<global::System.DateTime> Original_Дата_рождения,
  3748. string Original_Родители,
  3749. string Original_Телефон,
  3750. global::System.Nullable<int> Original_Номер_зачетки,
  3751. global::System.Nullable<global::System.DateTime> Original_Дата_поступления,
  3752. string Original_Группа,
  3753. global::System.Nullable<int> Original_Курс,
  3754. global::System.Nullable<int> Original_Код_специальности,
  3755. global::System.Nullable<bool> Original_Очная_форма_обучения,
  3756. int Код_студента) {
  3757. if ((ФИО == null)) {
  3758. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  3759. }
  3760. else {
  3761. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(ФИО));
  3762. }
  3763. if ((Пол == null)) {
  3764. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  3765. }
  3766. else {
  3767. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Пол));
  3768. }
  3769. if ((Дата_рождения.HasValue == true)) {
  3770. this.Adapter.UpdateCommand.Parameters[2].Value = ((System.DateTime)(Дата_рождения.Value));
  3771. }
  3772. else {
  3773. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  3774. }
  3775. if ((Родители == null)) {
  3776. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  3777. }
  3778. else {
  3779. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Родители));
  3780. }
  3781. if ((Адрес == null)) {
  3782. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  3783. }
  3784. else {
  3785. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Адрес));
  3786. }
  3787. if ((Телефон == null)) {
  3788. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  3789. }
  3790. else {
  3791. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Телефон));
  3792. }
  3793. if ((Паспортные_данные == null)) {
  3794. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  3795. }
  3796. else {
  3797. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Паспортные_данные));
  3798. }
  3799. if ((Номер_зачетки.HasValue == true)) {
  3800. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Номер_зачетки.Value));
  3801. }
  3802. else {
  3803. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  3804. }
  3805. if ((Дата_поступления.HasValue == true)) {
  3806. this.Adapter.UpdateCommand.Parameters[8].Value = ((System.DateTime)(Дата_поступления.Value));
  3807. }
  3808. else {
  3809. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  3810. }
  3811. if ((Группа == null)) {
  3812. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  3813. }
  3814. else {
  3815. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Группа));
  3816. }
  3817. if ((Курс.HasValue == true)) {
  3818. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Курс.Value));
  3819. }
  3820. else {
  3821. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  3822. }
  3823. if ((Код_специальности.HasValue == true)) {
  3824. this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(Код_специальности.Value));
  3825. }
  3826. else {
  3827. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  3828. }
  3829. if ((Очная_форма_обучения.HasValue == true)) {
  3830. this.Adapter.UpdateCommand.Parameters[12].Value = ((bool)(Очная_форма_обучения.Value));
  3831. }
  3832. else {
  3833. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  3834. }
  3835. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Original_Код_студента));
  3836. if ((Original_ФИО == null)) {
  3837. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
  3838. this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
  3839. }
  3840. else {
  3841. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
  3842. this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_ФИО));
  3843. }
  3844. if ((Original_Пол == null)) {
  3845. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
  3846. this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
  3847. }
  3848. else {
  3849. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
  3850. this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_Пол));
  3851. }
  3852. if ((Original_Дата_рождения.HasValue == true)) {
  3853. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
  3854. this.Adapter.UpdateCommand.Parameters[19].Value = ((System.DateTime)(Original_Дата_рождения.Value));
  3855. }
  3856. else {
  3857. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
  3858. this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
  3859. }
  3860. if ((Original_Родители == null)) {
  3861. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
  3862. this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
  3863. }
  3864. else {
  3865. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
  3866. this.Adapter.UpdateCommand.Parameters[21].Value = ((string)(Original_Родители));
  3867. }
  3868. if ((Original_Телефон == null)) {
  3869. this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1));
  3870. this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value;
  3871. }
  3872. else {
  3873. this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0));
  3874. this.Adapter.UpdateCommand.Parameters[23].Value = ((string)(Original_Телефон));
  3875. }
  3876. if ((Original_Номер_зачетки.HasValue == true)) {
  3877. this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(0));
  3878. this.Adapter.UpdateCommand.Parameters[25].Value = ((int)(Original_Номер_зачетки.Value));
  3879. }
  3880. else {
  3881. this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(1));
  3882. this.Adapter.UpdateCommand.Parameters[25].Value = global::System.DBNull.Value;
  3883. }
  3884. if ((Original_Дата_поступления.HasValue == true)) {
  3885. this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(0));
  3886. this.Adapter.UpdateCommand.Parameters[27].Value = ((System.DateTime)(Original_Дата_поступления.Value));
  3887. }
  3888. else {
  3889. this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(1));
  3890. this.Adapter.UpdateCommand.Parameters[27].Value = global::System.DBNull.Value;
  3891. }
  3892. if ((Original_Группа == null)) {
  3893. this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(1));
  3894. this.Adapter.UpdateCommand.Parameters[29].Value = global::System.DBNull.Value;
  3895. }
  3896. else {
  3897. this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(0));
  3898. this.Adapter.UpdateCommand.Parameters[29].Value = ((string)(Original_Группа));
  3899. }
  3900. if ((Original_Курс.HasValue == true)) {
  3901. this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(0));
  3902. this.Adapter.UpdateCommand.Parameters[31].Value = ((int)(Original_Курс.Value));
  3903. }
  3904. else {
  3905. this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(1));
  3906. this.Adapter.UpdateCommand.Parameters[31].Value = global::System.DBNull.Value;
  3907. }
  3908. if ((Original_Код_специальности.HasValue == true)) {
  3909. this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(0));
  3910. this.Adapter.UpdateCommand.Parameters[33].Value = ((int)(Original_Код_специальности.Value));
  3911. }
  3912. else {
  3913. this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(1));
  3914. this.Adapter.UpdateCommand.Parameters[33].Value = global::System.DBNull.Value;
  3915. }
  3916. if ((Original_Очная_форма_обучения.HasValue == true)) {
  3917. this.Adapter.UpdateCommand.Parameters[34].Value = ((object)(0));
  3918. this.Adapter.UpdateCommand.Parameters[35].Value = ((bool)(Original_Очная_форма_обучения.Value));
  3919. }
  3920. else {
  3921. this.Adapter.UpdateCommand.Parameters[34].Value = ((object)(1));
  3922. this.Adapter.UpdateCommand.Parameters[35].Value = global::System.DBNull.Value;
  3923. }
  3924. this.Adapter.UpdateCommand.Parameters[36].Value = ((int)(Код_студента));
  3925. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  3926. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3927. != global::System.Data.ConnectionState.Open)) {
  3928. this.Adapter.UpdateCommand.Connection.Open();
  3929. }
  3930. try {
  3931. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  3932. return returnValue;
  3933. }
  3934. finally {
  3935. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3936. this.Adapter.UpdateCommand.Connection.Close();
  3937. }
  3938. }
  3939. }
  3940. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3941. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3942. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3943. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3944. public virtual int Update(
  3945. string ФИО,
  3946. string Пол,
  3947. global::System.Nullable<global::System.DateTime> Дата_рождения,
  3948. string Родители,
  3949. string Адрес,
  3950. string Телефон,
  3951. string Паспортные_данные,
  3952. global::System.Nullable<int> Номер_зачетки,
  3953. global::System.Nullable<global::System.DateTime> Дата_поступления,
  3954. string Группа,
  3955. global::System.Nullable<int> Курс,
  3956. global::System.Nullable<int> Код_специальности,
  3957. global::System.Nullable<bool> Очная_форма_обучения,
  3958. int Original_Код_студента,
  3959. string Original_ФИО,
  3960. string Original_Пол,
  3961. global::System.Nullable<global::System.DateTime> Original_Дата_рождения,
  3962. string Original_Родители,
  3963. string Original_Телефон,
  3964. global::System.Nullable<int> Original_Номер_зачетки,
  3965. global::System.Nullable<global::System.DateTime> Original_Дата_поступления,
  3966. string Original_Группа,
  3967. global::System.Nullable<int> Original_Курс,
  3968. global::System.Nullable<int> Original_Код_специальности,
  3969. global::System.Nullable<bool> Original_Очная_форма_обучения) {
  3970. return this.Update(ФИО, Пол, Дата_рождения, Родители, Адрес, Телефон, Паспортные_данные, Номер_зачетки, Дата_поступления, Группа, Курс, Код_специальности, Очная_форма_обучения, Original_Код_студента, Original_ФИО, Original_Пол, Original_Дата_рождения, Original_Родители, Original_Телефон, Original_Номер_зачетки, Original_Дата_поступления, Original_Группа, Original_Курс, Original_Код_специальности, Original_Очная_форма_обучения, Original_Код_студента);
  3971. }
  3972. }
  3973. /// <summary>
  3974. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  3975. ///</summary>
  3976. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3977. [global::System.ComponentModel.ToolboxItem(true)]
  3978. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  3979. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3980. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  3981. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  3982. private UpdateOrderOption _updateOrder;
  3983. private ОценкиTableAdapter _оценкиTableAdapter;
  3984. private ПредметыTableAdapter _предметыTableAdapter;
  3985. private СпециальностиTableAdapter _специальностиTableAdapter;
  3986. private СтудентыTableAdapter _студентыTableAdapter;
  3987. private bool _backupDataSetBeforeUpdate;
  3988. private global::System.Data.IDbConnection _connection;
  3989. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3990. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3991. public UpdateOrderOption UpdateOrder {
  3992. get {
  3993. return this._updateOrder;
  3994. }
  3995. set {
  3996. this._updateOrder = value;
  3997. }
  3998. }
  3999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4001. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  4002. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  4003. "a", "System.Drawing.Design.UITypeEditor")]
  4004. public ОценкиTableAdapter ОценкиTableAdapter {
  4005. get {
  4006. return this._оценкиTableAdapter;
  4007. }
  4008. set {
  4009. this._оценкиTableAdapter = value;
  4010. }
  4011. }
  4012. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4013. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4014. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  4015. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  4016. "a", "System.Drawing.Design.UITypeEditor")]
  4017. public ПредметыTableAdapter ПредметыTableAdapter {
  4018. get {
  4019. return this._предметыTableAdapter;
  4020. }
  4021. set {
  4022. this._предметыTableAdapter = value;
  4023. }
  4024. }
  4025. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4026. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4027. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  4028. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  4029. "a", "System.Drawing.Design.UITypeEditor")]
  4030. public СпециальностиTableAdapter СпециальностиTableAdapter {
  4031. get {
  4032. return this._специальностиTableAdapter;
  4033. }
  4034. set {
  4035. this._специальностиTableAdapter = value;
  4036. }
  4037. }
  4038. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4039. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4040. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  4041. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  4042. "a", "System.Drawing.Design.UITypeEditor")]
  4043. public СтудентыTableAdapter СтудентыTableAdapter {
  4044. get {
  4045. return this._студентыTableAdapter;
  4046. }
  4047. set {
  4048. this._студентыTableAdapter = value;
  4049. }
  4050. }
  4051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4053. public bool BackupDataSetBeforeUpdate {
  4054. get {
  4055. return this._backupDataSetBeforeUpdate;
  4056. }
  4057. set {
  4058. this._backupDataSetBeforeUpdate = value;
  4059. }
  4060. }
  4061. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4062. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4063. [global::System.ComponentModel.Browsable(false)]
  4064. public global::System.Data.IDbConnection Connection {
  4065. get {
  4066. if ((this._connection != null)) {
  4067. return this._connection;
  4068. }
  4069. if (((this._оценкиTableAdapter != null)
  4070. && (this._оценкиTableAdapter.Connection != null))) {
  4071. return this._оценкиTableAdapter.Connection;
  4072. }
  4073. if (((this._предметыTableAdapter != null)
  4074. && (this._предметыTableAdapter.Connection != null))) {
  4075. return this._предметыTableAdapter.Connection;
  4076. }
  4077. if (((this._специальностиTableAdapter != null)
  4078. && (this._специальностиTableAdapter.Connection != null))) {
  4079. return this._специальностиTableAdapter.Connection;
  4080. }
  4081. if (((this._студентыTableAdapter != null)
  4082. && (this._студентыTableAdapter.Connection != null))) {
  4083. return this._студентыTableAdapter.Connection;
  4084. }
  4085. return null;
  4086. }
  4087. set {
  4088. this._connection = value;
  4089. }
  4090. }
  4091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4093. [global::System.ComponentModel.Browsable(false)]
  4094. public int TableAdapterInstanceCount {
  4095. get {
  4096. int count = 0;
  4097. if ((this._оценкиTableAdapter != null)) {
  4098. count = (count + 1);
  4099. }
  4100. if ((this._предметыTableAdapter != null)) {
  4101. count = (count + 1);
  4102. }
  4103. if ((this._специальностиTableAdapter != null)) {
  4104. count = (count + 1);
  4105. }
  4106. if ((this._студентыTableAdapter != null)) {
  4107. count = (count + 1);
  4108. }
  4109. return count;
  4110. }
  4111. }
  4112. /// <summary>
  4113. ///Update rows in top-down order.
  4114. ///</summary>
  4115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4116. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4117. private int UpdateUpdatedRows(RP31DyakonovStudentsDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  4118. int result = 0;
  4119. if ((this._оценкиTableAdapter != null)) {
  4120. global::System.Data.DataRow[] updatedRows = dataSet.Оценки.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  4121. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  4122. if (((updatedRows != null)
  4123. && (0 < updatedRows.Length))) {
  4124. result = (result + this._оценкиTableAdapter.Update(updatedRows));
  4125. allChangedRows.AddRange(updatedRows);
  4126. }
  4127. }
  4128. if ((this._предметыTableAdapter != null)) {
  4129. global::System.Data.DataRow[] updatedRows = dataSet.Предметы.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  4130. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  4131. if (((updatedRows != null)
  4132. && (0 < updatedRows.Length))) {
  4133. result = (result + this._предметыTableAdapter.Update(updatedRows));
  4134. allChangedRows.AddRange(updatedRows);
  4135. }
  4136. }
  4137. if ((this._специальностиTableAdapter != null)) {
  4138. global::System.Data.DataRow[] updatedRows = dataSet.Специальности.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  4139. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  4140. if (((updatedRows != null)
  4141. && (0 < updatedRows.Length))) {
  4142. result = (result + this._специальностиTableAdapter.Update(updatedRows));
  4143. allChangedRows.AddRange(updatedRows);
  4144. }
  4145. }
  4146. if ((this._студентыTableAdapter != null)) {
  4147. global::System.Data.DataRow[] updatedRows = dataSet.Студенты.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  4148. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  4149. if (((updatedRows != null)
  4150. && (0 < updatedRows.Length))) {
  4151. result = (result + this._студентыTableAdapter.Update(updatedRows));
  4152. allChangedRows.AddRange(updatedRows);
  4153. }
  4154. }
  4155. return result;
  4156. }
  4157. /// <summary>
  4158. ///Insert rows in top-down order.
  4159. ///</summary>
  4160. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4161. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4162. private int UpdateInsertedRows(RP31DyakonovStudentsDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  4163. int result = 0;
  4164. if ((this._оценкиTableAdapter != null)) {
  4165. global::System.Data.DataRow[] addedRows = dataSet.Оценки.Select(null, null, global::System.Data.DataViewRowState.Added);
  4166. if (((addedRows != null)
  4167. && (0 < addedRows.Length))) {
  4168. result = (result + this._оценкиTableAdapter.Update(addedRows));
  4169. allAddedRows.AddRange(addedRows);
  4170. }
  4171. }
  4172. if ((this._предметыTableAdapter != null)) {
  4173. global::System.Data.DataRow[] addedRows = dataSet.Предметы.Select(null, null, global::System.Data.DataViewRowState.Added);
  4174. if (((addedRows != null)
  4175. && (0 < addedRows.Length))) {
  4176. result = (result + this._предметыTableAdapter.Update(addedRows));
  4177. allAddedRows.AddRange(addedRows);
  4178. }
  4179. }
  4180. if ((this._специальностиTableAdapter != null)) {
  4181. global::System.Data.DataRow[] addedRows = dataSet.Специальности.Select(null, null, global::System.Data.DataViewRowState.Added);
  4182. if (((addedRows != null)
  4183. && (0 < addedRows.Length))) {
  4184. result = (result + this._специальностиTableAdapter.Update(addedRows));
  4185. allAddedRows.AddRange(addedRows);
  4186. }
  4187. }
  4188. if ((this._студентыTableAdapter != null)) {
  4189. global::System.Data.DataRow[] addedRows = dataSet.Студенты.Select(null, null, global::System.Data.DataViewRowState.Added);
  4190. if (((addedRows != null)
  4191. && (0 < addedRows.Length))) {
  4192. result = (result + this._студентыTableAdapter.Update(addedRows));
  4193. allAddedRows.AddRange(addedRows);
  4194. }
  4195. }
  4196. return result;
  4197. }
  4198. /// <summary>
  4199. ///Delete rows in bottom-up order.
  4200. ///</summary>
  4201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4203. private int UpdateDeletedRows(RP31DyakonovStudentsDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  4204. int result = 0;
  4205. if ((this._студентыTableAdapter != null)) {
  4206. global::System.Data.DataRow[] deletedRows = dataSet.Студенты.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  4207. if (((deletedRows != null)
  4208. && (0 < deletedRows.Length))) {
  4209. result = (result + this._студентыTableAdapter.Update(deletedRows));
  4210. allChangedRows.AddRange(deletedRows);
  4211. }
  4212. }
  4213. if ((this._специальностиTableAdapter != null)) {
  4214. global::System.Data.DataRow[] deletedRows = dataSet.Специальности.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  4215. if (((deletedRows != null)
  4216. && (0 < deletedRows.Length))) {
  4217. result = (result + this._специальностиTableAdapter.Update(deletedRows));
  4218. allChangedRows.AddRange(deletedRows);
  4219. }
  4220. }
  4221. if ((this._предметыTableAdapter != null)) {
  4222. global::System.Data.DataRow[] deletedRows = dataSet.Предметы.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  4223. if (((deletedRows != null)
  4224. && (0 < deletedRows.Length))) {
  4225. result = (result + this._предметыTableAdapter.Update(deletedRows));
  4226. allChangedRows.AddRange(deletedRows);
  4227. }
  4228. }
  4229. if ((this._оценкиTableAdapter != null)) {
  4230. global::System.Data.DataRow[] deletedRows = dataSet.Оценки.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  4231. if (((deletedRows != null)
  4232. && (0 < deletedRows.Length))) {
  4233. result = (result + this._оценкиTableAdapter.Update(deletedRows));
  4234. allChangedRows.AddRange(deletedRows);
  4235. }
  4236. }
  4237. return result;
  4238. }
  4239. /// <summary>
  4240. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  4241. ///</summary>
  4242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4243. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4244. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  4245. if (((updatedRows == null)
  4246. || (updatedRows.Length < 1))) {
  4247. return updatedRows;
  4248. }
  4249. if (((allAddedRows == null)
  4250. || (allAddedRows.Count < 1))) {
  4251. return updatedRows;
  4252. }
  4253. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  4254. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  4255. global::System.Data.DataRow row = updatedRows[i];
  4256. if ((allAddedRows.Contains(row) == false)) {
  4257. realUpdatedRows.Add(row);
  4258. }
  4259. }
  4260. return realUpdatedRows.ToArray();
  4261. }
  4262. /// <summary>
  4263. ///Update all changes to the dataset.
  4264. ///</summary>
  4265. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4266. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4267. public virtual int UpdateAll(RP31DyakonovStudentsDataSet dataSet) {
  4268. if ((dataSet == null)) {
  4269. throw new global::System.ArgumentNullException("dataSet");
  4270. }
  4271. if ((dataSet.HasChanges() == false)) {
  4272. return 0;
  4273. }
  4274. if (((this._оценкиTableAdapter != null)
  4275. && (this.MatchTableAdapterConnection(this._оценкиTableAdapter.Connection) == false))) {
  4276. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  4277. "r, должны использовать одинаковую строку подключения.");
  4278. }
  4279. if (((this._предметыTableAdapter != null)
  4280. && (this.MatchTableAdapterConnection(this._предметыTableAdapter.Connection) == false))) {
  4281. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  4282. "r, должны использовать одинаковую строку подключения.");
  4283. }
  4284. if (((this._специальностиTableAdapter != null)
  4285. && (this.MatchTableAdapterConnection(this._специальностиTableAdapter.Connection) == false))) {
  4286. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  4287. "r, должны использовать одинаковую строку подключения.");
  4288. }
  4289. if (((this._студентыTableAdapter != null)
  4290. && (this.MatchTableAdapterConnection(this._студентыTableAdapter.Connection) == false))) {
  4291. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  4292. "r, должны использовать одинаковую строку подключения.");
  4293. }
  4294. global::System.Data.IDbConnection workConnection = this.Connection;
  4295. if ((workConnection == null)) {
  4296. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  4297. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  4298. }
  4299. bool workConnOpened = false;
  4300. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  4301. == global::System.Data.ConnectionState.Broken)) {
  4302. workConnection.Close();
  4303. }
  4304. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  4305. workConnection.Open();
  4306. workConnOpened = true;
  4307. }
  4308. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  4309. if ((workTransaction == null)) {
  4310. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  4311. "и или текущее состояние не позволяет начать транзакцию.");
  4312. }
  4313. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  4314. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  4315. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  4316. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  4317. int result = 0;
  4318. global::System.Data.DataSet backupDataSet = null;
  4319. if (this.BackupDataSetBeforeUpdate) {
  4320. backupDataSet = new global::System.Data.DataSet();
  4321. backupDataSet.Merge(dataSet);
  4322. }
  4323. try {
  4324. // ---- Prepare for update -----------
  4325. //
  4326. if ((this._оценкиTableAdapter != null)) {
  4327. revertConnections.Add(this._оценкиTableAdapter, this._оценкиTableAdapter.Connection);
  4328. this._оценкиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  4329. this._оценкиTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  4330. if (this._оценкиTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  4331. this._оценкиTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  4332. adaptersWithAcceptChangesDuringUpdate.Add(this._оценкиTableAdapter.Adapter);
  4333. }
  4334. }
  4335. if ((this._предметыTableAdapter != null)) {
  4336. revertConnections.Add(this._предметыTableAdapter, this._предметыTableAdapter.Connection);
  4337. this._предметыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  4338. this._предметыTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  4339. if (this._предметыTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  4340. this._предметыTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  4341. adaptersWithAcceptChangesDuringUpdate.Add(this._предметыTableAdapter.Adapter);
  4342. }
  4343. }
  4344. if ((this._специальностиTableAdapter != null)) {
  4345. revertConnections.Add(this._специальностиTableAdapter, this._специальностиTableAdapter.Connection);
  4346. this._специальностиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  4347. this._специальностиTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  4348. if (this._специальностиTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  4349. this._специальностиTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  4350. adaptersWithAcceptChangesDuringUpdate.Add(this._специальностиTableAdapter.Adapter);
  4351. }
  4352. }
  4353. if ((this._студентыTableAdapter != null)) {
  4354. revertConnections.Add(this._студентыTableAdapter, this._студентыTableAdapter.Connection);
  4355. this._студентыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  4356. this._студентыTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  4357. if (this._студентыTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  4358. this._студентыTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  4359. adaptersWithAcceptChangesDuringUpdate.Add(this._студентыTableAdapter.Adapter);
  4360. }
  4361. }
  4362. //
  4363. //---- Perform updates -----------
  4364. //
  4365. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  4366. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  4367. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  4368. }
  4369. else {
  4370. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  4371. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  4372. }
  4373. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  4374. //
  4375. //---- Commit updates -----------
  4376. //
  4377. workTransaction.Commit();
  4378. if ((0 < allAddedRows.Count)) {
  4379. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  4380. allAddedRows.CopyTo(rows);
  4381. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  4382. global::System.Data.DataRow row = rows[i];
  4383. row.AcceptChanges();
  4384. }
  4385. }
  4386. if ((0 < allChangedRows.Count)) {
  4387. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  4388. allChangedRows.CopyTo(rows);
  4389. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  4390. global::System.Data.DataRow row = rows[i];
  4391. row.AcceptChanges();
  4392. }
  4393. }
  4394. }
  4395. catch (global::System.Exception ex) {
  4396. workTransaction.Rollback();
  4397. // ---- Restore the dataset -----------
  4398. if (this.BackupDataSetBeforeUpdate) {
  4399. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  4400. dataSet.Clear();
  4401. dataSet.Merge(backupDataSet);
  4402. }
  4403. else {
  4404. if ((0 < allAddedRows.Count)) {
  4405. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  4406. allAddedRows.CopyTo(rows);
  4407. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  4408. global::System.Data.DataRow row = rows[i];
  4409. row.AcceptChanges();
  4410. row.SetAdded();
  4411. }
  4412. }
  4413. }
  4414. throw ex;
  4415. }
  4416. finally {
  4417. if (workConnOpened) {
  4418. workConnection.Close();
  4419. }
  4420. if ((this._оценкиTableAdapter != null)) {
  4421. this._оценкиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._оценкиTableAdapter]));
  4422. this._оценкиTableAdapter.Transaction = null;
  4423. }
  4424. if ((this._предметыTableAdapter != null)) {
  4425. this._предметыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._предметыTableAdapter]));
  4426. this._предметыTableAdapter.Transaction = null;
  4427. }
  4428. if ((this._специальностиTableAdapter != null)) {
  4429. this._специальностиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._специальностиTableAdapter]));
  4430. this._специальностиTableAdapter.Transaction = null;
  4431. }
  4432. if ((this._студентыTableAdapter != null)) {
  4433. this._студентыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._студентыTableAdapter]));
  4434. this._студентыTableAdapter.Transaction = null;
  4435. }
  4436. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  4437. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  4438. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  4439. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  4440. global::System.Data.Common.DataAdapter adapter = adapters[i];
  4441. adapter.AcceptChangesDuringUpdate = true;
  4442. }
  4443. }
  4444. }
  4445. return result;
  4446. }
  4447. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4448. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4449. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  4450. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  4451. }
  4452. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4453. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4454. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  4455. if ((this._connection != null)) {
  4456. return true;
  4457. }
  4458. if (((this.Connection == null)
  4459. || (inputConnection == null))) {
  4460. return true;
  4461. }
  4462. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  4463. return true;
  4464. }
  4465. return false;
  4466. }
  4467. /// <summary>
  4468. ///Update Order Option
  4469. ///</summary>
  4470. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4471. public enum UpdateOrderOption {
  4472. InsertUpdateDelete = 0,
  4473. UpdateInsertDelete = 1,
  4474. }
  4475. /// <summary>
  4476. ///Used to sort self-referenced table's rows
  4477. ///</summary>
  4478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4479. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  4480. private global::System.Data.DataRelation _relation;
  4481. private int _childFirst;
  4482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4484. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  4485. this._relation = relation;
  4486. if (childFirst) {
  4487. this._childFirst = -1;
  4488. }
  4489. else {
  4490. this._childFirst = 1;
  4491. }
  4492. }
  4493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4494. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4495. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  4496. global::System.Diagnostics.Debug.Assert((row != null));
  4497. global::System.Data.DataRow root = row;
  4498. distance = 0;
  4499. 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>();
  4500. traversedRows[row] = row;
  4501. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  4502. for (
  4503. ; ((parent != null)
  4504. && (traversedRows.ContainsKey(parent) == false));
  4505. ) {
  4506. distance = (distance + 1);
  4507. root = parent;
  4508. traversedRows[parent] = parent;
  4509. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  4510. }
  4511. if ((distance == 0)) {
  4512. traversedRows.Clear();
  4513. traversedRows[row] = row;
  4514. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  4515. for (
  4516. ; ((parent != null)
  4517. && (traversedRows.ContainsKey(parent) == false));
  4518. ) {
  4519. distance = (distance + 1);
  4520. root = parent;
  4521. traversedRows[parent] = parent;
  4522. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  4523. }
  4524. }
  4525. return root;
  4526. }
  4527. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4528. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4529. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  4530. if (object.ReferenceEquals(row1, row2)) {
  4531. return 0;
  4532. }
  4533. if ((row1 == null)) {
  4534. return -1;
  4535. }
  4536. if ((row2 == null)) {
  4537. return 1;
  4538. }
  4539. int distance1 = 0;
  4540. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  4541. int distance2 = 0;
  4542. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  4543. if (object.ReferenceEquals(root1, root2)) {
  4544. return (this._childFirst * distance1.CompareTo(distance2));
  4545. }
  4546. else {
  4547. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  4548. && (root2.Table != null)));
  4549. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  4550. return -1;
  4551. }
  4552. else {
  4553. return 1;
  4554. }
  4555. }
  4556. }
  4557. }
  4558. }
  4559. }
  4560. #pragma warning restore 1591