nabievBDDataSet.Designer.cs 190 KB

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