BD_ZdanovichDataSet.Designer.cs 191 KB

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