BD_Fam_GebelDataSet1.Designer.cs 195 KB

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