IS31KiselevStudDataSet.Designer.cs 312 KB

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