KrymkovBDDataSet1.Designer.cs 181 KB

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