BD_grishinaDataSet.Designer.cs 242 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace WindowsFormsAppGrishina {
  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("BD_grishinaDataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class BD_grishinaDataSet : global::System.Data.DataSet {
  22. private АвторизацияDataTable tableАвторизация;
  23. private ЛюдиDataTable tableЛюди;
  24. private СписокВакансийDataTable tableСписокВакансий;
  25. private СферыДеятельностиDataTable tableСферыДеятельности;
  26. private global::System.Data.DataRelation relationFK_Авторизация_Люди;
  27. private global::System.Data.DataRelation relationFK_СписокВакансий_СферыДеятельности;
  28. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  29. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  30. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  31. public BD_grishinaDataSet() {
  32. this.BeginInit();
  33. this.InitClass();
  34. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  35. base.Tables.CollectionChanged += schemaChangedHandler;
  36. base.Relations.CollectionChanged += schemaChangedHandler;
  37. this.EndInit();
  38. }
  39. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  40. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  41. protected BD_grishinaDataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  42. base(info, context, false) {
  43. if ((this.IsBinarySerialized(info, context) == true)) {
  44. this.InitVars(false);
  45. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  46. this.Tables.CollectionChanged += schemaChangedHandler1;
  47. this.Relations.CollectionChanged += schemaChangedHandler1;
  48. return;
  49. }
  50. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  51. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  52. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  53. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  54. if ((ds.Tables["Авторизация"] != null)) {
  55. base.Tables.Add(new АвторизацияDataTable(ds.Tables["Авторизация"]));
  56. }
  57. if ((ds.Tables["Люди"] != null)) {
  58. base.Tables.Add(new ЛюдиDataTable(ds.Tables["Люди"]));
  59. }
  60. if ((ds.Tables["СписокВакансий"] != null)) {
  61. base.Tables.Add(new СписокВакансийDataTable(ds.Tables["СписокВакансий"]));
  62. }
  63. if ((ds.Tables["СферыДеятельности"] != null)) {
  64. base.Tables.Add(new СферыДеятельностиDataTable(ds.Tables["СферыДеятельности"]));
  65. }
  66. this.DataSetName = ds.DataSetName;
  67. this.Prefix = ds.Prefix;
  68. this.Namespace = ds.Namespace;
  69. this.Locale = ds.Locale;
  70. this.CaseSensitive = ds.CaseSensitive;
  71. this.EnforceConstraints = ds.EnforceConstraints;
  72. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  73. this.InitVars();
  74. }
  75. else {
  76. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  77. }
  78. this.GetSerializationData(info, context);
  79. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  80. base.Tables.CollectionChanged += schemaChangedHandler;
  81. this.Relations.CollectionChanged += schemaChangedHandler;
  82. }
  83. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  84. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  85. [global::System.ComponentModel.Browsable(false)]
  86. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  87. public АвторизацияDataTable Авторизация {
  88. get {
  89. return this.tableАвторизация;
  90. }
  91. }
  92. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  93. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  94. [global::System.ComponentModel.Browsable(false)]
  95. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  96. public ЛюдиDataTable Люди {
  97. get {
  98. return this.tableЛюди;
  99. }
  100. }
  101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  102. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  103. [global::System.ComponentModel.Browsable(false)]
  104. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  105. public СписокВакансийDataTable СписокВакансий {
  106. get {
  107. return this.tableСписокВакансий;
  108. }
  109. }
  110. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  111. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  112. [global::System.ComponentModel.Browsable(false)]
  113. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  114. public СферыДеятельностиDataTable СферыДеятельности {
  115. get {
  116. return this.tableСферыДеятельности;
  117. }
  118. }
  119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  120. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  121. [global::System.ComponentModel.BrowsableAttribute(true)]
  122. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  123. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  124. get {
  125. return this._schemaSerializationMode;
  126. }
  127. set {
  128. this._schemaSerializationMode = value;
  129. }
  130. }
  131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  132. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  133. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  134. public new global::System.Data.DataTableCollection Tables {
  135. get {
  136. return base.Tables;
  137. }
  138. }
  139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  141. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  142. public new global::System.Data.DataRelationCollection Relations {
  143. get {
  144. return base.Relations;
  145. }
  146. }
  147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  149. protected override void InitializeDerivedDataSet() {
  150. this.BeginInit();
  151. this.InitClass();
  152. this.EndInit();
  153. }
  154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  155. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  156. public override global::System.Data.DataSet Clone() {
  157. BD_grishinaDataSet cln = ((BD_grishinaDataSet)(base.Clone()));
  158. cln.InitVars();
  159. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  160. return cln;
  161. }
  162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  163. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  164. protected override bool ShouldSerializeTables() {
  165. return false;
  166. }
  167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  169. protected override bool ShouldSerializeRelations() {
  170. return false;
  171. }
  172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  174. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  175. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  176. this.Reset();
  177. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  178. ds.ReadXml(reader);
  179. if ((ds.Tables["Авторизация"] != null)) {
  180. base.Tables.Add(new АвторизацияDataTable(ds.Tables["Авторизация"]));
  181. }
  182. if ((ds.Tables["Люди"] != null)) {
  183. base.Tables.Add(new ЛюдиDataTable(ds.Tables["Люди"]));
  184. }
  185. if ((ds.Tables["СписокВакансий"] != null)) {
  186. base.Tables.Add(new СписокВакансийDataTable(ds.Tables["СписокВакансий"]));
  187. }
  188. if ((ds.Tables["СферыДеятельности"] != null)) {
  189. base.Tables.Add(new СферыДеятельностиDataTable(ds.Tables["СферыДеятельности"]));
  190. }
  191. this.DataSetName = ds.DataSetName;
  192. this.Prefix = ds.Prefix;
  193. this.Namespace = ds.Namespace;
  194. this.Locale = ds.Locale;
  195. this.CaseSensitive = ds.CaseSensitive;
  196. this.EnforceConstraints = ds.EnforceConstraints;
  197. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  198. this.InitVars();
  199. }
  200. else {
  201. this.ReadXml(reader);
  202. this.InitVars();
  203. }
  204. }
  205. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  206. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  207. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  208. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  209. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  210. stream.Position = 0;
  211. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  212. }
  213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  214. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  215. internal void InitVars() {
  216. this.InitVars(true);
  217. }
  218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  219. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  220. internal void InitVars(bool initTable) {
  221. this.tableАвторизация = ((АвторизацияDataTable)(base.Tables["Авторизация"]));
  222. if ((initTable == true)) {
  223. if ((this.tableАвторизация != null)) {
  224. this.tableАвторизация.InitVars();
  225. }
  226. }
  227. this.tableЛюди = ((ЛюдиDataTable)(base.Tables["Люди"]));
  228. if ((initTable == true)) {
  229. if ((this.tableЛюди != null)) {
  230. this.tableЛюди.InitVars();
  231. }
  232. }
  233. this.tableСписокВакансий = ((СписокВакансийDataTable)(base.Tables["СписокВакансий"]));
  234. if ((initTable == true)) {
  235. if ((this.tableСписокВакансий != null)) {
  236. this.tableСписокВакансий.InitVars();
  237. }
  238. }
  239. this.tableСферыДеятельности = ((СферыДеятельностиDataTable)(base.Tables["СферыДеятельности"]));
  240. if ((initTable == true)) {
  241. if ((this.tableСферыДеятельности != null)) {
  242. this.tableСферыДеятельности.InitVars();
  243. }
  244. }
  245. this.relationFK_Авторизация_Люди = this.Relations["FK_Авторизация_Люди"];
  246. this.relationFK_СписокВакансий_СферыДеятельности = this.Relations["FK_СписокВакансий_СферыДеятельности"];
  247. }
  248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  249. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  250. private void InitClass() {
  251. this.DataSetName = "BD_grishinaDataSet";
  252. this.Prefix = "";
  253. this.Namespace = "http://tempuri.org/BD_grishinaDataSet.xsd";
  254. this.EnforceConstraints = true;
  255. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  256. this.tableАвторизация = new АвторизацияDataTable();
  257. base.Tables.Add(this.tableАвторизация);
  258. this.tableЛюди = new ЛюдиDataTable();
  259. base.Tables.Add(this.tableЛюди);
  260. this.tableСписокВакансий = new СписокВакансийDataTable();
  261. base.Tables.Add(this.tableСписокВакансий);
  262. this.tableСферыДеятельности = new СферыДеятельностиDataTable();
  263. base.Tables.Add(this.tableСферыДеятельности);
  264. this.relationFK_Авторизация_Люди = new global::System.Data.DataRelation("FK_Авторизация_Люди", new global::System.Data.DataColumn[] {
  265. this.tableЛюди.idColumn}, new global::System.Data.DataColumn[] {
  266. this.tableАвторизация.idColumn}, false);
  267. this.Relations.Add(this.relationFK_Авторизация_Люди);
  268. this.relationFK_СписокВакансий_СферыДеятельности = new global::System.Data.DataRelation("FK_СписокВакансий_СферыДеятельности", new global::System.Data.DataColumn[] {
  269. this.tableСферыДеятельности.Код_сферыColumn}, new global::System.Data.DataColumn[] {
  270. this.tableСписокВакансий.Код_сферыColumn}, false);
  271. this.Relations.Add(this.relationFK_СписокВакансий_СферыДеятельности);
  272. }
  273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  274. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  275. private bool ShouldSerializeАвторизация() {
  276. return false;
  277. }
  278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  279. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  280. private bool ShouldSerializeЛюди() {
  281. return false;
  282. }
  283. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  284. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  285. private bool ShouldSerializeСписокВакансий() {
  286. return false;
  287. }
  288. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  289. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  290. private bool ShouldSerializeСферыДеятельности() {
  291. return false;
  292. }
  293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  294. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  295. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  296. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  297. this.InitVars();
  298. }
  299. }
  300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  301. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  302. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  303. BD_grishinaDataSet ds = new BD_grishinaDataSet();
  304. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  305. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  306. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  307. any.Namespace = ds.Namespace;
  308. sequence.Items.Add(any);
  309. type.Particle = sequence;
  310. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  311. if (xs.Contains(dsSchema.TargetNamespace)) {
  312. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  313. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  314. try {
  315. global::System.Xml.Schema.XmlSchema schema = null;
  316. dsSchema.Write(s1);
  317. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  318. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  319. s2.SetLength(0);
  320. schema.Write(s2);
  321. if ((s1.Length == s2.Length)) {
  322. s1.Position = 0;
  323. s2.Position = 0;
  324. for (; ((s1.Position != s1.Length)
  325. && (s1.ReadByte() == s2.ReadByte())); ) {
  326. ;
  327. }
  328. if ((s1.Position == s1.Length)) {
  329. return type;
  330. }
  331. }
  332. }
  333. }
  334. finally {
  335. if ((s1 != null)) {
  336. s1.Close();
  337. }
  338. if ((s2 != null)) {
  339. s2.Close();
  340. }
  341. }
  342. }
  343. xs.Add(dsSchema);
  344. return type;
  345. }
  346. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  347. public delegate void АвторизацияRowChangeEventHandler(object sender, АвторизацияRowChangeEvent e);
  348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  349. public delegate void ЛюдиRowChangeEventHandler(object sender, ЛюдиRowChangeEvent e);
  350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  351. public delegate void СписокВакансийRowChangeEventHandler(object sender, СписокВакансийRowChangeEvent e);
  352. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  353. public delegate void СферыДеятельностиRowChangeEventHandler(object sender, СферыДеятельностиRowChangeEvent e);
  354. /// <summary>
  355. ///Represents the strongly named DataTable class.
  356. ///</summary>
  357. [global::System.Serializable()]
  358. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  359. public partial class АвторизацияDataTable : global::System.Data.TypedTableBase<АвторизацияRow> {
  360. private global::System.Data.DataColumn columnid;
  361. private global::System.Data.DataColumn columnПароль;
  362. private global::System.Data.DataColumn columnЛогин;
  363. private global::System.Data.DataColumn columnРоль;
  364. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  365. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  366. public АвторизацияDataTable() {
  367. this.TableName = "Авторизация";
  368. this.BeginInit();
  369. this.InitClass();
  370. this.EndInit();
  371. }
  372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  374. internal АвторизацияDataTable(global::System.Data.DataTable table) {
  375. this.TableName = table.TableName;
  376. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  377. this.CaseSensitive = table.CaseSensitive;
  378. }
  379. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  380. this.Locale = table.Locale;
  381. }
  382. if ((table.Namespace != table.DataSet.Namespace)) {
  383. this.Namespace = table.Namespace;
  384. }
  385. this.Prefix = table.Prefix;
  386. this.MinimumCapacity = table.MinimumCapacity;
  387. }
  388. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  389. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  390. protected АвторизацияDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  391. base(info, context) {
  392. this.InitVars();
  393. }
  394. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  395. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  396. public global::System.Data.DataColumn idColumn {
  397. get {
  398. return this.columnid;
  399. }
  400. }
  401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  402. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  403. public global::System.Data.DataColumn ПарольColumn {
  404. get {
  405. return this.columnПароль;
  406. }
  407. }
  408. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  409. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  410. public global::System.Data.DataColumn ЛогинColumn {
  411. get {
  412. return this.columnЛогин;
  413. }
  414. }
  415. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  416. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  417. public global::System.Data.DataColumn РольColumn {
  418. get {
  419. return this.columnРоль;
  420. }
  421. }
  422. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  423. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  424. [global::System.ComponentModel.Browsable(false)]
  425. public int Count {
  426. get {
  427. return this.Rows.Count;
  428. }
  429. }
  430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  431. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  432. public АвторизацияRow this[int index] {
  433. get {
  434. return ((АвторизацияRow)(this.Rows[index]));
  435. }
  436. }
  437. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  438. public event АвторизацияRowChangeEventHandler АвторизацияRowChanging;
  439. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  440. public event АвторизацияRowChangeEventHandler АвторизацияRowChanged;
  441. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  442. public event АвторизацияRowChangeEventHandler АвторизацияRowDeleting;
  443. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  444. public event АвторизацияRowChangeEventHandler АвторизацияRowDeleted;
  445. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  446. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  447. public void AddАвторизацияRow(АвторизацияRow row) {
  448. this.Rows.Add(row);
  449. }
  450. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  451. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  452. public АвторизацияRow AddАвторизацияRow(ЛюдиRow parentЛюдиRowByFK_Авторизация_Люди, string Пароль, string Логин, string Роль) {
  453. АвторизацияRow rowАвторизацияRow = ((АвторизацияRow)(this.NewRow()));
  454. object[] columnValuesArray = new object[] {
  455. null,
  456. Пароль,
  457. Логин,
  458. Роль};
  459. if ((parentЛюдиRowByFK_Авторизация_Люди != null)) {
  460. columnValuesArray[0] = parentЛюдиRowByFK_Авторизация_Люди[0];
  461. }
  462. rowАвторизацияRow.ItemArray = columnValuesArray;
  463. this.Rows.Add(rowАвторизацияRow);
  464. return rowАвторизацияRow;
  465. }
  466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  468. public override global::System.Data.DataTable Clone() {
  469. АвторизацияDataTable cln = ((АвторизацияDataTable)(base.Clone()));
  470. cln.InitVars();
  471. return cln;
  472. }
  473. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  474. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  475. protected override global::System.Data.DataTable CreateInstance() {
  476. return new АвторизацияDataTable();
  477. }
  478. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  479. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  480. internal void InitVars() {
  481. this.columnid = base.Columns["id"];
  482. this.columnПароль = base.Columns["Пароль"];
  483. this.columnЛогин = base.Columns["Логин"];
  484. this.columnРоль = base.Columns["Роль"];
  485. }
  486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  488. private void InitClass() {
  489. this.columnid = new global::System.Data.DataColumn("id", typeof(int), null, global::System.Data.MappingType.Element);
  490. base.Columns.Add(this.columnid);
  491. this.columnПароль = new global::System.Data.DataColumn("Пароль", typeof(string), null, global::System.Data.MappingType.Element);
  492. base.Columns.Add(this.columnПароль);
  493. this.columnЛогин = new global::System.Data.DataColumn("Логин", typeof(string), null, global::System.Data.MappingType.Element);
  494. base.Columns.Add(this.columnЛогин);
  495. this.columnРоль = new global::System.Data.DataColumn("Роль", typeof(string), null, global::System.Data.MappingType.Element);
  496. base.Columns.Add(this.columnРоль);
  497. this.columnПароль.MaxLength = 2147483647;
  498. this.columnЛогин.MaxLength = 2147483647;
  499. this.columnРоль.MaxLength = 2147483647;
  500. }
  501. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  502. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  503. public АвторизацияRow NewАвторизацияRow() {
  504. return ((АвторизацияRow)(this.NewRow()));
  505. }
  506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  508. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  509. return new АвторизацияRow(builder);
  510. }
  511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  512. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  513. protected override global::System.Type GetRowType() {
  514. return typeof(АвторизацияRow);
  515. }
  516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  517. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  518. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  519. base.OnRowChanged(e);
  520. if ((this.АвторизацияRowChanged != null)) {
  521. this.АвторизацияRowChanged(this, new АвторизацияRowChangeEvent(((АвторизацияRow)(e.Row)), e.Action));
  522. }
  523. }
  524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  525. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  526. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  527. base.OnRowChanging(e);
  528. if ((this.АвторизацияRowChanging != null)) {
  529. this.АвторизацияRowChanging(this, new АвторизацияRowChangeEvent(((АвторизацияRow)(e.Row)), e.Action));
  530. }
  531. }
  532. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  533. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  534. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  535. base.OnRowDeleted(e);
  536. if ((this.АвторизацияRowDeleted != null)) {
  537. this.АвторизацияRowDeleted(this, new АвторизацияRowChangeEvent(((АвторизацияRow)(e.Row)), e.Action));
  538. }
  539. }
  540. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  541. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  542. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  543. base.OnRowDeleting(e);
  544. if ((this.АвторизацияRowDeleting != null)) {
  545. this.АвторизацияRowDeleting(this, new АвторизацияRowChangeEvent(((АвторизацияRow)(e.Row)), e.Action));
  546. }
  547. }
  548. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  549. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  550. public void RemoveАвторизацияRow(АвторизацияRow row) {
  551. this.Rows.Remove(row);
  552. }
  553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  555. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  556. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  557. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  558. BD_grishinaDataSet ds = new BD_grishinaDataSet();
  559. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  560. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  561. any1.MinOccurs = new decimal(0);
  562. any1.MaxOccurs = decimal.MaxValue;
  563. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  564. sequence.Items.Add(any1);
  565. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  566. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  567. any2.MinOccurs = new decimal(1);
  568. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  569. sequence.Items.Add(any2);
  570. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  571. attribute1.Name = "namespace";
  572. attribute1.FixedValue = ds.Namespace;
  573. type.Attributes.Add(attribute1);
  574. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  575. attribute2.Name = "tableTypeName";
  576. attribute2.FixedValue = "АвторизацияDataTable";
  577. type.Attributes.Add(attribute2);
  578. type.Particle = sequence;
  579. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  580. if (xs.Contains(dsSchema.TargetNamespace)) {
  581. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  582. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  583. try {
  584. global::System.Xml.Schema.XmlSchema schema = null;
  585. dsSchema.Write(s1);
  586. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  587. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  588. s2.SetLength(0);
  589. schema.Write(s2);
  590. if ((s1.Length == s2.Length)) {
  591. s1.Position = 0;
  592. s2.Position = 0;
  593. for (; ((s1.Position != s1.Length)
  594. && (s1.ReadByte() == s2.ReadByte())); ) {
  595. ;
  596. }
  597. if ((s1.Position == s1.Length)) {
  598. return type;
  599. }
  600. }
  601. }
  602. }
  603. finally {
  604. if ((s1 != null)) {
  605. s1.Close();
  606. }
  607. if ((s2 != null)) {
  608. s2.Close();
  609. }
  610. }
  611. }
  612. xs.Add(dsSchema);
  613. return type;
  614. }
  615. }
  616. /// <summary>
  617. ///Represents the strongly named DataTable class.
  618. ///</summary>
  619. [global::System.Serializable()]
  620. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  621. public partial class ЛюдиDataTable : global::System.Data.TypedTableBase<ЛюдиRow> {
  622. private global::System.Data.DataColumn columnid;
  623. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  625. public ЛюдиDataTable() {
  626. this.TableName = "Люди";
  627. this.BeginInit();
  628. this.InitClass();
  629. this.EndInit();
  630. }
  631. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  632. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  633. internal ЛюдиDataTable(global::System.Data.DataTable table) {
  634. this.TableName = table.TableName;
  635. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  636. this.CaseSensitive = table.CaseSensitive;
  637. }
  638. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  639. this.Locale = table.Locale;
  640. }
  641. if ((table.Namespace != table.DataSet.Namespace)) {
  642. this.Namespace = table.Namespace;
  643. }
  644. this.Prefix = table.Prefix;
  645. this.MinimumCapacity = table.MinimumCapacity;
  646. }
  647. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  648. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  649. protected ЛюдиDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  650. base(info, context) {
  651. this.InitVars();
  652. }
  653. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  654. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  655. public global::System.Data.DataColumn idColumn {
  656. get {
  657. return this.columnid;
  658. }
  659. }
  660. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  661. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  662. [global::System.ComponentModel.Browsable(false)]
  663. public int Count {
  664. get {
  665. return this.Rows.Count;
  666. }
  667. }
  668. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  669. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  670. public ЛюдиRow this[int index] {
  671. get {
  672. return ((ЛюдиRow)(this.Rows[index]));
  673. }
  674. }
  675. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  676. public event ЛюдиRowChangeEventHandler ЛюдиRowChanging;
  677. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  678. public event ЛюдиRowChangeEventHandler ЛюдиRowChanged;
  679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  680. public event ЛюдиRowChangeEventHandler ЛюдиRowDeleting;
  681. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  682. public event ЛюдиRowChangeEventHandler ЛюдиRowDeleted;
  683. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  684. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  685. public void AddЛюдиRow(ЛюдиRow row) {
  686. this.Rows.Add(row);
  687. }
  688. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  689. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  690. public ЛюдиRow AddЛюдиRow(int id) {
  691. ЛюдиRow rowЛюдиRow = ((ЛюдиRow)(this.NewRow()));
  692. object[] columnValuesArray = new object[] {
  693. id};
  694. rowЛюдиRow.ItemArray = columnValuesArray;
  695. this.Rows.Add(rowЛюдиRow);
  696. return rowЛюдиRow;
  697. }
  698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  699. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  700. public ЛюдиRow FindByid(int id) {
  701. return ((ЛюдиRow)(this.Rows.Find(new object[] {
  702. id})));
  703. }
  704. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  705. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  706. public override global::System.Data.DataTable Clone() {
  707. ЛюдиDataTable cln = ((ЛюдиDataTable)(base.Clone()));
  708. cln.InitVars();
  709. return cln;
  710. }
  711. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  712. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  713. protected override global::System.Data.DataTable CreateInstance() {
  714. return new ЛюдиDataTable();
  715. }
  716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  717. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  718. internal void InitVars() {
  719. this.columnid = base.Columns["id"];
  720. }
  721. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  722. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  723. private void InitClass() {
  724. this.columnid = new global::System.Data.DataColumn("id", typeof(int), null, global::System.Data.MappingType.Element);
  725. base.Columns.Add(this.columnid);
  726. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  727. this.columnid}, true));
  728. this.columnid.AllowDBNull = false;
  729. this.columnid.Unique = true;
  730. }
  731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  732. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  733. public ЛюдиRow NewЛюдиRow() {
  734. return ((ЛюдиRow)(this.NewRow()));
  735. }
  736. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  737. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  738. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  739. return new ЛюдиRow(builder);
  740. }
  741. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  742. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  743. protected override global::System.Type GetRowType() {
  744. return typeof(ЛюдиRow);
  745. }
  746. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  747. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  748. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  749. base.OnRowChanged(e);
  750. if ((this.ЛюдиRowChanged != null)) {
  751. this.ЛюдиRowChanged(this, new ЛюдиRowChangeEvent(((ЛюдиRow)(e.Row)), e.Action));
  752. }
  753. }
  754. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  755. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  756. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  757. base.OnRowChanging(e);
  758. if ((this.ЛюдиRowChanging != null)) {
  759. this.ЛюдиRowChanging(this, new ЛюдиRowChangeEvent(((ЛюдиRow)(e.Row)), e.Action));
  760. }
  761. }
  762. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  763. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  764. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  765. base.OnRowDeleted(e);
  766. if ((this.ЛюдиRowDeleted != null)) {
  767. this.ЛюдиRowDeleted(this, new ЛюдиRowChangeEvent(((ЛюдиRow)(e.Row)), e.Action));
  768. }
  769. }
  770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  771. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  772. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  773. base.OnRowDeleting(e);
  774. if ((this.ЛюдиRowDeleting != null)) {
  775. this.ЛюдиRowDeleting(this, new ЛюдиRowChangeEvent(((ЛюдиRow)(e.Row)), e.Action));
  776. }
  777. }
  778. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  779. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  780. public void RemoveЛюдиRow(ЛюдиRow row) {
  781. this.Rows.Remove(row);
  782. }
  783. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  784. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  785. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  786. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  787. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  788. BD_grishinaDataSet ds = new BD_grishinaDataSet();
  789. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  790. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  791. any1.MinOccurs = new decimal(0);
  792. any1.MaxOccurs = decimal.MaxValue;
  793. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  794. sequence.Items.Add(any1);
  795. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  796. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  797. any2.MinOccurs = new decimal(1);
  798. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  799. sequence.Items.Add(any2);
  800. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  801. attribute1.Name = "namespace";
  802. attribute1.FixedValue = ds.Namespace;
  803. type.Attributes.Add(attribute1);
  804. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  805. attribute2.Name = "tableTypeName";
  806. attribute2.FixedValue = "ЛюдиDataTable";
  807. type.Attributes.Add(attribute2);
  808. type.Particle = sequence;
  809. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  810. if (xs.Contains(dsSchema.TargetNamespace)) {
  811. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  812. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  813. try {
  814. global::System.Xml.Schema.XmlSchema schema = null;
  815. dsSchema.Write(s1);
  816. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  817. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  818. s2.SetLength(0);
  819. schema.Write(s2);
  820. if ((s1.Length == s2.Length)) {
  821. s1.Position = 0;
  822. s2.Position = 0;
  823. for (; ((s1.Position != s1.Length)
  824. && (s1.ReadByte() == s2.ReadByte())); ) {
  825. ;
  826. }
  827. if ((s1.Position == s1.Length)) {
  828. return type;
  829. }
  830. }
  831. }
  832. }
  833. finally {
  834. if ((s1 != null)) {
  835. s1.Close();
  836. }
  837. if ((s2 != null)) {
  838. s2.Close();
  839. }
  840. }
  841. }
  842. xs.Add(dsSchema);
  843. return type;
  844. }
  845. }
  846. /// <summary>
  847. ///Represents the strongly named DataTable class.
  848. ///</summary>
  849. [global::System.Serializable()]
  850. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  851. public partial class СписокВакансийDataTable : global::System.Data.TypedTableBase<СписокВакансийRow> {
  852. private global::System.Data.DataColumn columnКод_сферы;
  853. private global::System.Data.DataColumn columnДолжность;
  854. private global::System.Data.DataColumn columnОклад;
  855. private global::System.Data.DataColumn columnТребования_к_соискателю;
  856. private global::System.Data.DataColumn columnРаботодатель;
  857. private global::System.Data.DataColumn columnКонтактный_номер;
  858. private global::System.Data.DataColumn columnКод_вакансии;
  859. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  860. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  861. public СписокВакансийDataTable() {
  862. this.TableName = "СписокВакансий";
  863. this.BeginInit();
  864. this.InitClass();
  865. this.EndInit();
  866. }
  867. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  868. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  869. internal СписокВакансийDataTable(global::System.Data.DataTable table) {
  870. this.TableName = table.TableName;
  871. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  872. this.CaseSensitive = table.CaseSensitive;
  873. }
  874. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  875. this.Locale = table.Locale;
  876. }
  877. if ((table.Namespace != table.DataSet.Namespace)) {
  878. this.Namespace = table.Namespace;
  879. }
  880. this.Prefix = table.Prefix;
  881. this.MinimumCapacity = table.MinimumCapacity;
  882. }
  883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  884. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  885. protected СписокВакансийDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  886. base(info, context) {
  887. this.InitVars();
  888. }
  889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  890. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  891. public global::System.Data.DataColumn Код_сферыColumn {
  892. get {
  893. return this.columnКод_сферы;
  894. }
  895. }
  896. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  897. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  898. public global::System.Data.DataColumn ДолжностьColumn {
  899. get {
  900. return this.columnДолжность;
  901. }
  902. }
  903. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  904. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  905. public global::System.Data.DataColumn ОкладColumn {
  906. get {
  907. return this.columnОклад;
  908. }
  909. }
  910. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  911. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  912. public global::System.Data.DataColumn Требования_к_соискателюColumn {
  913. get {
  914. return this.columnТребования_к_соискателю;
  915. }
  916. }
  917. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  918. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  919. public global::System.Data.DataColumn РаботодательColumn {
  920. get {
  921. return this.columnРаботодатель;
  922. }
  923. }
  924. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  925. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  926. public global::System.Data.DataColumn Контактный_номерColumn {
  927. get {
  928. return this.columnКонтактный_номер;
  929. }
  930. }
  931. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  932. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  933. public global::System.Data.DataColumn Код_вакансииColumn {
  934. get {
  935. return this.columnКод_вакансии;
  936. }
  937. }
  938. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  939. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  940. [global::System.ComponentModel.Browsable(false)]
  941. public int Count {
  942. get {
  943. return this.Rows.Count;
  944. }
  945. }
  946. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  947. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  948. public СписокВакансийRow this[int index] {
  949. get {
  950. return ((СписокВакансийRow)(this.Rows[index]));
  951. }
  952. }
  953. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  954. public event СписокВакансийRowChangeEventHandler СписокВакансийRowChanging;
  955. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  956. public event СписокВакансийRowChangeEventHandler СписокВакансийRowChanged;
  957. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  958. public event СписокВакансийRowChangeEventHandler СписокВакансийRowDeleting;
  959. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  960. public event СписокВакансийRowChangeEventHandler СписокВакансийRowDeleted;
  961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  962. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  963. public void AddСписокВакансийRow(СписокВакансийRow row) {
  964. this.Rows.Add(row);
  965. }
  966. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  967. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  968. public СписокВакансийRow AddСписокВакансийRow(СферыДеятельностиRow parentСферыДеятельностиRowByFK_СписокВакансий_СферыДеятельности, string Должность, decimal Оклад, string Требования_к_соискателю, string Работодатель, string Контактный_номер, int Код_вакансии) {
  969. СписокВакансийRow rowСписокВакансийRow = ((СписокВакансийRow)(this.NewRow()));
  970. object[] columnValuesArray = new object[] {
  971. null,
  972. Должность,
  973. Оклад,
  974. Требования_к_соискателю,
  975. Работодатель,
  976. Контактный_номер,
  977. Код_вакансии};
  978. if ((parentСферыДеятельностиRowByFK_СписокВакансий_СферыДеятельности != null)) {
  979. columnValuesArray[0] = parentСферыДеятельностиRowByFK_СписокВакансий_СферыДеятельности[0];
  980. }
  981. rowСписокВакансийRow.ItemArray = columnValuesArray;
  982. this.Rows.Add(rowСписокВакансийRow);
  983. return rowСписокВакансийRow;
  984. }
  985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  986. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  987. public СписокВакансийRow FindByКод_вакансии(int Код_вакансии) {
  988. return ((СписокВакансийRow)(this.Rows.Find(new object[] {
  989. Код_вакансии})));
  990. }
  991. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  992. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  993. public override global::System.Data.DataTable Clone() {
  994. СписокВакансийDataTable cln = ((СписокВакансийDataTable)(base.Clone()));
  995. cln.InitVars();
  996. return cln;
  997. }
  998. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  999. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1000. protected override global::System.Data.DataTable CreateInstance() {
  1001. return new СписокВакансийDataTable();
  1002. }
  1003. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1004. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1005. internal void InitVars() {
  1006. this.columnКод_сферы = base.Columns["Код_сферы"];
  1007. this.columnДолжность = base.Columns["Должность"];
  1008. this.columnОклад = base.Columns["Оклад"];
  1009. this.columnТребования_к_соискателю = base.Columns["Требования_к_соискателю"];
  1010. this.columnРаботодатель = base.Columns["Работодатель"];
  1011. this.columnКонтактный_номер = base.Columns["Контактный_номер"];
  1012. this.columnКод_вакансии = base.Columns["Код_вакансии"];
  1013. }
  1014. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1015. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1016. private void InitClass() {
  1017. this.columnКод_сферы = new global::System.Data.DataColumn("Код_сферы", typeof(int), null, global::System.Data.MappingType.Element);
  1018. base.Columns.Add(this.columnКод_сферы);
  1019. this.columnДолжность = new global::System.Data.DataColumn("Должность", typeof(string), null, global::System.Data.MappingType.Element);
  1020. base.Columns.Add(this.columnДолжность);
  1021. this.columnОклад = new global::System.Data.DataColumn("Оклад", typeof(decimal), null, global::System.Data.MappingType.Element);
  1022. base.Columns.Add(this.columnОклад);
  1023. this.columnТребования_к_соискателю = new global::System.Data.DataColumn("Требования_к_соискателю", typeof(string), null, global::System.Data.MappingType.Element);
  1024. base.Columns.Add(this.columnТребования_к_соискателю);
  1025. this.columnРаботодатель = new global::System.Data.DataColumn("Работодатель", typeof(string), null, global::System.Data.MappingType.Element);
  1026. base.Columns.Add(this.columnРаботодатель);
  1027. this.columnКонтактный_номер = new global::System.Data.DataColumn("Контактный_номер", typeof(string), null, global::System.Data.MappingType.Element);
  1028. base.Columns.Add(this.columnКонтактный_номер);
  1029. this.columnКод_вакансии = new global::System.Data.DataColumn("Код_вакансии", typeof(int), null, global::System.Data.MappingType.Element);
  1030. base.Columns.Add(this.columnКод_вакансии);
  1031. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1032. this.columnКод_вакансии}, true));
  1033. this.columnКод_сферы.AllowDBNull = false;
  1034. this.columnДолжность.MaxLength = 2147483647;
  1035. this.columnТребования_к_соискателю.MaxLength = 2147483647;
  1036. this.columnРаботодатель.MaxLength = 2147483647;
  1037. this.columnКонтактный_номер.MaxLength = 2147483647;
  1038. this.columnКод_вакансии.AllowDBNull = false;
  1039. this.columnКод_вакансии.Unique = true;
  1040. }
  1041. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1042. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1043. public СписокВакансийRow NewСписокВакансийRow() {
  1044. return ((СписокВакансийRow)(this.NewRow()));
  1045. }
  1046. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1047. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1048. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1049. return new СписокВакансийRow(builder);
  1050. }
  1051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1053. protected override global::System.Type GetRowType() {
  1054. return typeof(СписокВакансийRow);
  1055. }
  1056. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1057. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1058. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1059. base.OnRowChanged(e);
  1060. if ((this.СписокВакансийRowChanged != null)) {
  1061. this.СписокВакансийRowChanged(this, new СписокВакансийRowChangeEvent(((СписокВакансийRow)(e.Row)), e.Action));
  1062. }
  1063. }
  1064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1065. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1066. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1067. base.OnRowChanging(e);
  1068. if ((this.СписокВакансийRowChanging != null)) {
  1069. this.СписокВакансийRowChanging(this, new СписокВакансийRowChangeEvent(((СписокВакансийRow)(e.Row)), e.Action));
  1070. }
  1071. }
  1072. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1073. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1074. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1075. base.OnRowDeleted(e);
  1076. if ((this.СписокВакансийRowDeleted != null)) {
  1077. this.СписокВакансийRowDeleted(this, new СписокВакансийRowChangeEvent(((СписокВакансийRow)(e.Row)), e.Action));
  1078. }
  1079. }
  1080. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1081. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1082. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1083. base.OnRowDeleting(e);
  1084. if ((this.СписокВакансийRowDeleting != null)) {
  1085. this.СписокВакансийRowDeleting(this, new СписокВакансийRowChangeEvent(((СписокВакансийRow)(e.Row)), e.Action));
  1086. }
  1087. }
  1088. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1089. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1090. public void RemoveСписокВакансийRow(СписокВакансийRow row) {
  1091. this.Rows.Remove(row);
  1092. }
  1093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1094. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1095. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1096. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1097. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1098. BD_grishinaDataSet ds = new BD_grishinaDataSet();
  1099. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1100. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1101. any1.MinOccurs = new decimal(0);
  1102. any1.MaxOccurs = decimal.MaxValue;
  1103. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1104. sequence.Items.Add(any1);
  1105. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1106. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1107. any2.MinOccurs = new decimal(1);
  1108. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1109. sequence.Items.Add(any2);
  1110. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1111. attribute1.Name = "namespace";
  1112. attribute1.FixedValue = ds.Namespace;
  1113. type.Attributes.Add(attribute1);
  1114. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1115. attribute2.Name = "tableTypeName";
  1116. attribute2.FixedValue = "СписокВакансийDataTable";
  1117. type.Attributes.Add(attribute2);
  1118. type.Particle = sequence;
  1119. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1120. if (xs.Contains(dsSchema.TargetNamespace)) {
  1121. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1122. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1123. try {
  1124. global::System.Xml.Schema.XmlSchema schema = null;
  1125. dsSchema.Write(s1);
  1126. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1127. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1128. s2.SetLength(0);
  1129. schema.Write(s2);
  1130. if ((s1.Length == s2.Length)) {
  1131. s1.Position = 0;
  1132. s2.Position = 0;
  1133. for (; ((s1.Position != s1.Length)
  1134. && (s1.ReadByte() == s2.ReadByte())); ) {
  1135. ;
  1136. }
  1137. if ((s1.Position == s1.Length)) {
  1138. return type;
  1139. }
  1140. }
  1141. }
  1142. }
  1143. finally {
  1144. if ((s1 != null)) {
  1145. s1.Close();
  1146. }
  1147. if ((s2 != null)) {
  1148. s2.Close();
  1149. }
  1150. }
  1151. }
  1152. xs.Add(dsSchema);
  1153. return type;
  1154. }
  1155. }
  1156. /// <summary>
  1157. ///Represents the strongly named DataTable class.
  1158. ///</summary>
  1159. [global::System.Serializable()]
  1160. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1161. public partial class СферыДеятельностиDataTable : global::System.Data.TypedTableBase<СферыДеятельностиRow> {
  1162. private global::System.Data.DataColumn columnКод_сферы;
  1163. private global::System.Data.DataColumn columnСфера_деятельности;
  1164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1165. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1166. public СферыДеятельностиDataTable() {
  1167. this.TableName = "СферыДеятельности";
  1168. this.BeginInit();
  1169. this.InitClass();
  1170. this.EndInit();
  1171. }
  1172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1174. internal СферыДеятельностиDataTable(global::System.Data.DataTable table) {
  1175. this.TableName = table.TableName;
  1176. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1177. this.CaseSensitive = table.CaseSensitive;
  1178. }
  1179. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1180. this.Locale = table.Locale;
  1181. }
  1182. if ((table.Namespace != table.DataSet.Namespace)) {
  1183. this.Namespace = table.Namespace;
  1184. }
  1185. this.Prefix = table.Prefix;
  1186. this.MinimumCapacity = table.MinimumCapacity;
  1187. }
  1188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1190. protected СферыДеятельностиDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1191. base(info, context) {
  1192. this.InitVars();
  1193. }
  1194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1196. public global::System.Data.DataColumn Код_сферыColumn {
  1197. get {
  1198. return this.columnКод_сферы;
  1199. }
  1200. }
  1201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1203. public global::System.Data.DataColumn Сфера_деятельностиColumn {
  1204. get {
  1205. return this.columnСфера_деятельности;
  1206. }
  1207. }
  1208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1209. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1210. [global::System.ComponentModel.Browsable(false)]
  1211. public int Count {
  1212. get {
  1213. return this.Rows.Count;
  1214. }
  1215. }
  1216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1218. public СферыДеятельностиRow this[int index] {
  1219. get {
  1220. return ((СферыДеятельностиRow)(this.Rows[index]));
  1221. }
  1222. }
  1223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1224. public event СферыДеятельностиRowChangeEventHandler СферыДеятельностиRowChanging;
  1225. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1226. public event СферыДеятельностиRowChangeEventHandler СферыДеятельностиRowChanged;
  1227. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1228. public event СферыДеятельностиRowChangeEventHandler СферыДеятельностиRowDeleting;
  1229. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1230. public event СферыДеятельностиRowChangeEventHandler СферыДеятельностиRowDeleted;
  1231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1233. public void AddСферыДеятельностиRow(СферыДеятельностиRow row) {
  1234. this.Rows.Add(row);
  1235. }
  1236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1237. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1238. public СферыДеятельностиRow AddСферыДеятельностиRow(int Код_сферы, string Сфера_деятельности) {
  1239. СферыДеятельностиRow rowСферыДеятельностиRow = ((СферыДеятельностиRow)(this.NewRow()));
  1240. object[] columnValuesArray = new object[] {
  1241. Код_сферы,
  1242. Сфера_деятельности};
  1243. rowСферыДеятельностиRow.ItemArray = columnValuesArray;
  1244. this.Rows.Add(rowСферыДеятельностиRow);
  1245. return rowСферыДеятельностиRow;
  1246. }
  1247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1249. public СферыДеятельностиRow FindByКод_сферы(int Код_сферы) {
  1250. return ((СферыДеятельностиRow)(this.Rows.Find(new object[] {
  1251. Код_сферы})));
  1252. }
  1253. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1254. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1255. public override global::System.Data.DataTable Clone() {
  1256. СферыДеятельностиDataTable cln = ((СферыДеятельностиDataTable)(base.Clone()));
  1257. cln.InitVars();
  1258. return cln;
  1259. }
  1260. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1261. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1262. protected override global::System.Data.DataTable CreateInstance() {
  1263. return new СферыДеятельностиDataTable();
  1264. }
  1265. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1266. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1267. internal void InitVars() {
  1268. this.columnКод_сферы = base.Columns["Код_сферы"];
  1269. this.columnСфера_деятельности = base.Columns["Сфера_деятельности"];
  1270. }
  1271. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1272. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1273. private void InitClass() {
  1274. this.columnКод_сферы = new global::System.Data.DataColumn("Код_сферы", typeof(int), null, global::System.Data.MappingType.Element);
  1275. base.Columns.Add(this.columnКод_сферы);
  1276. this.columnСфера_деятельности = new global::System.Data.DataColumn("Сфера_деятельности", typeof(string), null, global::System.Data.MappingType.Element);
  1277. base.Columns.Add(this.columnСфера_деятельности);
  1278. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1279. this.columnКод_сферы}, true));
  1280. this.columnКод_сферы.AllowDBNull = false;
  1281. this.columnКод_сферы.Unique = true;
  1282. this.columnСфера_деятельности.MaxLength = 2147483647;
  1283. }
  1284. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1285. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1286. public СферыДеятельностиRow NewСферыДеятельностиRow() {
  1287. return ((СферыДеятельностиRow)(this.NewRow()));
  1288. }
  1289. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1290. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1291. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1292. return new СферыДеятельностиRow(builder);
  1293. }
  1294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1296. protected override global::System.Type GetRowType() {
  1297. return typeof(СферыДеятельностиRow);
  1298. }
  1299. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1300. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1301. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1302. base.OnRowChanged(e);
  1303. if ((this.СферыДеятельностиRowChanged != null)) {
  1304. this.СферыДеятельностиRowChanged(this, new СферыДеятельностиRowChangeEvent(((СферыДеятельностиRow)(e.Row)), e.Action));
  1305. }
  1306. }
  1307. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1308. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1309. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1310. base.OnRowChanging(e);
  1311. if ((this.СферыДеятельностиRowChanging != null)) {
  1312. this.СферыДеятельностиRowChanging(this, new СферыДеятельностиRowChangeEvent(((СферыДеятельностиRow)(e.Row)), e.Action));
  1313. }
  1314. }
  1315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1316. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1317. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1318. base.OnRowDeleted(e);
  1319. if ((this.СферыДеятельностиRowDeleted != null)) {
  1320. this.СферыДеятельностиRowDeleted(this, new СферыДеятельностиRowChangeEvent(((СферыДеятельностиRow)(e.Row)), e.Action));
  1321. }
  1322. }
  1323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1324. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1325. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1326. base.OnRowDeleting(e);
  1327. if ((this.СферыДеятельностиRowDeleting != null)) {
  1328. this.СферыДеятельностиRowDeleting(this, new СферыДеятельностиRowChangeEvent(((СферыДеятельностиRow)(e.Row)), e.Action));
  1329. }
  1330. }
  1331. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1332. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1333. public void RemoveСферыДеятельностиRow(СферыДеятельностиRow row) {
  1334. this.Rows.Remove(row);
  1335. }
  1336. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1337. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1338. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1339. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1340. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1341. BD_grishinaDataSet ds = new BD_grishinaDataSet();
  1342. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1343. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1344. any1.MinOccurs = new decimal(0);
  1345. any1.MaxOccurs = decimal.MaxValue;
  1346. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1347. sequence.Items.Add(any1);
  1348. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1349. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1350. any2.MinOccurs = new decimal(1);
  1351. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1352. sequence.Items.Add(any2);
  1353. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1354. attribute1.Name = "namespace";
  1355. attribute1.FixedValue = ds.Namespace;
  1356. type.Attributes.Add(attribute1);
  1357. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1358. attribute2.Name = "tableTypeName";
  1359. attribute2.FixedValue = "СферыДеятельностиDataTable";
  1360. type.Attributes.Add(attribute2);
  1361. type.Particle = sequence;
  1362. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1363. if (xs.Contains(dsSchema.TargetNamespace)) {
  1364. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1365. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1366. try {
  1367. global::System.Xml.Schema.XmlSchema schema = null;
  1368. dsSchema.Write(s1);
  1369. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1370. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1371. s2.SetLength(0);
  1372. schema.Write(s2);
  1373. if ((s1.Length == s2.Length)) {
  1374. s1.Position = 0;
  1375. s2.Position = 0;
  1376. for (; ((s1.Position != s1.Length)
  1377. && (s1.ReadByte() == s2.ReadByte())); ) {
  1378. ;
  1379. }
  1380. if ((s1.Position == s1.Length)) {
  1381. return type;
  1382. }
  1383. }
  1384. }
  1385. }
  1386. finally {
  1387. if ((s1 != null)) {
  1388. s1.Close();
  1389. }
  1390. if ((s2 != null)) {
  1391. s2.Close();
  1392. }
  1393. }
  1394. }
  1395. xs.Add(dsSchema);
  1396. return type;
  1397. }
  1398. }
  1399. /// <summary>
  1400. ///Represents strongly named DataRow class.
  1401. ///</summary>
  1402. public partial class АвторизацияRow : global::System.Data.DataRow {
  1403. private АвторизацияDataTable tableАвторизация;
  1404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1406. internal АвторизацияRow(global::System.Data.DataRowBuilder rb) :
  1407. base(rb) {
  1408. this.tableАвторизация = ((АвторизацияDataTable)(this.Table));
  1409. }
  1410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1411. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1412. public int id {
  1413. get {
  1414. try {
  1415. return ((int)(this[this.tableАвторизация.idColumn]));
  1416. }
  1417. catch (global::System.InvalidCastException e) {
  1418. throw new global::System.Data.StrongTypingException("Значение для столбца \'id\' в таблице \'Авторизация\' равно DBNull.", e);
  1419. }
  1420. }
  1421. set {
  1422. this[this.tableАвторизация.idColumn] = value;
  1423. }
  1424. }
  1425. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1426. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1427. public string Пароль {
  1428. get {
  1429. try {
  1430. return ((string)(this[this.tableАвторизация.ПарольColumn]));
  1431. }
  1432. catch (global::System.InvalidCastException e) {
  1433. throw new global::System.Data.StrongTypingException("Значение для столбца \'Пароль\' в таблице \'Авторизация\' равно DBNull.", e);
  1434. }
  1435. }
  1436. set {
  1437. this[this.tableАвторизация.ПарольColumn] = value;
  1438. }
  1439. }
  1440. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1441. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1442. public string Логин {
  1443. get {
  1444. try {
  1445. return ((string)(this[this.tableАвторизация.ЛогинColumn]));
  1446. }
  1447. catch (global::System.InvalidCastException e) {
  1448. throw new global::System.Data.StrongTypingException("Значение для столбца \'Логин\' в таблице \'Авторизация\' равно DBNull.", e);
  1449. }
  1450. }
  1451. set {
  1452. this[this.tableАвторизация.ЛогинColumn] = value;
  1453. }
  1454. }
  1455. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1456. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1457. public string Роль {
  1458. get {
  1459. try {
  1460. return ((string)(this[this.tableАвторизация.РольColumn]));
  1461. }
  1462. catch (global::System.InvalidCastException e) {
  1463. throw new global::System.Data.StrongTypingException("Значение для столбца \'Роль\' в таблице \'Авторизация\' равно DBNull.", e);
  1464. }
  1465. }
  1466. set {
  1467. this[this.tableАвторизация.РольColumn] = value;
  1468. }
  1469. }
  1470. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1471. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1472. public ЛюдиRow ЛюдиRow {
  1473. get {
  1474. return ((ЛюдиRow)(this.GetParentRow(this.Table.ParentRelations["FK_Авторизация_Люди"])));
  1475. }
  1476. set {
  1477. this.SetParentRow(value, this.Table.ParentRelations["FK_Авторизация_Люди"]);
  1478. }
  1479. }
  1480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1482. public bool IsidNull() {
  1483. return this.IsNull(this.tableАвторизация.idColumn);
  1484. }
  1485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1486. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1487. public void SetidNull() {
  1488. this[this.tableАвторизация.idColumn] = global::System.Convert.DBNull;
  1489. }
  1490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1492. public bool IsПарольNull() {
  1493. return this.IsNull(this.tableАвторизация.ПарольColumn);
  1494. }
  1495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1497. public void SetПарольNull() {
  1498. this[this.tableАвторизация.ПарольColumn] = global::System.Convert.DBNull;
  1499. }
  1500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1502. public bool IsЛогинNull() {
  1503. return this.IsNull(this.tableАвторизация.ЛогинColumn);
  1504. }
  1505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1507. public void SetЛогинNull() {
  1508. this[this.tableАвторизация.ЛогинColumn] = global::System.Convert.DBNull;
  1509. }
  1510. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1511. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1512. public bool IsРольNull() {
  1513. return this.IsNull(this.tableАвторизация.РольColumn);
  1514. }
  1515. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1516. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1517. public void SetРольNull() {
  1518. this[this.tableАвторизация.РольColumn] = global::System.Convert.DBNull;
  1519. }
  1520. }
  1521. /// <summary>
  1522. ///Represents strongly named DataRow class.
  1523. ///</summary>
  1524. public partial class ЛюдиRow : global::System.Data.DataRow {
  1525. private ЛюдиDataTable tableЛюди;
  1526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1528. internal ЛюдиRow(global::System.Data.DataRowBuilder rb) :
  1529. base(rb) {
  1530. this.tableЛюди = ((ЛюдиDataTable)(this.Table));
  1531. }
  1532. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1533. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1534. public int id {
  1535. get {
  1536. return ((int)(this[this.tableЛюди.idColumn]));
  1537. }
  1538. set {
  1539. this[this.tableЛюди.idColumn] = value;
  1540. }
  1541. }
  1542. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1543. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1544. public АвторизацияRow[] GetАвторизацияRows() {
  1545. if ((this.Table.ChildRelations["FK_Авторизация_Люди"] == null)) {
  1546. return new АвторизацияRow[0];
  1547. }
  1548. else {
  1549. return ((АвторизацияRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Авторизация_Люди"])));
  1550. }
  1551. }
  1552. }
  1553. /// <summary>
  1554. ///Represents strongly named DataRow class.
  1555. ///</summary>
  1556. public partial class СписокВакансийRow : global::System.Data.DataRow {
  1557. private СписокВакансийDataTable tableСписокВакансий;
  1558. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1559. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1560. internal СписокВакансийRow(global::System.Data.DataRowBuilder rb) :
  1561. base(rb) {
  1562. this.tableСписокВакансий = ((СписокВакансийDataTable)(this.Table));
  1563. }
  1564. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1565. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1566. public int Код_сферы {
  1567. get {
  1568. return ((int)(this[this.tableСписокВакансий.Код_сферыColumn]));
  1569. }
  1570. set {
  1571. this[this.tableСписокВакансий.Код_сферыColumn] = value;
  1572. }
  1573. }
  1574. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1575. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1576. public string Должность {
  1577. get {
  1578. try {
  1579. return ((string)(this[this.tableСписокВакансий.ДолжностьColumn]));
  1580. }
  1581. catch (global::System.InvalidCastException e) {
  1582. throw new global::System.Data.StrongTypingException("Значение для столбца \'Должность\' в таблице \'СписокВакансий\' равно DBNull.", e);
  1583. }
  1584. }
  1585. set {
  1586. this[this.tableСписокВакансий.ДолжностьColumn] = value;
  1587. }
  1588. }
  1589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1590. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1591. public decimal Оклад {
  1592. get {
  1593. try {
  1594. return ((decimal)(this[this.tableСписокВакансий.ОкладColumn]));
  1595. }
  1596. catch (global::System.InvalidCastException e) {
  1597. throw new global::System.Data.StrongTypingException("Значение для столбца \'Оклад\' в таблице \'СписокВакансий\' равно DBNull.", e);
  1598. }
  1599. }
  1600. set {
  1601. this[this.tableСписокВакансий.ОкладColumn] = value;
  1602. }
  1603. }
  1604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1606. public string Требования_к_соискателю {
  1607. get {
  1608. try {
  1609. return ((string)(this[this.tableСписокВакансий.Требования_к_соискателюColumn]));
  1610. }
  1611. catch (global::System.InvalidCastException e) {
  1612. throw new global::System.Data.StrongTypingException("Значение для столбца \'Требования_к_соискателю\' в таблице \'СписокВакансий\' равно D" +
  1613. "BNull.", e);
  1614. }
  1615. }
  1616. set {
  1617. this[this.tableСписокВакансий.Требования_к_соискателюColumn] = value;
  1618. }
  1619. }
  1620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1621. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1622. public string Работодатель {
  1623. get {
  1624. try {
  1625. return ((string)(this[this.tableСписокВакансий.РаботодательColumn]));
  1626. }
  1627. catch (global::System.InvalidCastException e) {
  1628. throw new global::System.Data.StrongTypingException("Значение для столбца \'Работодатель\' в таблице \'СписокВакансий\' равно DBNull.", e);
  1629. }
  1630. }
  1631. set {
  1632. this[this.tableСписокВакансий.РаботодательColumn] = value;
  1633. }
  1634. }
  1635. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1636. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1637. public string Контактный_номер {
  1638. get {
  1639. try {
  1640. return ((string)(this[this.tableСписокВакансий.Контактный_номерColumn]));
  1641. }
  1642. catch (global::System.InvalidCastException e) {
  1643. throw new global::System.Data.StrongTypingException("Значение для столбца \'Контактный_номер\' в таблице \'СписокВакансий\' равно DBNull.", e);
  1644. }
  1645. }
  1646. set {
  1647. this[this.tableСписокВакансий.Контактный_номерColumn] = value;
  1648. }
  1649. }
  1650. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1651. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1652. public int Код_вакансии {
  1653. get {
  1654. return ((int)(this[this.tableСписокВакансий.Код_вакансииColumn]));
  1655. }
  1656. set {
  1657. this[this.tableСписокВакансий.Код_вакансииColumn] = value;
  1658. }
  1659. }
  1660. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1661. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1662. public СферыДеятельностиRow СферыДеятельностиRow {
  1663. get {
  1664. return ((СферыДеятельностиRow)(this.GetParentRow(this.Table.ParentRelations["FK_СписокВакансий_СферыДеятельности"])));
  1665. }
  1666. set {
  1667. this.SetParentRow(value, this.Table.ParentRelations["FK_СписокВакансий_СферыДеятельности"]);
  1668. }
  1669. }
  1670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1671. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1672. public bool IsДолжностьNull() {
  1673. return this.IsNull(this.tableСписокВакансий.ДолжностьColumn);
  1674. }
  1675. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1676. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1677. public void SetДолжностьNull() {
  1678. this[this.tableСписокВакансий.ДолжностьColumn] = global::System.Convert.DBNull;
  1679. }
  1680. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1681. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1682. public bool IsОкладNull() {
  1683. return this.IsNull(this.tableСписокВакансий.ОкладColumn);
  1684. }
  1685. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1686. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1687. public void SetОкладNull() {
  1688. this[this.tableСписокВакансий.ОкладColumn] = global::System.Convert.DBNull;
  1689. }
  1690. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1691. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1692. public bool IsТребования_к_соискателюNull() {
  1693. return this.IsNull(this.tableСписокВакансий.Требования_к_соискателюColumn);
  1694. }
  1695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1696. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1697. public void SetТребования_к_соискателюNull() {
  1698. this[this.tableСписокВакансий.Требования_к_соискателюColumn] = global::System.Convert.DBNull;
  1699. }
  1700. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1701. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1702. public bool IsРаботодательNull() {
  1703. return this.IsNull(this.tableСписокВакансий.РаботодательColumn);
  1704. }
  1705. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1706. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1707. public void SetРаботодательNull() {
  1708. this[this.tableСписокВакансий.РаботодательColumn] = global::System.Convert.DBNull;
  1709. }
  1710. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1711. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1712. public bool IsКонтактный_номерNull() {
  1713. return this.IsNull(this.tableСписокВакансий.Контактный_номерColumn);
  1714. }
  1715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1717. public void SetКонтактный_номерNull() {
  1718. this[this.tableСписокВакансий.Контактный_номерColumn] = global::System.Convert.DBNull;
  1719. }
  1720. }
  1721. /// <summary>
  1722. ///Represents strongly named DataRow class.
  1723. ///</summary>
  1724. public partial class СферыДеятельностиRow : global::System.Data.DataRow {
  1725. private СферыДеятельностиDataTable tableСферыДеятельности;
  1726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1728. internal СферыДеятельностиRow(global::System.Data.DataRowBuilder rb) :
  1729. base(rb) {
  1730. this.tableСферыДеятельности = ((СферыДеятельностиDataTable)(this.Table));
  1731. }
  1732. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1733. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1734. public int Код_сферы {
  1735. get {
  1736. return ((int)(this[this.tableСферыДеятельности.Код_сферыColumn]));
  1737. }
  1738. set {
  1739. this[this.tableСферыДеятельности.Код_сферыColumn] = value;
  1740. }
  1741. }
  1742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1743. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1744. public string Сфера_деятельности {
  1745. get {
  1746. try {
  1747. return ((string)(this[this.tableСферыДеятельности.Сфера_деятельностиColumn]));
  1748. }
  1749. catch (global::System.InvalidCastException e) {
  1750. throw new global::System.Data.StrongTypingException("Значение для столбца \'Сфера_деятельности\' в таблице \'СферыДеятельности\' равно DBN" +
  1751. "ull.", e);
  1752. }
  1753. }
  1754. set {
  1755. this[this.tableСферыДеятельности.Сфера_деятельностиColumn] = value;
  1756. }
  1757. }
  1758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1760. public bool IsСфера_деятельностиNull() {
  1761. return this.IsNull(this.tableСферыДеятельности.Сфера_деятельностиColumn);
  1762. }
  1763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1764. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1765. public void SetСфера_деятельностиNull() {
  1766. this[this.tableСферыДеятельности.Сфера_деятельностиColumn] = global::System.Convert.DBNull;
  1767. }
  1768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1770. public СписокВакансийRow[] GetСписокВакансийRows() {
  1771. if ((this.Table.ChildRelations["FK_СписокВакансий_СферыДеятельности"] == null)) {
  1772. return new СписокВакансийRow[0];
  1773. }
  1774. else {
  1775. return ((СписокВакансийRow[])(base.GetChildRows(this.Table.ChildRelations["FK_СписокВакансий_СферыДеятельности"])));
  1776. }
  1777. }
  1778. }
  1779. /// <summary>
  1780. ///Row event argument class
  1781. ///</summary>
  1782. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1783. public class АвторизацияRowChangeEvent : global::System.EventArgs {
  1784. private АвторизацияRow eventRow;
  1785. private global::System.Data.DataRowAction eventAction;
  1786. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1787. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1788. public АвторизацияRowChangeEvent(АвторизацияRow row, global::System.Data.DataRowAction action) {
  1789. this.eventRow = row;
  1790. this.eventAction = action;
  1791. }
  1792. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1793. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1794. public АвторизацияRow Row {
  1795. get {
  1796. return this.eventRow;
  1797. }
  1798. }
  1799. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1800. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1801. public global::System.Data.DataRowAction Action {
  1802. get {
  1803. return this.eventAction;
  1804. }
  1805. }
  1806. }
  1807. /// <summary>
  1808. ///Row event argument class
  1809. ///</summary>
  1810. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1811. public class ЛюдиRowChangeEvent : global::System.EventArgs {
  1812. private ЛюдиRow eventRow;
  1813. private global::System.Data.DataRowAction eventAction;
  1814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1816. public ЛюдиRowChangeEvent(ЛюдиRow row, global::System.Data.DataRowAction action) {
  1817. this.eventRow = row;
  1818. this.eventAction = action;
  1819. }
  1820. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1821. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1822. public ЛюдиRow Row {
  1823. get {
  1824. return this.eventRow;
  1825. }
  1826. }
  1827. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1828. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1829. public global::System.Data.DataRowAction Action {
  1830. get {
  1831. return this.eventAction;
  1832. }
  1833. }
  1834. }
  1835. /// <summary>
  1836. ///Row event argument class
  1837. ///</summary>
  1838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1839. public class СписокВакансийRowChangeEvent : global::System.EventArgs {
  1840. private СписокВакансийRow eventRow;
  1841. private global::System.Data.DataRowAction eventAction;
  1842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1844. public СписокВакансийRowChangeEvent(СписокВакансийRow row, global::System.Data.DataRowAction action) {
  1845. this.eventRow = row;
  1846. this.eventAction = action;
  1847. }
  1848. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1849. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1850. public СписокВакансийRow Row {
  1851. get {
  1852. return this.eventRow;
  1853. }
  1854. }
  1855. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1856. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1857. public global::System.Data.DataRowAction Action {
  1858. get {
  1859. return this.eventAction;
  1860. }
  1861. }
  1862. }
  1863. /// <summary>
  1864. ///Row event argument class
  1865. ///</summary>
  1866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1867. public class СферыДеятельностиRowChangeEvent : global::System.EventArgs {
  1868. private СферыДеятельностиRow eventRow;
  1869. private global::System.Data.DataRowAction eventAction;
  1870. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1871. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1872. public СферыДеятельностиRowChangeEvent(СферыДеятельностиRow row, global::System.Data.DataRowAction action) {
  1873. this.eventRow = row;
  1874. this.eventAction = action;
  1875. }
  1876. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1877. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1878. public СферыДеятельностиRow Row {
  1879. get {
  1880. return this.eventRow;
  1881. }
  1882. }
  1883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1884. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1885. public global::System.Data.DataRowAction Action {
  1886. get {
  1887. return this.eventAction;
  1888. }
  1889. }
  1890. }
  1891. }
  1892. }
  1893. namespace WindowsFormsAppGrishina.BD_grishinaDataSetTableAdapters {
  1894. /// <summary>
  1895. ///Represents the connection and commands used to retrieve and save data.
  1896. ///</summary>
  1897. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  1898. [global::System.ComponentModel.ToolboxItem(true)]
  1899. [global::System.ComponentModel.DataObjectAttribute(true)]
  1900. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  1901. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  1902. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1903. public partial class АвторизацияTableAdapter : global::System.ComponentModel.Component {
  1904. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  1905. private global::System.Data.SqlClient.SqlConnection _connection;
  1906. private global::System.Data.SqlClient.SqlTransaction _transaction;
  1907. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  1908. private bool _clearBeforeFill;
  1909. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1910. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1911. public АвторизацияTableAdapter() {
  1912. this.ClearBeforeFill = true;
  1913. }
  1914. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1915. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1916. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  1917. get {
  1918. if ((this._adapter == null)) {
  1919. this.InitAdapter();
  1920. }
  1921. return this._adapter;
  1922. }
  1923. }
  1924. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1925. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1926. internal global::System.Data.SqlClient.SqlConnection Connection {
  1927. get {
  1928. if ((this._connection == null)) {
  1929. this.InitConnection();
  1930. }
  1931. return this._connection;
  1932. }
  1933. set {
  1934. this._connection = value;
  1935. if ((this.Adapter.InsertCommand != null)) {
  1936. this.Adapter.InsertCommand.Connection = value;
  1937. }
  1938. if ((this.Adapter.DeleteCommand != null)) {
  1939. this.Adapter.DeleteCommand.Connection = value;
  1940. }
  1941. if ((this.Adapter.UpdateCommand != null)) {
  1942. this.Adapter.UpdateCommand.Connection = value;
  1943. }
  1944. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  1945. if ((this.CommandCollection[i] != null)) {
  1946. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  1947. }
  1948. }
  1949. }
  1950. }
  1951. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1952. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1953. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  1954. get {
  1955. return this._transaction;
  1956. }
  1957. set {
  1958. this._transaction = value;
  1959. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  1960. this.CommandCollection[i].Transaction = this._transaction;
  1961. }
  1962. if (((this.Adapter != null)
  1963. && (this.Adapter.DeleteCommand != null))) {
  1964. this.Adapter.DeleteCommand.Transaction = this._transaction;
  1965. }
  1966. if (((this.Adapter != null)
  1967. && (this.Adapter.InsertCommand != null))) {
  1968. this.Adapter.InsertCommand.Transaction = this._transaction;
  1969. }
  1970. if (((this.Adapter != null)
  1971. && (this.Adapter.UpdateCommand != null))) {
  1972. this.Adapter.UpdateCommand.Transaction = this._transaction;
  1973. }
  1974. }
  1975. }
  1976. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1977. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1978. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  1979. get {
  1980. if ((this._commandCollection == null)) {
  1981. this.InitCommandCollection();
  1982. }
  1983. return this._commandCollection;
  1984. }
  1985. }
  1986. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1987. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1988. public bool ClearBeforeFill {
  1989. get {
  1990. return this._clearBeforeFill;
  1991. }
  1992. set {
  1993. this._clearBeforeFill = value;
  1994. }
  1995. }
  1996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1997. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1998. private void InitAdapter() {
  1999. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  2000. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  2001. tableMapping.SourceTable = "Table";
  2002. tableMapping.DataSetTable = "Авторизация";
  2003. tableMapping.ColumnMappings.Add("id", "id");
  2004. tableMapping.ColumnMappings.Add("Пароль", "Пароль");
  2005. tableMapping.ColumnMappings.Add("Логин", "Логин");
  2006. tableMapping.ColumnMappings.Add("Роль", "Роль");
  2007. this._adapter.TableMappings.Add(tableMapping);
  2008. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  2009. this._adapter.InsertCommand.Connection = this.Connection;
  2010. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Авторизация] ([id], [Пароль], [Логин], [Роль]) VALUES (@id, @П" +
  2011. "ароль, @Логин, @Роль)";
  2012. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  2013. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2014. 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, "", "", ""));
  2015. 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, "", "", ""));
  2016. 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, "", "", ""));
  2017. }
  2018. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2019. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2020. private void InitConnection() {
  2021. this._connection = new global::System.Data.SqlClient.SqlConnection();
  2022. this._connection.ConnectionString = global::WindowsFormsAppGrishina.Properties.Settings.Default.BD_grishinaConnectionString;
  2023. }
  2024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2025. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2026. private void InitCommandCollection() {
  2027. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  2028. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  2029. this._commandCollection[0].Connection = this.Connection;
  2030. this._commandCollection[0].CommandText = "SELECT id, Пароль, Логин, Роль FROM dbo.Авторизация";
  2031. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  2032. }
  2033. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2034. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2035. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2036. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  2037. public virtual int Fill(BD_grishinaDataSet.АвторизацияDataTable dataTable) {
  2038. this.Adapter.SelectCommand = this.CommandCollection[0];
  2039. if ((this.ClearBeforeFill == true)) {
  2040. dataTable.Clear();
  2041. }
  2042. int returnValue = this.Adapter.Fill(dataTable);
  2043. return returnValue;
  2044. }
  2045. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2046. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2047. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2048. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  2049. public virtual BD_grishinaDataSet.АвторизацияDataTable GetData() {
  2050. this.Adapter.SelectCommand = this.CommandCollection[0];
  2051. BD_grishinaDataSet.АвторизацияDataTable dataTable = new BD_grishinaDataSet.АвторизацияDataTable();
  2052. this.Adapter.Fill(dataTable);
  2053. return dataTable;
  2054. }
  2055. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2056. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2057. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2058. public virtual int Update(BD_grishinaDataSet.АвторизацияDataTable dataTable) {
  2059. return this.Adapter.Update(dataTable);
  2060. }
  2061. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2062. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2063. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2064. public virtual int Update(BD_grishinaDataSet dataSet) {
  2065. return this.Adapter.Update(dataSet, "Авторизация");
  2066. }
  2067. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2068. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2069. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2070. public virtual int Update(global::System.Data.DataRow dataRow) {
  2071. return this.Adapter.Update(new global::System.Data.DataRow[] {
  2072. dataRow});
  2073. }
  2074. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2075. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2076. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2077. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  2078. return this.Adapter.Update(dataRows);
  2079. }
  2080. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2081. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2082. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2083. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  2084. public virtual int Insert(global::System.Nullable<int> id, string Пароль, string Логин, string Роль) {
  2085. if ((id.HasValue == true)) {
  2086. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(id.Value));
  2087. }
  2088. else {
  2089. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  2090. }
  2091. if ((Пароль == null)) {
  2092. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  2093. }
  2094. else {
  2095. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Пароль));
  2096. }
  2097. if ((Логин == null)) {
  2098. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  2099. }
  2100. else {
  2101. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Логин));
  2102. }
  2103. if ((Роль == null)) {
  2104. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  2105. }
  2106. else {
  2107. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Роль));
  2108. }
  2109. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  2110. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  2111. != global::System.Data.ConnectionState.Open)) {
  2112. this.Adapter.InsertCommand.Connection.Open();
  2113. }
  2114. try {
  2115. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  2116. return returnValue;
  2117. }
  2118. finally {
  2119. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  2120. this.Adapter.InsertCommand.Connection.Close();
  2121. }
  2122. }
  2123. }
  2124. }
  2125. /// <summary>
  2126. ///Represents the connection and commands used to retrieve and save data.
  2127. ///</summary>
  2128. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  2129. [global::System.ComponentModel.ToolboxItem(true)]
  2130. [global::System.ComponentModel.DataObjectAttribute(true)]
  2131. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  2132. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  2133. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2134. public partial class ЛюдиTableAdapter : global::System.ComponentModel.Component {
  2135. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  2136. private global::System.Data.SqlClient.SqlConnection _connection;
  2137. private global::System.Data.SqlClient.SqlTransaction _transaction;
  2138. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  2139. private bool _clearBeforeFill;
  2140. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2141. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2142. public ЛюдиTableAdapter() {
  2143. this.ClearBeforeFill = true;
  2144. }
  2145. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2146. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2147. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  2148. get {
  2149. if ((this._adapter == null)) {
  2150. this.InitAdapter();
  2151. }
  2152. return this._adapter;
  2153. }
  2154. }
  2155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2156. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2157. internal global::System.Data.SqlClient.SqlConnection Connection {
  2158. get {
  2159. if ((this._connection == null)) {
  2160. this.InitConnection();
  2161. }
  2162. return this._connection;
  2163. }
  2164. set {
  2165. this._connection = value;
  2166. if ((this.Adapter.InsertCommand != null)) {
  2167. this.Adapter.InsertCommand.Connection = value;
  2168. }
  2169. if ((this.Adapter.DeleteCommand != null)) {
  2170. this.Adapter.DeleteCommand.Connection = value;
  2171. }
  2172. if ((this.Adapter.UpdateCommand != null)) {
  2173. this.Adapter.UpdateCommand.Connection = value;
  2174. }
  2175. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2176. if ((this.CommandCollection[i] != null)) {
  2177. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  2178. }
  2179. }
  2180. }
  2181. }
  2182. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2183. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2184. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  2185. get {
  2186. return this._transaction;
  2187. }
  2188. set {
  2189. this._transaction = value;
  2190. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2191. this.CommandCollection[i].Transaction = this._transaction;
  2192. }
  2193. if (((this.Adapter != null)
  2194. && (this.Adapter.DeleteCommand != null))) {
  2195. this.Adapter.DeleteCommand.Transaction = this._transaction;
  2196. }
  2197. if (((this.Adapter != null)
  2198. && (this.Adapter.InsertCommand != null))) {
  2199. this.Adapter.InsertCommand.Transaction = this._transaction;
  2200. }
  2201. if (((this.Adapter != null)
  2202. && (this.Adapter.UpdateCommand != null))) {
  2203. this.Adapter.UpdateCommand.Transaction = this._transaction;
  2204. }
  2205. }
  2206. }
  2207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2208. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2209. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  2210. get {
  2211. if ((this._commandCollection == null)) {
  2212. this.InitCommandCollection();
  2213. }
  2214. return this._commandCollection;
  2215. }
  2216. }
  2217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2218. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2219. public bool ClearBeforeFill {
  2220. get {
  2221. return this._clearBeforeFill;
  2222. }
  2223. set {
  2224. this._clearBeforeFill = value;
  2225. }
  2226. }
  2227. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2228. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2229. private void InitAdapter() {
  2230. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  2231. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  2232. tableMapping.SourceTable = "Table";
  2233. tableMapping.DataSetTable = "Люди";
  2234. tableMapping.ColumnMappings.Add("id", "id");
  2235. this._adapter.TableMappings.Add(tableMapping);
  2236. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  2237. this._adapter.DeleteCommand.Connection = this.Connection;
  2238. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Люди] WHERE (([id] = @Original_id))";
  2239. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  2240. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2241. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  2242. this._adapter.InsertCommand.Connection = this.Connection;
  2243. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Люди] ([id]) VALUES (@id);\r\nSELECT id FROM Люди WHERE (id = @i" +
  2244. "d)";
  2245. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  2246. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2247. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  2248. this._adapter.UpdateCommand.Connection = this.Connection;
  2249. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Люди] SET [id] = @id WHERE (([id] = @Original_id));\r\nSELECT id FROM" +
  2250. " Люди WHERE (id = @id)";
  2251. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  2252. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2253. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2254. }
  2255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2256. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2257. private void InitConnection() {
  2258. this._connection = new global::System.Data.SqlClient.SqlConnection();
  2259. this._connection.ConnectionString = global::WindowsFormsAppGrishina.Properties.Settings.Default.BD_grishinaConnectionString;
  2260. }
  2261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2262. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2263. private void InitCommandCollection() {
  2264. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  2265. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  2266. this._commandCollection[0].Connection = this.Connection;
  2267. this._commandCollection[0].CommandText = "SELECT id FROM dbo.Люди";
  2268. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  2269. }
  2270. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2271. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2272. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2273. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  2274. public virtual int Fill(BD_grishinaDataSet.ЛюдиDataTable dataTable) {
  2275. this.Adapter.SelectCommand = this.CommandCollection[0];
  2276. if ((this.ClearBeforeFill == true)) {
  2277. dataTable.Clear();
  2278. }
  2279. int returnValue = this.Adapter.Fill(dataTable);
  2280. return returnValue;
  2281. }
  2282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2284. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2285. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  2286. public virtual BD_grishinaDataSet.ЛюдиDataTable GetData() {
  2287. this.Adapter.SelectCommand = this.CommandCollection[0];
  2288. BD_grishinaDataSet.ЛюдиDataTable dataTable = new BD_grishinaDataSet.ЛюдиDataTable();
  2289. this.Adapter.Fill(dataTable);
  2290. return dataTable;
  2291. }
  2292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2293. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2294. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2295. public virtual int Update(BD_grishinaDataSet.ЛюдиDataTable dataTable) {
  2296. return this.Adapter.Update(dataTable);
  2297. }
  2298. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2299. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2300. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2301. public virtual int Update(BD_grishinaDataSet dataSet) {
  2302. return this.Adapter.Update(dataSet, "Люди");
  2303. }
  2304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2306. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2307. public virtual int Update(global::System.Data.DataRow dataRow) {
  2308. return this.Adapter.Update(new global::System.Data.DataRow[] {
  2309. dataRow});
  2310. }
  2311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2312. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2313. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2314. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  2315. return this.Adapter.Update(dataRows);
  2316. }
  2317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2319. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2320. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  2321. public virtual int Delete(int Original_id) {
  2322. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id));
  2323. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  2324. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  2325. != global::System.Data.ConnectionState.Open)) {
  2326. this.Adapter.DeleteCommand.Connection.Open();
  2327. }
  2328. try {
  2329. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  2330. return returnValue;
  2331. }
  2332. finally {
  2333. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  2334. this.Adapter.DeleteCommand.Connection.Close();
  2335. }
  2336. }
  2337. }
  2338. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2339. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2340. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2341. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  2342. public virtual int Insert(int id) {
  2343. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(id));
  2344. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  2345. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  2346. != global::System.Data.ConnectionState.Open)) {
  2347. this.Adapter.InsertCommand.Connection.Open();
  2348. }
  2349. try {
  2350. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  2351. return returnValue;
  2352. }
  2353. finally {
  2354. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  2355. this.Adapter.InsertCommand.Connection.Close();
  2356. }
  2357. }
  2358. }
  2359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2360. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2361. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2362. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  2363. public virtual int Update(int id, int Original_id) {
  2364. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(id));
  2365. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_id));
  2366. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  2367. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  2368. != global::System.Data.ConnectionState.Open)) {
  2369. this.Adapter.UpdateCommand.Connection.Open();
  2370. }
  2371. try {
  2372. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  2373. return returnValue;
  2374. }
  2375. finally {
  2376. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  2377. this.Adapter.UpdateCommand.Connection.Close();
  2378. }
  2379. }
  2380. }
  2381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2382. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2383. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2384. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  2385. public virtual int Update(int Original_id) {
  2386. return this.Update(Original_id, Original_id);
  2387. }
  2388. }
  2389. /// <summary>
  2390. ///Represents the connection and commands used to retrieve and save data.
  2391. ///</summary>
  2392. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  2393. [global::System.ComponentModel.ToolboxItem(true)]
  2394. [global::System.ComponentModel.DataObjectAttribute(true)]
  2395. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  2396. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  2397. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2398. public partial class СписокВакансийTableAdapter : global::System.ComponentModel.Component {
  2399. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  2400. private global::System.Data.SqlClient.SqlConnection _connection;
  2401. private global::System.Data.SqlClient.SqlTransaction _transaction;
  2402. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  2403. private bool _clearBeforeFill;
  2404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2406. public СписокВакансийTableAdapter() {
  2407. this.ClearBeforeFill = true;
  2408. }
  2409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2411. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  2412. get {
  2413. if ((this._adapter == null)) {
  2414. this.InitAdapter();
  2415. }
  2416. return this._adapter;
  2417. }
  2418. }
  2419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2421. internal global::System.Data.SqlClient.SqlConnection Connection {
  2422. get {
  2423. if ((this._connection == null)) {
  2424. this.InitConnection();
  2425. }
  2426. return this._connection;
  2427. }
  2428. set {
  2429. this._connection = value;
  2430. if ((this.Adapter.InsertCommand != null)) {
  2431. this.Adapter.InsertCommand.Connection = value;
  2432. }
  2433. if ((this.Adapter.DeleteCommand != null)) {
  2434. this.Adapter.DeleteCommand.Connection = value;
  2435. }
  2436. if ((this.Adapter.UpdateCommand != null)) {
  2437. this.Adapter.UpdateCommand.Connection = value;
  2438. }
  2439. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2440. if ((this.CommandCollection[i] != null)) {
  2441. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  2442. }
  2443. }
  2444. }
  2445. }
  2446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2447. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2448. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  2449. get {
  2450. return this._transaction;
  2451. }
  2452. set {
  2453. this._transaction = value;
  2454. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2455. this.CommandCollection[i].Transaction = this._transaction;
  2456. }
  2457. if (((this.Adapter != null)
  2458. && (this.Adapter.DeleteCommand != null))) {
  2459. this.Adapter.DeleteCommand.Transaction = this._transaction;
  2460. }
  2461. if (((this.Adapter != null)
  2462. && (this.Adapter.InsertCommand != null))) {
  2463. this.Adapter.InsertCommand.Transaction = this._transaction;
  2464. }
  2465. if (((this.Adapter != null)
  2466. && (this.Adapter.UpdateCommand != null))) {
  2467. this.Adapter.UpdateCommand.Transaction = this._transaction;
  2468. }
  2469. }
  2470. }
  2471. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2473. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  2474. get {
  2475. if ((this._commandCollection == null)) {
  2476. this.InitCommandCollection();
  2477. }
  2478. return this._commandCollection;
  2479. }
  2480. }
  2481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2483. public bool ClearBeforeFill {
  2484. get {
  2485. return this._clearBeforeFill;
  2486. }
  2487. set {
  2488. this._clearBeforeFill = value;
  2489. }
  2490. }
  2491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2492. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2493. private void InitAdapter() {
  2494. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  2495. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  2496. tableMapping.SourceTable = "Table";
  2497. tableMapping.DataSetTable = "СписокВакансий";
  2498. tableMapping.ColumnMappings.Add("Код_сферы", "Код_сферы");
  2499. tableMapping.ColumnMappings.Add("Должность", "Должность");
  2500. tableMapping.ColumnMappings.Add("Оклад", "Оклад");
  2501. tableMapping.ColumnMappings.Add("Требования_к_соискателю", "Требования_к_соискателю");
  2502. tableMapping.ColumnMappings.Add("Работодатель", "Работодатель");
  2503. tableMapping.ColumnMappings.Add("Контактный_номер", "Контактный_номер");
  2504. tableMapping.ColumnMappings.Add("Код_вакансии", "Код_вакансии");
  2505. this._adapter.TableMappings.Add(tableMapping);
  2506. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  2507. this._adapter.DeleteCommand.Connection = this.Connection;
  2508. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[СписокВакансий] WHERE (([Код_сферы] = @Original_Код_сферы) AND" +
  2509. " ((@IsNull_Оклад = 1 AND [Оклад] IS NULL) OR ([Оклад] = @Original_Оклад)) AND ([" +
  2510. "Код_вакансии] = @Original_Код_вакансии))";
  2511. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  2512. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_сферы", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код_сферы", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2513. 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, "", "", ""));
  2514. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Оклад", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Оклад", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2515. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_вакансии", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код_вакансии", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2516. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  2517. this._adapter.InsertCommand.Connection = this.Connection;
  2518. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[СписокВакансий] ([Код_сферы], [Должность], [Оклад], [Требования_к_соискателю], [Работодатель], [Контактный_номер], [Код_вакансии]) VALUES (@Код_сферы, @Должность, @Оклад, @Требования_к_соискателю, @Работодатель, @Контактный_номер, @Код_вакансии);
  2519. SELECT Код_сферы, Должность, Оклад, Требования_к_соискателю, Работодатель, Контактный_номер, Код_вакансии FROM СписокВакансий WHERE (Код_вакансии = @Код_вакансии)";
  2520. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  2521. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_сферы", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код_сферы", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2522. 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, "", "", ""));
  2523. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Оклад", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Оклад", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2524. 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, "", "", ""));
  2525. 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, "", "", ""));
  2526. 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, "", "", ""));
  2527. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_вакансии", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код_вакансии", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2528. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  2529. this._adapter.UpdateCommand.Connection = this.Connection;
  2530. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[СписокВакансий] SET [Код_сферы] = @Код_сферы, [Должность] = @Должность, [Оклад] = @Оклад, [Требования_к_соискателю] = @Требования_к_соискателю, [Работодатель] = @Работодатель, [Контактный_номер] = @Контактный_номер, [Код_вакансии] = @Код_вакансии WHERE (([Код_сферы] = @Original_Код_сферы) AND ((@IsNull_Оклад = 1 AND [Оклад] IS NULL) OR ([Оклад] = @Original_Оклад)) AND ([Код_вакансии] = @Original_Код_вакансии));
  2531. SELECT Код_сферы, Должность, Оклад, Требования_к_соискателю, Работодатель, Контактный_номер, Код_вакансии FROM СписокВакансий WHERE (Код_вакансии = @Код_вакансии)";
  2532. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  2533. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_сферы", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код_сферы", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2534. 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, "", "", ""));
  2535. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Оклад", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Оклад", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2536. 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, "", "", ""));
  2537. 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, "", "", ""));
  2538. 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, "", "", ""));
  2539. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_вакансии", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код_вакансии", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2540. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_сферы", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код_сферы", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2541. 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, "", "", ""));
  2542. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Оклад", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Оклад", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2543. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_вакансии", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код_вакансии", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2544. }
  2545. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2546. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2547. private void InitConnection() {
  2548. this._connection = new global::System.Data.SqlClient.SqlConnection();
  2549. this._connection.ConnectionString = global::WindowsFormsAppGrishina.Properties.Settings.Default.BD_grishinaConnectionString;
  2550. }
  2551. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2552. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2553. private void InitCommandCollection() {
  2554. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  2555. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  2556. this._commandCollection[0].Connection = this.Connection;
  2557. this._commandCollection[0].CommandText = "SELECT Код_сферы, Должность, Оклад, Требования_к_соискателю, Работодатель, Контак" +
  2558. "тный_номер, Код_вакансии FROM dbo.СписокВакансий";
  2559. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  2560. }
  2561. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2562. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2563. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2564. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  2565. public virtual int Fill(BD_grishinaDataSet.СписокВакансийDataTable dataTable) {
  2566. this.Adapter.SelectCommand = this.CommandCollection[0];
  2567. if ((this.ClearBeforeFill == true)) {
  2568. dataTable.Clear();
  2569. }
  2570. int returnValue = this.Adapter.Fill(dataTable);
  2571. return returnValue;
  2572. }
  2573. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2574. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2575. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2576. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  2577. public virtual BD_grishinaDataSet.СписокВакансийDataTable GetData() {
  2578. this.Adapter.SelectCommand = this.CommandCollection[0];
  2579. BD_grishinaDataSet.СписокВакансийDataTable dataTable = new BD_grishinaDataSet.СписокВакансийDataTable();
  2580. this.Adapter.Fill(dataTable);
  2581. return dataTable;
  2582. }
  2583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2585. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2586. public virtual int Update(BD_grishinaDataSet.СписокВакансийDataTable dataTable) {
  2587. return this.Adapter.Update(dataTable);
  2588. }
  2589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2590. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2591. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2592. public virtual int Update(BD_grishinaDataSet dataSet) {
  2593. return this.Adapter.Update(dataSet, "СписокВакансий");
  2594. }
  2595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2596. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2597. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2598. public virtual int Update(global::System.Data.DataRow dataRow) {
  2599. return this.Adapter.Update(new global::System.Data.DataRow[] {
  2600. dataRow});
  2601. }
  2602. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2603. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2604. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2605. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  2606. return this.Adapter.Update(dataRows);
  2607. }
  2608. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2609. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2610. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2611. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  2612. public virtual int Delete(int Original_Код_сферы, global::System.Nullable<decimal> Original_Оклад, int Original_Код_вакансии) {
  2613. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_Код_сферы));
  2614. if ((Original_Оклад.HasValue == true)) {
  2615. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  2616. this.Adapter.DeleteCommand.Parameters[2].Value = ((decimal)(Original_Оклад.Value));
  2617. }
  2618. else {
  2619. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  2620. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  2621. }
  2622. this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_Код_вакансии));
  2623. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  2624. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  2625. != global::System.Data.ConnectionState.Open)) {
  2626. this.Adapter.DeleteCommand.Connection.Open();
  2627. }
  2628. try {
  2629. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  2630. return returnValue;
  2631. }
  2632. finally {
  2633. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  2634. this.Adapter.DeleteCommand.Connection.Close();
  2635. }
  2636. }
  2637. }
  2638. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2639. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2640. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2641. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  2642. public virtual int Insert(int Код_сферы, string Должность, global::System.Nullable<decimal> Оклад, string Требования_к_соискателю, string Работодатель, string Контактный_номер, int Код_вакансии) {
  2643. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(Код_сферы));
  2644. if ((Должность == null)) {
  2645. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  2646. }
  2647. else {
  2648. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Должность));
  2649. }
  2650. if ((Оклад.HasValue == true)) {
  2651. this.Adapter.InsertCommand.Parameters[2].Value = ((decimal)(Оклад.Value));
  2652. }
  2653. else {
  2654. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  2655. }
  2656. if ((Требования_к_соискателю == null)) {
  2657. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  2658. }
  2659. else {
  2660. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Требования_к_соискателю));
  2661. }
  2662. if ((Работодатель == null)) {
  2663. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  2664. }
  2665. else {
  2666. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Работодатель));
  2667. }
  2668. if ((Контактный_номер == null)) {
  2669. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  2670. }
  2671. else {
  2672. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Контактный_номер));
  2673. }
  2674. this.Adapter.InsertCommand.Parameters[6].Value = ((int)(Код_вакансии));
  2675. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  2676. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  2677. != global::System.Data.ConnectionState.Open)) {
  2678. this.Adapter.InsertCommand.Connection.Open();
  2679. }
  2680. try {
  2681. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  2682. return returnValue;
  2683. }
  2684. finally {
  2685. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  2686. this.Adapter.InsertCommand.Connection.Close();
  2687. }
  2688. }
  2689. }
  2690. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2691. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2692. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2693. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  2694. public virtual int Update(int Код_сферы, string Должность, global::System.Nullable<decimal> Оклад, string Требования_к_соискателю, string Работодатель, string Контактный_номер, int Код_вакансии, int Original_Код_сферы, global::System.Nullable<decimal> Original_Оклад, int Original_Код_вакансии) {
  2695. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(Код_сферы));
  2696. if ((Должность == null)) {
  2697. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  2698. }
  2699. else {
  2700. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Должность));
  2701. }
  2702. if ((Оклад.HasValue == true)) {
  2703. this.Adapter.UpdateCommand.Parameters[2].Value = ((decimal)(Оклад.Value));
  2704. }
  2705. else {
  2706. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  2707. }
  2708. if ((Требования_к_соискателю == null)) {
  2709. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  2710. }
  2711. else {
  2712. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Требования_к_соискателю));
  2713. }
  2714. if ((Работодатель == null)) {
  2715. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  2716. }
  2717. else {
  2718. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Работодатель));
  2719. }
  2720. if ((Контактный_номер == null)) {
  2721. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  2722. }
  2723. else {
  2724. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Контактный_номер));
  2725. }
  2726. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Код_вакансии));
  2727. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_Код_сферы));
  2728. if ((Original_Оклад.HasValue == true)) {
  2729. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  2730. this.Adapter.UpdateCommand.Parameters[9].Value = ((decimal)(Original_Оклад.Value));
  2731. }
  2732. else {
  2733. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  2734. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  2735. }
  2736. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_Код_вакансии));
  2737. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  2738. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  2739. != global::System.Data.ConnectionState.Open)) {
  2740. this.Adapter.UpdateCommand.Connection.Open();
  2741. }
  2742. try {
  2743. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  2744. return returnValue;
  2745. }
  2746. finally {
  2747. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  2748. this.Adapter.UpdateCommand.Connection.Close();
  2749. }
  2750. }
  2751. }
  2752. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2753. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2754. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2755. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  2756. public virtual int Update(int Код_сферы, string Должность, global::System.Nullable<decimal> Оклад, string Требования_к_соискателю, string Работодатель, string Контактный_номер, int Original_Код_сферы, global::System.Nullable<decimal> Original_Оклад, int Original_Код_вакансии) {
  2757. return this.Update(Код_сферы, Должность, Оклад, Требования_к_соискателю, Работодатель, Контактный_номер, Original_Код_вакансии, Original_Код_сферы, Original_Оклад, Original_Код_вакансии);
  2758. }
  2759. }
  2760. /// <summary>
  2761. ///Represents the connection and commands used to retrieve and save data.
  2762. ///</summary>
  2763. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  2764. [global::System.ComponentModel.ToolboxItem(true)]
  2765. [global::System.ComponentModel.DataObjectAttribute(true)]
  2766. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  2767. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  2768. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2769. public partial class СферыДеятельностиTableAdapter : global::System.ComponentModel.Component {
  2770. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  2771. private global::System.Data.SqlClient.SqlConnection _connection;
  2772. private global::System.Data.SqlClient.SqlTransaction _transaction;
  2773. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  2774. private bool _clearBeforeFill;
  2775. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2776. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2777. public СферыДеятельностиTableAdapter() {
  2778. this.ClearBeforeFill = true;
  2779. }
  2780. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2781. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2782. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  2783. get {
  2784. if ((this._adapter == null)) {
  2785. this.InitAdapter();
  2786. }
  2787. return this._adapter;
  2788. }
  2789. }
  2790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2792. internal global::System.Data.SqlClient.SqlConnection Connection {
  2793. get {
  2794. if ((this._connection == null)) {
  2795. this.InitConnection();
  2796. }
  2797. return this._connection;
  2798. }
  2799. set {
  2800. this._connection = value;
  2801. if ((this.Adapter.InsertCommand != null)) {
  2802. this.Adapter.InsertCommand.Connection = value;
  2803. }
  2804. if ((this.Adapter.DeleteCommand != null)) {
  2805. this.Adapter.DeleteCommand.Connection = value;
  2806. }
  2807. if ((this.Adapter.UpdateCommand != null)) {
  2808. this.Adapter.UpdateCommand.Connection = value;
  2809. }
  2810. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2811. if ((this.CommandCollection[i] != null)) {
  2812. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  2813. }
  2814. }
  2815. }
  2816. }
  2817. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2818. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2819. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  2820. get {
  2821. return this._transaction;
  2822. }
  2823. set {
  2824. this._transaction = value;
  2825. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2826. this.CommandCollection[i].Transaction = this._transaction;
  2827. }
  2828. if (((this.Adapter != null)
  2829. && (this.Adapter.DeleteCommand != null))) {
  2830. this.Adapter.DeleteCommand.Transaction = this._transaction;
  2831. }
  2832. if (((this.Adapter != null)
  2833. && (this.Adapter.InsertCommand != null))) {
  2834. this.Adapter.InsertCommand.Transaction = this._transaction;
  2835. }
  2836. if (((this.Adapter != null)
  2837. && (this.Adapter.UpdateCommand != null))) {
  2838. this.Adapter.UpdateCommand.Transaction = this._transaction;
  2839. }
  2840. }
  2841. }
  2842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2844. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  2845. get {
  2846. if ((this._commandCollection == null)) {
  2847. this.InitCommandCollection();
  2848. }
  2849. return this._commandCollection;
  2850. }
  2851. }
  2852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2853. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2854. public bool ClearBeforeFill {
  2855. get {
  2856. return this._clearBeforeFill;
  2857. }
  2858. set {
  2859. this._clearBeforeFill = value;
  2860. }
  2861. }
  2862. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2863. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2864. private void InitAdapter() {
  2865. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  2866. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  2867. tableMapping.SourceTable = "Table";
  2868. tableMapping.DataSetTable = "СферыДеятельности";
  2869. tableMapping.ColumnMappings.Add("Код_сферы", "Код_сферы");
  2870. tableMapping.ColumnMappings.Add("Сфера_деятельности", "Сфера_деятельности");
  2871. this._adapter.TableMappings.Add(tableMapping);
  2872. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  2873. this._adapter.DeleteCommand.Connection = this.Connection;
  2874. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[СферыДеятельности] WHERE (([Код_сферы] = @Original_Код_сферы))" +
  2875. "";
  2876. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  2877. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_сферы", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код_сферы", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2878. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  2879. this._adapter.InsertCommand.Connection = this.Connection;
  2880. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[СферыДеятельности] ([Код_сферы], [Сфера_деятельности]) VALUES " +
  2881. "(@Код_сферы, @Сфера_деятельности);\r\nSELECT Код_сферы, Сфера_деятельности FROM Сф" +
  2882. "ерыДеятельности WHERE (Код_сферы = @Код_сферы)";
  2883. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  2884. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_сферы", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код_сферы", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2885. 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, "", "", ""));
  2886. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  2887. this._adapter.UpdateCommand.Connection = this.Connection;
  2888. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[СферыДеятельности] SET [Код_сферы] = @Код_сферы, [Сфера_деятельност" +
  2889. "и] = @Сфера_деятельности WHERE (([Код_сферы] = @Original_Код_сферы));\r\nSELECT Ко" +
  2890. "д_сферы, Сфера_деятельности FROM СферыДеятельности WHERE (Код_сферы = @Код_сферы" +
  2891. ")";
  2892. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  2893. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_сферы", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код_сферы", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2894. 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, "", "", ""));
  2895. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_сферы", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код_сферы", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2896. }
  2897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2898. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2899. private void InitConnection() {
  2900. this._connection = new global::System.Data.SqlClient.SqlConnection();
  2901. this._connection.ConnectionString = global::WindowsFormsAppGrishina.Properties.Settings.Default.BD_grishinaConnectionString;
  2902. }
  2903. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2904. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2905. private void InitCommandCollection() {
  2906. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  2907. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  2908. this._commandCollection[0].Connection = this.Connection;
  2909. this._commandCollection[0].CommandText = "SELECT Код_сферы, Сфера_деятельности FROM dbo.СферыДеятельности";
  2910. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  2911. }
  2912. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2913. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2914. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2915. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  2916. public virtual int Fill(BD_grishinaDataSet.СферыДеятельностиDataTable dataTable) {
  2917. this.Adapter.SelectCommand = this.CommandCollection[0];
  2918. if ((this.ClearBeforeFill == true)) {
  2919. dataTable.Clear();
  2920. }
  2921. int returnValue = this.Adapter.Fill(dataTable);
  2922. return returnValue;
  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. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  2928. public virtual BD_grishinaDataSet.СферыДеятельностиDataTable GetData() {
  2929. this.Adapter.SelectCommand = this.CommandCollection[0];
  2930. BD_grishinaDataSet.СферыДеятельностиDataTable dataTable = new BD_grishinaDataSet.СферыДеятельностиDataTable();
  2931. this.Adapter.Fill(dataTable);
  2932. return dataTable;
  2933. }
  2934. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2935. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2936. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2937. public virtual int Update(BD_grishinaDataSet.СферыДеятельностиDataTable dataTable) {
  2938. return this.Adapter.Update(dataTable);
  2939. }
  2940. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2941. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2942. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2943. public virtual int Update(BD_grishinaDataSet dataSet) {
  2944. return this.Adapter.Update(dataSet, "СферыДеятельности");
  2945. }
  2946. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2947. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2948. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2949. public virtual int Update(global::System.Data.DataRow dataRow) {
  2950. return this.Adapter.Update(new global::System.Data.DataRow[] {
  2951. dataRow});
  2952. }
  2953. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2954. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2955. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2956. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  2957. return this.Adapter.Update(dataRows);
  2958. }
  2959. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2960. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2961. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2962. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  2963. public virtual int Delete(int Original_Код_сферы) {
  2964. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_Код_сферы));
  2965. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  2966. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  2967. != global::System.Data.ConnectionState.Open)) {
  2968. this.Adapter.DeleteCommand.Connection.Open();
  2969. }
  2970. try {
  2971. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  2972. return returnValue;
  2973. }
  2974. finally {
  2975. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  2976. this.Adapter.DeleteCommand.Connection.Close();
  2977. }
  2978. }
  2979. }
  2980. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2981. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2982. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2983. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  2984. public virtual int Insert(int Код_сферы, string Сфера_деятельности) {
  2985. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(Код_сферы));
  2986. if ((Сфера_деятельности == null)) {
  2987. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  2988. }
  2989. else {
  2990. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Сфера_деятельности));
  2991. }
  2992. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  2993. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  2994. != global::System.Data.ConnectionState.Open)) {
  2995. this.Adapter.InsertCommand.Connection.Open();
  2996. }
  2997. try {
  2998. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  2999. return returnValue;
  3000. }
  3001. finally {
  3002. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3003. this.Adapter.InsertCommand.Connection.Close();
  3004. }
  3005. }
  3006. }
  3007. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3008. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3009. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3010. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3011. public virtual int Update(int Код_сферы, string Сфера_деятельности, int Original_Код_сферы) {
  3012. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(Код_сферы));
  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 = ((int)(Original_Код_сферы));
  3020. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  3021. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3022. != global::System.Data.ConnectionState.Open)) {
  3023. this.Adapter.UpdateCommand.Connection.Open();
  3024. }
  3025. try {
  3026. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  3027. return returnValue;
  3028. }
  3029. finally {
  3030. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3031. this.Adapter.UpdateCommand.Connection.Close();
  3032. }
  3033. }
  3034. }
  3035. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3036. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3037. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3038. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3039. public virtual int Update(string Сфера_деятельности, int Original_Код_сферы) {
  3040. return this.Update(Original_Код_сферы, Сфера_деятельности, Original_Код_сферы);
  3041. }
  3042. }
  3043. /// <summary>
  3044. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  3045. ///</summary>
  3046. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3047. [global::System.ComponentModel.ToolboxItem(true)]
  3048. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  3049. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3050. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  3051. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  3052. private UpdateOrderOption _updateOrder;
  3053. private АвторизацияTableAdapter _авторизацияTableAdapter;
  3054. private ЛюдиTableAdapter _людиTableAdapter;
  3055. private СписокВакансийTableAdapter _списокВакансийTableAdapter;
  3056. private СферыДеятельностиTableAdapter _сферыДеятельностиTableAdapter;
  3057. private bool _backupDataSetBeforeUpdate;
  3058. private global::System.Data.IDbConnection _connection;
  3059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3060. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3061. public UpdateOrderOption UpdateOrder {
  3062. get {
  3063. return this._updateOrder;
  3064. }
  3065. set {
  3066. this._updateOrder = value;
  3067. }
  3068. }
  3069. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3070. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3071. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  3072. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  3073. "a", "System.Drawing.Design.UITypeEditor")]
  3074. public АвторизацияTableAdapter АвторизацияTableAdapter {
  3075. get {
  3076. return this._авторизацияTableAdapter;
  3077. }
  3078. set {
  3079. this._авторизацияTableAdapter = value;
  3080. }
  3081. }
  3082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3084. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  3085. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  3086. "a", "System.Drawing.Design.UITypeEditor")]
  3087. public ЛюдиTableAdapter ЛюдиTableAdapter {
  3088. get {
  3089. return this._людиTableAdapter;
  3090. }
  3091. set {
  3092. this._людиTableAdapter = value;
  3093. }
  3094. }
  3095. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3096. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3097. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  3098. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  3099. "a", "System.Drawing.Design.UITypeEditor")]
  3100. public СписокВакансийTableAdapter СписокВакансийTableAdapter {
  3101. get {
  3102. return this._списокВакансийTableAdapter;
  3103. }
  3104. set {
  3105. this._списокВакансийTableAdapter = value;
  3106. }
  3107. }
  3108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3110. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  3111. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  3112. "a", "System.Drawing.Design.UITypeEditor")]
  3113. public СферыДеятельностиTableAdapter СферыДеятельностиTableAdapter {
  3114. get {
  3115. return this._сферыДеятельностиTableAdapter;
  3116. }
  3117. set {
  3118. this._сферыДеятельностиTableAdapter = value;
  3119. }
  3120. }
  3121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3123. public bool BackupDataSetBeforeUpdate {
  3124. get {
  3125. return this._backupDataSetBeforeUpdate;
  3126. }
  3127. set {
  3128. this._backupDataSetBeforeUpdate = value;
  3129. }
  3130. }
  3131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3132. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3133. [global::System.ComponentModel.Browsable(false)]
  3134. public global::System.Data.IDbConnection Connection {
  3135. get {
  3136. if ((this._connection != null)) {
  3137. return this._connection;
  3138. }
  3139. if (((this._авторизацияTableAdapter != null)
  3140. && (this._авторизацияTableAdapter.Connection != null))) {
  3141. return this._авторизацияTableAdapter.Connection;
  3142. }
  3143. if (((this._людиTableAdapter != null)
  3144. && (this._людиTableAdapter.Connection != null))) {
  3145. return this._людиTableAdapter.Connection;
  3146. }
  3147. if (((this._списокВакансийTableAdapter != null)
  3148. && (this._списокВакансийTableAdapter.Connection != null))) {
  3149. return this._списокВакансийTableAdapter.Connection;
  3150. }
  3151. if (((this._сферыДеятельностиTableAdapter != null)
  3152. && (this._сферыДеятельностиTableAdapter.Connection != null))) {
  3153. return this._сферыДеятельностиTableAdapter.Connection;
  3154. }
  3155. return null;
  3156. }
  3157. set {
  3158. this._connection = value;
  3159. }
  3160. }
  3161. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3162. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3163. [global::System.ComponentModel.Browsable(false)]
  3164. public int TableAdapterInstanceCount {
  3165. get {
  3166. int count = 0;
  3167. if ((this._авторизацияTableAdapter != null)) {
  3168. count = (count + 1);
  3169. }
  3170. if ((this._людиTableAdapter != null)) {
  3171. count = (count + 1);
  3172. }
  3173. if ((this._списокВакансийTableAdapter != null)) {
  3174. count = (count + 1);
  3175. }
  3176. if ((this._сферыДеятельностиTableAdapter != null)) {
  3177. count = (count + 1);
  3178. }
  3179. return count;
  3180. }
  3181. }
  3182. /// <summary>
  3183. ///Update rows in top-down order.
  3184. ///</summary>
  3185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3186. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3187. private int UpdateUpdatedRows(BD_grishinaDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  3188. int result = 0;
  3189. if ((this._людиTableAdapter != null)) {
  3190. global::System.Data.DataRow[] updatedRows = dataSet.Люди.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  3191. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  3192. if (((updatedRows != null)
  3193. && (0 < updatedRows.Length))) {
  3194. result = (result + this._людиTableAdapter.Update(updatedRows));
  3195. allChangedRows.AddRange(updatedRows);
  3196. }
  3197. }
  3198. if ((this._сферыДеятельностиTableAdapter != null)) {
  3199. global::System.Data.DataRow[] updatedRows = dataSet.СферыДеятельности.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  3200. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  3201. if (((updatedRows != null)
  3202. && (0 < updatedRows.Length))) {
  3203. result = (result + this._сферыДеятельностиTableAdapter.Update(updatedRows));
  3204. allChangedRows.AddRange(updatedRows);
  3205. }
  3206. }
  3207. if ((this._авторизацияTableAdapter != null)) {
  3208. global::System.Data.DataRow[] updatedRows = dataSet.Авторизация.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  3209. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  3210. if (((updatedRows != null)
  3211. && (0 < updatedRows.Length))) {
  3212. result = (result + this._авторизацияTableAdapter.Update(updatedRows));
  3213. allChangedRows.AddRange(updatedRows);
  3214. }
  3215. }
  3216. if ((this._списокВакансийTableAdapter != null)) {
  3217. global::System.Data.DataRow[] updatedRows = dataSet.СписокВакансий.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  3218. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  3219. if (((updatedRows != null)
  3220. && (0 < updatedRows.Length))) {
  3221. result = (result + this._списокВакансийTableAdapter.Update(updatedRows));
  3222. allChangedRows.AddRange(updatedRows);
  3223. }
  3224. }
  3225. return result;
  3226. }
  3227. /// <summary>
  3228. ///Insert rows in top-down order.
  3229. ///</summary>
  3230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3232. private int UpdateInsertedRows(BD_grishinaDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  3233. int result = 0;
  3234. if ((this._людиTableAdapter != null)) {
  3235. global::System.Data.DataRow[] addedRows = dataSet.Люди.Select(null, null, global::System.Data.DataViewRowState.Added);
  3236. if (((addedRows != null)
  3237. && (0 < addedRows.Length))) {
  3238. result = (result + this._людиTableAdapter.Update(addedRows));
  3239. allAddedRows.AddRange(addedRows);
  3240. }
  3241. }
  3242. if ((this._сферыДеятельностиTableAdapter != null)) {
  3243. global::System.Data.DataRow[] addedRows = dataSet.СферыДеятельности.Select(null, null, global::System.Data.DataViewRowState.Added);
  3244. if (((addedRows != null)
  3245. && (0 < addedRows.Length))) {
  3246. result = (result + this._сферыДеятельностиTableAdapter.Update(addedRows));
  3247. allAddedRows.AddRange(addedRows);
  3248. }
  3249. }
  3250. if ((this._авторизацияTableAdapter != null)) {
  3251. global::System.Data.DataRow[] addedRows = dataSet.Авторизация.Select(null, null, global::System.Data.DataViewRowState.Added);
  3252. if (((addedRows != null)
  3253. && (0 < addedRows.Length))) {
  3254. result = (result + this._авторизацияTableAdapter.Update(addedRows));
  3255. allAddedRows.AddRange(addedRows);
  3256. }
  3257. }
  3258. if ((this._списокВакансийTableAdapter != null)) {
  3259. global::System.Data.DataRow[] addedRows = dataSet.СписокВакансий.Select(null, null, global::System.Data.DataViewRowState.Added);
  3260. if (((addedRows != null)
  3261. && (0 < addedRows.Length))) {
  3262. result = (result + this._списокВакансийTableAdapter.Update(addedRows));
  3263. allAddedRows.AddRange(addedRows);
  3264. }
  3265. }
  3266. return result;
  3267. }
  3268. /// <summary>
  3269. ///Delete rows in bottom-up order.
  3270. ///</summary>
  3271. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3272. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3273. private int UpdateDeletedRows(BD_grishinaDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  3274. int result = 0;
  3275. if ((this._списокВакансийTableAdapter != null)) {
  3276. global::System.Data.DataRow[] deletedRows = dataSet.СписокВакансий.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  3277. if (((deletedRows != null)
  3278. && (0 < deletedRows.Length))) {
  3279. result = (result + this._списокВакансийTableAdapter.Update(deletedRows));
  3280. allChangedRows.AddRange(deletedRows);
  3281. }
  3282. }
  3283. if ((this._авторизацияTableAdapter != null)) {
  3284. global::System.Data.DataRow[] deletedRows = dataSet.Авторизация.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  3285. if (((deletedRows != null)
  3286. && (0 < deletedRows.Length))) {
  3287. result = (result + this._авторизацияTableAdapter.Update(deletedRows));
  3288. allChangedRows.AddRange(deletedRows);
  3289. }
  3290. }
  3291. if ((this._сферыДеятельностиTableAdapter != null)) {
  3292. global::System.Data.DataRow[] deletedRows = dataSet.СферыДеятельности.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  3293. if (((deletedRows != null)
  3294. && (0 < deletedRows.Length))) {
  3295. result = (result + this._сферыДеятельностиTableAdapter.Update(deletedRows));
  3296. allChangedRows.AddRange(deletedRows);
  3297. }
  3298. }
  3299. if ((this._людиTableAdapter != null)) {
  3300. global::System.Data.DataRow[] deletedRows = dataSet.Люди.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  3301. if (((deletedRows != null)
  3302. && (0 < deletedRows.Length))) {
  3303. result = (result + this._людиTableAdapter.Update(deletedRows));
  3304. allChangedRows.AddRange(deletedRows);
  3305. }
  3306. }
  3307. return result;
  3308. }
  3309. /// <summary>
  3310. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  3311. ///</summary>
  3312. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3313. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3314. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  3315. if (((updatedRows == null)
  3316. || (updatedRows.Length < 1))) {
  3317. return updatedRows;
  3318. }
  3319. if (((allAddedRows == null)
  3320. || (allAddedRows.Count < 1))) {
  3321. return updatedRows;
  3322. }
  3323. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  3324. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  3325. global::System.Data.DataRow row = updatedRows[i];
  3326. if ((allAddedRows.Contains(row) == false)) {
  3327. realUpdatedRows.Add(row);
  3328. }
  3329. }
  3330. return realUpdatedRows.ToArray();
  3331. }
  3332. /// <summary>
  3333. ///Update all changes to the dataset.
  3334. ///</summary>
  3335. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3336. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3337. public virtual int UpdateAll(BD_grishinaDataSet dataSet) {
  3338. if ((dataSet == null)) {
  3339. throw new global::System.ArgumentNullException("dataSet");
  3340. }
  3341. if ((dataSet.HasChanges() == false)) {
  3342. return 0;
  3343. }
  3344. if (((this._авторизацияTableAdapter != null)
  3345. && (this.MatchTableAdapterConnection(this._авторизацияTableAdapter.Connection) == false))) {
  3346. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  3347. "r, должны использовать одинаковую строку подключения.");
  3348. }
  3349. if (((this._людиTableAdapter != null)
  3350. && (this.MatchTableAdapterConnection(this._людиTableAdapter.Connection) == false))) {
  3351. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  3352. "r, должны использовать одинаковую строку подключения.");
  3353. }
  3354. if (((this._списокВакансийTableAdapter != null)
  3355. && (this.MatchTableAdapterConnection(this._списокВакансийTableAdapter.Connection) == false))) {
  3356. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  3357. "r, должны использовать одинаковую строку подключения.");
  3358. }
  3359. if (((this._сферыДеятельностиTableAdapter != null)
  3360. && (this.MatchTableAdapterConnection(this._сферыДеятельностиTableAdapter.Connection) == false))) {
  3361. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  3362. "r, должны использовать одинаковую строку подключения.");
  3363. }
  3364. global::System.Data.IDbConnection workConnection = this.Connection;
  3365. if ((workConnection == null)) {
  3366. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  3367. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  3368. }
  3369. bool workConnOpened = false;
  3370. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  3371. == global::System.Data.ConnectionState.Broken)) {
  3372. workConnection.Close();
  3373. }
  3374. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  3375. workConnection.Open();
  3376. workConnOpened = true;
  3377. }
  3378. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  3379. if ((workTransaction == null)) {
  3380. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  3381. "и или текущее состояние не позволяет начать транзакцию.");
  3382. }
  3383. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  3384. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  3385. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  3386. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  3387. int result = 0;
  3388. global::System.Data.DataSet backupDataSet = null;
  3389. if (this.BackupDataSetBeforeUpdate) {
  3390. backupDataSet = new global::System.Data.DataSet();
  3391. backupDataSet.Merge(dataSet);
  3392. }
  3393. try {
  3394. // ---- Prepare for update -----------
  3395. //
  3396. if ((this._авторизацияTableAdapter != null)) {
  3397. revertConnections.Add(this._авторизацияTableAdapter, this._авторизацияTableAdapter.Connection);
  3398. this._авторизацияTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  3399. this._авторизацияTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  3400. if (this._авторизацияTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  3401. this._авторизацияTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  3402. adaptersWithAcceptChangesDuringUpdate.Add(this._авторизацияTableAdapter.Adapter);
  3403. }
  3404. }
  3405. if ((this._людиTableAdapter != null)) {
  3406. revertConnections.Add(this._людиTableAdapter, this._людиTableAdapter.Connection);
  3407. this._людиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  3408. this._людиTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  3409. if (this._людиTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  3410. this._людиTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  3411. adaptersWithAcceptChangesDuringUpdate.Add(this._людиTableAdapter.Adapter);
  3412. }
  3413. }
  3414. if ((this._списокВакансийTableAdapter != null)) {
  3415. revertConnections.Add(this._списокВакансийTableAdapter, this._списокВакансийTableAdapter.Connection);
  3416. this._списокВакансийTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  3417. this._списокВакансийTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  3418. if (this._списокВакансийTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  3419. this._списокВакансийTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  3420. adaptersWithAcceptChangesDuringUpdate.Add(this._списокВакансийTableAdapter.Adapter);
  3421. }
  3422. }
  3423. if ((this._сферыДеятельностиTableAdapter != null)) {
  3424. revertConnections.Add(this._сферыДеятельностиTableAdapter, this._сферыДеятельностиTableAdapter.Connection);
  3425. this._сферыДеятельностиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  3426. this._сферыДеятельностиTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  3427. if (this._сферыДеятельностиTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  3428. this._сферыДеятельностиTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  3429. adaptersWithAcceptChangesDuringUpdate.Add(this._сферыДеятельностиTableAdapter.Adapter);
  3430. }
  3431. }
  3432. //
  3433. //---- Perform updates -----------
  3434. //
  3435. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  3436. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  3437. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  3438. }
  3439. else {
  3440. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  3441. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  3442. }
  3443. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  3444. //
  3445. //---- Commit updates -----------
  3446. //
  3447. workTransaction.Commit();
  3448. if ((0 < allAddedRows.Count)) {
  3449. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  3450. allAddedRows.CopyTo(rows);
  3451. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  3452. global::System.Data.DataRow row = rows[i];
  3453. row.AcceptChanges();
  3454. }
  3455. }
  3456. if ((0 < allChangedRows.Count)) {
  3457. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  3458. allChangedRows.CopyTo(rows);
  3459. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  3460. global::System.Data.DataRow row = rows[i];
  3461. row.AcceptChanges();
  3462. }
  3463. }
  3464. }
  3465. catch (global::System.Exception ex) {
  3466. workTransaction.Rollback();
  3467. // ---- Restore the dataset -----------
  3468. if (this.BackupDataSetBeforeUpdate) {
  3469. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  3470. dataSet.Clear();
  3471. dataSet.Merge(backupDataSet);
  3472. }
  3473. else {
  3474. if ((0 < allAddedRows.Count)) {
  3475. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  3476. allAddedRows.CopyTo(rows);
  3477. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  3478. global::System.Data.DataRow row = rows[i];
  3479. row.AcceptChanges();
  3480. row.SetAdded();
  3481. }
  3482. }
  3483. }
  3484. throw ex;
  3485. }
  3486. finally {
  3487. if (workConnOpened) {
  3488. workConnection.Close();
  3489. }
  3490. if ((this._авторизацияTableAdapter != null)) {
  3491. this._авторизацияTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._авторизацияTableAdapter]));
  3492. this._авторизацияTableAdapter.Transaction = null;
  3493. }
  3494. if ((this._людиTableAdapter != null)) {
  3495. this._людиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._людиTableAdapter]));
  3496. this._людиTableAdapter.Transaction = null;
  3497. }
  3498. if ((this._списокВакансийTableAdapter != null)) {
  3499. this._списокВакансийTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._списокВакансийTableAdapter]));
  3500. this._списокВакансийTableAdapter.Transaction = null;
  3501. }
  3502. if ((this._сферыДеятельностиTableAdapter != null)) {
  3503. this._сферыДеятельностиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._сферыДеятельностиTableAdapter]));
  3504. this._сферыДеятельностиTableAdapter.Transaction = null;
  3505. }
  3506. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  3507. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  3508. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  3509. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  3510. global::System.Data.Common.DataAdapter adapter = adapters[i];
  3511. adapter.AcceptChangesDuringUpdate = true;
  3512. }
  3513. }
  3514. }
  3515. return result;
  3516. }
  3517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3518. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3519. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  3520. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  3521. }
  3522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3524. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  3525. if ((this._connection != null)) {
  3526. return true;
  3527. }
  3528. if (((this.Connection == null)
  3529. || (inputConnection == null))) {
  3530. return true;
  3531. }
  3532. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  3533. return true;
  3534. }
  3535. return false;
  3536. }
  3537. /// <summary>
  3538. ///Update Order Option
  3539. ///</summary>
  3540. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3541. public enum UpdateOrderOption {
  3542. InsertUpdateDelete = 0,
  3543. UpdateInsertDelete = 1,
  3544. }
  3545. /// <summary>
  3546. ///Used to sort self-referenced table's rows
  3547. ///</summary>
  3548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3549. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  3550. private global::System.Data.DataRelation _relation;
  3551. private int _childFirst;
  3552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3554. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  3555. this._relation = relation;
  3556. if (childFirst) {
  3557. this._childFirst = -1;
  3558. }
  3559. else {
  3560. this._childFirst = 1;
  3561. }
  3562. }
  3563. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3564. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3565. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  3566. global::System.Diagnostics.Debug.Assert((row != null));
  3567. global::System.Data.DataRow root = row;
  3568. distance = 0;
  3569. 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>();
  3570. traversedRows[row] = row;
  3571. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  3572. for (
  3573. ; ((parent != null)
  3574. && (traversedRows.ContainsKey(parent) == false));
  3575. ) {
  3576. distance = (distance + 1);
  3577. root = parent;
  3578. traversedRows[parent] = parent;
  3579. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  3580. }
  3581. if ((distance == 0)) {
  3582. traversedRows.Clear();
  3583. traversedRows[row] = row;
  3584. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  3585. for (
  3586. ; ((parent != null)
  3587. && (traversedRows.ContainsKey(parent) == false));
  3588. ) {
  3589. distance = (distance + 1);
  3590. root = parent;
  3591. traversedRows[parent] = parent;
  3592. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  3593. }
  3594. }
  3595. return root;
  3596. }
  3597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3598. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3599. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  3600. if (object.ReferenceEquals(row1, row2)) {
  3601. return 0;
  3602. }
  3603. if ((row1 == null)) {
  3604. return -1;
  3605. }
  3606. if ((row2 == null)) {
  3607. return 1;
  3608. }
  3609. int distance1 = 0;
  3610. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  3611. int distance2 = 0;
  3612. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  3613. if (object.ReferenceEquals(root1, root2)) {
  3614. return (this._childFirst * distance1.CompareTo(distance2));
  3615. }
  3616. else {
  3617. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  3618. && (root2.Table != null)));
  3619. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  3620. return -1;
  3621. }
  3622. else {
  3623. return 1;
  3624. }
  3625. }
  3626. }
  3627. }
  3628. }
  3629. }
  3630. #pragma warning restore 1591