BD_РожковDataSet.Designer.cs 175 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace WindowsFormsApp1 {
  12. /// <summary>
  13. ///Represents a strongly typed in-memory cache of data.
  14. ///</summary>
  15. [global::System.Serializable()]
  16. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  17. [global::System.ComponentModel.ToolboxItem(true)]
  18. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")]
  19. [global::System.Xml.Serialization.XmlRootAttribute("BD_РожковDataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class BD_РожковDataSet : 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 BD_РожковDataSet() {
  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 BD_РожковDataSet(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. BD_РожковDataSet cln = ((BD_РожковDataSet)(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 = "BD_РожковDataSet";
  204. this.Prefix = "";
  205. this.Namespace = "http://tempuri.org/BD_РожковDataSet.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. BD_РожковDataSet ds = new BD_РожковDataSet();
  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. private global::System.Data.DataColumn columnКод_сферы;
  294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  296. public Список_вакансийDataTable() {
  297. this.TableName = "Список вакансий";
  298. this.BeginInit();
  299. this.InitClass();
  300. this.EndInit();
  301. }
  302. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  303. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  304. internal Список_вакансийDataTable(global::System.Data.DataTable table) {
  305. this.TableName = table.TableName;
  306. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  307. this.CaseSensitive = table.CaseSensitive;
  308. }
  309. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  310. this.Locale = table.Locale;
  311. }
  312. if ((table.Namespace != table.DataSet.Namespace)) {
  313. this.Namespace = table.Namespace;
  314. }
  315. this.Prefix = table.Prefix;
  316. this.MinimumCapacity = table.MinimumCapacity;
  317. }
  318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  319. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  320. protected Список_вакансийDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  321. base(info, context) {
  322. this.InitVars();
  323. }
  324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  326. public global::System.Data.DataColumn Код_вакансииColumn {
  327. get {
  328. return this.columnКод_вакансии;
  329. }
  330. }
  331. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  332. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  333. public global::System.Data.DataColumn Название_вакансииColumn {
  334. get {
  335. return this.columnНазвание_вакансии;
  336. }
  337. }
  338. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  339. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  340. public global::System.Data.DataColumn ДолжностьColumn {
  341. get {
  342. return this.columnДолжность;
  343. }
  344. }
  345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  346. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  347. public global::System.Data.DataColumn ОкладColumn {
  348. get {
  349. return this.columnОклад;
  350. }
  351. }
  352. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  353. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  354. public global::System.Data.DataColumn Требования_к_соискателюColumn {
  355. get {
  356. return this.columnТребования_к_соискателю;
  357. }
  358. }
  359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  360. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  361. public global::System.Data.DataColumn РаботадательColumn {
  362. get {
  363. return this.columnРаботадатель;
  364. }
  365. }
  366. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  367. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  368. public global::System.Data.DataColumn Контактный_номерColumn {
  369. get {
  370. return this.columnКонтактный_номер;
  371. }
  372. }
  373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  374. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  375. public global::System.Data.DataColumn Код_сферыColumn {
  376. get {
  377. return this.columnКод_сферы;
  378. }
  379. }
  380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  382. [global::System.ComponentModel.Browsable(false)]
  383. public int Count {
  384. get {
  385. return this.Rows.Count;
  386. }
  387. }
  388. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  389. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  390. public Список_вакансийRow this[int index] {
  391. get {
  392. return ((Список_вакансийRow)(this.Rows[index]));
  393. }
  394. }
  395. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  396. public event Список_вакансийRowChangeEventHandler Список_вакансийRowChanging;
  397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  398. public event Список_вакансийRowChangeEventHandler Список_вакансийRowChanged;
  399. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  400. public event Список_вакансийRowChangeEventHandler Список_вакансийRowDeleting;
  401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  402. public event Список_вакансийRowChangeEventHandler Список_вакансийRowDeleted;
  403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  404. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  405. public void AddСписок_вакансийRow(Список_вакансийRow row) {
  406. this.Rows.Add(row);
  407. }
  408. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  409. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  410. public Список_вакансийRow AddСписок_вакансийRow(int Код_вакансии, string Название_вакансии, string Должность, decimal Оклад, string Требования_к_соискателю, string Работадатель, string Контактный_номер, int Код_сферы) {
  411. Список_вакансийRow rowСписок_вакансийRow = ((Список_вакансийRow)(this.NewRow()));
  412. object[] columnValuesArray = new object[] {
  413. Код_вакансии,
  414. Название_вакансии,
  415. Должность,
  416. Оклад,
  417. Требования_к_соискателю,
  418. Работадатель,
  419. Контактный_номер,
  420. Код_сферы};
  421. rowСписок_вакансийRow.ItemArray = columnValuesArray;
  422. this.Rows.Add(rowСписок_вакансийRow);
  423. return rowСписок_вакансийRow;
  424. }
  425. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  426. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  427. public Список_вакансийRow FindByКод_вакансии(int Код_вакансии) {
  428. return ((Список_вакансийRow)(this.Rows.Find(new object[] {
  429. Код_вакансии})));
  430. }
  431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  433. public override global::System.Data.DataTable Clone() {
  434. Список_вакансийDataTable cln = ((Список_вакансийDataTable)(base.Clone()));
  435. cln.InitVars();
  436. return cln;
  437. }
  438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  439. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  440. protected override global::System.Data.DataTable CreateInstance() {
  441. return new Список_вакансийDataTable();
  442. }
  443. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  444. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  445. internal void InitVars() {
  446. this.columnКод_вакансии = base.Columns["Код вакансии"];
  447. this.columnНазвание_вакансии = base.Columns["Название вакансии"];
  448. this.columnДолжность = base.Columns["Должность"];
  449. this.columnОклад = base.Columns["Оклад"];
  450. this.columnТребования_к_соискателю = base.Columns["Требования к соискателю"];
  451. this.columnРаботадатель = base.Columns["Работадатель"];
  452. this.columnКонтактный_номер = base.Columns["Контактный номер"];
  453. this.columnКод_сферы = base.Columns["Код сферы"];
  454. }
  455. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  456. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  457. private void InitClass() {
  458. this.columnКод_вакансии = new global::System.Data.DataColumn("Код вакансии", typeof(int), 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.columnДолжность = new global::System.Data.DataColumn("Должность", typeof(string), null, global::System.Data.MappingType.Element);
  463. base.Columns.Add(this.columnДолжность);
  464. this.columnОклад = new global::System.Data.DataColumn("Оклад", typeof(decimal), null, global::System.Data.MappingType.Element);
  465. base.Columns.Add(this.columnОклад);
  466. this.columnТребования_к_соискателю = new global::System.Data.DataColumn("Требования к соискателю", typeof(string), null, global::System.Data.MappingType.Element);
  467. base.Columns.Add(this.columnТребования_к_соискателю);
  468. this.columnРаботадатель = new global::System.Data.DataColumn("Работадатель", typeof(string), null, global::System.Data.MappingType.Element);
  469. base.Columns.Add(this.columnРаботадатель);
  470. this.columnКонтактный_номер = new global::System.Data.DataColumn("Контактный номер", typeof(string), null, global::System.Data.MappingType.Element);
  471. base.Columns.Add(this.columnКонтактный_номер);
  472. this.columnКод_сферы = new global::System.Data.DataColumn("Код сферы", typeof(int), null, global::System.Data.MappingType.Element);
  473. base.Columns.Add(this.columnКод_сферы);
  474. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  475. this.columnКод_вакансии}, true));
  476. this.columnКод_вакансии.AllowDBNull = false;
  477. this.columnКод_вакансии.Unique = true;
  478. this.columnНазвание_вакансии.MaxLength = 50;
  479. this.columnДолжность.MaxLength = 50;
  480. this.columnТребования_к_соискателю.MaxLength = 50;
  481. this.columnРаботадатель.MaxLength = 50;
  482. this.columnКонтактный_номер.MaxLength = 50;
  483. this.columnКод_сферы.AllowDBNull = false;
  484. }
  485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  486. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  487. public Список_вакансийRow NewСписок_вакансийRow() {
  488. return ((Список_вакансийRow)(this.NewRow()));
  489. }
  490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  492. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  493. return new Список_вакансийRow(builder);
  494. }
  495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  497. protected override global::System.Type GetRowType() {
  498. return typeof(Список_вакансийRow);
  499. }
  500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  502. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  503. base.OnRowChanged(e);
  504. if ((this.Список_вакансийRowChanged != null)) {
  505. this.Список_вакансийRowChanged(this, new Список_вакансийRowChangeEvent(((Список_вакансийRow)(e.Row)), e.Action));
  506. }
  507. }
  508. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  509. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  510. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  511. base.OnRowChanging(e);
  512. if ((this.Список_вакансийRowChanging != null)) {
  513. this.Список_вакансийRowChanging(this, new Список_вакансийRowChangeEvent(((Список_вакансийRow)(e.Row)), e.Action));
  514. }
  515. }
  516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  517. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  518. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  519. base.OnRowDeleted(e);
  520. if ((this.Список_вакансийRowDeleted != null)) {
  521. this.Список_вакансийRowDeleted(this, new Список_вакансийRowChangeEvent(((Список_вакансийRow)(e.Row)), e.Action));
  522. }
  523. }
  524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  525. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  526. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  527. base.OnRowDeleting(e);
  528. if ((this.Список_вакансийRowDeleting != null)) {
  529. this.Список_вакансийRowDeleting(this, new Список_вакансийRowChangeEvent(((Список_вакансийRow)(e.Row)), e.Action));
  530. }
  531. }
  532. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  533. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  534. public void RemoveСписок_вакансийRow(Список_вакансийRow row) {
  535. this.Rows.Remove(row);
  536. }
  537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  538. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  539. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  540. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  541. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  542. BD_РожковDataSet ds = new BD_РожковDataSet();
  543. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  544. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  545. any1.MinOccurs = new decimal(0);
  546. any1.MaxOccurs = decimal.MaxValue;
  547. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  548. sequence.Items.Add(any1);
  549. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  550. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  551. any2.MinOccurs = new decimal(1);
  552. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  553. sequence.Items.Add(any2);
  554. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  555. attribute1.Name = "namespace";
  556. attribute1.FixedValue = ds.Namespace;
  557. type.Attributes.Add(attribute1);
  558. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  559. attribute2.Name = "tableTypeName";
  560. attribute2.FixedValue = "Список_вакансийDataTable";
  561. type.Attributes.Add(attribute2);
  562. type.Particle = sequence;
  563. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  564. if (xs.Contains(dsSchema.TargetNamespace)) {
  565. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  566. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  567. try {
  568. global::System.Xml.Schema.XmlSchema schema = null;
  569. dsSchema.Write(s1);
  570. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  571. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  572. s2.SetLength(0);
  573. schema.Write(s2);
  574. if ((s1.Length == s2.Length)) {
  575. s1.Position = 0;
  576. s2.Position = 0;
  577. for (; ((s1.Position != s1.Length)
  578. && (s1.ReadByte() == s2.ReadByte())); ) {
  579. ;
  580. }
  581. if ((s1.Position == s1.Length)) {
  582. return type;
  583. }
  584. }
  585. }
  586. }
  587. finally {
  588. if ((s1 != null)) {
  589. s1.Close();
  590. }
  591. if ((s2 != null)) {
  592. s2.Close();
  593. }
  594. }
  595. }
  596. xs.Add(dsSchema);
  597. return type;
  598. }
  599. }
  600. /// <summary>
  601. ///Represents the strongly named DataTable class.
  602. ///</summary>
  603. [global::System.Serializable()]
  604. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  605. public partial class Сфера_деятельностиDataTable : global::System.Data.TypedTableBase<Сфера_деятельностиRow> {
  606. private global::System.Data.DataColumn columnКод_сферы;
  607. private global::System.Data.DataColumn columnСфера_деятельности;
  608. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  609. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  610. public Сфера_деятельностиDataTable() {
  611. this.TableName = "Сфера деятельности";
  612. this.BeginInit();
  613. this.InitClass();
  614. this.EndInit();
  615. }
  616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  617. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  618. internal Сфера_деятельностиDataTable(global::System.Data.DataTable table) {
  619. this.TableName = table.TableName;
  620. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  621. this.CaseSensitive = table.CaseSensitive;
  622. }
  623. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  624. this.Locale = table.Locale;
  625. }
  626. if ((table.Namespace != table.DataSet.Namespace)) {
  627. this.Namespace = table.Namespace;
  628. }
  629. this.Prefix = table.Prefix;
  630. this.MinimumCapacity = table.MinimumCapacity;
  631. }
  632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  634. protected Сфера_деятельностиDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  635. base(info, context) {
  636. this.InitVars();
  637. }
  638. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  639. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  640. public global::System.Data.DataColumn Код_сферыColumn {
  641. get {
  642. return this.columnКод_сферы;
  643. }
  644. }
  645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  646. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  647. public global::System.Data.DataColumn Сфера_деятельностиColumn {
  648. get {
  649. return this.columnСфера_деятельности;
  650. }
  651. }
  652. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  653. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  654. [global::System.ComponentModel.Browsable(false)]
  655. public int Count {
  656. get {
  657. return this.Rows.Count;
  658. }
  659. }
  660. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  661. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  662. public Сфера_деятельностиRow this[int index] {
  663. get {
  664. return ((Сфера_деятельностиRow)(this.Rows[index]));
  665. }
  666. }
  667. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  668. public event Сфера_деятельностиRowChangeEventHandler Сфера_деятельностиRowChanging;
  669. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  670. public event Сфера_деятельностиRowChangeEventHandler Сфера_деятельностиRowChanged;
  671. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  672. public event Сфера_деятельностиRowChangeEventHandler Сфера_деятельностиRowDeleting;
  673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  674. public event Сфера_деятельностиRowChangeEventHandler Сфера_деятельностиRowDeleted;
  675. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  676. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  677. public void AddСфера_деятельностиRow(Сфера_деятельностиRow row) {
  678. this.Rows.Add(row);
  679. }
  680. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  681. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  682. public Сфера_деятельностиRow AddСфера_деятельностиRow(int Код_сферы, string Сфера_деятельности) {
  683. Сфера_деятельностиRow rowСфера_деятельностиRow = ((Сфера_деятельностиRow)(this.NewRow()));
  684. object[] columnValuesArray = new object[] {
  685. Код_сферы,
  686. Сфера_деятельности};
  687. rowСфера_деятельностиRow.ItemArray = columnValuesArray;
  688. this.Rows.Add(rowСфера_деятельностиRow);
  689. return rowСфера_деятельностиRow;
  690. }
  691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  692. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  693. public Сфера_деятельностиRow FindByКод_сферы(int Код_сферы) {
  694. return ((Сфера_деятельностиRow)(this.Rows.Find(new object[] {
  695. Код_сферы})));
  696. }
  697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  698. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  699. public override global::System.Data.DataTable Clone() {
  700. Сфера_деятельностиDataTable cln = ((Сфера_деятельностиDataTable)(base.Clone()));
  701. cln.InitVars();
  702. return cln;
  703. }
  704. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  705. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  706. protected override global::System.Data.DataTable CreateInstance() {
  707. return new Сфера_деятельностиDataTable();
  708. }
  709. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  710. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  711. internal void InitVars() {
  712. this.columnКод_сферы = base.Columns["Код сферы"];
  713. this.columnСфера_деятельности = base.Columns["Сфера деятельности"];
  714. }
  715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  717. private void InitClass() {
  718. this.columnКод_сферы = new global::System.Data.DataColumn("Код сферы", typeof(int), null, global::System.Data.MappingType.Element);
  719. base.Columns.Add(this.columnКод_сферы);
  720. this.columnСфера_деятельности = new global::System.Data.DataColumn("Сфера деятельности", typeof(string), null, global::System.Data.MappingType.Element);
  721. base.Columns.Add(this.columnСфера_деятельности);
  722. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  723. this.columnКод_сферы}, true));
  724. this.columnКод_сферы.AutoIncrementSeed = -1;
  725. this.columnКод_сферы.AutoIncrementStep = -1;
  726. this.columnКод_сферы.AllowDBNull = false;
  727. this.columnКод_сферы.Unique = true;
  728. this.columnСфера_деятельности.MaxLength = 50;
  729. }
  730. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  731. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  732. public Сфера_деятельностиRow NewСфера_деятельностиRow() {
  733. return ((Сфера_деятельностиRow)(this.NewRow()));
  734. }
  735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  736. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  737. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  738. return new Сфера_деятельностиRow(builder);
  739. }
  740. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  741. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  742. protected override global::System.Type GetRowType() {
  743. return typeof(Сфера_деятельностиRow);
  744. }
  745. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  746. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  747. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  748. base.OnRowChanged(e);
  749. if ((this.Сфера_деятельностиRowChanged != null)) {
  750. this.Сфера_деятельностиRowChanged(this, new Сфера_деятельностиRowChangeEvent(((Сфера_деятельностиRow)(e.Row)), e.Action));
  751. }
  752. }
  753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  755. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  756. base.OnRowChanging(e);
  757. if ((this.Сфера_деятельностиRowChanging != null)) {
  758. this.Сфера_деятельностиRowChanging(this, new Сфера_деятельностиRowChangeEvent(((Сфера_деятельностиRow)(e.Row)), e.Action));
  759. }
  760. }
  761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  763. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  764. base.OnRowDeleted(e);
  765. if ((this.Сфера_деятельностиRowDeleted != null)) {
  766. this.Сфера_деятельностиRowDeleted(this, new Сфера_деятельностиRowChangeEvent(((Сфера_деятельностиRow)(e.Row)), e.Action));
  767. }
  768. }
  769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  770. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  771. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  772. base.OnRowDeleting(e);
  773. if ((this.Сфера_деятельностиRowDeleting != null)) {
  774. this.Сфера_деятельностиRowDeleting(this, new Сфера_деятельностиRowChangeEvent(((Сфера_деятельностиRow)(e.Row)), e.Action));
  775. }
  776. }
  777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  779. public void RemoveСфера_деятельностиRow(Сфера_деятельностиRow row) {
  780. this.Rows.Remove(row);
  781. }
  782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  783. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  784. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  785. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  786. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  787. BD_РожковDataSet ds = new BD_РожковDataSet();
  788. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  789. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  790. any1.MinOccurs = new decimal(0);
  791. any1.MaxOccurs = decimal.MaxValue;
  792. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  793. sequence.Items.Add(any1);
  794. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  795. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  796. any2.MinOccurs = new decimal(1);
  797. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  798. sequence.Items.Add(any2);
  799. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  800. attribute1.Name = "namespace";
  801. attribute1.FixedValue = ds.Namespace;
  802. type.Attributes.Add(attribute1);
  803. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  804. attribute2.Name = "tableTypeName";
  805. attribute2.FixedValue = "Сфера_деятельностиDataTable";
  806. type.Attributes.Add(attribute2);
  807. type.Particle = sequence;
  808. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  809. if (xs.Contains(dsSchema.TargetNamespace)) {
  810. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  811. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  812. try {
  813. global::System.Xml.Schema.XmlSchema schema = null;
  814. dsSchema.Write(s1);
  815. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  816. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  817. s2.SetLength(0);
  818. schema.Write(s2);
  819. if ((s1.Length == s2.Length)) {
  820. s1.Position = 0;
  821. s2.Position = 0;
  822. for (; ((s1.Position != s1.Length)
  823. && (s1.ReadByte() == s2.ReadByte())); ) {
  824. ;
  825. }
  826. if ((s1.Position == s1.Length)) {
  827. return type;
  828. }
  829. }
  830. }
  831. }
  832. finally {
  833. if ((s1 != null)) {
  834. s1.Close();
  835. }
  836. if ((s2 != null)) {
  837. s2.Close();
  838. }
  839. }
  840. }
  841. xs.Add(dsSchema);
  842. return type;
  843. }
  844. }
  845. /// <summary>
  846. ///Represents strongly named DataRow class.
  847. ///</summary>
  848. public partial class Список_вакансийRow : global::System.Data.DataRow {
  849. private Список_вакансийDataTable tableСписок_вакансий;
  850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  851. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  852. internal Список_вакансийRow(global::System.Data.DataRowBuilder rb) :
  853. base(rb) {
  854. this.tableСписок_вакансий = ((Список_вакансийDataTable)(this.Table));
  855. }
  856. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  857. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  858. public int Код_вакансии {
  859. get {
  860. return ((int)(this[this.tableСписок_вакансий.Код_вакансииColumn]));
  861. }
  862. set {
  863. this[this.tableСписок_вакансий.Код_вакансииColumn] = value;
  864. }
  865. }
  866. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  867. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  868. public string Название_вакансии {
  869. get {
  870. try {
  871. return ((string)(this[this.tableСписок_вакансий.Название_вакансииColumn]));
  872. }
  873. catch (global::System.InvalidCastException e) {
  874. throw new global::System.Data.StrongTypingException("Значение для столбца \'Название вакансии\' в таблице \'Список вакансий\' равно DBNull" +
  875. ".", e);
  876. }
  877. }
  878. set {
  879. this[this.tableСписок_вакансий.Название_вакансииColumn] = value;
  880. }
  881. }
  882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  883. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  884. public string Должность {
  885. get {
  886. try {
  887. return ((string)(this[this.tableСписок_вакансий.ДолжностьColumn]));
  888. }
  889. catch (global::System.InvalidCastException e) {
  890. throw new global::System.Data.StrongTypingException("Значение для столбца \'Должность\' в таблице \'Список вакансий\' равно DBNull.", e);
  891. }
  892. }
  893. set {
  894. this[this.tableСписок_вакансий.ДолжностьColumn] = value;
  895. }
  896. }
  897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  898. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  899. public decimal Оклад {
  900. get {
  901. try {
  902. return ((decimal)(this[this.tableСписок_вакансий.ОкладColumn]));
  903. }
  904. catch (global::System.InvalidCastException e) {
  905. throw new global::System.Data.StrongTypingException("Значение для столбца \'Оклад\' в таблице \'Список вакансий\' равно DBNull.", e);
  906. }
  907. }
  908. set {
  909. this[this.tableСписок_вакансий.ОкладColumn] = value;
  910. }
  911. }
  912. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  913. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  914. public string Требования_к_соискателю {
  915. get {
  916. try {
  917. return ((string)(this[this.tableСписок_вакансий.Требования_к_соискателюColumn]));
  918. }
  919. catch (global::System.InvalidCastException e) {
  920. throw new global::System.Data.StrongTypingException("Значение для столбца \'Требования к соискателю\' в таблице \'Список вакансий\' равно " +
  921. "DBNull.", e);
  922. }
  923. }
  924. set {
  925. this[this.tableСписок_вакансий.Требования_к_соискателюColumn] = value;
  926. }
  927. }
  928. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  929. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  930. public string Работадатель {
  931. get {
  932. try {
  933. return ((string)(this[this.tableСписок_вакансий.РаботадательColumn]));
  934. }
  935. catch (global::System.InvalidCastException e) {
  936. throw new global::System.Data.StrongTypingException("Значение для столбца \'Работадатель\' в таблице \'Список вакансий\' равно DBNull.", e);
  937. }
  938. }
  939. set {
  940. this[this.tableСписок_вакансий.РаботадательColumn] = value;
  941. }
  942. }
  943. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  944. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  945. public string Контактный_номер {
  946. get {
  947. try {
  948. return ((string)(this[this.tableСписок_вакансий.Контактный_номерColumn]));
  949. }
  950. catch (global::System.InvalidCastException e) {
  951. throw new global::System.Data.StrongTypingException("Значение для столбца \'Контактный номер\' в таблице \'Список вакансий\' равно DBNull." +
  952. "", e);
  953. }
  954. }
  955. set {
  956. this[this.tableСписок_вакансий.Контактный_номерColumn] = value;
  957. }
  958. }
  959. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  960. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  961. public int Код_сферы {
  962. get {
  963. return ((int)(this[this.tableСписок_вакансий.Код_сферыColumn]));
  964. }
  965. set {
  966. this[this.tableСписок_вакансий.Код_сферыColumn] = value;
  967. }
  968. }
  969. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  970. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  971. public bool IsНазвание_вакансииNull() {
  972. return this.IsNull(this.tableСписок_вакансий.Название_вакансииColumn);
  973. }
  974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  975. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  976. public void SetНазвание_вакансииNull() {
  977. this[this.tableСписок_вакансий.Название_вакансииColumn] = global::System.Convert.DBNull;
  978. }
  979. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  980. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  981. public bool IsДолжностьNull() {
  982. return this.IsNull(this.tableСписок_вакансий.ДолжностьColumn);
  983. }
  984. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  985. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  986. public void SetДолжностьNull() {
  987. this[this.tableСписок_вакансий.ДолжностьColumn] = global::System.Convert.DBNull;
  988. }
  989. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  990. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  991. public bool IsОкладNull() {
  992. return this.IsNull(this.tableСписок_вакансий.ОкладColumn);
  993. }
  994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  995. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  996. public void SetОкладNull() {
  997. this[this.tableСписок_вакансий.ОкладColumn] = global::System.Convert.DBNull;
  998. }
  999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1001. public bool IsТребования_к_соискателюNull() {
  1002. return this.IsNull(this.tableСписок_вакансий.Требования_к_соискателюColumn);
  1003. }
  1004. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1005. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1006. public void SetТребования_к_соискателюNull() {
  1007. this[this.tableСписок_вакансий.Требования_к_соискателюColumn] = global::System.Convert.DBNull;
  1008. }
  1009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1011. public bool IsРаботадательNull() {
  1012. return this.IsNull(this.tableСписок_вакансий.РаботадательColumn);
  1013. }
  1014. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1015. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1016. public void SetРаботадательNull() {
  1017. this[this.tableСписок_вакансий.РаботадательColumn] = global::System.Convert.DBNull;
  1018. }
  1019. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1020. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1021. public bool IsКонтактный_номерNull() {
  1022. return this.IsNull(this.tableСписок_вакансий.Контактный_номерColumn);
  1023. }
  1024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1025. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1026. public void SetКонтактный_номерNull() {
  1027. this[this.tableСписок_вакансий.Контактный_номерColumn] = global::System.Convert.DBNull;
  1028. }
  1029. }
  1030. /// <summary>
  1031. ///Represents strongly named DataRow class.
  1032. ///</summary>
  1033. public partial class Сфера_деятельностиRow : global::System.Data.DataRow {
  1034. private Сфера_деятельностиDataTable tableСфера_деятельности;
  1035. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1036. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1037. internal Сфера_деятельностиRow(global::System.Data.DataRowBuilder rb) :
  1038. base(rb) {
  1039. this.tableСфера_деятельности = ((Сфера_деятельностиDataTable)(this.Table));
  1040. }
  1041. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1042. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1043. public int Код_сферы {
  1044. get {
  1045. return ((int)(this[this.tableСфера_деятельности.Код_сферыColumn]));
  1046. }
  1047. set {
  1048. this[this.tableСфера_деятельности.Код_сферыColumn] = value;
  1049. }
  1050. }
  1051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1053. public string Сфера_деятельности {
  1054. get {
  1055. try {
  1056. return ((string)(this[this.tableСфера_деятельности.Сфера_деятельностиColumn]));
  1057. }
  1058. catch (global::System.InvalidCastException e) {
  1059. throw new global::System.Data.StrongTypingException("Значение для столбца \'Сфера деятельности\' в таблице \'Сфера деятельности\' равно DB" +
  1060. "Null.", e);
  1061. }
  1062. }
  1063. set {
  1064. this[this.tableСфера_деятельности.Сфера_деятельностиColumn] = value;
  1065. }
  1066. }
  1067. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1068. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1069. public bool IsСфера_деятельностиNull() {
  1070. return this.IsNull(this.tableСфера_деятельности.Сфера_деятельностиColumn);
  1071. }
  1072. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1073. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1074. public void SetСфера_деятельностиNull() {
  1075. this[this.tableСфера_деятельности.Сфера_деятельностиColumn] = global::System.Convert.DBNull;
  1076. }
  1077. }
  1078. /// <summary>
  1079. ///Row event argument class
  1080. ///</summary>
  1081. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1082. public class Список_вакансийRowChangeEvent : global::System.EventArgs {
  1083. private Список_вакансийRow eventRow;
  1084. private global::System.Data.DataRowAction eventAction;
  1085. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1086. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1087. public Список_вакансийRowChangeEvent(Список_вакансийRow row, global::System.Data.DataRowAction action) {
  1088. this.eventRow = row;
  1089. this.eventAction = action;
  1090. }
  1091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1093. public Список_вакансийRow Row {
  1094. get {
  1095. return this.eventRow;
  1096. }
  1097. }
  1098. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1099. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1100. public global::System.Data.DataRowAction Action {
  1101. get {
  1102. return this.eventAction;
  1103. }
  1104. }
  1105. }
  1106. /// <summary>
  1107. ///Row event argument class
  1108. ///</summary>
  1109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1110. public class Сфера_деятельностиRowChangeEvent : global::System.EventArgs {
  1111. private Сфера_деятельностиRow eventRow;
  1112. private global::System.Data.DataRowAction eventAction;
  1113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1114. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1115. public Сфера_деятельностиRowChangeEvent(Сфера_деятельностиRow row, global::System.Data.DataRowAction action) {
  1116. this.eventRow = row;
  1117. this.eventAction = action;
  1118. }
  1119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1120. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1121. public Сфера_деятельностиRow Row {
  1122. get {
  1123. return this.eventRow;
  1124. }
  1125. }
  1126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1128. public global::System.Data.DataRowAction Action {
  1129. get {
  1130. return this.eventAction;
  1131. }
  1132. }
  1133. }
  1134. }
  1135. }
  1136. namespace WindowsFormsApp1.BD_РожковDataSetTableAdapters {
  1137. /// <summary>
  1138. ///Represents the connection and commands used to retrieve and save data.
  1139. ///</summary>
  1140. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  1141. [global::System.ComponentModel.ToolboxItem(true)]
  1142. [global::System.ComponentModel.DataObjectAttribute(true)]
  1143. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  1144. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  1145. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1146. public partial class Список_вакансийTableAdapter : global::System.ComponentModel.Component {
  1147. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  1148. private global::System.Data.SqlClient.SqlConnection _connection;
  1149. private global::System.Data.SqlClient.SqlTransaction _transaction;
  1150. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  1151. private bool _clearBeforeFill;
  1152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1154. public Список_вакансийTableAdapter() {
  1155. this.ClearBeforeFill = true;
  1156. }
  1157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1159. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  1160. get {
  1161. if ((this._adapter == null)) {
  1162. this.InitAdapter();
  1163. }
  1164. return this._adapter;
  1165. }
  1166. }
  1167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1169. internal global::System.Data.SqlClient.SqlConnection Connection {
  1170. get {
  1171. if ((this._connection == null)) {
  1172. this.InitConnection();
  1173. }
  1174. return this._connection;
  1175. }
  1176. set {
  1177. this._connection = value;
  1178. if ((this.Adapter.InsertCommand != null)) {
  1179. this.Adapter.InsertCommand.Connection = value;
  1180. }
  1181. if ((this.Adapter.DeleteCommand != null)) {
  1182. this.Adapter.DeleteCommand.Connection = value;
  1183. }
  1184. if ((this.Adapter.UpdateCommand != null)) {
  1185. this.Adapter.UpdateCommand.Connection = value;
  1186. }
  1187. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  1188. if ((this.CommandCollection[i] != null)) {
  1189. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  1190. }
  1191. }
  1192. }
  1193. }
  1194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1196. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  1197. get {
  1198. return this._transaction;
  1199. }
  1200. set {
  1201. this._transaction = value;
  1202. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  1203. this.CommandCollection[i].Transaction = this._transaction;
  1204. }
  1205. if (((this.Adapter != null)
  1206. && (this.Adapter.DeleteCommand != null))) {
  1207. this.Adapter.DeleteCommand.Transaction = this._transaction;
  1208. }
  1209. if (((this.Adapter != null)
  1210. && (this.Adapter.InsertCommand != null))) {
  1211. this.Adapter.InsertCommand.Transaction = this._transaction;
  1212. }
  1213. if (((this.Adapter != null)
  1214. && (this.Adapter.UpdateCommand != null))) {
  1215. this.Adapter.UpdateCommand.Transaction = this._transaction;
  1216. }
  1217. }
  1218. }
  1219. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1220. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1221. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  1222. get {
  1223. if ((this._commandCollection == null)) {
  1224. this.InitCommandCollection();
  1225. }
  1226. return this._commandCollection;
  1227. }
  1228. }
  1229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1230. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1231. public bool ClearBeforeFill {
  1232. get {
  1233. return this._clearBeforeFill;
  1234. }
  1235. set {
  1236. this._clearBeforeFill = value;
  1237. }
  1238. }
  1239. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1240. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1241. private void InitAdapter() {
  1242. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  1243. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  1244. tableMapping.SourceTable = "Table";
  1245. tableMapping.DataSetTable = "Список вакансий";
  1246. tableMapping.ColumnMappings.Add("Код вакансии", "Код вакансии");
  1247. tableMapping.ColumnMappings.Add("Название вакансии", "Название вакансии");
  1248. tableMapping.ColumnMappings.Add("Должность", "Должность");
  1249. tableMapping.ColumnMappings.Add("Оклад", "Оклад");
  1250. tableMapping.ColumnMappings.Add("Требования к соискателю", "Требования к соискателю");
  1251. tableMapping.ColumnMappings.Add("Работадатель", "Работадатель");
  1252. tableMapping.ColumnMappings.Add("Контактный номер", "Контактный номер");
  1253. tableMapping.ColumnMappings.Add("Код сферы", "Код сферы");
  1254. this._adapter.TableMappings.Add(tableMapping);
  1255. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  1256. this._adapter.DeleteCommand.Connection = this.Connection;
  1257. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Список вакансий] WHERE (([Код вакансии] = @Original_Код_вакансии) AND ((@IsNull_Название_вакансии = 1 AND [Название вакансии] IS NULL) OR ([Название вакансии] = @Original_Название_вакансии)) AND ((@IsNull_Должность = 1 AND [Должность] IS NULL) OR ([Должность] = @Original_Должность)) AND ((@IsNull_Оклад = 1 AND [Оклад] IS NULL) OR ([Оклад] = @Original_Оклад)) AND ((@IsNull_Требования_к_соискателю = 1 AND [Требования к соискателю] IS NULL) OR ([Требования к соискателю] = @Original_Требования_к_соискателю)) AND ((@IsNull_Работадатель = 1 AND [Работадатель] IS NULL) OR ([Работадатель] = @Original_Работадатель)) AND ((@IsNull_Контактный_номер = 1 AND [Контактный номер] IS NULL) OR ([Контактный номер] = @Original_Контактный_номер)) AND ((@IsNull_Код_сферы = 1 AND [Код сферы] IS NULL) OR ([Код сферы] = @Original_Код_сферы)))";
  1258. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  1259. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_вакансии", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код вакансии", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  1260. 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, "", "", ""));
  1261. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Название_вакансии", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название вакансии", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  1262. 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, "", "", ""));
  1263. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Должность", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Должность", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  1264. 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, "", "", ""));
  1265. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Оклад", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 10, 2, "Оклад", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  1266. 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, "", "", ""));
  1267. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Требования_к_соискателю", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Требования к соискателю", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  1268. 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, "", "", ""));
  1269. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Работадатель", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Работадатель", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  1270. 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, "", "", ""));
  1271. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Контактный_номер", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Контактный номер", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  1272. 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, "", "", ""));
  1273. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_сферы", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код сферы", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  1274. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  1275. this._adapter.InsertCommand.Connection = this.Connection;
  1276. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Список вакансий] ([Код вакансии], [Название вакансии], [Должность], [Оклад], [Требования к соискателю], [Работадатель], [Контактный номер], [Код сферы]) VALUES (@Код_вакансии, @Название_вакансии, @Должность, @Оклад, @Требования_к_соискателю, @Работадатель, @Контактный_номер, @Код_сферы);
  1277. SELECT [Код вакансии], [Название вакансии], Должность, Оклад, [Требования к соискателю], Работадатель, [Контактный номер], [Код сферы] FROM [Список вакансий] WHERE ([Код вакансии] = @Код_вакансии)";
  1278. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  1279. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_вакансии", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код вакансии", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1280. 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, "", "", ""));
  1281. 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, "", "", ""));
  1282. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Оклад", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 10, 2, "Оклад", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1283. 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, "", "", ""));
  1284. 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, "", "", ""));
  1285. 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, "", "", ""));
  1286. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_сферы", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код сферы", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1287. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  1288. this._adapter.UpdateCommand.Connection = this.Connection;
  1289. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Список вакансий] SET [Код вакансии] = @Код_вакансии, [Название вакансии] = @Название_вакансии, [Должность] = @Должность, [Оклад] = @Оклад, [Требования к соискателю] = @Требования_к_соискателю, [Работадатель] = @Работадатель, [Контактный номер] = @Контактный_номер, [Код сферы] = @Код_сферы WHERE (([Код вакансии] = @Original_Код_вакансии) AND ((@IsNull_Название_вакансии = 1 AND [Название вакансии] IS NULL) OR ([Название вакансии] = @Original_Название_вакансии)) AND ((@IsNull_Должность = 1 AND [Должность] IS NULL) OR ([Должность] = @Original_Должность)) AND ((@IsNull_Оклад = 1 AND [Оклад] IS NULL) OR ([Оклад] = @Original_Оклад)) AND ((@IsNull_Требования_к_соискателю = 1 AND [Требования к соискателю] IS NULL) OR ([Требования к соискателю] = @Original_Требования_к_соискателю)) AND ((@IsNull_Работадатель = 1 AND [Работадатель] IS NULL) OR ([Работадатель] = @Original_Работадатель)) AND ((@IsNull_Контактный_номер = 1 AND [Контактный номер] IS NULL) OR ([Контактный номер] = @Original_Контактный_номер)) AND ((@IsNull_Код_сферы = 1 AND [Код сферы] IS NULL) OR ([Код сферы] = @Original_Код_сферы)));
  1290. SELECT [Код вакансии], [Название вакансии], Должность, Оклад, [Требования к соискателю], Работадатель, [Контактный номер], [Код сферы] FROM [Список вакансий] WHERE ([Код вакансии] = @Код_вакансии)";
  1291. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  1292. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_вакансии", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код вакансии", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1293. 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, "", "", ""));
  1294. 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, "", "", ""));
  1295. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Оклад", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 10, 2, "Оклад", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1296. 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, "", "", ""));
  1297. 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, "", "", ""));
  1298. 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, "", "", ""));
  1299. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_сферы", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код сферы", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1300. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_вакансии", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код вакансии", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  1301. 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, "", "", ""));
  1302. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Название_вакансии", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название вакансии", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  1303. 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, "", "", ""));
  1304. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Должность", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Должность", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  1305. 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, "", "", ""));
  1306. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Оклад", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 10, 2, "Оклад", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  1307. 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, "", "", ""));
  1308. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Требования_к_соискателю", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Требования к соискателю", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  1309. 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, "", "", ""));
  1310. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Работадатель", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Работадатель", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  1311. 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, "", "", ""));
  1312. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Контактный_номер", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Контактный номер", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  1313. 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, "", "", ""));
  1314. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_сферы", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код сферы", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  1315. }
  1316. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1317. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1318. private void InitConnection() {
  1319. this._connection = new global::System.Data.SqlClient.SqlConnection();
  1320. this._connection.ConnectionString = global::WindowsFormsApp1.Properties.Settings.Default.BD_РожковConnectionString;
  1321. }
  1322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1323. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1324. private void InitCommandCollection() {
  1325. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  1326. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  1327. this._commandCollection[0].Connection = this.Connection;
  1328. this._commandCollection[0].CommandText = "SELECT [Код вакансии], [Название вакансии], Должность, Оклад, [Требования к соиск" +
  1329. "ателю], Работадатель, [Контактный номер], [Код сферы] FROM dbo.[Список вакансий]" +
  1330. "";
  1331. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  1332. }
  1333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1334. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1335. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1336. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  1337. public virtual int Fill(BD_РожковDataSet.Список_вакансийDataTable dataTable) {
  1338. this.Adapter.SelectCommand = this.CommandCollection[0];
  1339. if ((this.ClearBeforeFill == true)) {
  1340. dataTable.Clear();
  1341. }
  1342. int returnValue = this.Adapter.Fill(dataTable);
  1343. return returnValue;
  1344. }
  1345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1346. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1347. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1348. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  1349. public virtual BD_РожковDataSet.Список_вакансийDataTable GetData() {
  1350. this.Adapter.SelectCommand = this.CommandCollection[0];
  1351. BD_РожковDataSet.Список_вакансийDataTable dataTable = new BD_РожковDataSet.Список_вакансийDataTable();
  1352. this.Adapter.Fill(dataTable);
  1353. return dataTable;
  1354. }
  1355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1357. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1358. public virtual int Update(BD_РожковDataSet.Список_вакансийDataTable dataTable) {
  1359. return this.Adapter.Update(dataTable);
  1360. }
  1361. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1362. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1363. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1364. public virtual int Update(BD_РожковDataSet dataSet) {
  1365. return this.Adapter.Update(dataSet, "Список вакансий");
  1366. }
  1367. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1368. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1369. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1370. public virtual int Update(global::System.Data.DataRow dataRow) {
  1371. return this.Adapter.Update(new global::System.Data.DataRow[] {
  1372. dataRow});
  1373. }
  1374. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1375. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1376. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1377. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  1378. return this.Adapter.Update(dataRows);
  1379. }
  1380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1382. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1383. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  1384. public virtual int Delete(int Original_Код_вакансии, string Original_Название_вакансии, string Original_Должность, global::System.Nullable<decimal> Original_Оклад, string Original_Требования_к_соискателю, string Original_Работадатель, string Original_Контактный_номер, int Original_Код_сферы) {
  1385. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_Код_вакансии));
  1386. if ((Original_Название_вакансии == null)) {
  1387. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  1388. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  1389. }
  1390. else {
  1391. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  1392. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Название_вакансии));
  1393. }
  1394. if ((Original_Должность == null)) {
  1395. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  1396. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  1397. }
  1398. else {
  1399. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  1400. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Должность));
  1401. }
  1402. if ((Original_Оклад.HasValue == true)) {
  1403. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  1404. this.Adapter.DeleteCommand.Parameters[6].Value = ((decimal)(Original_Оклад.Value));
  1405. }
  1406. else {
  1407. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  1408. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  1409. }
  1410. if ((Original_Требования_к_соискателю == null)) {
  1411. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  1412. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  1413. }
  1414. else {
  1415. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  1416. this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Требования_к_соискателю));
  1417. }
  1418. if ((Original_Работадатель == null)) {
  1419. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  1420. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  1421. }
  1422. else {
  1423. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  1424. this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_Работадатель));
  1425. }
  1426. if ((Original_Контактный_номер == null)) {
  1427. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  1428. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  1429. }
  1430. else {
  1431. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  1432. this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_Контактный_номер));
  1433. }
  1434. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
  1435. this.Adapter.DeleteCommand.Parameters[14].Value = ((int)(Original_Код_сферы));
  1436. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  1437. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  1438. != global::System.Data.ConnectionState.Open)) {
  1439. this.Adapter.DeleteCommand.Connection.Open();
  1440. }
  1441. try {
  1442. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  1443. return returnValue;
  1444. }
  1445. finally {
  1446. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  1447. this.Adapter.DeleteCommand.Connection.Close();
  1448. }
  1449. }
  1450. }
  1451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1452. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1453. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1454. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  1455. public virtual int Insert(int Код_вакансии, string Название_вакансии, string Должность, global::System.Nullable<decimal> Оклад, string Требования_к_соискателю, string Работадатель, string Контактный_номер, int Код_сферы) {
  1456. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(Код_вакансии));
  1457. if ((Название_вакансии == null)) {
  1458. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  1459. }
  1460. else {
  1461. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Название_вакансии));
  1462. }
  1463. if ((Должность == null)) {
  1464. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  1465. }
  1466. else {
  1467. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Должность));
  1468. }
  1469. if ((Оклад.HasValue == true)) {
  1470. this.Adapter.InsertCommand.Parameters[3].Value = ((decimal)(Оклад.Value));
  1471. }
  1472. else {
  1473. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  1474. }
  1475. if ((Требования_к_соискателю == null)) {
  1476. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  1477. }
  1478. else {
  1479. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Требования_к_соискателю));
  1480. }
  1481. if ((Работадатель == null)) {
  1482. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  1483. }
  1484. else {
  1485. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Работадатель));
  1486. }
  1487. if ((Контактный_номер == null)) {
  1488. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  1489. }
  1490. else {
  1491. this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Контактный_номер));
  1492. }
  1493. this.Adapter.InsertCommand.Parameters[7].Value = ((int)(Код_сферы));
  1494. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  1495. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  1496. != global::System.Data.ConnectionState.Open)) {
  1497. this.Adapter.InsertCommand.Connection.Open();
  1498. }
  1499. try {
  1500. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  1501. return returnValue;
  1502. }
  1503. finally {
  1504. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  1505. this.Adapter.InsertCommand.Connection.Close();
  1506. }
  1507. }
  1508. }
  1509. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1510. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1511. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1512. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  1513. public virtual int Update(
  1514. int Код_вакансии,
  1515. string Название_вакансии,
  1516. string Должность,
  1517. global::System.Nullable<decimal> Оклад,
  1518. string Требования_к_соискателю,
  1519. string Работадатель,
  1520. string Контактный_номер,
  1521. int Код_сферы,
  1522. int Original_Код_вакансии,
  1523. string Original_Название_вакансии,
  1524. string Original_Должность,
  1525. global::System.Nullable<decimal> Original_Оклад,
  1526. string Original_Требования_к_соискателю,
  1527. string Original_Работадатель,
  1528. string Original_Контактный_номер,
  1529. int Original_Код_сферы) {
  1530. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(Код_вакансии));
  1531. if ((Название_вакансии == null)) {
  1532. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  1533. }
  1534. else {
  1535. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Название_вакансии));
  1536. }
  1537. if ((Должность == null)) {
  1538. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  1539. }
  1540. else {
  1541. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Должность));
  1542. }
  1543. if ((Оклад.HasValue == true)) {
  1544. this.Adapter.UpdateCommand.Parameters[3].Value = ((decimal)(Оклад.Value));
  1545. }
  1546. else {
  1547. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  1548. }
  1549. if ((Требования_к_соискателю == null)) {
  1550. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  1551. }
  1552. else {
  1553. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Требования_к_соискателю));
  1554. }
  1555. if ((Работадатель == null)) {
  1556. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  1557. }
  1558. else {
  1559. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Работадатель));
  1560. }
  1561. if ((Контактный_номер == null)) {
  1562. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  1563. }
  1564. else {
  1565. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Контактный_номер));
  1566. }
  1567. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Код_сферы));
  1568. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_Код_вакансии));
  1569. if ((Original_Название_вакансии == null)) {
  1570. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  1571. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  1572. }
  1573. else {
  1574. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  1575. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_Название_вакансии));
  1576. }
  1577. if ((Original_Должность == null)) {
  1578. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  1579. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  1580. }
  1581. else {
  1582. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  1583. this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_Должность));
  1584. }
  1585. if ((Original_Оклад.HasValue == true)) {
  1586. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
  1587. this.Adapter.UpdateCommand.Parameters[14].Value = ((decimal)(Original_Оклад.Value));
  1588. }
  1589. else {
  1590. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
  1591. this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
  1592. }
  1593. if ((Original_Требования_к_соискателю == null)) {
  1594. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
  1595. this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
  1596. }
  1597. else {
  1598. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
  1599. this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_Требования_к_соискателю));
  1600. }
  1601. if ((Original_Работадатель == null)) {
  1602. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
  1603. this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
  1604. }
  1605. else {
  1606. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
  1607. this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_Работадатель));
  1608. }
  1609. if ((Original_Контактный_номер == null)) {
  1610. this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(1));
  1611. this.Adapter.UpdateCommand.Parameters[20].Value = global::System.DBNull.Value;
  1612. }
  1613. else {
  1614. this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(0));
  1615. this.Adapter.UpdateCommand.Parameters[20].Value = ((string)(Original_Контактный_номер));
  1616. }
  1617. this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(0));
  1618. this.Adapter.UpdateCommand.Parameters[22].Value = ((int)(Original_Код_сферы));
  1619. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  1620. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  1621. != global::System.Data.ConnectionState.Open)) {
  1622. this.Adapter.UpdateCommand.Connection.Open();
  1623. }
  1624. try {
  1625. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  1626. return returnValue;
  1627. }
  1628. finally {
  1629. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  1630. this.Adapter.UpdateCommand.Connection.Close();
  1631. }
  1632. }
  1633. }
  1634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1636. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1637. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  1638. public virtual int Update(string Название_вакансии, string Должность, global::System.Nullable<decimal> Оклад, string Требования_к_соискателю, string Работадатель, string Контактный_номер, int Код_сферы, int Original_Код_вакансии, string Original_Название_вакансии, string Original_Должность, global::System.Nullable<decimal> Original_Оклад, string Original_Требования_к_соискателю, string Original_Работадатель, string Original_Контактный_номер, int Original_Код_сферы) {
  1639. return this.Update(Original_Код_вакансии, Название_вакансии, Должность, Оклад, Требования_к_соискателю, Работадатель, Контактный_номер, Код_сферы, Original_Код_вакансии, Original_Название_вакансии, Original_Должность, Original_Оклад, Original_Требования_к_соискателю, Original_Работадатель, Original_Контактный_номер, Original_Код_сферы);
  1640. }
  1641. }
  1642. /// <summary>
  1643. ///Represents the connection and commands used to retrieve and save data.
  1644. ///</summary>
  1645. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  1646. [global::System.ComponentModel.ToolboxItem(true)]
  1647. [global::System.ComponentModel.DataObjectAttribute(true)]
  1648. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  1649. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  1650. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1651. public partial class Сфера_деятельностиTableAdapter : global::System.ComponentModel.Component {
  1652. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  1653. private global::System.Data.SqlClient.SqlConnection _connection;
  1654. private global::System.Data.SqlClient.SqlTransaction _transaction;
  1655. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  1656. private bool _clearBeforeFill;
  1657. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1658. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1659. public Сфера_деятельностиTableAdapter() {
  1660. this.ClearBeforeFill = true;
  1661. }
  1662. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1663. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1664. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  1665. get {
  1666. if ((this._adapter == null)) {
  1667. this.InitAdapter();
  1668. }
  1669. return this._adapter;
  1670. }
  1671. }
  1672. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1674. internal global::System.Data.SqlClient.SqlConnection Connection {
  1675. get {
  1676. if ((this._connection == null)) {
  1677. this.InitConnection();
  1678. }
  1679. return this._connection;
  1680. }
  1681. set {
  1682. this._connection = value;
  1683. if ((this.Adapter.InsertCommand != null)) {
  1684. this.Adapter.InsertCommand.Connection = value;
  1685. }
  1686. if ((this.Adapter.DeleteCommand != null)) {
  1687. this.Adapter.DeleteCommand.Connection = value;
  1688. }
  1689. if ((this.Adapter.UpdateCommand != null)) {
  1690. this.Adapter.UpdateCommand.Connection = value;
  1691. }
  1692. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  1693. if ((this.CommandCollection[i] != null)) {
  1694. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  1695. }
  1696. }
  1697. }
  1698. }
  1699. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1700. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1701. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  1702. get {
  1703. return this._transaction;
  1704. }
  1705. set {
  1706. this._transaction = value;
  1707. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  1708. this.CommandCollection[i].Transaction = this._transaction;
  1709. }
  1710. if (((this.Adapter != null)
  1711. && (this.Adapter.DeleteCommand != null))) {
  1712. this.Adapter.DeleteCommand.Transaction = this._transaction;
  1713. }
  1714. if (((this.Adapter != null)
  1715. && (this.Adapter.InsertCommand != null))) {
  1716. this.Adapter.InsertCommand.Transaction = this._transaction;
  1717. }
  1718. if (((this.Adapter != null)
  1719. && (this.Adapter.UpdateCommand != null))) {
  1720. this.Adapter.UpdateCommand.Transaction = this._transaction;
  1721. }
  1722. }
  1723. }
  1724. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1725. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1726. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  1727. get {
  1728. if ((this._commandCollection == null)) {
  1729. this.InitCommandCollection();
  1730. }
  1731. return this._commandCollection;
  1732. }
  1733. }
  1734. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1736. public bool ClearBeforeFill {
  1737. get {
  1738. return this._clearBeforeFill;
  1739. }
  1740. set {
  1741. this._clearBeforeFill = value;
  1742. }
  1743. }
  1744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1746. private void InitAdapter() {
  1747. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  1748. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  1749. tableMapping.SourceTable = "Table";
  1750. tableMapping.DataSetTable = "Сфера деятельности";
  1751. tableMapping.ColumnMappings.Add("Код сферы", "Код сферы");
  1752. tableMapping.ColumnMappings.Add("Сфера деятельности", "Сфера деятельности");
  1753. this._adapter.TableMappings.Add(tableMapping);
  1754. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  1755. this._adapter.DeleteCommand.Connection = this.Connection;
  1756. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Сфера деятельности] WHERE (([Код сферы] = @Original_Код_сферы)" +
  1757. " AND ((@IsNull_Сфера_деятельности = 1 AND [Сфера деятельности] IS NULL) OR ([Сфе" +
  1758. "ра деятельности] = @Original_Сфера_деятельности)))";
  1759. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  1760. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_сферы", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код сферы", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  1761. 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, "", "", ""));
  1762. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Сфера_деятельности", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Сфера деятельности", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  1763. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  1764. this._adapter.InsertCommand.Connection = this.Connection;
  1765. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Сфера деятельности] ([Код сферы], [Сфера деятельности]) VALUES" +
  1766. " (@Код_сферы, @Сфера_деятельности);\r\nSELECT [Код сферы], [Сфера деятельности] FR" +
  1767. "OM [Сфера деятельности] WHERE ([Код сферы] = @Код_сферы)";
  1768. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  1769. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_сферы", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код сферы", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1770. 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, "", "", ""));
  1771. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  1772. this._adapter.UpdateCommand.Connection = this.Connection;
  1773. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Сфера деятельности] SET [Код сферы] = @Код_сферы, [Сфера деятельности] = @Сфера_деятельности WHERE (([Код сферы] = @Original_Код_сферы) AND ((@IsNull_Сфера_деятельности = 1 AND [Сфера деятельности] IS NULL) OR ([Сфера деятельности] = @Original_Сфера_деятельности)));
  1774. SELECT [Код сферы], [Сфера деятельности] FROM [Сфера деятельности] WHERE ([Код сферы] = @Код_сферы)";
  1775. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  1776. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_сферы", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код сферы", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1777. 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, "", "", ""));
  1778. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_сферы", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код сферы", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  1779. 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, "", "", ""));
  1780. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Сфера_деятельности", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Сфера деятельности", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  1781. }
  1782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1783. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1784. private void InitConnection() {
  1785. this._connection = new global::System.Data.SqlClient.SqlConnection();
  1786. this._connection.ConnectionString = global::WindowsFormsApp1.Properties.Settings.Default.BD_РожковConnectionString;
  1787. }
  1788. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1789. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1790. private void InitCommandCollection() {
  1791. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  1792. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  1793. this._commandCollection[0].Connection = this.Connection;
  1794. this._commandCollection[0].CommandText = "SELECT [Код сферы], [Сфера деятельности] FROM dbo.[Сфера деятельности]";
  1795. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  1796. }
  1797. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1798. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1799. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1800. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  1801. public virtual int Fill(BD_РожковDataSet.Сфера_деятельностиDataTable dataTable) {
  1802. this.Adapter.SelectCommand = this.CommandCollection[0];
  1803. if ((this.ClearBeforeFill == true)) {
  1804. dataTable.Clear();
  1805. }
  1806. int returnValue = this.Adapter.Fill(dataTable);
  1807. return returnValue;
  1808. }
  1809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1810. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1811. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1812. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  1813. public virtual BD_РожковDataSet.Сфера_деятельностиDataTable GetData() {
  1814. this.Adapter.SelectCommand = this.CommandCollection[0];
  1815. BD_РожковDataSet.Сфера_деятельностиDataTable dataTable = new BD_РожковDataSet.Сфера_деятельностиDataTable();
  1816. this.Adapter.Fill(dataTable);
  1817. return dataTable;
  1818. }
  1819. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1820. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1821. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1822. public virtual int Update(BD_РожковDataSet.Сфера_деятельностиDataTable dataTable) {
  1823. return this.Adapter.Update(dataTable);
  1824. }
  1825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1826. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1827. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1828. public virtual int Update(BD_РожковDataSet dataSet) {
  1829. return this.Adapter.Update(dataSet, "Сфера деятельности");
  1830. }
  1831. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1832. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1833. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1834. public virtual int Update(global::System.Data.DataRow dataRow) {
  1835. return this.Adapter.Update(new global::System.Data.DataRow[] {
  1836. dataRow});
  1837. }
  1838. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1839. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1840. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1841. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  1842. return this.Adapter.Update(dataRows);
  1843. }
  1844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1845. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1846. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1847. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  1848. public virtual int Delete(int Original_Код_сферы, string Original_Сфера_деятельности) {
  1849. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_Код_сферы));
  1850. if ((Original_Сфера_деятельности == null)) {
  1851. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  1852. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  1853. }
  1854. else {
  1855. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  1856. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Сфера_деятельности));
  1857. }
  1858. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  1859. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  1860. != global::System.Data.ConnectionState.Open)) {
  1861. this.Adapter.DeleteCommand.Connection.Open();
  1862. }
  1863. try {
  1864. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  1865. return returnValue;
  1866. }
  1867. finally {
  1868. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  1869. this.Adapter.DeleteCommand.Connection.Close();
  1870. }
  1871. }
  1872. }
  1873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1874. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1875. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1876. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  1877. public virtual int Insert(int Код_сферы, string Сфера_деятельности) {
  1878. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(Код_сферы));
  1879. if ((Сфера_деятельности == null)) {
  1880. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  1881. }
  1882. else {
  1883. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Сфера_деятельности));
  1884. }
  1885. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  1886. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  1887. != global::System.Data.ConnectionState.Open)) {
  1888. this.Adapter.InsertCommand.Connection.Open();
  1889. }
  1890. try {
  1891. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  1892. return returnValue;
  1893. }
  1894. finally {
  1895. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  1896. this.Adapter.InsertCommand.Connection.Close();
  1897. }
  1898. }
  1899. }
  1900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1901. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1902. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1903. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  1904. public virtual int Update(int Код_сферы, string Сфера_деятельности, int Original_Код_сферы, string Original_Сфера_деятельности) {
  1905. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(Код_сферы));
  1906. if ((Сфера_деятельности == null)) {
  1907. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  1908. }
  1909. else {
  1910. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Сфера_деятельности));
  1911. }
  1912. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_Код_сферы));
  1913. if ((Original_Сфера_деятельности == null)) {
  1914. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  1915. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  1916. }
  1917. else {
  1918. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  1919. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Сфера_деятельности));
  1920. }
  1921. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  1922. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  1923. != global::System.Data.ConnectionState.Open)) {
  1924. this.Adapter.UpdateCommand.Connection.Open();
  1925. }
  1926. try {
  1927. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  1928. return returnValue;
  1929. }
  1930. finally {
  1931. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  1932. this.Adapter.UpdateCommand.Connection.Close();
  1933. }
  1934. }
  1935. }
  1936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1937. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1938. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1939. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  1940. public virtual int Update(string Сфера_деятельности, int Original_Код_сферы, string Original_Сфера_деятельности) {
  1941. return this.Update(Original_Код_сферы, Сфера_деятельности, Original_Код_сферы, Original_Сфера_деятельности);
  1942. }
  1943. }
  1944. /// <summary>
  1945. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  1946. ///</summary>
  1947. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  1948. [global::System.ComponentModel.ToolboxItem(true)]
  1949. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  1950. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  1951. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  1952. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  1953. private UpdateOrderOption _updateOrder;
  1954. private Список_вакансийTableAdapter _список_вакансийTableAdapter;
  1955. private Сфера_деятельностиTableAdapter _сфера_деятельностиTableAdapter;
  1956. private bool _backupDataSetBeforeUpdate;
  1957. private global::System.Data.IDbConnection _connection;
  1958. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1959. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1960. public UpdateOrderOption UpdateOrder {
  1961. get {
  1962. return this._updateOrder;
  1963. }
  1964. set {
  1965. this._updateOrder = value;
  1966. }
  1967. }
  1968. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1969. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1970. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  1971. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  1972. "a", "System.Drawing.Design.UITypeEditor")]
  1973. public Список_вакансийTableAdapter Список_вакансийTableAdapter {
  1974. get {
  1975. return this._список_вакансийTableAdapter;
  1976. }
  1977. set {
  1978. this._список_вакансийTableAdapter = value;
  1979. }
  1980. }
  1981. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1982. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1983. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  1984. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  1985. "a", "System.Drawing.Design.UITypeEditor")]
  1986. public Сфера_деятельностиTableAdapter Сфера_деятельностиTableAdapter {
  1987. get {
  1988. return this._сфера_деятельностиTableAdapter;
  1989. }
  1990. set {
  1991. this._сфера_деятельностиTableAdapter = value;
  1992. }
  1993. }
  1994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1995. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1996. public bool BackupDataSetBeforeUpdate {
  1997. get {
  1998. return this._backupDataSetBeforeUpdate;
  1999. }
  2000. set {
  2001. this._backupDataSetBeforeUpdate = value;
  2002. }
  2003. }
  2004. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2005. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2006. [global::System.ComponentModel.Browsable(false)]
  2007. public global::System.Data.IDbConnection Connection {
  2008. get {
  2009. if ((this._connection != null)) {
  2010. return this._connection;
  2011. }
  2012. if (((this._список_вакансийTableAdapter != null)
  2013. && (this._список_вакансийTableAdapter.Connection != null))) {
  2014. return this._список_вакансийTableAdapter.Connection;
  2015. }
  2016. if (((this._сфера_деятельностиTableAdapter != null)
  2017. && (this._сфера_деятельностиTableAdapter.Connection != null))) {
  2018. return this._сфера_деятельностиTableAdapter.Connection;
  2019. }
  2020. return null;
  2021. }
  2022. set {
  2023. this._connection = value;
  2024. }
  2025. }
  2026. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2027. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2028. [global::System.ComponentModel.Browsable(false)]
  2029. public int TableAdapterInstanceCount {
  2030. get {
  2031. int count = 0;
  2032. if ((this._список_вакансийTableAdapter != null)) {
  2033. count = (count + 1);
  2034. }
  2035. if ((this._сфера_деятельностиTableAdapter != null)) {
  2036. count = (count + 1);
  2037. }
  2038. return count;
  2039. }
  2040. }
  2041. /// <summary>
  2042. ///Update rows in top-down order.
  2043. ///</summary>
  2044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2046. private int UpdateUpdatedRows(BD_РожковDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  2047. int result = 0;
  2048. if ((this._список_вакансийTableAdapter != null)) {
  2049. global::System.Data.DataRow[] updatedRows = dataSet.Список_вакансий.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  2050. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  2051. if (((updatedRows != null)
  2052. && (0 < updatedRows.Length))) {
  2053. result = (result + this._список_вакансийTableAdapter.Update(updatedRows));
  2054. allChangedRows.AddRange(updatedRows);
  2055. }
  2056. }
  2057. if ((this._сфера_деятельностиTableAdapter != null)) {
  2058. global::System.Data.DataRow[] updatedRows = dataSet.Сфера_деятельности.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  2059. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  2060. if (((updatedRows != null)
  2061. && (0 < updatedRows.Length))) {
  2062. result = (result + this._сфера_деятельностиTableAdapter.Update(updatedRows));
  2063. allChangedRows.AddRange(updatedRows);
  2064. }
  2065. }
  2066. return result;
  2067. }
  2068. /// <summary>
  2069. ///Insert rows in top-down order.
  2070. ///</summary>
  2071. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2072. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2073. private int UpdateInsertedRows(BD_РожковDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  2074. int result = 0;
  2075. if ((this._список_вакансийTableAdapter != null)) {
  2076. global::System.Data.DataRow[] addedRows = dataSet.Список_вакансий.Select(null, null, global::System.Data.DataViewRowState.Added);
  2077. if (((addedRows != null)
  2078. && (0 < addedRows.Length))) {
  2079. result = (result + this._список_вакансийTableAdapter.Update(addedRows));
  2080. allAddedRows.AddRange(addedRows);
  2081. }
  2082. }
  2083. if ((this._сфера_деятельностиTableAdapter != null)) {
  2084. global::System.Data.DataRow[] addedRows = dataSet.Сфера_деятельности.Select(null, null, global::System.Data.DataViewRowState.Added);
  2085. if (((addedRows != null)
  2086. && (0 < addedRows.Length))) {
  2087. result = (result + this._сфера_деятельностиTableAdapter.Update(addedRows));
  2088. allAddedRows.AddRange(addedRows);
  2089. }
  2090. }
  2091. return result;
  2092. }
  2093. /// <summary>
  2094. ///Delete rows in bottom-up order.
  2095. ///</summary>
  2096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2097. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2098. private int UpdateDeletedRows(BD_РожковDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  2099. int result = 0;
  2100. if ((this._сфера_деятельностиTableAdapter != null)) {
  2101. global::System.Data.DataRow[] deletedRows = dataSet.Сфера_деятельности.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  2102. if (((deletedRows != null)
  2103. && (0 < deletedRows.Length))) {
  2104. result = (result + this._сфера_деятельностиTableAdapter.Update(deletedRows));
  2105. allChangedRows.AddRange(deletedRows);
  2106. }
  2107. }
  2108. if ((this._список_вакансийTableAdapter != null)) {
  2109. global::System.Data.DataRow[] deletedRows = dataSet.Список_вакансий.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  2110. if (((deletedRows != null)
  2111. && (0 < deletedRows.Length))) {
  2112. result = (result + this._список_вакансийTableAdapter.Update(deletedRows));
  2113. allChangedRows.AddRange(deletedRows);
  2114. }
  2115. }
  2116. return result;
  2117. }
  2118. /// <summary>
  2119. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  2120. ///</summary>
  2121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2123. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  2124. if (((updatedRows == null)
  2125. || (updatedRows.Length < 1))) {
  2126. return updatedRows;
  2127. }
  2128. if (((allAddedRows == null)
  2129. || (allAddedRows.Count < 1))) {
  2130. return updatedRows;
  2131. }
  2132. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  2133. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  2134. global::System.Data.DataRow row = updatedRows[i];
  2135. if ((allAddedRows.Contains(row) == false)) {
  2136. realUpdatedRows.Add(row);
  2137. }
  2138. }
  2139. return realUpdatedRows.ToArray();
  2140. }
  2141. /// <summary>
  2142. ///Update all changes to the dataset.
  2143. ///</summary>
  2144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2146. public virtual int UpdateAll(BD_РожковDataSet dataSet) {
  2147. if ((dataSet == null)) {
  2148. throw new global::System.ArgumentNullException("dataSet");
  2149. }
  2150. if ((dataSet.HasChanges() == false)) {
  2151. return 0;
  2152. }
  2153. if (((this._список_вакансийTableAdapter != null)
  2154. && (this.MatchTableAdapterConnection(this._список_вакансийTableAdapter.Connection) == false))) {
  2155. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  2156. "r, должны использовать одинаковую строку подключения.");
  2157. }
  2158. if (((this._сфера_деятельностиTableAdapter != null)
  2159. && (this.MatchTableAdapterConnection(this._сфера_деятельностиTableAdapter.Connection) == false))) {
  2160. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  2161. "r, должны использовать одинаковую строку подключения.");
  2162. }
  2163. global::System.Data.IDbConnection workConnection = this.Connection;
  2164. if ((workConnection == null)) {
  2165. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  2166. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  2167. }
  2168. bool workConnOpened = false;
  2169. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  2170. == global::System.Data.ConnectionState.Broken)) {
  2171. workConnection.Close();
  2172. }
  2173. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  2174. workConnection.Open();
  2175. workConnOpened = true;
  2176. }
  2177. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  2178. if ((workTransaction == null)) {
  2179. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  2180. "и или текущее состояние не позволяет начать транзакцию.");
  2181. }
  2182. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  2183. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  2184. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  2185. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  2186. int result = 0;
  2187. global::System.Data.DataSet backupDataSet = null;
  2188. if (this.BackupDataSetBeforeUpdate) {
  2189. backupDataSet = new global::System.Data.DataSet();
  2190. backupDataSet.Merge(dataSet);
  2191. }
  2192. try {
  2193. // ---- Prepare for update -----------
  2194. //
  2195. if ((this._список_вакансийTableAdapter != null)) {
  2196. revertConnections.Add(this._список_вакансийTableAdapter, this._список_вакансийTableAdapter.Connection);
  2197. this._список_вакансийTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  2198. this._список_вакансийTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  2199. if (this._список_вакансийTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  2200. this._список_вакансийTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  2201. adaptersWithAcceptChangesDuringUpdate.Add(this._список_вакансийTableAdapter.Adapter);
  2202. }
  2203. }
  2204. if ((this._сфера_деятельностиTableAdapter != null)) {
  2205. revertConnections.Add(this._сфера_деятельностиTableAdapter, this._сфера_деятельностиTableAdapter.Connection);
  2206. this._сфера_деятельностиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  2207. this._сфера_деятельностиTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  2208. if (this._сфера_деятельностиTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  2209. this._сфера_деятельностиTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  2210. adaptersWithAcceptChangesDuringUpdate.Add(this._сфера_деятельностиTableAdapter.Adapter);
  2211. }
  2212. }
  2213. //
  2214. //---- Perform updates -----------
  2215. //
  2216. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  2217. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  2218. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  2219. }
  2220. else {
  2221. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  2222. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  2223. }
  2224. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  2225. //
  2226. //---- Commit updates -----------
  2227. //
  2228. workTransaction.Commit();
  2229. if ((0 < allAddedRows.Count)) {
  2230. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  2231. allAddedRows.CopyTo(rows);
  2232. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  2233. global::System.Data.DataRow row = rows[i];
  2234. row.AcceptChanges();
  2235. }
  2236. }
  2237. if ((0 < allChangedRows.Count)) {
  2238. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  2239. allChangedRows.CopyTo(rows);
  2240. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  2241. global::System.Data.DataRow row = rows[i];
  2242. row.AcceptChanges();
  2243. }
  2244. }
  2245. }
  2246. catch (global::System.Exception ex) {
  2247. workTransaction.Rollback();
  2248. // ---- Restore the dataset -----------
  2249. if (this.BackupDataSetBeforeUpdate) {
  2250. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  2251. dataSet.Clear();
  2252. dataSet.Merge(backupDataSet);
  2253. }
  2254. else {
  2255. if ((0 < allAddedRows.Count)) {
  2256. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  2257. allAddedRows.CopyTo(rows);
  2258. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  2259. global::System.Data.DataRow row = rows[i];
  2260. row.AcceptChanges();
  2261. row.SetAdded();
  2262. }
  2263. }
  2264. }
  2265. throw ex;
  2266. }
  2267. finally {
  2268. if (workConnOpened) {
  2269. workConnection.Close();
  2270. }
  2271. if ((this._список_вакансийTableAdapter != null)) {
  2272. this._список_вакансийTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._список_вакансийTableAdapter]));
  2273. this._список_вакансийTableAdapter.Transaction = null;
  2274. }
  2275. if ((this._сфера_деятельностиTableAdapter != null)) {
  2276. this._сфера_деятельностиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._сфера_деятельностиTableAdapter]));
  2277. this._сфера_деятельностиTableAdapter.Transaction = null;
  2278. }
  2279. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  2280. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  2281. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  2282. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  2283. global::System.Data.Common.DataAdapter adapter = adapters[i];
  2284. adapter.AcceptChangesDuringUpdate = true;
  2285. }
  2286. }
  2287. }
  2288. return result;
  2289. }
  2290. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2291. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2292. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  2293. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  2294. }
  2295. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2296. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2297. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  2298. if ((this._connection != null)) {
  2299. return true;
  2300. }
  2301. if (((this.Connection == null)
  2302. || (inputConnection == null))) {
  2303. return true;
  2304. }
  2305. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  2306. return true;
  2307. }
  2308. return false;
  2309. }
  2310. /// <summary>
  2311. ///Update Order Option
  2312. ///</summary>
  2313. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2314. public enum UpdateOrderOption {
  2315. InsertUpdateDelete = 0,
  2316. UpdateInsertDelete = 1,
  2317. }
  2318. /// <summary>
  2319. ///Used to sort self-referenced table's rows
  2320. ///</summary>
  2321. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2322. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  2323. private global::System.Data.DataRelation _relation;
  2324. private int _childFirst;
  2325. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2326. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2327. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  2328. this._relation = relation;
  2329. if (childFirst) {
  2330. this._childFirst = -1;
  2331. }
  2332. else {
  2333. this._childFirst = 1;
  2334. }
  2335. }
  2336. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2337. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2338. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  2339. global::System.Diagnostics.Debug.Assert((row != null));
  2340. global::System.Data.DataRow root = row;
  2341. distance = 0;
  2342. 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>();
  2343. traversedRows[row] = row;
  2344. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  2345. for (
  2346. ; ((parent != null)
  2347. && (traversedRows.ContainsKey(parent) == false));
  2348. ) {
  2349. distance = (distance + 1);
  2350. root = parent;
  2351. traversedRows[parent] = parent;
  2352. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  2353. }
  2354. if ((distance == 0)) {
  2355. traversedRows.Clear();
  2356. traversedRows[row] = row;
  2357. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  2358. for (
  2359. ; ((parent != null)
  2360. && (traversedRows.ContainsKey(parent) == false));
  2361. ) {
  2362. distance = (distance + 1);
  2363. root = parent;
  2364. traversedRows[parent] = parent;
  2365. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  2366. }
  2367. }
  2368. return root;
  2369. }
  2370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2371. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2372. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  2373. if (object.ReferenceEquals(row1, row2)) {
  2374. return 0;
  2375. }
  2376. if ((row1 == null)) {
  2377. return -1;
  2378. }
  2379. if ((row2 == null)) {
  2380. return 1;
  2381. }
  2382. int distance1 = 0;
  2383. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  2384. int distance2 = 0;
  2385. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  2386. if (object.ReferenceEquals(root1, root2)) {
  2387. return (this._childFirst * distance1.CompareTo(distance2));
  2388. }
  2389. else {
  2390. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  2391. && (root2.Table != null)));
  2392. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  2393. return -1;
  2394. }
  2395. else {
  2396. return 1;
  2397. }
  2398. }
  2399. }
  2400. }
  2401. }
  2402. }
  2403. #pragma warning restore 1591