BD_Fam_GebelDataSet.Designer.cs 195 KB

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