specOperDataSet.Designer.cs 124 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace Course_Project {
  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("specOperDataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class specOperDataSet : global::System.Data.DataSet {
  22. private SpecialitiesDataTable tableSpecialities;
  23. private СпециальностиВыводDataTable tableСпециальностиВывод;
  24. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  25. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  26. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  27. public specOperDataSet() {
  28. this.BeginInit();
  29. this.InitClass();
  30. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  31. base.Tables.CollectionChanged += schemaChangedHandler;
  32. base.Relations.CollectionChanged += schemaChangedHandler;
  33. this.EndInit();
  34. }
  35. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  36. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  37. protected specOperDataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  38. base(info, context, false) {
  39. if ((this.IsBinarySerialized(info, context) == true)) {
  40. this.InitVars(false);
  41. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  42. this.Tables.CollectionChanged += schemaChangedHandler1;
  43. this.Relations.CollectionChanged += schemaChangedHandler1;
  44. return;
  45. }
  46. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  47. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  48. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  49. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  50. if ((ds.Tables["Specialities"] != null)) {
  51. base.Tables.Add(new SpecialitiesDataTable(ds.Tables["Specialities"]));
  52. }
  53. if ((ds.Tables["СпециальностиВывод"] != null)) {
  54. base.Tables.Add(new СпециальностиВыводDataTable(ds.Tables["СпециальностиВывод"]));
  55. }
  56. this.DataSetName = ds.DataSetName;
  57. this.Prefix = ds.Prefix;
  58. this.Namespace = ds.Namespace;
  59. this.Locale = ds.Locale;
  60. this.CaseSensitive = ds.CaseSensitive;
  61. this.EnforceConstraints = ds.EnforceConstraints;
  62. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  63. this.InitVars();
  64. }
  65. else {
  66. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  67. }
  68. this.GetSerializationData(info, context);
  69. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  70. base.Tables.CollectionChanged += schemaChangedHandler;
  71. this.Relations.CollectionChanged += schemaChangedHandler;
  72. }
  73. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  74. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  75. [global::System.ComponentModel.Browsable(false)]
  76. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  77. public SpecialitiesDataTable Specialities {
  78. get {
  79. return this.tableSpecialities;
  80. }
  81. }
  82. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  83. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  84. [global::System.ComponentModel.Browsable(false)]
  85. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  86. public СпециальностиВыводDataTable СпециальностиВывод {
  87. get {
  88. return this.tableСпециальностиВывод;
  89. }
  90. }
  91. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  92. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  93. [global::System.ComponentModel.BrowsableAttribute(true)]
  94. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  95. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  96. get {
  97. return this._schemaSerializationMode;
  98. }
  99. set {
  100. this._schemaSerializationMode = value;
  101. }
  102. }
  103. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  104. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  105. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  106. public new global::System.Data.DataTableCollection Tables {
  107. get {
  108. return base.Tables;
  109. }
  110. }
  111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  113. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  114. public new global::System.Data.DataRelationCollection Relations {
  115. get {
  116. return base.Relations;
  117. }
  118. }
  119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  120. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  121. protected override void InitializeDerivedDataSet() {
  122. this.BeginInit();
  123. this.InitClass();
  124. this.EndInit();
  125. }
  126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  128. public override global::System.Data.DataSet Clone() {
  129. specOperDataSet cln = ((specOperDataSet)(base.Clone()));
  130. cln.InitVars();
  131. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  132. return cln;
  133. }
  134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  135. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  136. protected override bool ShouldSerializeTables() {
  137. return false;
  138. }
  139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  141. protected override bool ShouldSerializeRelations() {
  142. return false;
  143. }
  144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  146. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  147. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  148. this.Reset();
  149. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  150. ds.ReadXml(reader);
  151. if ((ds.Tables["Specialities"] != null)) {
  152. base.Tables.Add(new SpecialitiesDataTable(ds.Tables["Specialities"]));
  153. }
  154. if ((ds.Tables["СпециальностиВывод"] != null)) {
  155. base.Tables.Add(new СпециальностиВыводDataTable(ds.Tables["СпециальностиВывод"]));
  156. }
  157. this.DataSetName = ds.DataSetName;
  158. this.Prefix = ds.Prefix;
  159. this.Namespace = ds.Namespace;
  160. this.Locale = ds.Locale;
  161. this.CaseSensitive = ds.CaseSensitive;
  162. this.EnforceConstraints = ds.EnforceConstraints;
  163. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  164. this.InitVars();
  165. }
  166. else {
  167. this.ReadXml(reader);
  168. this.InitVars();
  169. }
  170. }
  171. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  172. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  173. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  174. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  175. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  176. stream.Position = 0;
  177. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  178. }
  179. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  180. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  181. internal void InitVars() {
  182. this.InitVars(true);
  183. }
  184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  186. internal void InitVars(bool initTable) {
  187. this.tableSpecialities = ((SpecialitiesDataTable)(base.Tables["Specialities"]));
  188. if ((initTable == true)) {
  189. if ((this.tableSpecialities != null)) {
  190. this.tableSpecialities.InitVars();
  191. }
  192. }
  193. this.tableСпециальностиВывод = ((СпециальностиВыводDataTable)(base.Tables["СпециальностиВывод"]));
  194. if ((initTable == true)) {
  195. if ((this.tableСпециальностиВывод != null)) {
  196. this.tableСпециальностиВывод.InitVars();
  197. }
  198. }
  199. }
  200. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  201. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  202. private void InitClass() {
  203. this.DataSetName = "specOperDataSet";
  204. this.Prefix = "";
  205. this.Namespace = "http://tempuri.org/specOperDataSet.xsd";
  206. this.EnforceConstraints = true;
  207. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  208. this.tableSpecialities = new SpecialitiesDataTable();
  209. base.Tables.Add(this.tableSpecialities);
  210. this.tableСпециальностиВывод = new СпециальностиВыводDataTable();
  211. base.Tables.Add(this.tableСпециальностиВывод);
  212. }
  213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  214. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  215. private bool ShouldSerializeSpecialities() {
  216. return false;
  217. }
  218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  219. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  220. private bool ShouldSerializeСпециальностиВывод() {
  221. return false;
  222. }
  223. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  224. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  225. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  226. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  227. this.InitVars();
  228. }
  229. }
  230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  232. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  233. specOperDataSet ds = new specOperDataSet();
  234. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  235. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  236. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  237. any.Namespace = ds.Namespace;
  238. sequence.Items.Add(any);
  239. type.Particle = sequence;
  240. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  241. if (xs.Contains(dsSchema.TargetNamespace)) {
  242. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  243. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  244. try {
  245. global::System.Xml.Schema.XmlSchema schema = null;
  246. dsSchema.Write(s1);
  247. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  248. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  249. s2.SetLength(0);
  250. schema.Write(s2);
  251. if ((s1.Length == s2.Length)) {
  252. s1.Position = 0;
  253. s2.Position = 0;
  254. for (; ((s1.Position != s1.Length)
  255. && (s1.ReadByte() == s2.ReadByte())); ) {
  256. ;
  257. }
  258. if ((s1.Position == s1.Length)) {
  259. return type;
  260. }
  261. }
  262. }
  263. }
  264. finally {
  265. if ((s1 != null)) {
  266. s1.Close();
  267. }
  268. if ((s2 != null)) {
  269. s2.Close();
  270. }
  271. }
  272. }
  273. xs.Add(dsSchema);
  274. return type;
  275. }
  276. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  277. public delegate void SpecialitiesRowChangeEventHandler(object sender, SpecialitiesRowChangeEvent e);
  278. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  279. public delegate void СпециальностиВыводRowChangeEventHandler(object sender, СпециальностиВыводRowChangeEvent e);
  280. /// <summary>
  281. ///Represents the strongly named DataTable class.
  282. ///</summary>
  283. [global::System.Serializable()]
  284. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  285. public partial class SpecialitiesDataTable : global::System.Data.TypedTableBase<SpecialitiesRow> {
  286. private global::System.Data.DataColumn columnBranchID;
  287. private global::System.Data.DataColumn columnSpecialtyGovID;
  288. private global::System.Data.DataColumn columnTitle;
  289. private global::System.Data.DataColumn columnStudyingPeriod;
  290. private global::System.Data.DataColumn columnSpecialityID;
  291. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  292. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  293. public SpecialitiesDataTable() {
  294. this.TableName = "Specialities";
  295. this.BeginInit();
  296. this.InitClass();
  297. this.EndInit();
  298. }
  299. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  300. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  301. internal SpecialitiesDataTable(global::System.Data.DataTable table) {
  302. this.TableName = table.TableName;
  303. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  304. this.CaseSensitive = table.CaseSensitive;
  305. }
  306. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  307. this.Locale = table.Locale;
  308. }
  309. if ((table.Namespace != table.DataSet.Namespace)) {
  310. this.Namespace = table.Namespace;
  311. }
  312. this.Prefix = table.Prefix;
  313. this.MinimumCapacity = table.MinimumCapacity;
  314. }
  315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  316. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  317. protected SpecialitiesDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  318. base(info, context) {
  319. this.InitVars();
  320. }
  321. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  322. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  323. public global::System.Data.DataColumn BranchIDColumn {
  324. get {
  325. return this.columnBranchID;
  326. }
  327. }
  328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  329. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  330. public global::System.Data.DataColumn SpecialtyGovIDColumn {
  331. get {
  332. return this.columnSpecialtyGovID;
  333. }
  334. }
  335. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  336. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  337. public global::System.Data.DataColumn TitleColumn {
  338. get {
  339. return this.columnTitle;
  340. }
  341. }
  342. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  343. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  344. public global::System.Data.DataColumn StudyingPeriodColumn {
  345. get {
  346. return this.columnStudyingPeriod;
  347. }
  348. }
  349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  351. public global::System.Data.DataColumn SpecialityIDColumn {
  352. get {
  353. return this.columnSpecialityID;
  354. }
  355. }
  356. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  357. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  358. [global::System.ComponentModel.Browsable(false)]
  359. public int Count {
  360. get {
  361. return this.Rows.Count;
  362. }
  363. }
  364. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  365. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  366. public SpecialitiesRow this[int index] {
  367. get {
  368. return ((SpecialitiesRow)(this.Rows[index]));
  369. }
  370. }
  371. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  372. public event SpecialitiesRowChangeEventHandler SpecialitiesRowChanging;
  373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  374. public event SpecialitiesRowChangeEventHandler SpecialitiesRowChanged;
  375. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  376. public event SpecialitiesRowChangeEventHandler SpecialitiesRowDeleting;
  377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  378. public event SpecialitiesRowChangeEventHandler SpecialitiesRowDeleted;
  379. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  380. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  381. public void AddSpecialitiesRow(SpecialitiesRow row) {
  382. this.Rows.Add(row);
  383. }
  384. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  385. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  386. public SpecialitiesRow AddSpecialitiesRow(int BranchID, string SpecialtyGovID, string Title, string StudyingPeriod) {
  387. SpecialitiesRow rowSpecialitiesRow = ((SpecialitiesRow)(this.NewRow()));
  388. object[] columnValuesArray = new object[] {
  389. BranchID,
  390. SpecialtyGovID,
  391. Title,
  392. StudyingPeriod,
  393. null};
  394. rowSpecialitiesRow.ItemArray = columnValuesArray;
  395. this.Rows.Add(rowSpecialitiesRow);
  396. return rowSpecialitiesRow;
  397. }
  398. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  399. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  400. public SpecialitiesRow FindBySpecialityID(int SpecialityID) {
  401. return ((SpecialitiesRow)(this.Rows.Find(new object[] {
  402. SpecialityID})));
  403. }
  404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  406. public override global::System.Data.DataTable Clone() {
  407. SpecialitiesDataTable cln = ((SpecialitiesDataTable)(base.Clone()));
  408. cln.InitVars();
  409. return cln;
  410. }
  411. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  412. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  413. protected override global::System.Data.DataTable CreateInstance() {
  414. return new SpecialitiesDataTable();
  415. }
  416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  418. internal void InitVars() {
  419. this.columnBranchID = base.Columns["BranchID"];
  420. this.columnSpecialtyGovID = base.Columns["SpecialtyGovID"];
  421. this.columnTitle = base.Columns["Title"];
  422. this.columnStudyingPeriod = base.Columns["StudyingPeriod"];
  423. this.columnSpecialityID = base.Columns["SpecialityID"];
  424. }
  425. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  426. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  427. private void InitClass() {
  428. this.columnBranchID = new global::System.Data.DataColumn("BranchID", typeof(int), null, global::System.Data.MappingType.Element);
  429. base.Columns.Add(this.columnBranchID);
  430. this.columnSpecialtyGovID = new global::System.Data.DataColumn("SpecialtyGovID", typeof(string), null, global::System.Data.MappingType.Element);
  431. base.Columns.Add(this.columnSpecialtyGovID);
  432. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  433. base.Columns.Add(this.columnTitle);
  434. this.columnStudyingPeriod = new global::System.Data.DataColumn("StudyingPeriod", typeof(string), null, global::System.Data.MappingType.Element);
  435. base.Columns.Add(this.columnStudyingPeriod);
  436. this.columnSpecialityID = new global::System.Data.DataColumn("SpecialityID", typeof(int), null, global::System.Data.MappingType.Element);
  437. base.Columns.Add(this.columnSpecialityID);
  438. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  439. this.columnSpecialityID}, true));
  440. this.columnBranchID.AllowDBNull = false;
  441. this.columnSpecialtyGovID.MaxLength = 10;
  442. this.columnTitle.MaxLength = 10;
  443. this.columnStudyingPeriod.MaxLength = 10;
  444. this.columnSpecialityID.AutoIncrement = true;
  445. this.columnSpecialityID.AutoIncrementSeed = -1;
  446. this.columnSpecialityID.AutoIncrementStep = -1;
  447. this.columnSpecialityID.AllowDBNull = false;
  448. this.columnSpecialityID.ReadOnly = true;
  449. this.columnSpecialityID.Unique = true;
  450. }
  451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  452. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  453. public SpecialitiesRow NewSpecialitiesRow() {
  454. return ((SpecialitiesRow)(this.NewRow()));
  455. }
  456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  457. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  458. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  459. return new SpecialitiesRow(builder);
  460. }
  461. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  462. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  463. protected override global::System.Type GetRowType() {
  464. return typeof(SpecialitiesRow);
  465. }
  466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  468. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  469. base.OnRowChanged(e);
  470. if ((this.SpecialitiesRowChanged != null)) {
  471. this.SpecialitiesRowChanged(this, new SpecialitiesRowChangeEvent(((SpecialitiesRow)(e.Row)), e.Action));
  472. }
  473. }
  474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  476. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  477. base.OnRowChanging(e);
  478. if ((this.SpecialitiesRowChanging != null)) {
  479. this.SpecialitiesRowChanging(this, new SpecialitiesRowChangeEvent(((SpecialitiesRow)(e.Row)), e.Action));
  480. }
  481. }
  482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  484. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  485. base.OnRowDeleted(e);
  486. if ((this.SpecialitiesRowDeleted != null)) {
  487. this.SpecialitiesRowDeleted(this, new SpecialitiesRowChangeEvent(((SpecialitiesRow)(e.Row)), e.Action));
  488. }
  489. }
  490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  492. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  493. base.OnRowDeleting(e);
  494. if ((this.SpecialitiesRowDeleting != null)) {
  495. this.SpecialitiesRowDeleting(this, new SpecialitiesRowChangeEvent(((SpecialitiesRow)(e.Row)), e.Action));
  496. }
  497. }
  498. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  499. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  500. public void RemoveSpecialitiesRow(SpecialitiesRow row) {
  501. this.Rows.Remove(row);
  502. }
  503. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  504. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  505. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  506. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  507. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  508. specOperDataSet ds = new specOperDataSet();
  509. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  510. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  511. any1.MinOccurs = new decimal(0);
  512. any1.MaxOccurs = decimal.MaxValue;
  513. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  514. sequence.Items.Add(any1);
  515. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  516. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  517. any2.MinOccurs = new decimal(1);
  518. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  519. sequence.Items.Add(any2);
  520. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  521. attribute1.Name = "namespace";
  522. attribute1.FixedValue = ds.Namespace;
  523. type.Attributes.Add(attribute1);
  524. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  525. attribute2.Name = "tableTypeName";
  526. attribute2.FixedValue = "SpecialitiesDataTable";
  527. type.Attributes.Add(attribute2);
  528. type.Particle = sequence;
  529. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  530. if (xs.Contains(dsSchema.TargetNamespace)) {
  531. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  532. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  533. try {
  534. global::System.Xml.Schema.XmlSchema schema = null;
  535. dsSchema.Write(s1);
  536. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  537. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  538. s2.SetLength(0);
  539. schema.Write(s2);
  540. if ((s1.Length == s2.Length)) {
  541. s1.Position = 0;
  542. s2.Position = 0;
  543. for (; ((s1.Position != s1.Length)
  544. && (s1.ReadByte() == s2.ReadByte())); ) {
  545. ;
  546. }
  547. if ((s1.Position == s1.Length)) {
  548. return type;
  549. }
  550. }
  551. }
  552. }
  553. finally {
  554. if ((s1 != null)) {
  555. s1.Close();
  556. }
  557. if ((s2 != null)) {
  558. s2.Close();
  559. }
  560. }
  561. }
  562. xs.Add(dsSchema);
  563. return type;
  564. }
  565. }
  566. /// <summary>
  567. ///Represents the strongly named DataTable class.
  568. ///</summary>
  569. [global::System.Serializable()]
  570. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  571. public partial class СпециальностиВыводDataTable : global::System.Data.TypedTableBase<СпециальностиВыводRow> {
  572. private global::System.Data.DataColumn columnНазвание_отделения;
  573. private global::System.Data.DataColumn columnНазвание_специальности;
  574. private global::System.Data.DataColumn columnStudyingPeriod;
  575. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  576. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  577. public СпециальностиВыводDataTable() {
  578. this.TableName = "СпециальностиВывод";
  579. this.BeginInit();
  580. this.InitClass();
  581. this.EndInit();
  582. }
  583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  585. internal СпециальностиВыводDataTable(global::System.Data.DataTable table) {
  586. this.TableName = table.TableName;
  587. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  588. this.CaseSensitive = table.CaseSensitive;
  589. }
  590. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  591. this.Locale = table.Locale;
  592. }
  593. if ((table.Namespace != table.DataSet.Namespace)) {
  594. this.Namespace = table.Namespace;
  595. }
  596. this.Prefix = table.Prefix;
  597. this.MinimumCapacity = table.MinimumCapacity;
  598. }
  599. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  600. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  601. protected СпециальностиВыводDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  602. base(info, context) {
  603. this.InitVars();
  604. }
  605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  607. public global::System.Data.DataColumn Название_отделенияColumn {
  608. get {
  609. return this.columnНазвание_отделения;
  610. }
  611. }
  612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  614. public global::System.Data.DataColumn Название_специальностиColumn {
  615. get {
  616. return this.columnНазвание_специальности;
  617. }
  618. }
  619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  621. public global::System.Data.DataColumn StudyingPeriodColumn {
  622. get {
  623. return this.columnStudyingPeriod;
  624. }
  625. }
  626. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  627. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  628. [global::System.ComponentModel.Browsable(false)]
  629. public int Count {
  630. get {
  631. return this.Rows.Count;
  632. }
  633. }
  634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  636. public СпециальностиВыводRow this[int index] {
  637. get {
  638. return ((СпециальностиВыводRow)(this.Rows[index]));
  639. }
  640. }
  641. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  642. public event СпециальностиВыводRowChangeEventHandler СпециальностиВыводRowChanging;
  643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  644. public event СпециальностиВыводRowChangeEventHandler СпециальностиВыводRowChanged;
  645. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  646. public event СпециальностиВыводRowChangeEventHandler СпециальностиВыводRowDeleting;
  647. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  648. public event СпециальностиВыводRowChangeEventHandler СпециальностиВыводRowDeleted;
  649. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  650. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  651. public void AddСпециальностиВыводRow(СпециальностиВыводRow row) {
  652. this.Rows.Add(row);
  653. }
  654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  655. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  656. public СпециальностиВыводRow AddСпециальностиВыводRow(string Название_отделения, string Название_специальности, string StudyingPeriod) {
  657. СпециальностиВыводRow rowСпециальностиВыводRow = ((СпециальностиВыводRow)(this.NewRow()));
  658. object[] columnValuesArray = new object[] {
  659. Название_отделения,
  660. Название_специальности,
  661. StudyingPeriod};
  662. rowСпециальностиВыводRow.ItemArray = columnValuesArray;
  663. this.Rows.Add(rowСпециальностиВыводRow);
  664. return rowСпециальностиВыводRow;
  665. }
  666. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  667. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  668. public override global::System.Data.DataTable Clone() {
  669. СпециальностиВыводDataTable cln = ((СпециальностиВыводDataTable)(base.Clone()));
  670. cln.InitVars();
  671. return cln;
  672. }
  673. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  674. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  675. protected override global::System.Data.DataTable CreateInstance() {
  676. return new СпециальностиВыводDataTable();
  677. }
  678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  680. internal void InitVars() {
  681. this.columnНазвание_отделения = base.Columns["Название отделения"];
  682. this.columnНазвание_специальности = base.Columns["Название специальности"];
  683. this.columnStudyingPeriod = base.Columns["StudyingPeriod"];
  684. }
  685. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  686. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  687. private void InitClass() {
  688. this.columnНазвание_отделения = new global::System.Data.DataColumn("Название отделения", typeof(string), null, global::System.Data.MappingType.Element);
  689. base.Columns.Add(this.columnНазвание_отделения);
  690. this.columnНазвание_специальности = new global::System.Data.DataColumn("Название специальности", typeof(string), null, global::System.Data.MappingType.Element);
  691. base.Columns.Add(this.columnНазвание_специальности);
  692. this.columnStudyingPeriod = new global::System.Data.DataColumn("StudyingPeriod", typeof(string), null, global::System.Data.MappingType.Element);
  693. base.Columns.Add(this.columnStudyingPeriod);
  694. this.columnНазвание_отделения.AllowDBNull = false;
  695. this.columnНазвание_отделения.MaxLength = 100;
  696. this.columnНазвание_специальности.AllowDBNull = false;
  697. this.columnНазвание_специальности.MaxLength = 100;
  698. this.columnStudyingPeriod.AllowDBNull = false;
  699. this.columnStudyingPeriod.MaxLength = 50;
  700. }
  701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  702. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  703. public СпециальностиВыводRow NewСпециальностиВыводRow() {
  704. return ((СпециальностиВыводRow)(this.NewRow()));
  705. }
  706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  708. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  709. return new СпециальностиВыводRow(builder);
  710. }
  711. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  712. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  713. protected override global::System.Type GetRowType() {
  714. return typeof(СпециальностиВыводRow);
  715. }
  716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  717. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  718. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  719. base.OnRowChanged(e);
  720. if ((this.СпециальностиВыводRowChanged != null)) {
  721. this.СпециальностиВыводRowChanged(this, new СпециальностиВыводRowChangeEvent(((СпециальностиВыводRow)(e.Row)), e.Action));
  722. }
  723. }
  724. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  725. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  726. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  727. base.OnRowChanging(e);
  728. if ((this.СпециальностиВыводRowChanging != null)) {
  729. this.СпециальностиВыводRowChanging(this, new СпециальностиВыводRowChangeEvent(((СпециальностиВыводRow)(e.Row)), e.Action));
  730. }
  731. }
  732. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  733. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  734. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  735. base.OnRowDeleted(e);
  736. if ((this.СпециальностиВыводRowDeleted != null)) {
  737. this.СпециальностиВыводRowDeleted(this, new СпециальностиВыводRowChangeEvent(((СпециальностиВыводRow)(e.Row)), e.Action));
  738. }
  739. }
  740. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  741. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  742. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  743. base.OnRowDeleting(e);
  744. if ((this.СпециальностиВыводRowDeleting != null)) {
  745. this.СпециальностиВыводRowDeleting(this, new СпециальностиВыводRowChangeEvent(((СпециальностиВыводRow)(e.Row)), e.Action));
  746. }
  747. }
  748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  750. public void RemoveСпециальностиВыводRow(СпециальностиВыводRow row) {
  751. this.Rows.Remove(row);
  752. }
  753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  755. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  756. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  757. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  758. specOperDataSet ds = new specOperDataSet();
  759. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  760. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  761. any1.MinOccurs = new decimal(0);
  762. any1.MaxOccurs = decimal.MaxValue;
  763. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  764. sequence.Items.Add(any1);
  765. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  766. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  767. any2.MinOccurs = new decimal(1);
  768. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  769. sequence.Items.Add(any2);
  770. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  771. attribute1.Name = "namespace";
  772. attribute1.FixedValue = ds.Namespace;
  773. type.Attributes.Add(attribute1);
  774. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  775. attribute2.Name = "tableTypeName";
  776. attribute2.FixedValue = "СпециальностиВыводDataTable";
  777. type.Attributes.Add(attribute2);
  778. type.Particle = sequence;
  779. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  780. if (xs.Contains(dsSchema.TargetNamespace)) {
  781. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  782. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  783. try {
  784. global::System.Xml.Schema.XmlSchema schema = null;
  785. dsSchema.Write(s1);
  786. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  787. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  788. s2.SetLength(0);
  789. schema.Write(s2);
  790. if ((s1.Length == s2.Length)) {
  791. s1.Position = 0;
  792. s2.Position = 0;
  793. for (; ((s1.Position != s1.Length)
  794. && (s1.ReadByte() == s2.ReadByte())); ) {
  795. ;
  796. }
  797. if ((s1.Position == s1.Length)) {
  798. return type;
  799. }
  800. }
  801. }
  802. }
  803. finally {
  804. if ((s1 != null)) {
  805. s1.Close();
  806. }
  807. if ((s2 != null)) {
  808. s2.Close();
  809. }
  810. }
  811. }
  812. xs.Add(dsSchema);
  813. return type;
  814. }
  815. }
  816. /// <summary>
  817. ///Represents strongly named DataRow class.
  818. ///</summary>
  819. public partial class SpecialitiesRow : global::System.Data.DataRow {
  820. private SpecialitiesDataTable tableSpecialities;
  821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  822. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  823. internal SpecialitiesRow(global::System.Data.DataRowBuilder rb) :
  824. base(rb) {
  825. this.tableSpecialities = ((SpecialitiesDataTable)(this.Table));
  826. }
  827. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  828. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  829. public int BranchID {
  830. get {
  831. return ((int)(this[this.tableSpecialities.BranchIDColumn]));
  832. }
  833. set {
  834. this[this.tableSpecialities.BranchIDColumn] = value;
  835. }
  836. }
  837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  839. public string SpecialtyGovID {
  840. get {
  841. try {
  842. return ((string)(this[this.tableSpecialities.SpecialtyGovIDColumn]));
  843. }
  844. catch (global::System.InvalidCastException e) {
  845. throw new global::System.Data.StrongTypingException("Значение для столбца \'SpecialtyGovID\' в таблице \'Specialities\' равно DBNull.", e);
  846. }
  847. }
  848. set {
  849. this[this.tableSpecialities.SpecialtyGovIDColumn] = value;
  850. }
  851. }
  852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  853. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  854. public string Title {
  855. get {
  856. try {
  857. return ((string)(this[this.tableSpecialities.TitleColumn]));
  858. }
  859. catch (global::System.InvalidCastException e) {
  860. throw new global::System.Data.StrongTypingException("Значение для столбца \'Title\' в таблице \'Specialities\' равно DBNull.", e);
  861. }
  862. }
  863. set {
  864. this[this.tableSpecialities.TitleColumn] = value;
  865. }
  866. }
  867. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  868. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  869. public string StudyingPeriod {
  870. get {
  871. try {
  872. return ((string)(this[this.tableSpecialities.StudyingPeriodColumn]));
  873. }
  874. catch (global::System.InvalidCastException e) {
  875. throw new global::System.Data.StrongTypingException("Значение для столбца \'StudyingPeriod\' в таблице \'Specialities\' равно DBNull.", e);
  876. }
  877. }
  878. set {
  879. this[this.tableSpecialities.StudyingPeriodColumn] = value;
  880. }
  881. }
  882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  883. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  884. public int SpecialityID {
  885. get {
  886. return ((int)(this[this.tableSpecialities.SpecialityIDColumn]));
  887. }
  888. set {
  889. this[this.tableSpecialities.SpecialityIDColumn] = value;
  890. }
  891. }
  892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  894. public bool IsSpecialtyGovIDNull() {
  895. return this.IsNull(this.tableSpecialities.SpecialtyGovIDColumn);
  896. }
  897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  898. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  899. public void SetSpecialtyGovIDNull() {
  900. this[this.tableSpecialities.SpecialtyGovIDColumn] = global::System.Convert.DBNull;
  901. }
  902. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  903. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  904. public bool IsTitleNull() {
  905. return this.IsNull(this.tableSpecialities.TitleColumn);
  906. }
  907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  909. public void SetTitleNull() {
  910. this[this.tableSpecialities.TitleColumn] = global::System.Convert.DBNull;
  911. }
  912. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  913. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  914. public bool IsStudyingPeriodNull() {
  915. return this.IsNull(this.tableSpecialities.StudyingPeriodColumn);
  916. }
  917. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  918. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  919. public void SetStudyingPeriodNull() {
  920. this[this.tableSpecialities.StudyingPeriodColumn] = global::System.Convert.DBNull;
  921. }
  922. }
  923. /// <summary>
  924. ///Represents strongly named DataRow class.
  925. ///</summary>
  926. public partial class СпециальностиВыводRow : global::System.Data.DataRow {
  927. private СпециальностиВыводDataTable tableСпециальностиВывод;
  928. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  929. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  930. internal СпециальностиВыводRow(global::System.Data.DataRowBuilder rb) :
  931. base(rb) {
  932. this.tableСпециальностиВывод = ((СпециальностиВыводDataTable)(this.Table));
  933. }
  934. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  935. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  936. public string Название_отделения {
  937. get {
  938. return ((string)(this[this.tableСпециальностиВывод.Название_отделенияColumn]));
  939. }
  940. set {
  941. this[this.tableСпециальностиВывод.Название_отделенияColumn] = value;
  942. }
  943. }
  944. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  945. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  946. public string Название_специальности {
  947. get {
  948. return ((string)(this[this.tableСпециальностиВывод.Название_специальностиColumn]));
  949. }
  950. set {
  951. this[this.tableСпециальностиВывод.Название_специальностиColumn] = value;
  952. }
  953. }
  954. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  955. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  956. public string StudyingPeriod {
  957. get {
  958. return ((string)(this[this.tableСпециальностиВывод.StudyingPeriodColumn]));
  959. }
  960. set {
  961. this[this.tableСпециальностиВывод.StudyingPeriodColumn] = value;
  962. }
  963. }
  964. }
  965. /// <summary>
  966. ///Row event argument class
  967. ///</summary>
  968. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  969. public class SpecialitiesRowChangeEvent : global::System.EventArgs {
  970. private SpecialitiesRow eventRow;
  971. private global::System.Data.DataRowAction eventAction;
  972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  973. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  974. public SpecialitiesRowChangeEvent(SpecialitiesRow row, global::System.Data.DataRowAction action) {
  975. this.eventRow = row;
  976. this.eventAction = action;
  977. }
  978. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  979. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  980. public SpecialitiesRow Row {
  981. get {
  982. return this.eventRow;
  983. }
  984. }
  985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  986. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  987. public global::System.Data.DataRowAction Action {
  988. get {
  989. return this.eventAction;
  990. }
  991. }
  992. }
  993. /// <summary>
  994. ///Row event argument class
  995. ///</summary>
  996. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  997. public class СпециальностиВыводRowChangeEvent : global::System.EventArgs {
  998. private СпециальностиВыводRow eventRow;
  999. private global::System.Data.DataRowAction eventAction;
  1000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1001. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1002. public СпециальностиВыводRowChangeEvent(СпециальностиВыводRow row, global::System.Data.DataRowAction action) {
  1003. this.eventRow = row;
  1004. this.eventAction = action;
  1005. }
  1006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1008. public СпециальностиВыводRow Row {
  1009. get {
  1010. return this.eventRow;
  1011. }
  1012. }
  1013. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1014. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1015. public global::System.Data.DataRowAction Action {
  1016. get {
  1017. return this.eventAction;
  1018. }
  1019. }
  1020. }
  1021. }
  1022. }
  1023. namespace Course_Project.specOperDataSetTableAdapters {
  1024. /// <summary>
  1025. ///Represents the connection and commands used to retrieve and save data.
  1026. ///</summary>
  1027. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  1028. [global::System.ComponentModel.ToolboxItem(true)]
  1029. [global::System.ComponentModel.DataObjectAttribute(true)]
  1030. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  1031. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  1032. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1033. public partial class SpecialitiesTableAdapter : global::System.ComponentModel.Component {
  1034. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  1035. private global::System.Data.SqlClient.SqlConnection _connection;
  1036. private global::System.Data.SqlClient.SqlTransaction _transaction;
  1037. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  1038. private bool _clearBeforeFill;
  1039. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1041. public SpecialitiesTableAdapter() {
  1042. this.ClearBeforeFill = true;
  1043. }
  1044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1046. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  1047. get {
  1048. if ((this._adapter == null)) {
  1049. this.InitAdapter();
  1050. }
  1051. return this._adapter;
  1052. }
  1053. }
  1054. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1055. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1056. internal global::System.Data.SqlClient.SqlConnection Connection {
  1057. get {
  1058. if ((this._connection == null)) {
  1059. this.InitConnection();
  1060. }
  1061. return this._connection;
  1062. }
  1063. set {
  1064. this._connection = value;
  1065. if ((this.Adapter.InsertCommand != null)) {
  1066. this.Adapter.InsertCommand.Connection = value;
  1067. }
  1068. if ((this.Adapter.DeleteCommand != null)) {
  1069. this.Adapter.DeleteCommand.Connection = value;
  1070. }
  1071. if ((this.Adapter.UpdateCommand != null)) {
  1072. this.Adapter.UpdateCommand.Connection = value;
  1073. }
  1074. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  1075. if ((this.CommandCollection[i] != null)) {
  1076. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  1077. }
  1078. }
  1079. }
  1080. }
  1081. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1082. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1083. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  1084. get {
  1085. return this._transaction;
  1086. }
  1087. set {
  1088. this._transaction = value;
  1089. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  1090. this.CommandCollection[i].Transaction = this._transaction;
  1091. }
  1092. if (((this.Adapter != null)
  1093. && (this.Adapter.DeleteCommand != null))) {
  1094. this.Adapter.DeleteCommand.Transaction = this._transaction;
  1095. }
  1096. if (((this.Adapter != null)
  1097. && (this.Adapter.InsertCommand != null))) {
  1098. this.Adapter.InsertCommand.Transaction = this._transaction;
  1099. }
  1100. if (((this.Adapter != null)
  1101. && (this.Adapter.UpdateCommand != null))) {
  1102. this.Adapter.UpdateCommand.Transaction = this._transaction;
  1103. }
  1104. }
  1105. }
  1106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1108. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  1109. get {
  1110. if ((this._commandCollection == null)) {
  1111. this.InitCommandCollection();
  1112. }
  1113. return this._commandCollection;
  1114. }
  1115. }
  1116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1118. public bool ClearBeforeFill {
  1119. get {
  1120. return this._clearBeforeFill;
  1121. }
  1122. set {
  1123. this._clearBeforeFill = value;
  1124. }
  1125. }
  1126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1128. private void InitAdapter() {
  1129. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  1130. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  1131. tableMapping.SourceTable = "Table";
  1132. tableMapping.DataSetTable = "Specialities";
  1133. tableMapping.ColumnMappings.Add("BranchID", "BranchID");
  1134. tableMapping.ColumnMappings.Add("SpecialtyGovID", "SpecialtyGovID");
  1135. tableMapping.ColumnMappings.Add("Title", "Title");
  1136. tableMapping.ColumnMappings.Add("StudyingPeriod", "StudyingPeriod");
  1137. tableMapping.ColumnMappings.Add("SpecialityID", "SpecialityID");
  1138. this._adapter.TableMappings.Add(tableMapping);
  1139. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  1140. this._adapter.DeleteCommand.Connection = this.Connection;
  1141. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [Specialities] WHERE (([BranchID] = @Original_BranchID) AND ((@IsNull_SpecialtyGovID = 1 AND [SpecialtyGovID] IS NULL) OR ([SpecialtyGovID] = @Original_SpecialtyGovID)) AND ([Title] = @Original_Title) AND ([StudyingPeriod] = @Original_StudyingPeriod) AND ([SpecialityID] = @Original_SpecialityID))";
  1142. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  1143. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_BranchID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BranchID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  1144. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_SpecialtyGovID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SpecialtyGovID", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  1145. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SpecialtyGovID", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SpecialtyGovID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  1146. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  1147. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_StudyingPeriod", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StudyingPeriod", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  1148. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SpecialityID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SpecialityID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  1149. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  1150. this._adapter.InsertCommand.Connection = this.Connection;
  1151. this._adapter.InsertCommand.CommandText = @"INSERT INTO [Specialities] ([BranchID], [SpecialtyGovID], [Title], [StudyingPeriod]) VALUES (@BranchID, @SpecialtyGovID, @Title, @StudyingPeriod);
  1152. SELECT BranchID, SpecialtyGovID, Title, StudyingPeriod, SpecialityID FROM Specialities WHERE (SpecialityID = SCOPE_IDENTITY())";
  1153. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  1154. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BranchID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BranchID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1155. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SpecialtyGovID", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SpecialtyGovID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1156. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1157. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StudyingPeriod", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StudyingPeriod", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1158. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  1159. this._adapter.UpdateCommand.Connection = this.Connection;
  1160. this._adapter.UpdateCommand.CommandText = @"UPDATE [Specialities] SET [BranchID] = @BranchID, [SpecialtyGovID] = @SpecialtyGovID, [Title] = @Title, [StudyingPeriod] = @StudyingPeriod WHERE (([BranchID] = @Original_BranchID) AND ((@IsNull_SpecialtyGovID = 1 AND [SpecialtyGovID] IS NULL) OR ([SpecialtyGovID] = @Original_SpecialtyGovID)) AND ([Title] = @Original_Title) AND ([StudyingPeriod] = @Original_StudyingPeriod) AND ([SpecialityID] = @Original_SpecialityID));
  1161. SELECT BranchID, SpecialtyGovID, Title, StudyingPeriod, SpecialityID FROM Specialities WHERE (SpecialityID = @SpecialityID)";
  1162. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  1163. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BranchID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BranchID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1164. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SpecialtyGovID", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SpecialtyGovID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1165. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1166. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StudyingPeriod", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StudyingPeriod", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1167. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_BranchID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BranchID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  1168. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_SpecialtyGovID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SpecialtyGovID", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  1169. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SpecialtyGovID", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SpecialtyGovID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  1170. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  1171. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_StudyingPeriod", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StudyingPeriod", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  1172. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SpecialityID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SpecialityID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  1173. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SpecialityID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "SpecialityID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1174. }
  1175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1176. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1177. private void InitConnection() {
  1178. this._connection = new global::System.Data.SqlClient.SqlConnection();
  1179. this._connection.ConnectionString = global::Course_Project.Properties.Settings.Default.courseConnectionString;
  1180. }
  1181. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1182. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1183. private void InitCommandCollection() {
  1184. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  1185. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  1186. this._commandCollection[0].Connection = this.Connection;
  1187. this._commandCollection[0].CommandText = "SELECT BranchID, SpecialtyGovID, Title, StudyingPeriod, SpecialityID FROM Special" +
  1188. "ities";
  1189. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  1190. }
  1191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1192. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1193. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1194. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  1195. public virtual int Fill(specOperDataSet.SpecialitiesDataTable dataTable) {
  1196. this.Adapter.SelectCommand = this.CommandCollection[0];
  1197. if ((this.ClearBeforeFill == true)) {
  1198. dataTable.Clear();
  1199. }
  1200. int returnValue = this.Adapter.Fill(dataTable);
  1201. return returnValue;
  1202. }
  1203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1204. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1205. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1206. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  1207. public virtual specOperDataSet.SpecialitiesDataTable GetData() {
  1208. this.Adapter.SelectCommand = this.CommandCollection[0];
  1209. specOperDataSet.SpecialitiesDataTable dataTable = new specOperDataSet.SpecialitiesDataTable();
  1210. this.Adapter.Fill(dataTable);
  1211. return dataTable;
  1212. }
  1213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1214. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1215. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1216. public virtual int Update(specOperDataSet.SpecialitiesDataTable dataTable) {
  1217. return this.Adapter.Update(dataTable);
  1218. }
  1219. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1220. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1221. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1222. public virtual int Update(specOperDataSet dataSet) {
  1223. return this.Adapter.Update(dataSet, "Specialities");
  1224. }
  1225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1227. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1228. public virtual int Update(global::System.Data.DataRow dataRow) {
  1229. return this.Adapter.Update(new global::System.Data.DataRow[] {
  1230. dataRow});
  1231. }
  1232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1233. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1234. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1235. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  1236. return this.Adapter.Update(dataRows);
  1237. }
  1238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1239. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1240. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1241. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  1242. public virtual int Delete(int Original_BranchID, string Original_SpecialtyGovID, string Original_Title, string Original_StudyingPeriod, int Original_SpecialityID) {
  1243. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_BranchID));
  1244. if ((Original_SpecialtyGovID == null)) {
  1245. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  1246. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  1247. }
  1248. else {
  1249. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  1250. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_SpecialtyGovID));
  1251. }
  1252. if ((Original_Title == null)) {
  1253. throw new global::System.ArgumentNullException("Original_Title");
  1254. }
  1255. else {
  1256. this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_Title));
  1257. }
  1258. if ((Original_StudyingPeriod == null)) {
  1259. throw new global::System.ArgumentNullException("Original_StudyingPeriod");
  1260. }
  1261. else {
  1262. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_StudyingPeriod));
  1263. }
  1264. this.Adapter.DeleteCommand.Parameters[5].Value = ((int)(Original_SpecialityID));
  1265. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  1266. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  1267. != global::System.Data.ConnectionState.Open)) {
  1268. this.Adapter.DeleteCommand.Connection.Open();
  1269. }
  1270. try {
  1271. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  1272. return returnValue;
  1273. }
  1274. finally {
  1275. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  1276. this.Adapter.DeleteCommand.Connection.Close();
  1277. }
  1278. }
  1279. }
  1280. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1281. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1282. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1283. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  1284. public virtual int Insert(int BranchID, string SpecialtyGovID, string Title, string StudyingPeriod) {
  1285. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(BranchID));
  1286. if ((SpecialtyGovID == null)) {
  1287. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  1288. }
  1289. else {
  1290. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(SpecialtyGovID));
  1291. }
  1292. if ((Title == null)) {
  1293. throw new global::System.ArgumentNullException("Title");
  1294. }
  1295. else {
  1296. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Title));
  1297. }
  1298. if ((StudyingPeriod == null)) {
  1299. throw new global::System.ArgumentNullException("StudyingPeriod");
  1300. }
  1301. else {
  1302. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(StudyingPeriod));
  1303. }
  1304. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  1305. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  1306. != global::System.Data.ConnectionState.Open)) {
  1307. this.Adapter.InsertCommand.Connection.Open();
  1308. }
  1309. try {
  1310. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  1311. return returnValue;
  1312. }
  1313. finally {
  1314. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  1315. this.Adapter.InsertCommand.Connection.Close();
  1316. }
  1317. }
  1318. }
  1319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1320. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1321. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1322. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  1323. public virtual int Update(int BranchID, string SpecialtyGovID, string Title, string StudyingPeriod, int Original_BranchID, string Original_SpecialtyGovID, string Original_Title, string Original_StudyingPeriod, int Original_SpecialityID, int SpecialityID) {
  1324. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(BranchID));
  1325. if ((SpecialtyGovID == null)) {
  1326. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  1327. }
  1328. else {
  1329. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(SpecialtyGovID));
  1330. }
  1331. if ((Title == null)) {
  1332. throw new global::System.ArgumentNullException("Title");
  1333. }
  1334. else {
  1335. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Title));
  1336. }
  1337. if ((StudyingPeriod == null)) {
  1338. throw new global::System.ArgumentNullException("StudyingPeriod");
  1339. }
  1340. else {
  1341. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(StudyingPeriod));
  1342. }
  1343. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_BranchID));
  1344. if ((Original_SpecialtyGovID == null)) {
  1345. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  1346. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  1347. }
  1348. else {
  1349. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  1350. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_SpecialtyGovID));
  1351. }
  1352. if ((Original_Title == null)) {
  1353. throw new global::System.ArgumentNullException("Original_Title");
  1354. }
  1355. else {
  1356. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Title));
  1357. }
  1358. if ((Original_StudyingPeriod == null)) {
  1359. throw new global::System.ArgumentNullException("Original_StudyingPeriod");
  1360. }
  1361. else {
  1362. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_StudyingPeriod));
  1363. }
  1364. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_SpecialityID));
  1365. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(SpecialityID));
  1366. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  1367. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  1368. != global::System.Data.ConnectionState.Open)) {
  1369. this.Adapter.UpdateCommand.Connection.Open();
  1370. }
  1371. try {
  1372. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  1373. return returnValue;
  1374. }
  1375. finally {
  1376. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  1377. this.Adapter.UpdateCommand.Connection.Close();
  1378. }
  1379. }
  1380. }
  1381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1382. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1383. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1384. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  1385. public virtual int Update(int BranchID, string SpecialtyGovID, string Title, string StudyingPeriod, int Original_BranchID, string Original_SpecialtyGovID, string Original_Title, string Original_StudyingPeriod, int Original_SpecialityID) {
  1386. return this.Update(BranchID, SpecialtyGovID, Title, StudyingPeriod, Original_BranchID, Original_SpecialtyGovID, Original_Title, Original_StudyingPeriod, Original_SpecialityID, Original_SpecialityID);
  1387. }
  1388. }
  1389. /// <summary>
  1390. ///Represents the connection and commands used to retrieve and save data.
  1391. ///</summary>
  1392. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  1393. [global::System.ComponentModel.ToolboxItem(true)]
  1394. [global::System.ComponentModel.DataObjectAttribute(true)]
  1395. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  1396. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  1397. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1398. public partial class СпециальностиВыводTableAdapter : global::System.ComponentModel.Component {
  1399. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  1400. private global::System.Data.SqlClient.SqlConnection _connection;
  1401. private global::System.Data.SqlClient.SqlTransaction _transaction;
  1402. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  1403. private bool _clearBeforeFill;
  1404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1406. public СпециальностиВыводTableAdapter() {
  1407. this.ClearBeforeFill = true;
  1408. }
  1409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1411. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  1412. get {
  1413. if ((this._adapter == null)) {
  1414. this.InitAdapter();
  1415. }
  1416. return this._adapter;
  1417. }
  1418. }
  1419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1421. internal global::System.Data.SqlClient.SqlConnection Connection {
  1422. get {
  1423. if ((this._connection == null)) {
  1424. this.InitConnection();
  1425. }
  1426. return this._connection;
  1427. }
  1428. set {
  1429. this._connection = value;
  1430. if ((this.Adapter.InsertCommand != null)) {
  1431. this.Adapter.InsertCommand.Connection = value;
  1432. }
  1433. if ((this.Adapter.DeleteCommand != null)) {
  1434. this.Adapter.DeleteCommand.Connection = value;
  1435. }
  1436. if ((this.Adapter.UpdateCommand != null)) {
  1437. this.Adapter.UpdateCommand.Connection = value;
  1438. }
  1439. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  1440. if ((this.CommandCollection[i] != null)) {
  1441. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  1442. }
  1443. }
  1444. }
  1445. }
  1446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1447. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1448. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  1449. get {
  1450. return this._transaction;
  1451. }
  1452. set {
  1453. this._transaction = value;
  1454. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  1455. this.CommandCollection[i].Transaction = this._transaction;
  1456. }
  1457. if (((this.Adapter != null)
  1458. && (this.Adapter.DeleteCommand != null))) {
  1459. this.Adapter.DeleteCommand.Transaction = this._transaction;
  1460. }
  1461. if (((this.Adapter != null)
  1462. && (this.Adapter.InsertCommand != null))) {
  1463. this.Adapter.InsertCommand.Transaction = this._transaction;
  1464. }
  1465. if (((this.Adapter != null)
  1466. && (this.Adapter.UpdateCommand != null))) {
  1467. this.Adapter.UpdateCommand.Transaction = this._transaction;
  1468. }
  1469. }
  1470. }
  1471. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1473. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  1474. get {
  1475. if ((this._commandCollection == null)) {
  1476. this.InitCommandCollection();
  1477. }
  1478. return this._commandCollection;
  1479. }
  1480. }
  1481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1483. public bool ClearBeforeFill {
  1484. get {
  1485. return this._clearBeforeFill;
  1486. }
  1487. set {
  1488. this._clearBeforeFill = value;
  1489. }
  1490. }
  1491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1492. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1493. private void InitAdapter() {
  1494. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  1495. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  1496. tableMapping.SourceTable = "Table";
  1497. tableMapping.DataSetTable = "СпециальностиВывод";
  1498. tableMapping.ColumnMappings.Add("Название отделения", "Название отделения");
  1499. tableMapping.ColumnMappings.Add("Название специальности", "Название специальности");
  1500. tableMapping.ColumnMappings.Add("StudyingPeriod", "StudyingPeriod");
  1501. this._adapter.TableMappings.Add(tableMapping);
  1502. }
  1503. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1504. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1505. private void InitConnection() {
  1506. this._connection = new global::System.Data.SqlClient.SqlConnection();
  1507. this._connection.ConnectionString = global::Course_Project.Properties.Settings.Default.courseConnectionString;
  1508. }
  1509. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1510. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1511. private void InitCommandCollection() {
  1512. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  1513. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  1514. this._commandCollection[0].Connection = this.Connection;
  1515. this._commandCollection[0].CommandText = "SELECT [Название отделения], [Название специальности], StudyingPeriod FROM dbo.Сп" +
  1516. "ециальностиВывод";
  1517. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  1518. }
  1519. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1520. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1521. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1522. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  1523. public virtual int Fill(specOperDataSet.СпециальностиВыводDataTable dataTable) {
  1524. this.Adapter.SelectCommand = this.CommandCollection[0];
  1525. if ((this.ClearBeforeFill == true)) {
  1526. dataTable.Clear();
  1527. }
  1528. int returnValue = this.Adapter.Fill(dataTable);
  1529. return returnValue;
  1530. }
  1531. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1532. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1533. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1534. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  1535. public virtual specOperDataSet.СпециальностиВыводDataTable GetData() {
  1536. this.Adapter.SelectCommand = this.CommandCollection[0];
  1537. specOperDataSet.СпециальностиВыводDataTable dataTable = new specOperDataSet.СпециальностиВыводDataTable();
  1538. this.Adapter.Fill(dataTable);
  1539. return dataTable;
  1540. }
  1541. }
  1542. /// <summary>
  1543. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  1544. ///</summary>
  1545. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  1546. [global::System.ComponentModel.ToolboxItem(true)]
  1547. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  1548. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  1549. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  1550. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  1551. private UpdateOrderOption _updateOrder;
  1552. private SpecialitiesTableAdapter _specialitiesTableAdapter;
  1553. private bool _backupDataSetBeforeUpdate;
  1554. private global::System.Data.IDbConnection _connection;
  1555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1556. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1557. public UpdateOrderOption UpdateOrder {
  1558. get {
  1559. return this._updateOrder;
  1560. }
  1561. set {
  1562. this._updateOrder = value;
  1563. }
  1564. }
  1565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1567. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  1568. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  1569. "a", "System.Drawing.Design.UITypeEditor")]
  1570. public SpecialitiesTableAdapter SpecialitiesTableAdapter {
  1571. get {
  1572. return this._specialitiesTableAdapter;
  1573. }
  1574. set {
  1575. this._specialitiesTableAdapter = value;
  1576. }
  1577. }
  1578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1580. public bool BackupDataSetBeforeUpdate {
  1581. get {
  1582. return this._backupDataSetBeforeUpdate;
  1583. }
  1584. set {
  1585. this._backupDataSetBeforeUpdate = value;
  1586. }
  1587. }
  1588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1589. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1590. [global::System.ComponentModel.Browsable(false)]
  1591. public global::System.Data.IDbConnection Connection {
  1592. get {
  1593. if ((this._connection != null)) {
  1594. return this._connection;
  1595. }
  1596. if (((this._specialitiesTableAdapter != null)
  1597. && (this._specialitiesTableAdapter.Connection != null))) {
  1598. return this._specialitiesTableAdapter.Connection;
  1599. }
  1600. return null;
  1601. }
  1602. set {
  1603. this._connection = value;
  1604. }
  1605. }
  1606. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1607. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1608. [global::System.ComponentModel.Browsable(false)]
  1609. public int TableAdapterInstanceCount {
  1610. get {
  1611. int count = 0;
  1612. if ((this._specialitiesTableAdapter != null)) {
  1613. count = (count + 1);
  1614. }
  1615. return count;
  1616. }
  1617. }
  1618. /// <summary>
  1619. ///Update rows in top-down order.
  1620. ///</summary>
  1621. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1622. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1623. private int UpdateUpdatedRows(specOperDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  1624. int result = 0;
  1625. if ((this._specialitiesTableAdapter != null)) {
  1626. global::System.Data.DataRow[] updatedRows = dataSet.Specialities.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  1627. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  1628. if (((updatedRows != null)
  1629. && (0 < updatedRows.Length))) {
  1630. result = (result + this._specialitiesTableAdapter.Update(updatedRows));
  1631. allChangedRows.AddRange(updatedRows);
  1632. }
  1633. }
  1634. return result;
  1635. }
  1636. /// <summary>
  1637. ///Insert rows in top-down order.
  1638. ///</summary>
  1639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1641. private int UpdateInsertedRows(specOperDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  1642. int result = 0;
  1643. if ((this._specialitiesTableAdapter != null)) {
  1644. global::System.Data.DataRow[] addedRows = dataSet.Specialities.Select(null, null, global::System.Data.DataViewRowState.Added);
  1645. if (((addedRows != null)
  1646. && (0 < addedRows.Length))) {
  1647. result = (result + this._specialitiesTableAdapter.Update(addedRows));
  1648. allAddedRows.AddRange(addedRows);
  1649. }
  1650. }
  1651. return result;
  1652. }
  1653. /// <summary>
  1654. ///Delete rows in bottom-up order.
  1655. ///</summary>
  1656. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1657. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1658. private int UpdateDeletedRows(specOperDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  1659. int result = 0;
  1660. if ((this._specialitiesTableAdapter != null)) {
  1661. global::System.Data.DataRow[] deletedRows = dataSet.Specialities.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  1662. if (((deletedRows != null)
  1663. && (0 < deletedRows.Length))) {
  1664. result = (result + this._specialitiesTableAdapter.Update(deletedRows));
  1665. allChangedRows.AddRange(deletedRows);
  1666. }
  1667. }
  1668. return result;
  1669. }
  1670. /// <summary>
  1671. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  1672. ///</summary>
  1673. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1674. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1675. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  1676. if (((updatedRows == null)
  1677. || (updatedRows.Length < 1))) {
  1678. return updatedRows;
  1679. }
  1680. if (((allAddedRows == null)
  1681. || (allAddedRows.Count < 1))) {
  1682. return updatedRows;
  1683. }
  1684. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  1685. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  1686. global::System.Data.DataRow row = updatedRows[i];
  1687. if ((allAddedRows.Contains(row) == false)) {
  1688. realUpdatedRows.Add(row);
  1689. }
  1690. }
  1691. return realUpdatedRows.ToArray();
  1692. }
  1693. /// <summary>
  1694. ///Update all changes to the dataset.
  1695. ///</summary>
  1696. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1697. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1698. public virtual int UpdateAll(specOperDataSet dataSet) {
  1699. if ((dataSet == null)) {
  1700. throw new global::System.ArgumentNullException("dataSet");
  1701. }
  1702. if ((dataSet.HasChanges() == false)) {
  1703. return 0;
  1704. }
  1705. if (((this._specialitiesTableAdapter != null)
  1706. && (this.MatchTableAdapterConnection(this._specialitiesTableAdapter.Connection) == false))) {
  1707. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  1708. "r, должны использовать одинаковую строку подключения.");
  1709. }
  1710. global::System.Data.IDbConnection workConnection = this.Connection;
  1711. if ((workConnection == null)) {
  1712. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  1713. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  1714. }
  1715. bool workConnOpened = false;
  1716. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  1717. == global::System.Data.ConnectionState.Broken)) {
  1718. workConnection.Close();
  1719. }
  1720. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  1721. workConnection.Open();
  1722. workConnOpened = true;
  1723. }
  1724. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  1725. if ((workTransaction == null)) {
  1726. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  1727. "и или текущее состояние не позволяет начать транзакцию.");
  1728. }
  1729. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  1730. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  1731. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  1732. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  1733. int result = 0;
  1734. global::System.Data.DataSet backupDataSet = null;
  1735. if (this.BackupDataSetBeforeUpdate) {
  1736. backupDataSet = new global::System.Data.DataSet();
  1737. backupDataSet.Merge(dataSet);
  1738. }
  1739. try {
  1740. // ---- Prepare for update -----------
  1741. //
  1742. if ((this._specialitiesTableAdapter != null)) {
  1743. revertConnections.Add(this._specialitiesTableAdapter, this._specialitiesTableAdapter.Connection);
  1744. this._specialitiesTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  1745. this._specialitiesTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  1746. if (this._specialitiesTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  1747. this._specialitiesTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  1748. adaptersWithAcceptChangesDuringUpdate.Add(this._specialitiesTableAdapter.Adapter);
  1749. }
  1750. }
  1751. //
  1752. //---- Perform updates -----------
  1753. //
  1754. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  1755. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  1756. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  1757. }
  1758. else {
  1759. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  1760. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  1761. }
  1762. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  1763. //
  1764. //---- Commit updates -----------
  1765. //
  1766. workTransaction.Commit();
  1767. if ((0 < allAddedRows.Count)) {
  1768. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  1769. allAddedRows.CopyTo(rows);
  1770. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  1771. global::System.Data.DataRow row = rows[i];
  1772. row.AcceptChanges();
  1773. }
  1774. }
  1775. if ((0 < allChangedRows.Count)) {
  1776. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  1777. allChangedRows.CopyTo(rows);
  1778. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  1779. global::System.Data.DataRow row = rows[i];
  1780. row.AcceptChanges();
  1781. }
  1782. }
  1783. }
  1784. catch (global::System.Exception ex) {
  1785. workTransaction.Rollback();
  1786. // ---- Restore the dataset -----------
  1787. if (this.BackupDataSetBeforeUpdate) {
  1788. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  1789. dataSet.Clear();
  1790. dataSet.Merge(backupDataSet);
  1791. }
  1792. else {
  1793. if ((0 < allAddedRows.Count)) {
  1794. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  1795. allAddedRows.CopyTo(rows);
  1796. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  1797. global::System.Data.DataRow row = rows[i];
  1798. row.AcceptChanges();
  1799. row.SetAdded();
  1800. }
  1801. }
  1802. }
  1803. throw ex;
  1804. }
  1805. finally {
  1806. if (workConnOpened) {
  1807. workConnection.Close();
  1808. }
  1809. if ((this._specialitiesTableAdapter != null)) {
  1810. this._specialitiesTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._specialitiesTableAdapter]));
  1811. this._specialitiesTableAdapter.Transaction = null;
  1812. }
  1813. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  1814. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  1815. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  1816. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  1817. global::System.Data.Common.DataAdapter adapter = adapters[i];
  1818. adapter.AcceptChangesDuringUpdate = true;
  1819. }
  1820. }
  1821. }
  1822. return result;
  1823. }
  1824. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1825. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1826. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  1827. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  1828. }
  1829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1830. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1831. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  1832. if ((this._connection != null)) {
  1833. return true;
  1834. }
  1835. if (((this.Connection == null)
  1836. || (inputConnection == null))) {
  1837. return true;
  1838. }
  1839. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  1840. return true;
  1841. }
  1842. return false;
  1843. }
  1844. /// <summary>
  1845. ///Update Order Option
  1846. ///</summary>
  1847. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1848. public enum UpdateOrderOption {
  1849. InsertUpdateDelete = 0,
  1850. UpdateInsertDelete = 1,
  1851. }
  1852. /// <summary>
  1853. ///Used to sort self-referenced table's rows
  1854. ///</summary>
  1855. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1856. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  1857. private global::System.Data.DataRelation _relation;
  1858. private int _childFirst;
  1859. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1860. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1861. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  1862. this._relation = relation;
  1863. if (childFirst) {
  1864. this._childFirst = -1;
  1865. }
  1866. else {
  1867. this._childFirst = 1;
  1868. }
  1869. }
  1870. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1871. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1872. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  1873. global::System.Diagnostics.Debug.Assert((row != null));
  1874. global::System.Data.DataRow root = row;
  1875. distance = 0;
  1876. 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>();
  1877. traversedRows[row] = row;
  1878. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  1879. for (
  1880. ; ((parent != null)
  1881. && (traversedRows.ContainsKey(parent) == false));
  1882. ) {
  1883. distance = (distance + 1);
  1884. root = parent;
  1885. traversedRows[parent] = parent;
  1886. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  1887. }
  1888. if ((distance == 0)) {
  1889. traversedRows.Clear();
  1890. traversedRows[row] = row;
  1891. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  1892. for (
  1893. ; ((parent != null)
  1894. && (traversedRows.ContainsKey(parent) == false));
  1895. ) {
  1896. distance = (distance + 1);
  1897. root = parent;
  1898. traversedRows[parent] = parent;
  1899. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  1900. }
  1901. }
  1902. return root;
  1903. }
  1904. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1905. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1906. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  1907. if (object.ReferenceEquals(row1, row2)) {
  1908. return 0;
  1909. }
  1910. if ((row1 == null)) {
  1911. return -1;
  1912. }
  1913. if ((row2 == null)) {
  1914. return 1;
  1915. }
  1916. int distance1 = 0;
  1917. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  1918. int distance2 = 0;
  1919. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  1920. if (object.ReferenceEquals(root1, root2)) {
  1921. return (this._childFirst * distance1.CompareTo(distance2));
  1922. }
  1923. else {
  1924. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  1925. && (root2.Table != null)));
  1926. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  1927. return -1;
  1928. }
  1929. else {
  1930. return 1;
  1931. }
  1932. }
  1933. }
  1934. }
  1935. }
  1936. }
  1937. #pragma warning restore 1591