BD_DiachkovSyxlecovDataSet1.Designer.cs 217 KB

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