BDNamurzaevDataSet.Designer.cs 174 KB

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