IS31NabievDataSet.Designer.cs 279 KB

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