KrymkovBDDataSet.Designer.cs 144 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378
  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("KrymkovBDDataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class KrymkovBDDataSet : global::System.Data.DataSet {
  22. private Список_вакансийDataTable tableСписок_вакансий;
  23. private Сфера_деятельностиDataTable tableСфера_деятельности;
  24. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  25. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  26. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  27. public KrymkovBDDataSet() {
  28. this.BeginInit();
  29. this.InitClass();
  30. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  31. base.Tables.CollectionChanged += schemaChangedHandler;
  32. base.Relations.CollectionChanged += schemaChangedHandler;
  33. this.EndInit();
  34. }
  35. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  36. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  37. protected KrymkovBDDataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  38. base(info, context, false) {
  39. if ((this.IsBinarySerialized(info, context) == true)) {
  40. this.InitVars(false);
  41. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  42. this.Tables.CollectionChanged += schemaChangedHandler1;
  43. this.Relations.CollectionChanged += schemaChangedHandler1;
  44. return;
  45. }
  46. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  47. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  48. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  49. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  50. if ((ds.Tables["Список вакансий"] != null)) {
  51. base.Tables.Add(new Список_вакансийDataTable(ds.Tables["Список вакансий"]));
  52. }
  53. if ((ds.Tables["Сфера деятельности"] != null)) {
  54. base.Tables.Add(new Сфера_деятельностиDataTable(ds.Tables["Сфера деятельности"]));
  55. }
  56. this.DataSetName = ds.DataSetName;
  57. this.Prefix = ds.Prefix;
  58. this.Namespace = ds.Namespace;
  59. this.Locale = ds.Locale;
  60. this.CaseSensitive = ds.CaseSensitive;
  61. this.EnforceConstraints = ds.EnforceConstraints;
  62. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  63. this.InitVars();
  64. }
  65. else {
  66. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  67. }
  68. this.GetSerializationData(info, context);
  69. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  70. base.Tables.CollectionChanged += schemaChangedHandler;
  71. this.Relations.CollectionChanged += schemaChangedHandler;
  72. }
  73. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  74. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  75. [global::System.ComponentModel.Browsable(false)]
  76. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  77. public Список_вакансийDataTable Список_вакансий {
  78. get {
  79. return this.tableСписок_вакансий;
  80. }
  81. }
  82. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  83. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  84. [global::System.ComponentModel.Browsable(false)]
  85. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  86. public Сфера_деятельностиDataTable Сфера_деятельности {
  87. get {
  88. return this.tableСфера_деятельности;
  89. }
  90. }
  91. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  92. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  93. [global::System.ComponentModel.BrowsableAttribute(true)]
  94. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  95. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  96. get {
  97. return this._schemaSerializationMode;
  98. }
  99. set {
  100. this._schemaSerializationMode = value;
  101. }
  102. }
  103. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  104. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  105. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  106. public new global::System.Data.DataTableCollection Tables {
  107. get {
  108. return base.Tables;
  109. }
  110. }
  111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  113. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  114. public new global::System.Data.DataRelationCollection Relations {
  115. get {
  116. return base.Relations;
  117. }
  118. }
  119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  120. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  121. protected override void InitializeDerivedDataSet() {
  122. this.BeginInit();
  123. this.InitClass();
  124. this.EndInit();
  125. }
  126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  128. public override global::System.Data.DataSet Clone() {
  129. KrymkovBDDataSet cln = ((KrymkovBDDataSet)(base.Clone()));
  130. cln.InitVars();
  131. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  132. return cln;
  133. }
  134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  135. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  136. protected override bool ShouldSerializeTables() {
  137. return false;
  138. }
  139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  141. protected override bool ShouldSerializeRelations() {
  142. return false;
  143. }
  144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  146. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  147. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  148. this.Reset();
  149. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  150. ds.ReadXml(reader);
  151. if ((ds.Tables["Список вакансий"] != null)) {
  152. base.Tables.Add(new Список_вакансийDataTable(ds.Tables["Список вакансий"]));
  153. }
  154. if ((ds.Tables["Сфера деятельности"] != null)) {
  155. base.Tables.Add(new Сфера_деятельностиDataTable(ds.Tables["Сфера деятельности"]));
  156. }
  157. this.DataSetName = ds.DataSetName;
  158. this.Prefix = ds.Prefix;
  159. this.Namespace = ds.Namespace;
  160. this.Locale = ds.Locale;
  161. this.CaseSensitive = ds.CaseSensitive;
  162. this.EnforceConstraints = ds.EnforceConstraints;
  163. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  164. this.InitVars();
  165. }
  166. else {
  167. this.ReadXml(reader);
  168. this.InitVars();
  169. }
  170. }
  171. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  172. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  173. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  174. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  175. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  176. stream.Position = 0;
  177. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  178. }
  179. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  180. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  181. internal void InitVars() {
  182. this.InitVars(true);
  183. }
  184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  186. internal void InitVars(bool initTable) {
  187. this.tableСписок_вакансий = ((Список_вакансийDataTable)(base.Tables["Список вакансий"]));
  188. if ((initTable == true)) {
  189. if ((this.tableСписок_вакансий != null)) {
  190. this.tableСписок_вакансий.InitVars();
  191. }
  192. }
  193. this.tableСфера_деятельности = ((Сфера_деятельностиDataTable)(base.Tables["Сфера деятельности"]));
  194. if ((initTable == true)) {
  195. if ((this.tableСфера_деятельности != null)) {
  196. this.tableСфера_деятельности.InitVars();
  197. }
  198. }
  199. }
  200. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  201. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  202. private void InitClass() {
  203. this.DataSetName = "KrymkovBDDataSet";
  204. this.Prefix = "";
  205. this.Namespace = "http://tempuri.org/KrymkovBDDataSet.xsd";
  206. this.EnforceConstraints = true;
  207. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  208. this.tableСписок_вакансий = new Список_вакансийDataTable();
  209. base.Tables.Add(this.tableСписок_вакансий);
  210. this.tableСфера_деятельности = new Сфера_деятельностиDataTable();
  211. base.Tables.Add(this.tableСфера_деятельности);
  212. }
  213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  214. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  215. private bool ShouldSerializeСписок_вакансий() {
  216. return false;
  217. }
  218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  219. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  220. private bool ShouldSerializeСфера_деятельности() {
  221. return false;
  222. }
  223. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  224. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  225. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  226. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  227. this.InitVars();
  228. }
  229. }
  230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  232. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  233. KrymkovBDDataSet ds = new KrymkovBDDataSet();
  234. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  235. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  236. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  237. any.Namespace = ds.Namespace;
  238. sequence.Items.Add(any);
  239. type.Particle = sequence;
  240. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  241. if (xs.Contains(dsSchema.TargetNamespace)) {
  242. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  243. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  244. try {
  245. global::System.Xml.Schema.XmlSchema schema = null;
  246. dsSchema.Write(s1);
  247. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  248. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  249. s2.SetLength(0);
  250. schema.Write(s2);
  251. if ((s1.Length == s2.Length)) {
  252. s1.Position = 0;
  253. s2.Position = 0;
  254. for (; ((s1.Position != s1.Length)
  255. && (s1.ReadByte() == s2.ReadByte())); ) {
  256. ;
  257. }
  258. if ((s1.Position == s1.Length)) {
  259. return type;
  260. }
  261. }
  262. }
  263. }
  264. finally {
  265. if ((s1 != null)) {
  266. s1.Close();
  267. }
  268. if ((s2 != null)) {
  269. s2.Close();
  270. }
  271. }
  272. }
  273. xs.Add(dsSchema);
  274. return type;
  275. }
  276. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  277. public delegate void Список_вакансийRowChangeEventHandler(object sender, Список_вакансийRowChangeEvent e);
  278. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  279. public delegate void Сфера_деятельностиRowChangeEventHandler(object sender, Сфера_деятельностиRowChangeEvent e);
  280. /// <summary>
  281. ///Represents the strongly named DataTable class.
  282. ///</summary>
  283. [global::System.Serializable()]
  284. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  285. public partial class Список_вакансийDataTable : global::System.Data.TypedTableBase<Список_вакансийRow> {
  286. private global::System.Data.DataColumn columnКод_сферы;
  287. private global::System.Data.DataColumn columnДолжность;
  288. private global::System.Data.DataColumn columnОклад;
  289. private global::System.Data.DataColumn columnТребовния_к_соискателю;
  290. private global::System.Data.DataColumn columnРаботодатель;
  291. private global::System.Data.DataColumn columnКонтактный_номер;
  292. private global::System.Data.DataColumn columnКод_вакансии;
  293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  294. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  295. public Список_вакансийDataTable() {
  296. this.TableName = "Список вакансий";
  297. this.BeginInit();
  298. this.InitClass();
  299. this.EndInit();
  300. }
  301. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  302. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  303. internal Список_вакансийDataTable(global::System.Data.DataTable table) {
  304. this.TableName = table.TableName;
  305. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  306. this.CaseSensitive = table.CaseSensitive;
  307. }
  308. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  309. this.Locale = table.Locale;
  310. }
  311. if ((table.Namespace != table.DataSet.Namespace)) {
  312. this.Namespace = table.Namespace;
  313. }
  314. this.Prefix = table.Prefix;
  315. this.MinimumCapacity = table.MinimumCapacity;
  316. }
  317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  319. protected Список_вакансийDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  320. base(info, context) {
  321. this.InitVars();
  322. }
  323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  324. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  325. public global::System.Data.DataColumn Код_сферыColumn {
  326. get {
  327. return this.columnКод_сферы;
  328. }
  329. }
  330. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  331. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  332. public global::System.Data.DataColumn ДолжностьColumn {
  333. get {
  334. return this.columnДолжность;
  335. }
  336. }
  337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  339. public global::System.Data.DataColumn ОкладColumn {
  340. get {
  341. return this.columnОклад;
  342. }
  343. }
  344. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  345. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  346. public global::System.Data.DataColumn Требовния_к_соискателюColumn {
  347. get {
  348. return this.columnТребовния_к_соискателю;
  349. }
  350. }
  351. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  352. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  353. public global::System.Data.DataColumn РаботодательColumn {
  354. get {
  355. return this.columnРаботодатель;
  356. }
  357. }
  358. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  359. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  360. public global::System.Data.DataColumn Контактный_номерColumn {
  361. get {
  362. return this.columnКонтактный_номер;
  363. }
  364. }
  365. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  366. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  367. public global::System.Data.DataColumn Код_вакансииColumn {
  368. get {
  369. return this.columnКод_вакансии;
  370. }
  371. }
  372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  374. [global::System.ComponentModel.Browsable(false)]
  375. public int Count {
  376. get {
  377. return this.Rows.Count;
  378. }
  379. }
  380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  382. public Список_вакансийRow this[int index] {
  383. get {
  384. return ((Список_вакансийRow)(this.Rows[index]));
  385. }
  386. }
  387. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  388. public event Список_вакансийRowChangeEventHandler Список_вакансийRowChanging;
  389. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  390. public event Список_вакансийRowChangeEventHandler Список_вакансийRowChanged;
  391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  392. public event Список_вакансийRowChangeEventHandler Список_вакансийRowDeleting;
  393. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  394. public event Список_вакансийRowChangeEventHandler Список_вакансийRowDeleted;
  395. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  396. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  397. public void AddСписок_вакансийRow(Список_вакансийRow row) {
  398. this.Rows.Add(row);
  399. }
  400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  402. public Список_вакансийRow AddСписок_вакансийRow(string Код_сферы, string Должность, string Оклад, string Требовния_к_соискателю, string Работодатель, string Контактный_номер, string Код_вакансии) {
  403. Список_вакансийRow rowСписок_вакансийRow = ((Список_вакансийRow)(this.NewRow()));
  404. object[] columnValuesArray = new object[] {
  405. Код_сферы,
  406. Должность,
  407. Оклад,
  408. Требовния_к_соискателю,
  409. Работодатель,
  410. Контактный_номер,
  411. Код_вакансии};
  412. rowСписок_вакансийRow.ItemArray = columnValuesArray;
  413. this.Rows.Add(rowСписок_вакансийRow);
  414. return rowСписок_вакансийRow;
  415. }
  416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  418. public Список_вакансийRow FindByКод_вакансии(string Код_вакансии) {
  419. return ((Список_вакансийRow)(this.Rows.Find(new object[] {
  420. Код_вакансии})));
  421. }
  422. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  423. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  424. public override global::System.Data.DataTable Clone() {
  425. Список_вакансийDataTable cln = ((Список_вакансийDataTable)(base.Clone()));
  426. cln.InitVars();
  427. return cln;
  428. }
  429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  431. protected override global::System.Data.DataTable CreateInstance() {
  432. return new Список_вакансийDataTable();
  433. }
  434. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  435. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  436. internal void InitVars() {
  437. this.columnКод_сферы = base.Columns["Код сферы"];
  438. this.columnДолжность = base.Columns["Должность"];
  439. this.columnОклад = base.Columns["Оклад"];
  440. this.columnТребовния_к_соискателю = base.Columns["Требовния к соискателю"];
  441. this.columnРаботодатель = base.Columns["Работодатель"];
  442. this.columnКонтактный_номер = base.Columns["Контактный номер"];
  443. this.columnКод_вакансии = base.Columns["Код вакансии"];
  444. }
  445. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  446. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  447. private void InitClass() {
  448. this.columnКод_сферы = new global::System.Data.DataColumn("Код сферы", typeof(string), null, global::System.Data.MappingType.Element);
  449. base.Columns.Add(this.columnКод_сферы);
  450. this.columnДолжность = new global::System.Data.DataColumn("Должность", typeof(string), null, global::System.Data.MappingType.Element);
  451. base.Columns.Add(this.columnДолжность);
  452. this.columnОклад = new global::System.Data.DataColumn("Оклад", typeof(string), null, global::System.Data.MappingType.Element);
  453. base.Columns.Add(this.columnОклад);
  454. this.columnТребовния_к_соискателю = new global::System.Data.DataColumn("Требовния к соискателю", typeof(string), null, global::System.Data.MappingType.Element);
  455. base.Columns.Add(this.columnТребовния_к_соискателю);
  456. this.columnРаботодатель = new global::System.Data.DataColumn("Работодатель", typeof(string), null, global::System.Data.MappingType.Element);
  457. base.Columns.Add(this.columnРаботодатель);
  458. this.columnКонтактный_номер = new global::System.Data.DataColumn("Контактный номер", typeof(string), null, global::System.Data.MappingType.Element);
  459. base.Columns.Add(this.columnКонтактный_номер);
  460. this.columnКод_вакансии = new global::System.Data.DataColumn("Код вакансии", typeof(string), null, global::System.Data.MappingType.Element);
  461. base.Columns.Add(this.columnКод_вакансии);
  462. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  463. this.columnКод_вакансии}, true));
  464. this.columnКод_сферы.MaxLength = 10;
  465. this.columnДолжность.MaxLength = 2147483647;
  466. this.columnОклад.MaxLength = 2147483647;
  467. this.columnТребовния_к_соискателю.MaxLength = 2147483647;
  468. this.columnРаботодатель.MaxLength = 2147483647;
  469. this.columnКонтактный_номер.MaxLength = 2147483647;
  470. this.columnКод_вакансии.AllowDBNull = false;
  471. this.columnКод_вакансии.Unique = true;
  472. this.columnКод_вакансии.MaxLength = 10;
  473. }
  474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  476. public Список_вакансийRow NewСписок_вакансийRow() {
  477. return ((Список_вакансийRow)(this.NewRow()));
  478. }
  479. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  480. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  481. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  482. return new Список_вакансийRow(builder);
  483. }
  484. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  485. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  486. protected override global::System.Type GetRowType() {
  487. return typeof(Список_вакансийRow);
  488. }
  489. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  490. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  491. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  492. base.OnRowChanged(e);
  493. if ((this.Список_вакансийRowChanged != null)) {
  494. this.Список_вакансийRowChanged(this, new Список_вакансийRowChangeEvent(((Список_вакансийRow)(e.Row)), e.Action));
  495. }
  496. }
  497. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  498. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  499. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  500. base.OnRowChanging(e);
  501. if ((this.Список_вакансийRowChanging != null)) {
  502. this.Список_вакансийRowChanging(this, new Список_вакансийRowChangeEvent(((Список_вакансийRow)(e.Row)), e.Action));
  503. }
  504. }
  505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  507. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  508. base.OnRowDeleted(e);
  509. if ((this.Список_вакансийRowDeleted != null)) {
  510. this.Список_вакансийRowDeleted(this, new Список_вакансийRowChangeEvent(((Список_вакансийRow)(e.Row)), e.Action));
  511. }
  512. }
  513. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  514. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  515. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  516. base.OnRowDeleting(e);
  517. if ((this.Список_вакансийRowDeleting != null)) {
  518. this.Список_вакансийRowDeleting(this, new Список_вакансийRowChangeEvent(((Список_вакансийRow)(e.Row)), e.Action));
  519. }
  520. }
  521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  523. public void RemoveСписок_вакансийRow(Список_вакансийRow row) {
  524. this.Rows.Remove(row);
  525. }
  526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  528. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  529. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  530. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  531. KrymkovBDDataSet ds = new KrymkovBDDataSet();
  532. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  533. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  534. any1.MinOccurs = new decimal(0);
  535. any1.MaxOccurs = decimal.MaxValue;
  536. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  537. sequence.Items.Add(any1);
  538. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  539. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  540. any2.MinOccurs = new decimal(1);
  541. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  542. sequence.Items.Add(any2);
  543. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  544. attribute1.Name = "namespace";
  545. attribute1.FixedValue = ds.Namespace;
  546. type.Attributes.Add(attribute1);
  547. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  548. attribute2.Name = "tableTypeName";
  549. attribute2.FixedValue = "Список_вакансийDataTable";
  550. type.Attributes.Add(attribute2);
  551. type.Particle = sequence;
  552. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  553. if (xs.Contains(dsSchema.TargetNamespace)) {
  554. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  555. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  556. try {
  557. global::System.Xml.Schema.XmlSchema schema = null;
  558. dsSchema.Write(s1);
  559. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  560. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  561. s2.SetLength(0);
  562. schema.Write(s2);
  563. if ((s1.Length == s2.Length)) {
  564. s1.Position = 0;
  565. s2.Position = 0;
  566. for (; ((s1.Position != s1.Length)
  567. && (s1.ReadByte() == s2.ReadByte())); ) {
  568. ;
  569. }
  570. if ((s1.Position == s1.Length)) {
  571. return type;
  572. }
  573. }
  574. }
  575. }
  576. finally {
  577. if ((s1 != null)) {
  578. s1.Close();
  579. }
  580. if ((s2 != null)) {
  581. s2.Close();
  582. }
  583. }
  584. }
  585. xs.Add(dsSchema);
  586. return type;
  587. }
  588. }
  589. /// <summary>
  590. ///Represents the strongly named DataTable class.
  591. ///</summary>
  592. [global::System.Serializable()]
  593. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  594. public partial class Сфера_деятельностиDataTable : global::System.Data.TypedTableBase<Сфера_деятельностиRow> {
  595. private global::System.Data.DataColumn columnКод_сферы;
  596. private global::System.Data.DataColumn columnСфера_деятельности;
  597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  598. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  599. public Сфера_деятельностиDataTable() {
  600. this.TableName = "Сфера деятельности";
  601. this.BeginInit();
  602. this.InitClass();
  603. this.EndInit();
  604. }
  605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  607. internal Сфера_деятельностиDataTable(global::System.Data.DataTable table) {
  608. this.TableName = table.TableName;
  609. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  610. this.CaseSensitive = table.CaseSensitive;
  611. }
  612. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  613. this.Locale = table.Locale;
  614. }
  615. if ((table.Namespace != table.DataSet.Namespace)) {
  616. this.Namespace = table.Namespace;
  617. }
  618. this.Prefix = table.Prefix;
  619. this.MinimumCapacity = table.MinimumCapacity;
  620. }
  621. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  622. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  623. protected Сфера_деятельностиDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  624. base(info, context) {
  625. this.InitVars();
  626. }
  627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  629. public global::System.Data.DataColumn Код_сферыColumn {
  630. get {
  631. return this.columnКод_сферы;
  632. }
  633. }
  634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  636. public global::System.Data.DataColumn Сфера_деятельностиColumn {
  637. get {
  638. return this.columnСфера_деятельности;
  639. }
  640. }
  641. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  642. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  643. [global::System.ComponentModel.Browsable(false)]
  644. public int Count {
  645. get {
  646. return this.Rows.Count;
  647. }
  648. }
  649. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  650. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  651. public Сфера_деятельностиRow this[int index] {
  652. get {
  653. return ((Сфера_деятельностиRow)(this.Rows[index]));
  654. }
  655. }
  656. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  657. public event Сфера_деятельностиRowChangeEventHandler Сфера_деятельностиRowChanging;
  658. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  659. public event Сфера_деятельностиRowChangeEventHandler Сфера_деятельностиRowChanged;
  660. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  661. public event Сфера_деятельностиRowChangeEventHandler Сфера_деятельностиRowDeleting;
  662. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  663. public event Сфера_деятельностиRowChangeEventHandler Сфера_деятельностиRowDeleted;
  664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  666. public void AddСфера_деятельностиRow(Сфера_деятельностиRow row) {
  667. this.Rows.Add(row);
  668. }
  669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  670. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  671. public Сфера_деятельностиRow AddСфера_деятельностиRow(string Сфера_деятельности) {
  672. Сфера_деятельностиRow rowСфера_деятельностиRow = ((Сфера_деятельностиRow)(this.NewRow()));
  673. object[] columnValuesArray = new object[] {
  674. null,
  675. Сфера_деятельности};
  676. rowСфера_деятельностиRow.ItemArray = columnValuesArray;
  677. this.Rows.Add(rowСфера_деятельностиRow);
  678. return rowСфера_деятельностиRow;
  679. }
  680. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  681. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  682. public override global::System.Data.DataTable Clone() {
  683. Сфера_деятельностиDataTable cln = ((Сфера_деятельностиDataTable)(base.Clone()));
  684. cln.InitVars();
  685. return cln;
  686. }
  687. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  688. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  689. protected override global::System.Data.DataTable CreateInstance() {
  690. return new Сфера_деятельностиDataTable();
  691. }
  692. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  693. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  694. internal void InitVars() {
  695. this.columnКод_сферы = base.Columns["Код сферы"];
  696. this.columnСфера_деятельности = base.Columns["Сфера деятельности"];
  697. }
  698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  699. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  700. private void InitClass() {
  701. this.columnКод_сферы = new global::System.Data.DataColumn("Код сферы", typeof(decimal), null, global::System.Data.MappingType.Element);
  702. base.Columns.Add(this.columnКод_сферы);
  703. this.columnСфера_деятельности = new global::System.Data.DataColumn("Сфера деятельности", typeof(string), null, global::System.Data.MappingType.Element);
  704. base.Columns.Add(this.columnСфера_деятельности);
  705. this.columnКод_сферы.AutoIncrement = true;
  706. this.columnКод_сферы.AutoIncrementSeed = -1;
  707. this.columnКод_сферы.AutoIncrementStep = -1;
  708. this.columnКод_сферы.AllowDBNull = false;
  709. this.columnКод_сферы.ReadOnly = true;
  710. this.columnСфера_деятельности.AllowDBNull = false;
  711. this.columnСфера_деятельности.MaxLength = 2147483647;
  712. }
  713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  715. public Сфера_деятельностиRow NewСфера_деятельностиRow() {
  716. return ((Сфера_деятельностиRow)(this.NewRow()));
  717. }
  718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  719. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  720. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  721. return new Сфера_деятельностиRow(builder);
  722. }
  723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  724. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  725. protected override global::System.Type GetRowType() {
  726. return typeof(Сфера_деятельностиRow);
  727. }
  728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  729. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  730. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  731. base.OnRowChanged(e);
  732. if ((this.Сфера_деятельностиRowChanged != null)) {
  733. this.Сфера_деятельностиRowChanged(this, new Сфера_деятельностиRowChangeEvent(((Сфера_деятельностиRow)(e.Row)), e.Action));
  734. }
  735. }
  736. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  737. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  738. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  739. base.OnRowChanging(e);
  740. if ((this.Сфера_деятельностиRowChanging != null)) {
  741. this.Сфера_деятельностиRowChanging(this, new Сфера_деятельностиRowChangeEvent(((Сфера_деятельностиRow)(e.Row)), e.Action));
  742. }
  743. }
  744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  746. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  747. base.OnRowDeleted(e);
  748. if ((this.Сфера_деятельностиRowDeleted != null)) {
  749. this.Сфера_деятельностиRowDeleted(this, new Сфера_деятельностиRowChangeEvent(((Сфера_деятельностиRow)(e.Row)), e.Action));
  750. }
  751. }
  752. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  753. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  754. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  755. base.OnRowDeleting(e);
  756. if ((this.Сфера_деятельностиRowDeleting != null)) {
  757. this.Сфера_деятельностиRowDeleting(this, new Сфера_деятельностиRowChangeEvent(((Сфера_деятельностиRow)(e.Row)), e.Action));
  758. }
  759. }
  760. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  761. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  762. public void RemoveСфера_деятельностиRow(Сфера_деятельностиRow row) {
  763. this.Rows.Remove(row);
  764. }
  765. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  766. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  767. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  768. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  769. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  770. KrymkovBDDataSet ds = new KrymkovBDDataSet();
  771. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  772. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  773. any1.MinOccurs = new decimal(0);
  774. any1.MaxOccurs = decimal.MaxValue;
  775. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  776. sequence.Items.Add(any1);
  777. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  778. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  779. any2.MinOccurs = new decimal(1);
  780. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  781. sequence.Items.Add(any2);
  782. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  783. attribute1.Name = "namespace";
  784. attribute1.FixedValue = ds.Namespace;
  785. type.Attributes.Add(attribute1);
  786. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  787. attribute2.Name = "tableTypeName";
  788. attribute2.FixedValue = "Сфера_деятельностиDataTable";
  789. type.Attributes.Add(attribute2);
  790. type.Particle = sequence;
  791. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  792. if (xs.Contains(dsSchema.TargetNamespace)) {
  793. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  794. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  795. try {
  796. global::System.Xml.Schema.XmlSchema schema = null;
  797. dsSchema.Write(s1);
  798. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  799. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  800. s2.SetLength(0);
  801. schema.Write(s2);
  802. if ((s1.Length == s2.Length)) {
  803. s1.Position = 0;
  804. s2.Position = 0;
  805. for (; ((s1.Position != s1.Length)
  806. && (s1.ReadByte() == s2.ReadByte())); ) {
  807. ;
  808. }
  809. if ((s1.Position == s1.Length)) {
  810. return type;
  811. }
  812. }
  813. }
  814. }
  815. finally {
  816. if ((s1 != null)) {
  817. s1.Close();
  818. }
  819. if ((s2 != null)) {
  820. s2.Close();
  821. }
  822. }
  823. }
  824. xs.Add(dsSchema);
  825. return type;
  826. }
  827. }
  828. /// <summary>
  829. ///Represents strongly named DataRow class.
  830. ///</summary>
  831. public partial class Список_вакансийRow : global::System.Data.DataRow {
  832. private Список_вакансийDataTable tableСписок_вакансий;
  833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  835. internal Список_вакансийRow(global::System.Data.DataRowBuilder rb) :
  836. base(rb) {
  837. this.tableСписок_вакансий = ((Список_вакансийDataTable)(this.Table));
  838. }
  839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  841. public string Код_сферы {
  842. get {
  843. try {
  844. return ((string)(this[this.tableСписок_вакансий.Код_сферыColumn]));
  845. }
  846. catch (global::System.InvalidCastException e) {
  847. throw new global::System.Data.StrongTypingException("Значение для столбца \'Код сферы\' в таблице \'Список вакансий\' равно DBNull.", e);
  848. }
  849. }
  850. set {
  851. this[this.tableСписок_вакансий.Код_сферыColumn] = value;
  852. }
  853. }
  854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  855. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  856. public string Должность {
  857. get {
  858. try {
  859. return ((string)(this[this.tableСписок_вакансий.ДолжностьColumn]));
  860. }
  861. catch (global::System.InvalidCastException e) {
  862. throw new global::System.Data.StrongTypingException("Значение для столбца \'Должность\' в таблице \'Список вакансий\' равно DBNull.", e);
  863. }
  864. }
  865. set {
  866. this[this.tableСписок_вакансий.ДолжностьColumn] = value;
  867. }
  868. }
  869. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  870. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  871. public string Оклад {
  872. get {
  873. try {
  874. return ((string)(this[this.tableСписок_вакансий.ОкладColumn]));
  875. }
  876. catch (global::System.InvalidCastException e) {
  877. throw new global::System.Data.StrongTypingException("Значение для столбца \'Оклад\' в таблице \'Список вакансий\' равно DBNull.", e);
  878. }
  879. }
  880. set {
  881. this[this.tableСписок_вакансий.ОкладColumn] = value;
  882. }
  883. }
  884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  886. public string Требовния_к_соискателю {
  887. get {
  888. try {
  889. return ((string)(this[this.tableСписок_вакансий.Требовния_к_соискателюColumn]));
  890. }
  891. catch (global::System.InvalidCastException e) {
  892. throw new global::System.Data.StrongTypingException("Значение для столбца \'Требовния к соискателю\' в таблице \'Список вакансий\' равно D" +
  893. "BNull.", e);
  894. }
  895. }
  896. set {
  897. this[this.tableСписок_вакансий.Требовния_к_соискателюColumn] = value;
  898. }
  899. }
  900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  901. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  902. public string Работодатель {
  903. get {
  904. try {
  905. return ((string)(this[this.tableСписок_вакансий.РаботодательColumn]));
  906. }
  907. catch (global::System.InvalidCastException e) {
  908. throw new global::System.Data.StrongTypingException("Значение для столбца \'Работодатель\' в таблице \'Список вакансий\' равно DBNull.", e);
  909. }
  910. }
  911. set {
  912. this[this.tableСписок_вакансий.РаботодательColumn] = value;
  913. }
  914. }
  915. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  916. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  917. public string Контактный_номер {
  918. get {
  919. try {
  920. return ((string)(this[this.tableСписок_вакансий.Контактный_номерColumn]));
  921. }
  922. catch (global::System.InvalidCastException e) {
  923. throw new global::System.Data.StrongTypingException("Значение для столбца \'Контактный номер\' в таблице \'Список вакансий\' равно DBNull." +
  924. "", e);
  925. }
  926. }
  927. set {
  928. this[this.tableСписок_вакансий.Контактный_номерColumn] = value;
  929. }
  930. }
  931. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  932. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  933. public string Код_вакансии {
  934. get {
  935. return ((string)(this[this.tableСписок_вакансий.Код_вакансииColumn]));
  936. }
  937. set {
  938. this[this.tableСписок_вакансий.Код_вакансииColumn] = value;
  939. }
  940. }
  941. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  942. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  943. public bool IsКод_сферыNull() {
  944. return this.IsNull(this.tableСписок_вакансий.Код_сферыColumn);
  945. }
  946. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  947. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  948. public void SetКод_сферыNull() {
  949. this[this.tableСписок_вакансий.Код_сферыColumn] = global::System.Convert.DBNull;
  950. }
  951. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  952. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  953. public bool IsДолжностьNull() {
  954. return this.IsNull(this.tableСписок_вакансий.ДолжностьColumn);
  955. }
  956. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  957. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  958. public void SetДолжностьNull() {
  959. this[this.tableСписок_вакансий.ДолжностьColumn] = global::System.Convert.DBNull;
  960. }
  961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  962. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  963. public bool IsОкладNull() {
  964. return this.IsNull(this.tableСписок_вакансий.ОкладColumn);
  965. }
  966. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  967. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  968. public void SetОкладNull() {
  969. this[this.tableСписок_вакансий.ОкладColumn] = global::System.Convert.DBNull;
  970. }
  971. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  972. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  973. public bool IsТребовния_к_соискателюNull() {
  974. return this.IsNull(this.tableСписок_вакансий.Требовния_к_соискателюColumn);
  975. }
  976. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  977. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  978. public void SetТребовния_к_соискателюNull() {
  979. this[this.tableСписок_вакансий.Требовния_к_соискателюColumn] = global::System.Convert.DBNull;
  980. }
  981. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  982. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  983. public bool IsРаботодательNull() {
  984. return this.IsNull(this.tableСписок_вакансий.РаботодательColumn);
  985. }
  986. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  987. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  988. public void SetРаботодательNull() {
  989. this[this.tableСписок_вакансий.РаботодательColumn] = global::System.Convert.DBNull;
  990. }
  991. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  992. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  993. public bool IsКонтактный_номерNull() {
  994. return this.IsNull(this.tableСписок_вакансий.Контактный_номерColumn);
  995. }
  996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  997. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  998. public void SetКонтактный_номерNull() {
  999. this[this.tableСписок_вакансий.Контактный_номерColumn] = global::System.Convert.DBNull;
  1000. }
  1001. }
  1002. /// <summary>
  1003. ///Represents strongly named DataRow class.
  1004. ///</summary>
  1005. public partial class Сфера_деятельностиRow : global::System.Data.DataRow {
  1006. private Сфера_деятельностиDataTable tableСфера_деятельности;
  1007. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1008. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1009. internal Сфера_деятельностиRow(global::System.Data.DataRowBuilder rb) :
  1010. base(rb) {
  1011. this.tableСфера_деятельности = ((Сфера_деятельностиDataTable)(this.Table));
  1012. }
  1013. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1014. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1015. public decimal Код_сферы {
  1016. get {
  1017. return ((decimal)(this[this.tableСфера_деятельности.Код_сферыColumn]));
  1018. }
  1019. set {
  1020. this[this.tableСфера_деятельности.Код_сферыColumn] = value;
  1021. }
  1022. }
  1023. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1024. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1025. public string Сфера_деятельности {
  1026. get {
  1027. return ((string)(this[this.tableСфера_деятельности.Сфера_деятельностиColumn]));
  1028. }
  1029. set {
  1030. this[this.tableСфера_деятельности.Сфера_деятельностиColumn] = value;
  1031. }
  1032. }
  1033. }
  1034. /// <summary>
  1035. ///Row event argument class
  1036. ///</summary>
  1037. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1038. public class Список_вакансийRowChangeEvent : global::System.EventArgs {
  1039. private Список_вакансийRow eventRow;
  1040. private global::System.Data.DataRowAction eventAction;
  1041. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1042. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1043. public Список_вакансийRowChangeEvent(Список_вакансийRow row, global::System.Data.DataRowAction action) {
  1044. this.eventRow = row;
  1045. this.eventAction = action;
  1046. }
  1047. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1048. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1049. public Список_вакансийRow Row {
  1050. get {
  1051. return this.eventRow;
  1052. }
  1053. }
  1054. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1055. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1056. public global::System.Data.DataRowAction Action {
  1057. get {
  1058. return this.eventAction;
  1059. }
  1060. }
  1061. }
  1062. /// <summary>
  1063. ///Row event argument class
  1064. ///</summary>
  1065. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1066. public class Сфера_деятельностиRowChangeEvent : global::System.EventArgs {
  1067. private Сфера_деятельностиRow eventRow;
  1068. private global::System.Data.DataRowAction eventAction;
  1069. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1070. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1071. public Сфера_деятельностиRowChangeEvent(Сфера_деятельностиRow row, global::System.Data.DataRowAction action) {
  1072. this.eventRow = row;
  1073. this.eventAction = action;
  1074. }
  1075. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1076. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1077. public Сфера_деятельностиRow Row {
  1078. get {
  1079. return this.eventRow;
  1080. }
  1081. }
  1082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1084. public global::System.Data.DataRowAction Action {
  1085. get {
  1086. return this.eventAction;
  1087. }
  1088. }
  1089. }
  1090. }
  1091. }
  1092. namespace КрымковБД.KrymkovBDDataSetTableAdapters {
  1093. /// <summary>
  1094. ///Represents the connection and commands used to retrieve and save data.
  1095. ///</summary>
  1096. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  1097. [global::System.ComponentModel.ToolboxItem(true)]
  1098. [global::System.ComponentModel.DataObjectAttribute(true)]
  1099. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  1100. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  1101. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1102. public partial class Список_вакансийTableAdapter : global::System.ComponentModel.Component {
  1103. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  1104. private global::System.Data.SqlClient.SqlConnection _connection;
  1105. private global::System.Data.SqlClient.SqlTransaction _transaction;
  1106. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  1107. private bool _clearBeforeFill;
  1108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1110. public Список_вакансийTableAdapter() {
  1111. this.ClearBeforeFill = true;
  1112. }
  1113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1114. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1115. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  1116. get {
  1117. if ((this._adapter == null)) {
  1118. this.InitAdapter();
  1119. }
  1120. return this._adapter;
  1121. }
  1122. }
  1123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1124. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1125. internal global::System.Data.SqlClient.SqlConnection Connection {
  1126. get {
  1127. if ((this._connection == null)) {
  1128. this.InitConnection();
  1129. }
  1130. return this._connection;
  1131. }
  1132. set {
  1133. this._connection = value;
  1134. if ((this.Adapter.InsertCommand != null)) {
  1135. this.Adapter.InsertCommand.Connection = value;
  1136. }
  1137. if ((this.Adapter.DeleteCommand != null)) {
  1138. this.Adapter.DeleteCommand.Connection = value;
  1139. }
  1140. if ((this.Adapter.UpdateCommand != null)) {
  1141. this.Adapter.UpdateCommand.Connection = value;
  1142. }
  1143. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  1144. if ((this.CommandCollection[i] != null)) {
  1145. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  1146. }
  1147. }
  1148. }
  1149. }
  1150. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1151. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1152. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  1153. get {
  1154. return this._transaction;
  1155. }
  1156. set {
  1157. this._transaction = value;
  1158. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  1159. this.CommandCollection[i].Transaction = this._transaction;
  1160. }
  1161. if (((this.Adapter != null)
  1162. && (this.Adapter.DeleteCommand != null))) {
  1163. this.Adapter.DeleteCommand.Transaction = this._transaction;
  1164. }
  1165. if (((this.Adapter != null)
  1166. && (this.Adapter.InsertCommand != null))) {
  1167. this.Adapter.InsertCommand.Transaction = this._transaction;
  1168. }
  1169. if (((this.Adapter != null)
  1170. && (this.Adapter.UpdateCommand != null))) {
  1171. this.Adapter.UpdateCommand.Transaction = this._transaction;
  1172. }
  1173. }
  1174. }
  1175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1176. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1177. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  1178. get {
  1179. if ((this._commandCollection == null)) {
  1180. this.InitCommandCollection();
  1181. }
  1182. return this._commandCollection;
  1183. }
  1184. }
  1185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1186. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1187. public bool ClearBeforeFill {
  1188. get {
  1189. return this._clearBeforeFill;
  1190. }
  1191. set {
  1192. this._clearBeforeFill = value;
  1193. }
  1194. }
  1195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1197. private void InitAdapter() {
  1198. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  1199. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  1200. tableMapping.SourceTable = "Table";
  1201. tableMapping.DataSetTable = "Список вакансий";
  1202. tableMapping.ColumnMappings.Add("Код сферы", "Код сферы");
  1203. tableMapping.ColumnMappings.Add("Должность", "Должность");
  1204. tableMapping.ColumnMappings.Add("Оклад", "Оклад");
  1205. tableMapping.ColumnMappings.Add("Требовния к соискателю", "Требовния к соискателю");
  1206. tableMapping.ColumnMappings.Add("Работодатель", "Работодатель");
  1207. tableMapping.ColumnMappings.Add("Контактный номер", "Контактный номер");
  1208. tableMapping.ColumnMappings.Add("Код вакансии", "Код вакансии");
  1209. this._adapter.TableMappings.Add(tableMapping);
  1210. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  1211. this._adapter.DeleteCommand.Connection = this.Connection;
  1212. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Список вакансий] WHERE (((@IsNull_Код_сферы = 1 AND [Код сферы" +
  1213. "] IS NULL) OR ([Код сферы] = @Original_Код_сферы)) AND ([Код вакансии] = @Origin" +
  1214. "al_Код_вакансии))";
  1215. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  1216. 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, "", "", ""));
  1217. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_сферы", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код сферы", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  1218. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_вакансии", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код вакансии", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  1219. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  1220. this._adapter.InsertCommand.Connection = this.Connection;
  1221. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Список вакансий] ([Код сферы], [Должность], [Оклад], [Требовния к соискателю], [Работодатель], [Контактный номер], [Код вакансии]) VALUES (@Код_сферы, @Должность, @Оклад, @Требовния_к_соискателю, @Работодатель, @Контактный_номер, @Код_вакансии);
  1222. SELECT [Код сферы], Должность, Оклад, [Требовния к соискателю], Работодатель, [Контактный номер], [Код вакансии] FROM [Список вакансий] WHERE ([Код вакансии] = @Код_вакансии)";
  1223. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  1224. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_сферы", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код сферы", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1225. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Должность", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Должность", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1226. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Оклад", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Оклад", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1227. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Требовния_к_соискателю", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Требовния к соискателю", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1228. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Работодатель", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Работодатель", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1229. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Контактный_номер", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Контактный номер", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1230. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_вакансии", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код вакансии", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1231. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  1232. this._adapter.UpdateCommand.Connection = this.Connection;
  1233. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Список вакансий] SET [Код сферы] = @Код_сферы, [Должность] = @Должность, [Оклад] = @Оклад, [Требовния к соискателю] = @Требовния_к_соискателю, [Работодатель] = @Работодатель, [Контактный номер] = @Контактный_номер, [Код вакансии] = @Код_вакансии WHERE (((@IsNull_Код_сферы = 1 AND [Код сферы] IS NULL) OR ([Код сферы] = @Original_Код_сферы)) AND ([Код вакансии] = @Original_Код_вакансии));
  1234. SELECT [Код сферы], Должность, Оклад, [Требовния к соискателю], Работодатель, [Контактный номер], [Код вакансии] FROM [Список вакансий] WHERE ([Код вакансии] = @Код_вакансии)";
  1235. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  1236. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_сферы", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код сферы", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1237. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Должность", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Должность", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1238. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Оклад", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Оклад", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1239. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Требовния_к_соискателю", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Требовния к соискателю", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1240. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Работодатель", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Работодатель", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1241. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Контактный_номер", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Контактный номер", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1242. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_вакансии", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код вакансии", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1243. 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, "", "", ""));
  1244. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_сферы", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код сферы", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  1245. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_вакансии", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код вакансии", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  1246. }
  1247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1249. private void InitConnection() {
  1250. this._connection = new global::System.Data.SqlClient.SqlConnection();
  1251. this._connection.ConnectionString = global::КрымковБД.Properties.Settings.Default.KrymkovBDConnectionString;
  1252. }
  1253. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1254. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1255. private void InitCommandCollection() {
  1256. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  1257. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  1258. this._commandCollection[0].Connection = this.Connection;
  1259. this._commandCollection[0].CommandText = "SELECT [Код сферы], Должность, Оклад, [Требовния к соискателю], Работодатель, [Ко" +
  1260. "нтактный номер], [Код вакансии] FROM dbo.[Список вакансий]";
  1261. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  1262. }
  1263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1264. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1265. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1266. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  1267. public virtual int Fill(KrymkovBDDataSet.Список_вакансийDataTable dataTable) {
  1268. this.Adapter.SelectCommand = this.CommandCollection[0];
  1269. if ((this.ClearBeforeFill == true)) {
  1270. dataTable.Clear();
  1271. }
  1272. int returnValue = this.Adapter.Fill(dataTable);
  1273. return returnValue;
  1274. }
  1275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1276. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1277. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1278. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  1279. public virtual KrymkovBDDataSet.Список_вакансийDataTable GetData() {
  1280. this.Adapter.SelectCommand = this.CommandCollection[0];
  1281. KrymkovBDDataSet.Список_вакансийDataTable dataTable = new KrymkovBDDataSet.Список_вакансийDataTable();
  1282. this.Adapter.Fill(dataTable);
  1283. return dataTable;
  1284. }
  1285. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1286. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1287. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1288. public virtual int Update(KrymkovBDDataSet.Список_вакансийDataTable dataTable) {
  1289. return this.Adapter.Update(dataTable);
  1290. }
  1291. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1292. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1293. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1294. public virtual int Update(KrymkovBDDataSet dataSet) {
  1295. return this.Adapter.Update(dataSet, "Список вакансий");
  1296. }
  1297. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1298. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1299. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1300. public virtual int Update(global::System.Data.DataRow dataRow) {
  1301. return this.Adapter.Update(new global::System.Data.DataRow[] {
  1302. dataRow});
  1303. }
  1304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1306. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1307. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  1308. return this.Adapter.Update(dataRows);
  1309. }
  1310. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1311. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1312. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1313. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  1314. public virtual int Delete(string Original_Код_сферы, string Original_Код_вакансии) {
  1315. if ((Original_Код_сферы == null)) {
  1316. this.Adapter.DeleteCommand.Parameters[0].Value = ((object)(1));
  1317. this.Adapter.DeleteCommand.Parameters[1].Value = global::System.DBNull.Value;
  1318. }
  1319. else {
  1320. this.Adapter.DeleteCommand.Parameters[0].Value = ((object)(0));
  1321. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Код_сферы));
  1322. }
  1323. if ((Original_Код_вакансии == null)) {
  1324. throw new global::System.ArgumentNullException("Original_Код_вакансии");
  1325. }
  1326. else {
  1327. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Код_вакансии));
  1328. }
  1329. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  1330. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  1331. != global::System.Data.ConnectionState.Open)) {
  1332. this.Adapter.DeleteCommand.Connection.Open();
  1333. }
  1334. try {
  1335. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  1336. return returnValue;
  1337. }
  1338. finally {
  1339. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  1340. this.Adapter.DeleteCommand.Connection.Close();
  1341. }
  1342. }
  1343. }
  1344. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1345. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1346. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1347. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  1348. public virtual int Insert(string Код_сферы, string Должность, string Оклад, string Требовния_к_соискателю, string Работодатель, string Контактный_номер, string Код_вакансии) {
  1349. if ((Код_сферы == null)) {
  1350. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  1351. }
  1352. else {
  1353. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Код_сферы));
  1354. }
  1355. if ((Должность == null)) {
  1356. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  1357. }
  1358. else {
  1359. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Должность));
  1360. }
  1361. if ((Оклад == null)) {
  1362. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  1363. }
  1364. else {
  1365. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Оклад));
  1366. }
  1367. if ((Требовния_к_соискателю == null)) {
  1368. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  1369. }
  1370. else {
  1371. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Требовния_к_соискателю));
  1372. }
  1373. if ((Работодатель == null)) {
  1374. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  1375. }
  1376. else {
  1377. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Работодатель));
  1378. }
  1379. if ((Контактный_номер == null)) {
  1380. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  1381. }
  1382. else {
  1383. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Контактный_номер));
  1384. }
  1385. if ((Код_вакансии == null)) {
  1386. throw new global::System.ArgumentNullException("Код_вакансии");
  1387. }
  1388. else {
  1389. this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Код_вакансии));
  1390. }
  1391. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  1392. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  1393. != global::System.Data.ConnectionState.Open)) {
  1394. this.Adapter.InsertCommand.Connection.Open();
  1395. }
  1396. try {
  1397. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  1398. return returnValue;
  1399. }
  1400. finally {
  1401. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  1402. this.Adapter.InsertCommand.Connection.Close();
  1403. }
  1404. }
  1405. }
  1406. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1407. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1408. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1409. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  1410. public virtual int Update(string Код_сферы, string Должность, string Оклад, string Требовния_к_соискателю, string Работодатель, string Контактный_номер, string Код_вакансии, string Original_Код_сферы, string Original_Код_вакансии) {
  1411. if ((Код_сферы == null)) {
  1412. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  1413. }
  1414. else {
  1415. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Код_сферы));
  1416. }
  1417. if ((Должность == null)) {
  1418. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  1419. }
  1420. else {
  1421. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Должность));
  1422. }
  1423. if ((Оклад == null)) {
  1424. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  1425. }
  1426. else {
  1427. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Оклад));
  1428. }
  1429. if ((Требовния_к_соискателю == null)) {
  1430. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  1431. }
  1432. else {
  1433. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Требовния_к_соискателю));
  1434. }
  1435. if ((Работодатель == null)) {
  1436. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  1437. }
  1438. else {
  1439. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Работодатель));
  1440. }
  1441. if ((Контактный_номер == null)) {
  1442. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  1443. }
  1444. else {
  1445. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Контактный_номер));
  1446. }
  1447. if ((Код_вакансии == null)) {
  1448. throw new global::System.ArgumentNullException("Код_вакансии");
  1449. }
  1450. else {
  1451. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Код_вакансии));
  1452. }
  1453. if ((Original_Код_сферы == null)) {
  1454. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  1455. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  1456. }
  1457. else {
  1458. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  1459. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_Код_сферы));
  1460. }
  1461. if ((Original_Код_вакансии == null)) {
  1462. throw new global::System.ArgumentNullException("Original_Код_вакансии");
  1463. }
  1464. else {
  1465. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_Код_вакансии));
  1466. }
  1467. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  1468. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  1469. != global::System.Data.ConnectionState.Open)) {
  1470. this.Adapter.UpdateCommand.Connection.Open();
  1471. }
  1472. try {
  1473. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  1474. return returnValue;
  1475. }
  1476. finally {
  1477. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  1478. this.Adapter.UpdateCommand.Connection.Close();
  1479. }
  1480. }
  1481. }
  1482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1484. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1485. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  1486. public virtual int Update(string Код_сферы, string Должность, string Оклад, string Требовния_к_соискателю, string Работодатель, string Контактный_номер, string Original_Код_сферы, string Original_Код_вакансии) {
  1487. return this.Update(Код_сферы, Должность, Оклад, Требовния_к_соискателю, Работодатель, Контактный_номер, Original_Код_вакансии, Original_Код_сферы, Original_Код_вакансии);
  1488. }
  1489. }
  1490. /// <summary>
  1491. ///Represents the connection and commands used to retrieve and save data.
  1492. ///</summary>
  1493. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  1494. [global::System.ComponentModel.ToolboxItem(true)]
  1495. [global::System.ComponentModel.DataObjectAttribute(true)]
  1496. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  1497. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  1498. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1499. public partial class Сфера_деятельностиTableAdapter : global::System.ComponentModel.Component {
  1500. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  1501. private global::System.Data.SqlClient.SqlConnection _connection;
  1502. private global::System.Data.SqlClient.SqlTransaction _transaction;
  1503. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  1504. private bool _clearBeforeFill;
  1505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1507. public Сфера_деятельностиTableAdapter() {
  1508. this.ClearBeforeFill = true;
  1509. }
  1510. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1511. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1512. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  1513. get {
  1514. if ((this._adapter == null)) {
  1515. this.InitAdapter();
  1516. }
  1517. return this._adapter;
  1518. }
  1519. }
  1520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1521. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1522. internal global::System.Data.SqlClient.SqlConnection Connection {
  1523. get {
  1524. if ((this._connection == null)) {
  1525. this.InitConnection();
  1526. }
  1527. return this._connection;
  1528. }
  1529. set {
  1530. this._connection = value;
  1531. if ((this.Adapter.InsertCommand != null)) {
  1532. this.Adapter.InsertCommand.Connection = value;
  1533. }
  1534. if ((this.Adapter.DeleteCommand != null)) {
  1535. this.Adapter.DeleteCommand.Connection = value;
  1536. }
  1537. if ((this.Adapter.UpdateCommand != null)) {
  1538. this.Adapter.UpdateCommand.Connection = value;
  1539. }
  1540. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  1541. if ((this.CommandCollection[i] != null)) {
  1542. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  1543. }
  1544. }
  1545. }
  1546. }
  1547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1549. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  1550. get {
  1551. return this._transaction;
  1552. }
  1553. set {
  1554. this._transaction = value;
  1555. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  1556. this.CommandCollection[i].Transaction = this._transaction;
  1557. }
  1558. if (((this.Adapter != null)
  1559. && (this.Adapter.DeleteCommand != null))) {
  1560. this.Adapter.DeleteCommand.Transaction = this._transaction;
  1561. }
  1562. if (((this.Adapter != null)
  1563. && (this.Adapter.InsertCommand != null))) {
  1564. this.Adapter.InsertCommand.Transaction = this._transaction;
  1565. }
  1566. if (((this.Adapter != null)
  1567. && (this.Adapter.UpdateCommand != null))) {
  1568. this.Adapter.UpdateCommand.Transaction = this._transaction;
  1569. }
  1570. }
  1571. }
  1572. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1573. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1574. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  1575. get {
  1576. if ((this._commandCollection == null)) {
  1577. this.InitCommandCollection();
  1578. }
  1579. return this._commandCollection;
  1580. }
  1581. }
  1582. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1583. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1584. public bool ClearBeforeFill {
  1585. get {
  1586. return this._clearBeforeFill;
  1587. }
  1588. set {
  1589. this._clearBeforeFill = value;
  1590. }
  1591. }
  1592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1594. private void InitAdapter() {
  1595. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  1596. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  1597. tableMapping.SourceTable = "Table";
  1598. tableMapping.DataSetTable = "Сфера деятельности";
  1599. tableMapping.ColumnMappings.Add("Код сферы", "Код сферы");
  1600. tableMapping.ColumnMappings.Add("Сфера деятельности", "Сфера деятельности");
  1601. this._adapter.TableMappings.Add(tableMapping);
  1602. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  1603. this._adapter.InsertCommand.Connection = this.Connection;
  1604. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Сфера деятельности] ([Сфера деятельности]) VALUES (@Сфера_деят" +
  1605. "ельности)";
  1606. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  1607. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Сфера_деятельности", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Сфера деятельности", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1608. }
  1609. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1610. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1611. private void InitConnection() {
  1612. this._connection = new global::System.Data.SqlClient.SqlConnection();
  1613. this._connection.ConnectionString = global::КрымковБД.Properties.Settings.Default.KrymkovBDConnectionString;
  1614. }
  1615. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1616. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1617. private void InitCommandCollection() {
  1618. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  1619. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  1620. this._commandCollection[0].Connection = this.Connection;
  1621. this._commandCollection[0].CommandText = "SELECT [Код сферы], [Сфера деятельности] FROM dbo.[Сфера деятельности]";
  1622. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  1623. }
  1624. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1625. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1626. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1627. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  1628. public virtual int Fill(KrymkovBDDataSet.Сфера_деятельностиDataTable dataTable) {
  1629. this.Adapter.SelectCommand = this.CommandCollection[0];
  1630. if ((this.ClearBeforeFill == true)) {
  1631. dataTable.Clear();
  1632. }
  1633. int returnValue = this.Adapter.Fill(dataTable);
  1634. return returnValue;
  1635. }
  1636. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1637. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1638. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1639. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  1640. public virtual KrymkovBDDataSet.Сфера_деятельностиDataTable GetData() {
  1641. this.Adapter.SelectCommand = this.CommandCollection[0];
  1642. KrymkovBDDataSet.Сфера_деятельностиDataTable dataTable = new KrymkovBDDataSet.Сфера_деятельностиDataTable();
  1643. this.Adapter.Fill(dataTable);
  1644. return dataTable;
  1645. }
  1646. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1647. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1648. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1649. public virtual int Update(KrymkovBDDataSet.Сфера_деятельностиDataTable dataTable) {
  1650. return this.Adapter.Update(dataTable);
  1651. }
  1652. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1653. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1654. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1655. public virtual int Update(KrymkovBDDataSet dataSet) {
  1656. return this.Adapter.Update(dataSet, "Сфера деятельности");
  1657. }
  1658. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1659. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1660. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1661. public virtual int Update(global::System.Data.DataRow dataRow) {
  1662. return this.Adapter.Update(new global::System.Data.DataRow[] {
  1663. dataRow});
  1664. }
  1665. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1666. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1667. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1668. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  1669. return this.Adapter.Update(dataRows);
  1670. }
  1671. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1672. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1673. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1674. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  1675. public virtual int Insert(string Сфера_деятельности) {
  1676. if ((Сфера_деятельности == null)) {
  1677. throw new global::System.ArgumentNullException("Сфера_деятельности");
  1678. }
  1679. else {
  1680. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Сфера_деятельности));
  1681. }
  1682. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  1683. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  1684. != global::System.Data.ConnectionState.Open)) {
  1685. this.Adapter.InsertCommand.Connection.Open();
  1686. }
  1687. try {
  1688. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  1689. return returnValue;
  1690. }
  1691. finally {
  1692. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  1693. this.Adapter.InsertCommand.Connection.Close();
  1694. }
  1695. }
  1696. }
  1697. }
  1698. /// <summary>
  1699. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  1700. ///</summary>
  1701. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  1702. [global::System.ComponentModel.ToolboxItem(true)]
  1703. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  1704. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  1705. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  1706. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  1707. private UpdateOrderOption _updateOrder;
  1708. private Список_вакансийTableAdapter _список_вакансийTableAdapter;
  1709. private Сфера_деятельностиTableAdapter _сфера_деятельностиTableAdapter;
  1710. private bool _backupDataSetBeforeUpdate;
  1711. private global::System.Data.IDbConnection _connection;
  1712. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1713. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1714. public UpdateOrderOption UpdateOrder {
  1715. get {
  1716. return this._updateOrder;
  1717. }
  1718. set {
  1719. this._updateOrder = value;
  1720. }
  1721. }
  1722. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1723. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1724. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  1725. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  1726. "a", "System.Drawing.Design.UITypeEditor")]
  1727. public Список_вакансийTableAdapter Список_вакансийTableAdapter {
  1728. get {
  1729. return this._список_вакансийTableAdapter;
  1730. }
  1731. set {
  1732. this._список_вакансийTableAdapter = value;
  1733. }
  1734. }
  1735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1736. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1737. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  1738. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  1739. "a", "System.Drawing.Design.UITypeEditor")]
  1740. public Сфера_деятельностиTableAdapter Сфера_деятельностиTableAdapter {
  1741. get {
  1742. return this._сфера_деятельностиTableAdapter;
  1743. }
  1744. set {
  1745. this._сфера_деятельностиTableAdapter = value;
  1746. }
  1747. }
  1748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1750. public bool BackupDataSetBeforeUpdate {
  1751. get {
  1752. return this._backupDataSetBeforeUpdate;
  1753. }
  1754. set {
  1755. this._backupDataSetBeforeUpdate = value;
  1756. }
  1757. }
  1758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1760. [global::System.ComponentModel.Browsable(false)]
  1761. public global::System.Data.IDbConnection Connection {
  1762. get {
  1763. if ((this._connection != null)) {
  1764. return this._connection;
  1765. }
  1766. if (((this._список_вакансийTableAdapter != null)
  1767. && (this._список_вакансийTableAdapter.Connection != null))) {
  1768. return this._список_вакансийTableAdapter.Connection;
  1769. }
  1770. if (((this._сфера_деятельностиTableAdapter != null)
  1771. && (this._сфера_деятельностиTableAdapter.Connection != null))) {
  1772. return this._сфера_деятельностиTableAdapter.Connection;
  1773. }
  1774. return null;
  1775. }
  1776. set {
  1777. this._connection = value;
  1778. }
  1779. }
  1780. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1781. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1782. [global::System.ComponentModel.Browsable(false)]
  1783. public int TableAdapterInstanceCount {
  1784. get {
  1785. int count = 0;
  1786. if ((this._список_вакансийTableAdapter != null)) {
  1787. count = (count + 1);
  1788. }
  1789. if ((this._сфера_деятельностиTableAdapter != null)) {
  1790. count = (count + 1);
  1791. }
  1792. return count;
  1793. }
  1794. }
  1795. /// <summary>
  1796. ///Update rows in top-down order.
  1797. ///</summary>
  1798. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1799. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1800. private int UpdateUpdatedRows(KrymkovBDDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  1801. int result = 0;
  1802. if ((this._список_вакансийTableAdapter != null)) {
  1803. global::System.Data.DataRow[] updatedRows = dataSet.Список_вакансий.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  1804. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  1805. if (((updatedRows != null)
  1806. && (0 < updatedRows.Length))) {
  1807. result = (result + this._список_вакансийTableAdapter.Update(updatedRows));
  1808. allChangedRows.AddRange(updatedRows);
  1809. }
  1810. }
  1811. if ((this._сфера_деятельностиTableAdapter != null)) {
  1812. global::System.Data.DataRow[] updatedRows = dataSet.Сфера_деятельности.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  1813. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  1814. if (((updatedRows != null)
  1815. && (0 < updatedRows.Length))) {
  1816. result = (result + this._сфера_деятельностиTableAdapter.Update(updatedRows));
  1817. allChangedRows.AddRange(updatedRows);
  1818. }
  1819. }
  1820. return result;
  1821. }
  1822. /// <summary>
  1823. ///Insert rows in top-down order.
  1824. ///</summary>
  1825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1826. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1827. private int UpdateInsertedRows(KrymkovBDDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  1828. int result = 0;
  1829. if ((this._список_вакансийTableAdapter != null)) {
  1830. global::System.Data.DataRow[] addedRows = dataSet.Список_вакансий.Select(null, null, global::System.Data.DataViewRowState.Added);
  1831. if (((addedRows != null)
  1832. && (0 < addedRows.Length))) {
  1833. result = (result + this._список_вакансийTableAdapter.Update(addedRows));
  1834. allAddedRows.AddRange(addedRows);
  1835. }
  1836. }
  1837. if ((this._сфера_деятельностиTableAdapter != null)) {
  1838. global::System.Data.DataRow[] addedRows = dataSet.Сфера_деятельности.Select(null, null, global::System.Data.DataViewRowState.Added);
  1839. if (((addedRows != null)
  1840. && (0 < addedRows.Length))) {
  1841. result = (result + this._сфера_деятельностиTableAdapter.Update(addedRows));
  1842. allAddedRows.AddRange(addedRows);
  1843. }
  1844. }
  1845. return result;
  1846. }
  1847. /// <summary>
  1848. ///Delete rows in bottom-up order.
  1849. ///</summary>
  1850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1851. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1852. private int UpdateDeletedRows(KrymkovBDDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  1853. int result = 0;
  1854. if ((this._сфера_деятельностиTableAdapter != null)) {
  1855. global::System.Data.DataRow[] deletedRows = dataSet.Сфера_деятельности.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  1856. if (((deletedRows != null)
  1857. && (0 < deletedRows.Length))) {
  1858. result = (result + this._сфера_деятельностиTableAdapter.Update(deletedRows));
  1859. allChangedRows.AddRange(deletedRows);
  1860. }
  1861. }
  1862. if ((this._список_вакансийTableAdapter != null)) {
  1863. global::System.Data.DataRow[] deletedRows = dataSet.Список_вакансий.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  1864. if (((deletedRows != null)
  1865. && (0 < deletedRows.Length))) {
  1866. result = (result + this._список_вакансийTableAdapter.Update(deletedRows));
  1867. allChangedRows.AddRange(deletedRows);
  1868. }
  1869. }
  1870. return result;
  1871. }
  1872. /// <summary>
  1873. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  1874. ///</summary>
  1875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1876. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1877. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  1878. if (((updatedRows == null)
  1879. || (updatedRows.Length < 1))) {
  1880. return updatedRows;
  1881. }
  1882. if (((allAddedRows == null)
  1883. || (allAddedRows.Count < 1))) {
  1884. return updatedRows;
  1885. }
  1886. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  1887. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  1888. global::System.Data.DataRow row = updatedRows[i];
  1889. if ((allAddedRows.Contains(row) == false)) {
  1890. realUpdatedRows.Add(row);
  1891. }
  1892. }
  1893. return realUpdatedRows.ToArray();
  1894. }
  1895. /// <summary>
  1896. ///Update all changes to the dataset.
  1897. ///</summary>
  1898. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1899. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1900. public virtual int UpdateAll(KrymkovBDDataSet dataSet) {
  1901. if ((dataSet == null)) {
  1902. throw new global::System.ArgumentNullException("dataSet");
  1903. }
  1904. if ((dataSet.HasChanges() == false)) {
  1905. return 0;
  1906. }
  1907. if (((this._список_вакансийTableAdapter != null)
  1908. && (this.MatchTableAdapterConnection(this._список_вакансийTableAdapter.Connection) == false))) {
  1909. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  1910. "r, должны использовать одинаковую строку подключения.");
  1911. }
  1912. if (((this._сфера_деятельностиTableAdapter != null)
  1913. && (this.MatchTableAdapterConnection(this._сфера_деятельностиTableAdapter.Connection) == false))) {
  1914. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  1915. "r, должны использовать одинаковую строку подключения.");
  1916. }
  1917. global::System.Data.IDbConnection workConnection = this.Connection;
  1918. if ((workConnection == null)) {
  1919. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  1920. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  1921. }
  1922. bool workConnOpened = false;
  1923. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  1924. == global::System.Data.ConnectionState.Broken)) {
  1925. workConnection.Close();
  1926. }
  1927. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  1928. workConnection.Open();
  1929. workConnOpened = true;
  1930. }
  1931. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  1932. if ((workTransaction == null)) {
  1933. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  1934. "и или текущее состояние не позволяет начать транзакцию.");
  1935. }
  1936. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  1937. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  1938. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  1939. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  1940. int result = 0;
  1941. global::System.Data.DataSet backupDataSet = null;
  1942. if (this.BackupDataSetBeforeUpdate) {
  1943. backupDataSet = new global::System.Data.DataSet();
  1944. backupDataSet.Merge(dataSet);
  1945. }
  1946. try {
  1947. // ---- Prepare for update -----------
  1948. //
  1949. if ((this._список_вакансийTableAdapter != null)) {
  1950. revertConnections.Add(this._список_вакансийTableAdapter, this._список_вакансийTableAdapter.Connection);
  1951. this._список_вакансийTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  1952. this._список_вакансийTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  1953. if (this._список_вакансийTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  1954. this._список_вакансийTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  1955. adaptersWithAcceptChangesDuringUpdate.Add(this._список_вакансийTableAdapter.Adapter);
  1956. }
  1957. }
  1958. if ((this._сфера_деятельностиTableAdapter != null)) {
  1959. revertConnections.Add(this._сфера_деятельностиTableAdapter, this._сфера_деятельностиTableAdapter.Connection);
  1960. this._сфера_деятельностиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  1961. this._сфера_деятельностиTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  1962. if (this._сфера_деятельностиTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  1963. this._сфера_деятельностиTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  1964. adaptersWithAcceptChangesDuringUpdate.Add(this._сфера_деятельностиTableAdapter.Adapter);
  1965. }
  1966. }
  1967. //
  1968. //---- Perform updates -----------
  1969. //
  1970. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  1971. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  1972. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  1973. }
  1974. else {
  1975. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  1976. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  1977. }
  1978. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  1979. //
  1980. //---- Commit updates -----------
  1981. //
  1982. workTransaction.Commit();
  1983. if ((0 < allAddedRows.Count)) {
  1984. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  1985. allAddedRows.CopyTo(rows);
  1986. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  1987. global::System.Data.DataRow row = rows[i];
  1988. row.AcceptChanges();
  1989. }
  1990. }
  1991. if ((0 < allChangedRows.Count)) {
  1992. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  1993. allChangedRows.CopyTo(rows);
  1994. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  1995. global::System.Data.DataRow row = rows[i];
  1996. row.AcceptChanges();
  1997. }
  1998. }
  1999. }
  2000. catch (global::System.Exception ex) {
  2001. workTransaction.Rollback();
  2002. // ---- Restore the dataset -----------
  2003. if (this.BackupDataSetBeforeUpdate) {
  2004. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  2005. dataSet.Clear();
  2006. dataSet.Merge(backupDataSet);
  2007. }
  2008. else {
  2009. if ((0 < allAddedRows.Count)) {
  2010. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  2011. allAddedRows.CopyTo(rows);
  2012. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  2013. global::System.Data.DataRow row = rows[i];
  2014. row.AcceptChanges();
  2015. row.SetAdded();
  2016. }
  2017. }
  2018. }
  2019. throw ex;
  2020. }
  2021. finally {
  2022. if (workConnOpened) {
  2023. workConnection.Close();
  2024. }
  2025. if ((this._список_вакансийTableAdapter != null)) {
  2026. this._список_вакансийTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._список_вакансийTableAdapter]));
  2027. this._список_вакансийTableAdapter.Transaction = null;
  2028. }
  2029. if ((this._сфера_деятельностиTableAdapter != null)) {
  2030. this._сфера_деятельностиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._сфера_деятельностиTableAdapter]));
  2031. this._сфера_деятельностиTableAdapter.Transaction = null;
  2032. }
  2033. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  2034. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  2035. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  2036. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  2037. global::System.Data.Common.DataAdapter adapter = adapters[i];
  2038. adapter.AcceptChangesDuringUpdate = true;
  2039. }
  2040. }
  2041. }
  2042. return result;
  2043. }
  2044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2046. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  2047. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  2048. }
  2049. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2050. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2051. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  2052. if ((this._connection != null)) {
  2053. return true;
  2054. }
  2055. if (((this.Connection == null)
  2056. || (inputConnection == null))) {
  2057. return true;
  2058. }
  2059. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  2060. return true;
  2061. }
  2062. return false;
  2063. }
  2064. /// <summary>
  2065. ///Update Order Option
  2066. ///</summary>
  2067. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2068. public enum UpdateOrderOption {
  2069. InsertUpdateDelete = 0,
  2070. UpdateInsertDelete = 1,
  2071. }
  2072. /// <summary>
  2073. ///Used to sort self-referenced table's rows
  2074. ///</summary>
  2075. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2076. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  2077. private global::System.Data.DataRelation _relation;
  2078. private int _childFirst;
  2079. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2080. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2081. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  2082. this._relation = relation;
  2083. if (childFirst) {
  2084. this._childFirst = -1;
  2085. }
  2086. else {
  2087. this._childFirst = 1;
  2088. }
  2089. }
  2090. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2091. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2092. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  2093. global::System.Diagnostics.Debug.Assert((row != null));
  2094. global::System.Data.DataRow root = row;
  2095. distance = 0;
  2096. 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>();
  2097. traversedRows[row] = row;
  2098. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  2099. for (
  2100. ; ((parent != null)
  2101. && (traversedRows.ContainsKey(parent) == false));
  2102. ) {
  2103. distance = (distance + 1);
  2104. root = parent;
  2105. traversedRows[parent] = parent;
  2106. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  2107. }
  2108. if ((distance == 0)) {
  2109. traversedRows.Clear();
  2110. traversedRows[row] = row;
  2111. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  2112. for (
  2113. ; ((parent != null)
  2114. && (traversedRows.ContainsKey(parent) == false));
  2115. ) {
  2116. distance = (distance + 1);
  2117. root = parent;
  2118. traversedRows[parent] = parent;
  2119. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  2120. }
  2121. }
  2122. return root;
  2123. }
  2124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2125. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2126. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  2127. if (object.ReferenceEquals(row1, row2)) {
  2128. return 0;
  2129. }
  2130. if ((row1 == null)) {
  2131. return -1;
  2132. }
  2133. if ((row2 == null)) {
  2134. return 1;
  2135. }
  2136. int distance1 = 0;
  2137. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  2138. int distance2 = 0;
  2139. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  2140. if (object.ReferenceEquals(root1, root2)) {
  2141. return (this._childFirst * distance1.CompareTo(distance2));
  2142. }
  2143. else {
  2144. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  2145. && (root2.Table != null)));
  2146. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  2147. return -1;
  2148. }
  2149. else {
  2150. return 1;
  2151. }
  2152. }
  2153. }
  2154. }
  2155. }
  2156. }
  2157. #pragma warning restore 1591