BD_MatosyanGurgenDataSet.Designer.cs 208 KB

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