LeMarathonSkills2016DataSet.Designer.cs 149 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace MarathonSkills2016Le {
  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("LeMarathonSkills2016DataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class LeMarathonSkills2016DataSet : global::System.Data.DataSet {
  22. private _1234DataTable table1234;
  23. private _marathon_skills_2016_timesheet_importDataTable _tablemarathon_skills_2016_timesheet_import;
  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 LeMarathonSkills2016DataSet() {
  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 LeMarathonSkills2016DataSet(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["1234"] != null)) {
  51. base.Tables.Add(new _1234DataTable(ds.Tables["1234"]));
  52. }
  53. if ((ds.Tables["marathon-skills-2016-timesheet-import"] != null)) {
  54. base.Tables.Add(new _marathon_skills_2016_timesheet_importDataTable(ds.Tables["marathon-skills-2016-timesheet-import"]));
  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 _1234DataTable _1234 {
  78. get {
  79. return this.table1234;
  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 _marathon_skills_2016_timesheet_importDataTable _marathon_skills_2016_timesheet_import {
  87. get {
  88. return this._tablemarathon_skills_2016_timesheet_import;
  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. LeMarathonSkills2016DataSet cln = ((LeMarathonSkills2016DataSet)(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["1234"] != null)) {
  152. base.Tables.Add(new _1234DataTable(ds.Tables["1234"]));
  153. }
  154. if ((ds.Tables["marathon-skills-2016-timesheet-import"] != null)) {
  155. base.Tables.Add(new _marathon_skills_2016_timesheet_importDataTable(ds.Tables["marathon-skills-2016-timesheet-import"]));
  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.table1234 = ((_1234DataTable)(base.Tables["1234"]));
  188. if ((initTable == true)) {
  189. if ((this.table1234 != null)) {
  190. this.table1234.InitVars();
  191. }
  192. }
  193. this._tablemarathon_skills_2016_timesheet_import = ((_marathon_skills_2016_timesheet_importDataTable)(base.Tables["marathon-skills-2016-timesheet-import"]));
  194. if ((initTable == true)) {
  195. if ((this._tablemarathon_skills_2016_timesheet_import != null)) {
  196. this._tablemarathon_skills_2016_timesheet_import.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 = "LeMarathonSkills2016DataSet";
  204. this.Prefix = "";
  205. this.Namespace = "http://tempuri.org/LeMarathonSkills2016DataSet.xsd";
  206. this.EnforceConstraints = true;
  207. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  208. this.table1234 = new _1234DataTable();
  209. base.Tables.Add(this.table1234);
  210. this._tablemarathon_skills_2016_timesheet_import = new _marathon_skills_2016_timesheet_importDataTable();
  211. base.Tables.Add(this._tablemarathon_skills_2016_timesheet_import);
  212. }
  213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  214. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  215. private bool ShouldSerialize_1234() {
  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_marathon_skills_2016_timesheet_import() {
  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. LeMarathonSkills2016DataSet ds = new LeMarathonSkills2016DataSet();
  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 _1234RowChangeEventHandler(object sender, _1234RowChangeEvent e);
  278. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  279. public delegate void _marathon_skills_2016_timesheet_importRowChangeEventHandler(object sender, _marathon_skills_2016_timesheet_importRowChangeEvent 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 _1234DataTable : global::System.Data.TypedTableBase<_1234Row> {
  286. private global::System.Data.DataColumn columnStaffID;
  287. private global::System.Data.DataColumn columnName1;
  288. private global::System.Data.DataColumn columnName1_1;
  289. private global::System.Data.DataColumn columnDateofBirth;
  290. private global::System.Data.DataColumn columnGender;
  291. private global::System.Data.DataColumn columnPositionID;
  292. private global::System.Data.DataColumn columnPositionName;
  293. private global::System.Data.DataColumn columnPosition_Description;
  294. private global::System.Data.DataColumn columnPayPeriod;
  295. private global::System.Data.DataColumn columnPayRate;
  296. private global::System.Data.DataColumn columnEmailAddress;
  297. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  298. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  299. public _1234DataTable() {
  300. this.TableName = "1234";
  301. this.BeginInit();
  302. this.InitClass();
  303. this.EndInit();
  304. }
  305. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  306. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  307. internal _1234DataTable(global::System.Data.DataTable table) {
  308. this.TableName = table.TableName;
  309. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  310. this.CaseSensitive = table.CaseSensitive;
  311. }
  312. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  313. this.Locale = table.Locale;
  314. }
  315. if ((table.Namespace != table.DataSet.Namespace)) {
  316. this.Namespace = table.Namespace;
  317. }
  318. this.Prefix = table.Prefix;
  319. this.MinimumCapacity = table.MinimumCapacity;
  320. }
  321. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  322. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  323. protected _1234DataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  324. base(info, context) {
  325. this.InitVars();
  326. }
  327. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  328. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  329. public global::System.Data.DataColumn StaffIDColumn {
  330. get {
  331. return this.columnStaffID;
  332. }
  333. }
  334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  336. public global::System.Data.DataColumn Name1Column {
  337. get {
  338. return this.columnName1;
  339. }
  340. }
  341. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  342. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  343. public global::System.Data.DataColumn Name1_1Column {
  344. get {
  345. return this.columnName1_1;
  346. }
  347. }
  348. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  349. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  350. public global::System.Data.DataColumn DateofBirthColumn {
  351. get {
  352. return this.columnDateofBirth;
  353. }
  354. }
  355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  357. public global::System.Data.DataColumn GenderColumn {
  358. get {
  359. return this.columnGender;
  360. }
  361. }
  362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  363. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  364. public global::System.Data.DataColumn PositionIDColumn {
  365. get {
  366. return this.columnPositionID;
  367. }
  368. }
  369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  371. public global::System.Data.DataColumn PositionNameColumn {
  372. get {
  373. return this.columnPositionName;
  374. }
  375. }
  376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  378. public global::System.Data.DataColumn Position_DescriptionColumn {
  379. get {
  380. return this.columnPosition_Description;
  381. }
  382. }
  383. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  384. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  385. public global::System.Data.DataColumn PayPeriodColumn {
  386. get {
  387. return this.columnPayPeriod;
  388. }
  389. }
  390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  392. public global::System.Data.DataColumn PayRateColumn {
  393. get {
  394. return this.columnPayRate;
  395. }
  396. }
  397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  398. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  399. public global::System.Data.DataColumn EmailAddressColumn {
  400. get {
  401. return this.columnEmailAddress;
  402. }
  403. }
  404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  406. [global::System.ComponentModel.Browsable(false)]
  407. public int Count {
  408. get {
  409. return this.Rows.Count;
  410. }
  411. }
  412. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  413. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  414. public _1234Row this[int index] {
  415. get {
  416. return ((_1234Row)(this.Rows[index]));
  417. }
  418. }
  419. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  420. public event _1234RowChangeEventHandler _1234RowChanging;
  421. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  422. public event _1234RowChangeEventHandler _1234RowChanged;
  423. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  424. public event _1234RowChangeEventHandler _1234RowDeleting;
  425. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  426. public event _1234RowChangeEventHandler _1234RowDeleted;
  427. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  428. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  429. public void Add_1234Row(_1234Row row) {
  430. this.Rows.Add(row);
  431. }
  432. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  433. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  434. public _1234Row Add_1234Row(int StaffID, string Name1, string Name1_1, string DateofBirth, string Gender, string PositionID, string PositionName, string Position_Description, string PayPeriod, string PayRate, string EmailAddress) {
  435. _1234Row row_1234Row = ((_1234Row)(this.NewRow()));
  436. object[] columnValuesArray = new object[] {
  437. StaffID,
  438. Name1,
  439. Name1_1,
  440. DateofBirth,
  441. Gender,
  442. PositionID,
  443. PositionName,
  444. Position_Description,
  445. PayPeriod,
  446. PayRate,
  447. EmailAddress};
  448. row_1234Row.ItemArray = columnValuesArray;
  449. this.Rows.Add(row_1234Row);
  450. return row_1234Row;
  451. }
  452. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  453. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  454. public override global::System.Data.DataTable Clone() {
  455. _1234DataTable cln = ((_1234DataTable)(base.Clone()));
  456. cln.InitVars();
  457. return cln;
  458. }
  459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  460. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  461. protected override global::System.Data.DataTable CreateInstance() {
  462. return new _1234DataTable();
  463. }
  464. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  465. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  466. internal void InitVars() {
  467. this.columnStaffID = base.Columns["StaffID"];
  468. this.columnName1 = base.Columns["Name1"];
  469. this.columnName1_1 = base.Columns["Name1_1"];
  470. this.columnDateofBirth = base.Columns["DateofBirth"];
  471. this.columnGender = base.Columns["Gender"];
  472. this.columnPositionID = base.Columns["PositionID"];
  473. this.columnPositionName = base.Columns["PositionName"];
  474. this.columnPosition_Description = base.Columns["Position_Description"];
  475. this.columnPayPeriod = base.Columns["PayPeriod"];
  476. this.columnPayRate = base.Columns["PayRate"];
  477. this.columnEmailAddress = base.Columns["EmailAddress"];
  478. }
  479. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  480. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  481. private void InitClass() {
  482. this.columnStaffID = new global::System.Data.DataColumn("StaffID", typeof(int), null, global::System.Data.MappingType.Element);
  483. base.Columns.Add(this.columnStaffID);
  484. this.columnName1 = new global::System.Data.DataColumn("Name1", typeof(string), null, global::System.Data.MappingType.Element);
  485. base.Columns.Add(this.columnName1);
  486. this.columnName1_1 = new global::System.Data.DataColumn("Name1_1", typeof(string), null, global::System.Data.MappingType.Element);
  487. base.Columns.Add(this.columnName1_1);
  488. this.columnDateofBirth = new global::System.Data.DataColumn("DateofBirth", typeof(string), null, global::System.Data.MappingType.Element);
  489. base.Columns.Add(this.columnDateofBirth);
  490. this.columnGender = new global::System.Data.DataColumn("Gender", typeof(string), null, global::System.Data.MappingType.Element);
  491. base.Columns.Add(this.columnGender);
  492. this.columnPositionID = new global::System.Data.DataColumn("PositionID", typeof(string), null, global::System.Data.MappingType.Element);
  493. base.Columns.Add(this.columnPositionID);
  494. this.columnPositionName = new global::System.Data.DataColumn("PositionName", typeof(string), null, global::System.Data.MappingType.Element);
  495. base.Columns.Add(this.columnPositionName);
  496. this.columnPosition_Description = new global::System.Data.DataColumn("Position_Description", typeof(string), null, global::System.Data.MappingType.Element);
  497. base.Columns.Add(this.columnPosition_Description);
  498. this.columnPayPeriod = new global::System.Data.DataColumn("PayPeriod", typeof(string), null, global::System.Data.MappingType.Element);
  499. base.Columns.Add(this.columnPayPeriod);
  500. this.columnPayRate = new global::System.Data.DataColumn("PayRate", typeof(string), null, global::System.Data.MappingType.Element);
  501. base.Columns.Add(this.columnPayRate);
  502. this.columnEmailAddress = new global::System.Data.DataColumn("EmailAddress", typeof(string), null, global::System.Data.MappingType.Element);
  503. base.Columns.Add(this.columnEmailAddress);
  504. this.columnName1.MaxLength = 50;
  505. this.columnName1_1.MaxLength = 50;
  506. this.columnDateofBirth.MaxLength = 50;
  507. this.columnGender.MaxLength = 50;
  508. this.columnPositionID.MaxLength = 50;
  509. this.columnPositionName.MaxLength = 50;
  510. this.columnPosition_Description.MaxLength = 50;
  511. this.columnPayPeriod.MaxLength = 50;
  512. this.columnPayRate.MaxLength = 50;
  513. this.columnEmailAddress.MaxLength = 50;
  514. this.ExtendedProperties.Add("Generator_TableVarName", "table1234");
  515. this.ExtendedProperties.Add("Generator_UserTableName", "1234");
  516. }
  517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  518. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  519. public _1234Row New_1234Row() {
  520. return ((_1234Row)(this.NewRow()));
  521. }
  522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  524. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  525. return new _1234Row(builder);
  526. }
  527. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  528. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  529. protected override global::System.Type GetRowType() {
  530. return typeof(_1234Row);
  531. }
  532. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  533. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  534. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  535. base.OnRowChanged(e);
  536. if ((this._1234RowChanged != null)) {
  537. this._1234RowChanged(this, new _1234RowChangeEvent(((_1234Row)(e.Row)), e.Action));
  538. }
  539. }
  540. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  541. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  542. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  543. base.OnRowChanging(e);
  544. if ((this._1234RowChanging != null)) {
  545. this._1234RowChanging(this, new _1234RowChangeEvent(((_1234Row)(e.Row)), e.Action));
  546. }
  547. }
  548. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  549. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  550. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  551. base.OnRowDeleted(e);
  552. if ((this._1234RowDeleted != null)) {
  553. this._1234RowDeleted(this, new _1234RowChangeEvent(((_1234Row)(e.Row)), e.Action));
  554. }
  555. }
  556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  557. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  558. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  559. base.OnRowDeleting(e);
  560. if ((this._1234RowDeleting != null)) {
  561. this._1234RowDeleting(this, new _1234RowChangeEvent(((_1234Row)(e.Row)), e.Action));
  562. }
  563. }
  564. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  565. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  566. public void Remove_1234Row(_1234Row row) {
  567. this.Rows.Remove(row);
  568. }
  569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  570. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  571. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  572. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  573. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  574. LeMarathonSkills2016DataSet ds = new LeMarathonSkills2016DataSet();
  575. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  576. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  577. any1.MinOccurs = new decimal(0);
  578. any1.MaxOccurs = decimal.MaxValue;
  579. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  580. sequence.Items.Add(any1);
  581. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  582. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  583. any2.MinOccurs = new decimal(1);
  584. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  585. sequence.Items.Add(any2);
  586. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  587. attribute1.Name = "namespace";
  588. attribute1.FixedValue = ds.Namespace;
  589. type.Attributes.Add(attribute1);
  590. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  591. attribute2.Name = "tableTypeName";
  592. attribute2.FixedValue = "_1234DataTable";
  593. type.Attributes.Add(attribute2);
  594. type.Particle = sequence;
  595. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  596. if (xs.Contains(dsSchema.TargetNamespace)) {
  597. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  598. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  599. try {
  600. global::System.Xml.Schema.XmlSchema schema = null;
  601. dsSchema.Write(s1);
  602. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  603. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  604. s2.SetLength(0);
  605. schema.Write(s2);
  606. if ((s1.Length == s2.Length)) {
  607. s1.Position = 0;
  608. s2.Position = 0;
  609. for (; ((s1.Position != s1.Length)
  610. && (s1.ReadByte() == s2.ReadByte())); ) {
  611. ;
  612. }
  613. if ((s1.Position == s1.Length)) {
  614. return type;
  615. }
  616. }
  617. }
  618. }
  619. finally {
  620. if ((s1 != null)) {
  621. s1.Close();
  622. }
  623. if ((s2 != null)) {
  624. s2.Close();
  625. }
  626. }
  627. }
  628. xs.Add(dsSchema);
  629. return type;
  630. }
  631. }
  632. /// <summary>
  633. ///Represents the strongly named DataTable class.
  634. ///</summary>
  635. [global::System.Serializable()]
  636. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  637. public partial class _marathon_skills_2016_timesheet_importDataTable : global::System.Data.TypedTableBase<_marathon_skills_2016_timesheet_importRow> {
  638. private global::System.Data.DataColumn columnTimesheetID;
  639. private global::System.Data.DataColumn columnNumStaffID;
  640. private global::System.Data.DataColumn columnNumStartDateTime;
  641. private global::System.Data.DataColumn columnEndDateTime;
  642. private global::System.Data.DataColumn columnPaymentAmount;
  643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  644. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  645. public _marathon_skills_2016_timesheet_importDataTable() {
  646. this.TableName = "marathon-skills-2016-timesheet-import";
  647. this.BeginInit();
  648. this.InitClass();
  649. this.EndInit();
  650. }
  651. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  652. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  653. internal _marathon_skills_2016_timesheet_importDataTable(global::System.Data.DataTable table) {
  654. this.TableName = table.TableName;
  655. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  656. this.CaseSensitive = table.CaseSensitive;
  657. }
  658. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  659. this.Locale = table.Locale;
  660. }
  661. if ((table.Namespace != table.DataSet.Namespace)) {
  662. this.Namespace = table.Namespace;
  663. }
  664. this.Prefix = table.Prefix;
  665. this.MinimumCapacity = table.MinimumCapacity;
  666. }
  667. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  668. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  669. protected _marathon_skills_2016_timesheet_importDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  670. base(info, context) {
  671. this.InitVars();
  672. }
  673. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  674. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  675. public global::System.Data.DataColumn TimesheetIDColumn {
  676. get {
  677. return this.columnTimesheetID;
  678. }
  679. }
  680. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  681. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  682. public global::System.Data.DataColumn NumStaffIDColumn {
  683. get {
  684. return this.columnNumStaffID;
  685. }
  686. }
  687. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  688. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  689. public global::System.Data.DataColumn NumStartDateTimeColumn {
  690. get {
  691. return this.columnNumStartDateTime;
  692. }
  693. }
  694. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  695. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  696. public global::System.Data.DataColumn EndDateTimeColumn {
  697. get {
  698. return this.columnEndDateTime;
  699. }
  700. }
  701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  702. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  703. public global::System.Data.DataColumn PaymentAmountColumn {
  704. get {
  705. return this.columnPaymentAmount;
  706. }
  707. }
  708. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  709. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  710. [global::System.ComponentModel.Browsable(false)]
  711. public int Count {
  712. get {
  713. return this.Rows.Count;
  714. }
  715. }
  716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  717. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  718. public _marathon_skills_2016_timesheet_importRow this[int index] {
  719. get {
  720. return ((_marathon_skills_2016_timesheet_importRow)(this.Rows[index]));
  721. }
  722. }
  723. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  724. public event _marathon_skills_2016_timesheet_importRowChangeEventHandler _marathon_skills_2016_timesheet_importRowChanging;
  725. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  726. public event _marathon_skills_2016_timesheet_importRowChangeEventHandler _marathon_skills_2016_timesheet_importRowChanged;
  727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  728. public event _marathon_skills_2016_timesheet_importRowChangeEventHandler _marathon_skills_2016_timesheet_importRowDeleting;
  729. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  730. public event _marathon_skills_2016_timesheet_importRowChangeEventHandler _marathon_skills_2016_timesheet_importRowDeleted;
  731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  732. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  733. public void Add_marathon_skills_2016_timesheet_importRow(_marathon_skills_2016_timesheet_importRow row) {
  734. this.Rows.Add(row);
  735. }
  736. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  737. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  738. public _marathon_skills_2016_timesheet_importRow Add_marathon_skills_2016_timesheet_importRow(int TimesheetID, int NumStaffID, string NumStartDateTime, string EndDateTime, string PaymentAmount) {
  739. _marathon_skills_2016_timesheet_importRow row_marathon_skills_2016_timesheet_importRow = ((_marathon_skills_2016_timesheet_importRow)(this.NewRow()));
  740. object[] columnValuesArray = new object[] {
  741. TimesheetID,
  742. NumStaffID,
  743. NumStartDateTime,
  744. EndDateTime,
  745. PaymentAmount};
  746. row_marathon_skills_2016_timesheet_importRow.ItemArray = columnValuesArray;
  747. this.Rows.Add(row_marathon_skills_2016_timesheet_importRow);
  748. return row_marathon_skills_2016_timesheet_importRow;
  749. }
  750. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  751. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  752. public override global::System.Data.DataTable Clone() {
  753. _marathon_skills_2016_timesheet_importDataTable cln = ((_marathon_skills_2016_timesheet_importDataTable)(base.Clone()));
  754. cln.InitVars();
  755. return cln;
  756. }
  757. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  758. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  759. protected override global::System.Data.DataTable CreateInstance() {
  760. return new _marathon_skills_2016_timesheet_importDataTable();
  761. }
  762. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  763. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  764. internal void InitVars() {
  765. this.columnTimesheetID = base.Columns["TimesheetID"];
  766. this.columnNumStaffID = base.Columns["NumStaffID"];
  767. this.columnNumStartDateTime = base.Columns["NumStartDateTime"];
  768. this.columnEndDateTime = base.Columns["EndDateTime"];
  769. this.columnPaymentAmount = base.Columns["PaymentAmount"];
  770. }
  771. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  772. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  773. private void InitClass() {
  774. this.columnTimesheetID = new global::System.Data.DataColumn("TimesheetID", typeof(int), null, global::System.Data.MappingType.Element);
  775. base.Columns.Add(this.columnTimesheetID);
  776. this.columnNumStaffID = new global::System.Data.DataColumn("NumStaffID", typeof(int), null, global::System.Data.MappingType.Element);
  777. base.Columns.Add(this.columnNumStaffID);
  778. this.columnNumStartDateTime = new global::System.Data.DataColumn("NumStartDateTime", typeof(string), null, global::System.Data.MappingType.Element);
  779. base.Columns.Add(this.columnNumStartDateTime);
  780. this.columnEndDateTime = new global::System.Data.DataColumn("EndDateTime", typeof(string), null, global::System.Data.MappingType.Element);
  781. base.Columns.Add(this.columnEndDateTime);
  782. this.columnPaymentAmount = new global::System.Data.DataColumn("PaymentAmount", typeof(string), null, global::System.Data.MappingType.Element);
  783. base.Columns.Add(this.columnPaymentAmount);
  784. this.columnNumStartDateTime.MaxLength = 50;
  785. this.columnEndDateTime.MaxLength = 50;
  786. this.columnPaymentAmount.MaxLength = 50;
  787. this.ExtendedProperties.Add("Generator_TableVarName", "_tablemarathon_skills_2016_timesheet_import");
  788. this.ExtendedProperties.Add("Generator_UserTableName", "marathon-skills-2016-timesheet-import");
  789. }
  790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  792. public _marathon_skills_2016_timesheet_importRow New_marathon_skills_2016_timesheet_importRow() {
  793. return ((_marathon_skills_2016_timesheet_importRow)(this.NewRow()));
  794. }
  795. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  796. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  797. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  798. return new _marathon_skills_2016_timesheet_importRow(builder);
  799. }
  800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  802. protected override global::System.Type GetRowType() {
  803. return typeof(_marathon_skills_2016_timesheet_importRow);
  804. }
  805. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  806. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  807. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  808. base.OnRowChanged(e);
  809. if ((this._marathon_skills_2016_timesheet_importRowChanged != null)) {
  810. this._marathon_skills_2016_timesheet_importRowChanged(this, new _marathon_skills_2016_timesheet_importRowChangeEvent(((_marathon_skills_2016_timesheet_importRow)(e.Row)), e.Action));
  811. }
  812. }
  813. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  814. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  815. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  816. base.OnRowChanging(e);
  817. if ((this._marathon_skills_2016_timesheet_importRowChanging != null)) {
  818. this._marathon_skills_2016_timesheet_importRowChanging(this, new _marathon_skills_2016_timesheet_importRowChangeEvent(((_marathon_skills_2016_timesheet_importRow)(e.Row)), e.Action));
  819. }
  820. }
  821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  822. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  823. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  824. base.OnRowDeleted(e);
  825. if ((this._marathon_skills_2016_timesheet_importRowDeleted != null)) {
  826. this._marathon_skills_2016_timesheet_importRowDeleted(this, new _marathon_skills_2016_timesheet_importRowChangeEvent(((_marathon_skills_2016_timesheet_importRow)(e.Row)), e.Action));
  827. }
  828. }
  829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  830. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  831. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  832. base.OnRowDeleting(e);
  833. if ((this._marathon_skills_2016_timesheet_importRowDeleting != null)) {
  834. this._marathon_skills_2016_timesheet_importRowDeleting(this, new _marathon_skills_2016_timesheet_importRowChangeEvent(((_marathon_skills_2016_timesheet_importRow)(e.Row)), e.Action));
  835. }
  836. }
  837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  839. public void Remove_marathon_skills_2016_timesheet_importRow(_marathon_skills_2016_timesheet_importRow row) {
  840. this.Rows.Remove(row);
  841. }
  842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  844. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  845. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  846. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  847. LeMarathonSkills2016DataSet ds = new LeMarathonSkills2016DataSet();
  848. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  849. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  850. any1.MinOccurs = new decimal(0);
  851. any1.MaxOccurs = decimal.MaxValue;
  852. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  853. sequence.Items.Add(any1);
  854. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  855. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  856. any2.MinOccurs = new decimal(1);
  857. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  858. sequence.Items.Add(any2);
  859. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  860. attribute1.Name = "namespace";
  861. attribute1.FixedValue = ds.Namespace;
  862. type.Attributes.Add(attribute1);
  863. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  864. attribute2.Name = "tableTypeName";
  865. attribute2.FixedValue = "_marathon_skills_2016_timesheet_importDataTable";
  866. type.Attributes.Add(attribute2);
  867. type.Particle = sequence;
  868. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  869. if (xs.Contains(dsSchema.TargetNamespace)) {
  870. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  871. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  872. try {
  873. global::System.Xml.Schema.XmlSchema schema = null;
  874. dsSchema.Write(s1);
  875. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  876. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  877. s2.SetLength(0);
  878. schema.Write(s2);
  879. if ((s1.Length == s2.Length)) {
  880. s1.Position = 0;
  881. s2.Position = 0;
  882. for (; ((s1.Position != s1.Length)
  883. && (s1.ReadByte() == s2.ReadByte())); ) {
  884. ;
  885. }
  886. if ((s1.Position == s1.Length)) {
  887. return type;
  888. }
  889. }
  890. }
  891. }
  892. finally {
  893. if ((s1 != null)) {
  894. s1.Close();
  895. }
  896. if ((s2 != null)) {
  897. s2.Close();
  898. }
  899. }
  900. }
  901. xs.Add(dsSchema);
  902. return type;
  903. }
  904. }
  905. /// <summary>
  906. ///Represents strongly named DataRow class.
  907. ///</summary>
  908. public partial class _1234Row : global::System.Data.DataRow {
  909. private _1234DataTable table1234;
  910. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  911. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  912. internal _1234Row(global::System.Data.DataRowBuilder rb) :
  913. base(rb) {
  914. this.table1234 = ((_1234DataTable)(this.Table));
  915. }
  916. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  917. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  918. public int StaffID {
  919. get {
  920. try {
  921. return ((int)(this[this.table1234.StaffIDColumn]));
  922. }
  923. catch (global::System.InvalidCastException e) {
  924. throw new global::System.Data.StrongTypingException("Значение для столбца \'StaffID\' в таблице \'1234\' равно DBNull.", e);
  925. }
  926. }
  927. set {
  928. this[this.table1234.StaffIDColumn] = value;
  929. }
  930. }
  931. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  932. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  933. public string Name1 {
  934. get {
  935. try {
  936. return ((string)(this[this.table1234.Name1Column]));
  937. }
  938. catch (global::System.InvalidCastException e) {
  939. throw new global::System.Data.StrongTypingException("Значение для столбца \'Name1\' в таблице \'1234\' равно DBNull.", e);
  940. }
  941. }
  942. set {
  943. this[this.table1234.Name1Column] = value;
  944. }
  945. }
  946. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  947. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  948. public string Name1_1 {
  949. get {
  950. try {
  951. return ((string)(this[this.table1234.Name1_1Column]));
  952. }
  953. catch (global::System.InvalidCastException e) {
  954. throw new global::System.Data.StrongTypingException("Значение для столбца \'Name1_1\' в таблице \'1234\' равно DBNull.", e);
  955. }
  956. }
  957. set {
  958. this[this.table1234.Name1_1Column] = value;
  959. }
  960. }
  961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  962. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  963. public string DateofBirth {
  964. get {
  965. try {
  966. return ((string)(this[this.table1234.DateofBirthColumn]));
  967. }
  968. catch (global::System.InvalidCastException e) {
  969. throw new global::System.Data.StrongTypingException("Значение для столбца \'DateofBirth\' в таблице \'1234\' равно DBNull.", e);
  970. }
  971. }
  972. set {
  973. this[this.table1234.DateofBirthColumn] = value;
  974. }
  975. }
  976. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  977. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  978. public string Gender {
  979. get {
  980. try {
  981. return ((string)(this[this.table1234.GenderColumn]));
  982. }
  983. catch (global::System.InvalidCastException e) {
  984. throw new global::System.Data.StrongTypingException("Значение для столбца \'Gender\' в таблице \'1234\' равно DBNull.", e);
  985. }
  986. }
  987. set {
  988. this[this.table1234.GenderColumn] = value;
  989. }
  990. }
  991. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  992. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  993. public string PositionID {
  994. get {
  995. try {
  996. return ((string)(this[this.table1234.PositionIDColumn]));
  997. }
  998. catch (global::System.InvalidCastException e) {
  999. throw new global::System.Data.StrongTypingException("Значение для столбца \'PositionID\' в таблице \'1234\' равно DBNull.", e);
  1000. }
  1001. }
  1002. set {
  1003. this[this.table1234.PositionIDColumn] = value;
  1004. }
  1005. }
  1006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1008. public string PositionName {
  1009. get {
  1010. try {
  1011. return ((string)(this[this.table1234.PositionNameColumn]));
  1012. }
  1013. catch (global::System.InvalidCastException e) {
  1014. throw new global::System.Data.StrongTypingException("Значение для столбца \'PositionName\' в таблице \'1234\' равно DBNull.", e);
  1015. }
  1016. }
  1017. set {
  1018. this[this.table1234.PositionNameColumn] = value;
  1019. }
  1020. }
  1021. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1022. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1023. public string Position_Description {
  1024. get {
  1025. try {
  1026. return ((string)(this[this.table1234.Position_DescriptionColumn]));
  1027. }
  1028. catch (global::System.InvalidCastException e) {
  1029. throw new global::System.Data.StrongTypingException("Значение для столбца \'Position_Description\' в таблице \'1234\' равно DBNull.", e);
  1030. }
  1031. }
  1032. set {
  1033. this[this.table1234.Position_DescriptionColumn] = value;
  1034. }
  1035. }
  1036. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1037. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1038. public string PayPeriod {
  1039. get {
  1040. try {
  1041. return ((string)(this[this.table1234.PayPeriodColumn]));
  1042. }
  1043. catch (global::System.InvalidCastException e) {
  1044. throw new global::System.Data.StrongTypingException("Значение для столбца \'PayPeriod\' в таблице \'1234\' равно DBNull.", e);
  1045. }
  1046. }
  1047. set {
  1048. this[this.table1234.PayPeriodColumn] = value;
  1049. }
  1050. }
  1051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1053. public string PayRate {
  1054. get {
  1055. try {
  1056. return ((string)(this[this.table1234.PayRateColumn]));
  1057. }
  1058. catch (global::System.InvalidCastException e) {
  1059. throw new global::System.Data.StrongTypingException("Значение для столбца \'PayRate\' в таблице \'1234\' равно DBNull.", e);
  1060. }
  1061. }
  1062. set {
  1063. this[this.table1234.PayRateColumn] = value;
  1064. }
  1065. }
  1066. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1067. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1068. public string EmailAddress {
  1069. get {
  1070. try {
  1071. return ((string)(this[this.table1234.EmailAddressColumn]));
  1072. }
  1073. catch (global::System.InvalidCastException e) {
  1074. throw new global::System.Data.StrongTypingException("Значение для столбца \'EmailAddress\' в таблице \'1234\' равно DBNull.", e);
  1075. }
  1076. }
  1077. set {
  1078. this[this.table1234.EmailAddressColumn] = value;
  1079. }
  1080. }
  1081. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1082. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1083. public bool IsStaffIDNull() {
  1084. return this.IsNull(this.table1234.StaffIDColumn);
  1085. }
  1086. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1087. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1088. public void SetStaffIDNull() {
  1089. this[this.table1234.StaffIDColumn] = global::System.Convert.DBNull;
  1090. }
  1091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1093. public bool IsName1Null() {
  1094. return this.IsNull(this.table1234.Name1Column);
  1095. }
  1096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1097. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1098. public void SetName1Null() {
  1099. this[this.table1234.Name1Column] = global::System.Convert.DBNull;
  1100. }
  1101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1102. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1103. public bool IsName1_1Null() {
  1104. return this.IsNull(this.table1234.Name1_1Column);
  1105. }
  1106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1108. public void SetName1_1Null() {
  1109. this[this.table1234.Name1_1Column] = global::System.Convert.DBNull;
  1110. }
  1111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1113. public bool IsDateofBirthNull() {
  1114. return this.IsNull(this.table1234.DateofBirthColumn);
  1115. }
  1116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1118. public void SetDateofBirthNull() {
  1119. this[this.table1234.DateofBirthColumn] = global::System.Convert.DBNull;
  1120. }
  1121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1123. public bool IsGenderNull() {
  1124. return this.IsNull(this.table1234.GenderColumn);
  1125. }
  1126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1128. public void SetGenderNull() {
  1129. this[this.table1234.GenderColumn] = global::System.Convert.DBNull;
  1130. }
  1131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1132. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1133. public bool IsPositionIDNull() {
  1134. return this.IsNull(this.table1234.PositionIDColumn);
  1135. }
  1136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1137. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1138. public void SetPositionIDNull() {
  1139. this[this.table1234.PositionIDColumn] = global::System.Convert.DBNull;
  1140. }
  1141. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1142. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1143. public bool IsPositionNameNull() {
  1144. return this.IsNull(this.table1234.PositionNameColumn);
  1145. }
  1146. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1147. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1148. public void SetPositionNameNull() {
  1149. this[this.table1234.PositionNameColumn] = global::System.Convert.DBNull;
  1150. }
  1151. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1152. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1153. public bool IsPosition_DescriptionNull() {
  1154. return this.IsNull(this.table1234.Position_DescriptionColumn);
  1155. }
  1156. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1157. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1158. public void SetPosition_DescriptionNull() {
  1159. this[this.table1234.Position_DescriptionColumn] = global::System.Convert.DBNull;
  1160. }
  1161. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1162. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1163. public bool IsPayPeriodNull() {
  1164. return this.IsNull(this.table1234.PayPeriodColumn);
  1165. }
  1166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1167. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1168. public void SetPayPeriodNull() {
  1169. this[this.table1234.PayPeriodColumn] = global::System.Convert.DBNull;
  1170. }
  1171. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1172. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1173. public bool IsPayRateNull() {
  1174. return this.IsNull(this.table1234.PayRateColumn);
  1175. }
  1176. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1177. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1178. public void SetPayRateNull() {
  1179. this[this.table1234.PayRateColumn] = global::System.Convert.DBNull;
  1180. }
  1181. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1182. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1183. public bool IsEmailAddressNull() {
  1184. return this.IsNull(this.table1234.EmailAddressColumn);
  1185. }
  1186. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1187. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1188. public void SetEmailAddressNull() {
  1189. this[this.table1234.EmailAddressColumn] = global::System.Convert.DBNull;
  1190. }
  1191. }
  1192. /// <summary>
  1193. ///Represents strongly named DataRow class.
  1194. ///</summary>
  1195. public partial class _marathon_skills_2016_timesheet_importRow : global::System.Data.DataRow {
  1196. private _marathon_skills_2016_timesheet_importDataTable _tablemarathon_skills_2016_timesheet_import;
  1197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1198. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1199. internal _marathon_skills_2016_timesheet_importRow(global::System.Data.DataRowBuilder rb) :
  1200. base(rb) {
  1201. this._tablemarathon_skills_2016_timesheet_import = ((_marathon_skills_2016_timesheet_importDataTable)(this.Table));
  1202. }
  1203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1204. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1205. public int TimesheetID {
  1206. get {
  1207. try {
  1208. return ((int)(this[this._tablemarathon_skills_2016_timesheet_import.TimesheetIDColumn]));
  1209. }
  1210. catch (global::System.InvalidCastException e) {
  1211. throw new global::System.Data.StrongTypingException("Значение для столбца \'TimesheetID\' в таблице \'marathon-skills-2016-timesheet-impo" +
  1212. "rt\' равно DBNull.", e);
  1213. }
  1214. }
  1215. set {
  1216. this[this._tablemarathon_skills_2016_timesheet_import.TimesheetIDColumn] = value;
  1217. }
  1218. }
  1219. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1220. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1221. public int NumStaffID {
  1222. get {
  1223. try {
  1224. return ((int)(this[this._tablemarathon_skills_2016_timesheet_import.NumStaffIDColumn]));
  1225. }
  1226. catch (global::System.InvalidCastException e) {
  1227. throw new global::System.Data.StrongTypingException("Значение для столбца \'NumStaffID\' в таблице \'marathon-skills-2016-timesheet-impor" +
  1228. "t\' равно DBNull.", e);
  1229. }
  1230. }
  1231. set {
  1232. this[this._tablemarathon_skills_2016_timesheet_import.NumStaffIDColumn] = value;
  1233. }
  1234. }
  1235. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1236. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1237. public string NumStartDateTime {
  1238. get {
  1239. try {
  1240. return ((string)(this[this._tablemarathon_skills_2016_timesheet_import.NumStartDateTimeColumn]));
  1241. }
  1242. catch (global::System.InvalidCastException e) {
  1243. throw new global::System.Data.StrongTypingException("Значение для столбца \'NumStartDateTime\' в таблице \'marathon-skills-2016-timesheet" +
  1244. "-import\' равно DBNull.", e);
  1245. }
  1246. }
  1247. set {
  1248. this[this._tablemarathon_skills_2016_timesheet_import.NumStartDateTimeColumn] = value;
  1249. }
  1250. }
  1251. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1252. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1253. public string EndDateTime {
  1254. get {
  1255. try {
  1256. return ((string)(this[this._tablemarathon_skills_2016_timesheet_import.EndDateTimeColumn]));
  1257. }
  1258. catch (global::System.InvalidCastException e) {
  1259. throw new global::System.Data.StrongTypingException("Значение для столбца \'EndDateTime\' в таблице \'marathon-skills-2016-timesheet-impo" +
  1260. "rt\' равно DBNull.", e);
  1261. }
  1262. }
  1263. set {
  1264. this[this._tablemarathon_skills_2016_timesheet_import.EndDateTimeColumn] = value;
  1265. }
  1266. }
  1267. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1268. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1269. public string PaymentAmount {
  1270. get {
  1271. try {
  1272. return ((string)(this[this._tablemarathon_skills_2016_timesheet_import.PaymentAmountColumn]));
  1273. }
  1274. catch (global::System.InvalidCastException e) {
  1275. throw new global::System.Data.StrongTypingException("Значение для столбца \'PaymentAmount\' в таблице \'marathon-skills-2016-timesheet-im" +
  1276. "port\' равно DBNull.", e);
  1277. }
  1278. }
  1279. set {
  1280. this[this._tablemarathon_skills_2016_timesheet_import.PaymentAmountColumn] = value;
  1281. }
  1282. }
  1283. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1284. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1285. public bool IsTimesheetIDNull() {
  1286. return this.IsNull(this._tablemarathon_skills_2016_timesheet_import.TimesheetIDColumn);
  1287. }
  1288. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1289. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1290. public void SetTimesheetIDNull() {
  1291. this[this._tablemarathon_skills_2016_timesheet_import.TimesheetIDColumn] = global::System.Convert.DBNull;
  1292. }
  1293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1294. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1295. public bool IsNumStaffIDNull() {
  1296. return this.IsNull(this._tablemarathon_skills_2016_timesheet_import.NumStaffIDColumn);
  1297. }
  1298. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1299. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1300. public void SetNumStaffIDNull() {
  1301. this[this._tablemarathon_skills_2016_timesheet_import.NumStaffIDColumn] = global::System.Convert.DBNull;
  1302. }
  1303. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1304. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1305. public bool IsNumStartDateTimeNull() {
  1306. return this.IsNull(this._tablemarathon_skills_2016_timesheet_import.NumStartDateTimeColumn);
  1307. }
  1308. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1309. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1310. public void SetNumStartDateTimeNull() {
  1311. this[this._tablemarathon_skills_2016_timesheet_import.NumStartDateTimeColumn] = global::System.Convert.DBNull;
  1312. }
  1313. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1314. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1315. public bool IsEndDateTimeNull() {
  1316. return this.IsNull(this._tablemarathon_skills_2016_timesheet_import.EndDateTimeColumn);
  1317. }
  1318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1319. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1320. public void SetEndDateTimeNull() {
  1321. this[this._tablemarathon_skills_2016_timesheet_import.EndDateTimeColumn] = global::System.Convert.DBNull;
  1322. }
  1323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1324. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1325. public bool IsPaymentAmountNull() {
  1326. return this.IsNull(this._tablemarathon_skills_2016_timesheet_import.PaymentAmountColumn);
  1327. }
  1328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1329. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1330. public void SetPaymentAmountNull() {
  1331. this[this._tablemarathon_skills_2016_timesheet_import.PaymentAmountColumn] = global::System.Convert.DBNull;
  1332. }
  1333. }
  1334. /// <summary>
  1335. ///Row event argument class
  1336. ///</summary>
  1337. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1338. public class _1234RowChangeEvent : global::System.EventArgs {
  1339. private _1234Row eventRow;
  1340. private global::System.Data.DataRowAction eventAction;
  1341. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1342. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1343. public _1234RowChangeEvent(_1234Row row, global::System.Data.DataRowAction action) {
  1344. this.eventRow = row;
  1345. this.eventAction = action;
  1346. }
  1347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1349. public _1234Row Row {
  1350. get {
  1351. return this.eventRow;
  1352. }
  1353. }
  1354. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1355. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1356. public global::System.Data.DataRowAction Action {
  1357. get {
  1358. return this.eventAction;
  1359. }
  1360. }
  1361. }
  1362. /// <summary>
  1363. ///Row event argument class
  1364. ///</summary>
  1365. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1366. public class _marathon_skills_2016_timesheet_importRowChangeEvent : global::System.EventArgs {
  1367. private _marathon_skills_2016_timesheet_importRow eventRow;
  1368. private global::System.Data.DataRowAction eventAction;
  1369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1371. public _marathon_skills_2016_timesheet_importRowChangeEvent(_marathon_skills_2016_timesheet_importRow row, global::System.Data.DataRowAction action) {
  1372. this.eventRow = row;
  1373. this.eventAction = action;
  1374. }
  1375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1377. public _marathon_skills_2016_timesheet_importRow Row {
  1378. get {
  1379. return this.eventRow;
  1380. }
  1381. }
  1382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1383. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1384. public global::System.Data.DataRowAction Action {
  1385. get {
  1386. return this.eventAction;
  1387. }
  1388. }
  1389. }
  1390. }
  1391. }
  1392. namespace MarathonSkills2016Le.LeMarathonSkills2016DataSetTableAdapters {
  1393. /// <summary>
  1394. ///Represents the connection and commands used to retrieve and save data.
  1395. ///</summary>
  1396. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  1397. [global::System.ComponentModel.ToolboxItem(true)]
  1398. [global::System.ComponentModel.DataObjectAttribute(true)]
  1399. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  1400. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  1401. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1402. public partial class _1234TableAdapter : global::System.ComponentModel.Component {
  1403. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  1404. private global::System.Data.SqlClient.SqlConnection _connection;
  1405. private global::System.Data.SqlClient.SqlTransaction _transaction;
  1406. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  1407. private bool _clearBeforeFill;
  1408. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1409. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1410. public _1234TableAdapter() {
  1411. this.ClearBeforeFill = true;
  1412. }
  1413. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1414. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1415. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  1416. get {
  1417. if ((this._adapter == null)) {
  1418. this.InitAdapter();
  1419. }
  1420. return this._adapter;
  1421. }
  1422. }
  1423. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1424. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1425. internal global::System.Data.SqlClient.SqlConnection Connection {
  1426. get {
  1427. if ((this._connection == null)) {
  1428. this.InitConnection();
  1429. }
  1430. return this._connection;
  1431. }
  1432. set {
  1433. this._connection = value;
  1434. if ((this.Adapter.InsertCommand != null)) {
  1435. this.Adapter.InsertCommand.Connection = value;
  1436. }
  1437. if ((this.Adapter.DeleteCommand != null)) {
  1438. this.Adapter.DeleteCommand.Connection = value;
  1439. }
  1440. if ((this.Adapter.UpdateCommand != null)) {
  1441. this.Adapter.UpdateCommand.Connection = value;
  1442. }
  1443. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  1444. if ((this.CommandCollection[i] != null)) {
  1445. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  1446. }
  1447. }
  1448. }
  1449. }
  1450. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1451. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1452. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  1453. get {
  1454. return this._transaction;
  1455. }
  1456. set {
  1457. this._transaction = value;
  1458. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  1459. this.CommandCollection[i].Transaction = this._transaction;
  1460. }
  1461. if (((this.Adapter != null)
  1462. && (this.Adapter.DeleteCommand != null))) {
  1463. this.Adapter.DeleteCommand.Transaction = this._transaction;
  1464. }
  1465. if (((this.Adapter != null)
  1466. && (this.Adapter.InsertCommand != null))) {
  1467. this.Adapter.InsertCommand.Transaction = this._transaction;
  1468. }
  1469. if (((this.Adapter != null)
  1470. && (this.Adapter.UpdateCommand != null))) {
  1471. this.Adapter.UpdateCommand.Transaction = this._transaction;
  1472. }
  1473. }
  1474. }
  1475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1477. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  1478. get {
  1479. if ((this._commandCollection == null)) {
  1480. this.InitCommandCollection();
  1481. }
  1482. return this._commandCollection;
  1483. }
  1484. }
  1485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1486. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1487. public bool ClearBeforeFill {
  1488. get {
  1489. return this._clearBeforeFill;
  1490. }
  1491. set {
  1492. this._clearBeforeFill = value;
  1493. }
  1494. }
  1495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1497. private void InitAdapter() {
  1498. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  1499. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  1500. tableMapping.SourceTable = "Table";
  1501. tableMapping.DataSetTable = "1234";
  1502. tableMapping.ColumnMappings.Add("StaffID", "StaffID");
  1503. tableMapping.ColumnMappings.Add("Name1", "Name1");
  1504. tableMapping.ColumnMappings.Add("Name1_1", "Name1_1");
  1505. tableMapping.ColumnMappings.Add("DateofBirth", "DateofBirth");
  1506. tableMapping.ColumnMappings.Add("Gender", "Gender");
  1507. tableMapping.ColumnMappings.Add("PositionID", "PositionID");
  1508. tableMapping.ColumnMappings.Add("PositionName", "PositionName");
  1509. tableMapping.ColumnMappings.Add("Position_Description", "Position_Description");
  1510. tableMapping.ColumnMappings.Add("PayPeriod", "PayPeriod");
  1511. tableMapping.ColumnMappings.Add("PayRate", "PayRate");
  1512. tableMapping.ColumnMappings.Add("EmailAddress", "EmailAddress");
  1513. this._adapter.TableMappings.Add(tableMapping);
  1514. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  1515. this._adapter.InsertCommand.Connection = this.Connection;
  1516. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[1234] ([StaffID], [Name1], [Name1_1], [DateofBirth], [Gender], [PositionID], [PositionName], [Position_Description], [PayPeriod], [PayRate], [EmailAddress]) VALUES (@StaffID, @Name1, @Name1_1, @DateofBirth, @Gender, @PositionID, @PositionName, @Position_Description, @PayPeriod, @PayRate, @EmailAddress)";
  1517. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  1518. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StaffID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StaffID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1519. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name1", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name1", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1520. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name1_1", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name1_1", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1521. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DateofBirth", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DateofBirth", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1522. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Gender", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Gender", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1523. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PositionID", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PositionID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1524. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PositionName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PositionName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1525. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Position_Description", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Position_Description", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1526. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PayPeriod", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PayPeriod", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1527. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PayRate", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PayRate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1528. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EmailAddress", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EmailAddress", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1529. }
  1530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1532. private void InitConnection() {
  1533. this._connection = new global::System.Data.SqlClient.SqlConnection();
  1534. this._connection.ConnectionString = global::MarathonSkills2016Le.Properties.Settings.Default.LeMarathonSkills2016ConnectionString;
  1535. }
  1536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1537. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1538. private void InitCommandCollection() {
  1539. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  1540. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  1541. this._commandCollection[0].Connection = this.Connection;
  1542. this._commandCollection[0].CommandText = "SELECT StaffID, Name1, Name1_1, DateofBirth, Gender, PositionID, PositionName, Po" +
  1543. "sition_Description, PayPeriod, PayRate, EmailAddress FROM dbo.[1234]";
  1544. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  1545. }
  1546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1548. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1549. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  1550. public virtual int Fill(LeMarathonSkills2016DataSet._1234DataTable dataTable) {
  1551. this.Adapter.SelectCommand = this.CommandCollection[0];
  1552. if ((this.ClearBeforeFill == true)) {
  1553. dataTable.Clear();
  1554. }
  1555. int returnValue = this.Adapter.Fill(dataTable);
  1556. return returnValue;
  1557. }
  1558. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1559. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1560. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1561. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  1562. public virtual LeMarathonSkills2016DataSet._1234DataTable GetData() {
  1563. this.Adapter.SelectCommand = this.CommandCollection[0];
  1564. LeMarathonSkills2016DataSet._1234DataTable dataTable = new LeMarathonSkills2016DataSet._1234DataTable();
  1565. this.Adapter.Fill(dataTable);
  1566. return dataTable;
  1567. }
  1568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1570. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1571. public virtual int Update(LeMarathonSkills2016DataSet._1234DataTable dataTable) {
  1572. return this.Adapter.Update(dataTable);
  1573. }
  1574. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1575. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1576. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1577. public virtual int Update(LeMarathonSkills2016DataSet dataSet) {
  1578. return this.Adapter.Update(dataSet, "1234");
  1579. }
  1580. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1581. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1582. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1583. public virtual int Update(global::System.Data.DataRow dataRow) {
  1584. return this.Adapter.Update(new global::System.Data.DataRow[] {
  1585. dataRow});
  1586. }
  1587. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1588. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1589. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1590. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  1591. return this.Adapter.Update(dataRows);
  1592. }
  1593. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1594. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1595. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1596. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  1597. public virtual int Insert(global::System.Nullable<int> StaffID, string Name1, string Name1_1, string DateofBirth, string Gender, string PositionID, string PositionName, string Position_Description, string PayPeriod, string PayRate, string EmailAddress) {
  1598. if ((StaffID.HasValue == true)) {
  1599. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(StaffID.Value));
  1600. }
  1601. else {
  1602. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  1603. }
  1604. if ((Name1 == null)) {
  1605. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  1606. }
  1607. else {
  1608. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Name1));
  1609. }
  1610. if ((Name1_1 == null)) {
  1611. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  1612. }
  1613. else {
  1614. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Name1_1));
  1615. }
  1616. if ((DateofBirth == null)) {
  1617. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  1618. }
  1619. else {
  1620. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(DateofBirth));
  1621. }
  1622. if ((Gender == null)) {
  1623. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  1624. }
  1625. else {
  1626. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Gender));
  1627. }
  1628. if ((PositionID == null)) {
  1629. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  1630. }
  1631. else {
  1632. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(PositionID));
  1633. }
  1634. if ((PositionName == null)) {
  1635. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  1636. }
  1637. else {
  1638. this.Adapter.InsertCommand.Parameters[6].Value = ((string)(PositionName));
  1639. }
  1640. if ((Position_Description == null)) {
  1641. this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
  1642. }
  1643. else {
  1644. this.Adapter.InsertCommand.Parameters[7].Value = ((string)(Position_Description));
  1645. }
  1646. if ((PayPeriod == null)) {
  1647. this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
  1648. }
  1649. else {
  1650. this.Adapter.InsertCommand.Parameters[8].Value = ((string)(PayPeriod));
  1651. }
  1652. if ((PayRate == null)) {
  1653. this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value;
  1654. }
  1655. else {
  1656. this.Adapter.InsertCommand.Parameters[9].Value = ((string)(PayRate));
  1657. }
  1658. if ((EmailAddress == null)) {
  1659. this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value;
  1660. }
  1661. else {
  1662. this.Adapter.InsertCommand.Parameters[10].Value = ((string)(EmailAddress));
  1663. }
  1664. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  1665. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  1666. != global::System.Data.ConnectionState.Open)) {
  1667. this.Adapter.InsertCommand.Connection.Open();
  1668. }
  1669. try {
  1670. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  1671. return returnValue;
  1672. }
  1673. finally {
  1674. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  1675. this.Adapter.InsertCommand.Connection.Close();
  1676. }
  1677. }
  1678. }
  1679. }
  1680. /// <summary>
  1681. ///Represents the connection and commands used to retrieve and save data.
  1682. ///</summary>
  1683. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  1684. [global::System.ComponentModel.ToolboxItem(true)]
  1685. [global::System.ComponentModel.DataObjectAttribute(true)]
  1686. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  1687. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  1688. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1689. public partial class marathon_skills_2016_timesheet_importTableAdapter : global::System.ComponentModel.Component {
  1690. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  1691. private global::System.Data.SqlClient.SqlConnection _connection;
  1692. private global::System.Data.SqlClient.SqlTransaction _transaction;
  1693. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  1694. private bool _clearBeforeFill;
  1695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1696. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1697. public marathon_skills_2016_timesheet_importTableAdapter() {
  1698. this.ClearBeforeFill = true;
  1699. }
  1700. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1701. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1702. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  1703. get {
  1704. if ((this._adapter == null)) {
  1705. this.InitAdapter();
  1706. }
  1707. return this._adapter;
  1708. }
  1709. }
  1710. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1711. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1712. internal global::System.Data.SqlClient.SqlConnection Connection {
  1713. get {
  1714. if ((this._connection == null)) {
  1715. this.InitConnection();
  1716. }
  1717. return this._connection;
  1718. }
  1719. set {
  1720. this._connection = value;
  1721. if ((this.Adapter.InsertCommand != null)) {
  1722. this.Adapter.InsertCommand.Connection = value;
  1723. }
  1724. if ((this.Adapter.DeleteCommand != null)) {
  1725. this.Adapter.DeleteCommand.Connection = value;
  1726. }
  1727. if ((this.Adapter.UpdateCommand != null)) {
  1728. this.Adapter.UpdateCommand.Connection = value;
  1729. }
  1730. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  1731. if ((this.CommandCollection[i] != null)) {
  1732. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  1733. }
  1734. }
  1735. }
  1736. }
  1737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1738. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1739. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  1740. get {
  1741. return this._transaction;
  1742. }
  1743. set {
  1744. this._transaction = value;
  1745. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  1746. this.CommandCollection[i].Transaction = this._transaction;
  1747. }
  1748. if (((this.Adapter != null)
  1749. && (this.Adapter.DeleteCommand != null))) {
  1750. this.Adapter.DeleteCommand.Transaction = this._transaction;
  1751. }
  1752. if (((this.Adapter != null)
  1753. && (this.Adapter.InsertCommand != null))) {
  1754. this.Adapter.InsertCommand.Transaction = this._transaction;
  1755. }
  1756. if (((this.Adapter != null)
  1757. && (this.Adapter.UpdateCommand != null))) {
  1758. this.Adapter.UpdateCommand.Transaction = this._transaction;
  1759. }
  1760. }
  1761. }
  1762. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1763. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1764. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  1765. get {
  1766. if ((this._commandCollection == null)) {
  1767. this.InitCommandCollection();
  1768. }
  1769. return this._commandCollection;
  1770. }
  1771. }
  1772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1773. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1774. public bool ClearBeforeFill {
  1775. get {
  1776. return this._clearBeforeFill;
  1777. }
  1778. set {
  1779. this._clearBeforeFill = value;
  1780. }
  1781. }
  1782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1783. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1784. private void InitAdapter() {
  1785. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  1786. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  1787. tableMapping.SourceTable = "Table";
  1788. tableMapping.DataSetTable = "marathon-skills-2016-timesheet-import";
  1789. tableMapping.ColumnMappings.Add("TimesheetID", "TimesheetID");
  1790. tableMapping.ColumnMappings.Add("NumStaffID", "NumStaffID");
  1791. tableMapping.ColumnMappings.Add("NumStartDateTime", "NumStartDateTime");
  1792. tableMapping.ColumnMappings.Add("EndDateTime", "EndDateTime");
  1793. tableMapping.ColumnMappings.Add("PaymentAmount", "PaymentAmount");
  1794. this._adapter.TableMappings.Add(tableMapping);
  1795. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  1796. this._adapter.InsertCommand.Connection = this.Connection;
  1797. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[marathon-skills-2016-timesheet-import] ([TimesheetID], [NumSta" +
  1798. "ffID], [NumStartDateTime], [EndDateTime], [PaymentAmount]) VALUES (@TimesheetID," +
  1799. " @NumStaffID, @NumStartDateTime, @EndDateTime, @PaymentAmount)";
  1800. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  1801. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TimesheetID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TimesheetID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1802. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumStaffID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumStaffID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1803. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumStartDateTime", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumStartDateTime", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1804. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@EndDateTime", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "EndDateTime", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1805. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PaymentAmount", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PaymentAmount", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1806. }
  1807. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1808. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1809. private void InitConnection() {
  1810. this._connection = new global::System.Data.SqlClient.SqlConnection();
  1811. this._connection.ConnectionString = global::MarathonSkills2016Le.Properties.Settings.Default.LeMarathonSkills2016ConnectionString;
  1812. }
  1813. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1814. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1815. private void InitCommandCollection() {
  1816. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  1817. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  1818. this._commandCollection[0].Connection = this.Connection;
  1819. this._commandCollection[0].CommandText = "SELECT TimesheetID, NumStaffID, NumStartDateTime, EndDateTime, PaymentAmount FROM" +
  1820. " dbo.[marathon-skills-2016-timesheet-import]";
  1821. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  1822. }
  1823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1824. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1825. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1826. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  1827. public virtual int Fill(LeMarathonSkills2016DataSet._marathon_skills_2016_timesheet_importDataTable dataTable) {
  1828. this.Adapter.SelectCommand = this.CommandCollection[0];
  1829. if ((this.ClearBeforeFill == true)) {
  1830. dataTable.Clear();
  1831. }
  1832. int returnValue = this.Adapter.Fill(dataTable);
  1833. return returnValue;
  1834. }
  1835. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1836. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1837. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1838. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  1839. public virtual LeMarathonSkills2016DataSet._marathon_skills_2016_timesheet_importDataTable GetData() {
  1840. this.Adapter.SelectCommand = this.CommandCollection[0];
  1841. LeMarathonSkills2016DataSet._marathon_skills_2016_timesheet_importDataTable dataTable = new LeMarathonSkills2016DataSet._marathon_skills_2016_timesheet_importDataTable();
  1842. this.Adapter.Fill(dataTable);
  1843. return dataTable;
  1844. }
  1845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1846. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1847. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1848. public virtual int Update(LeMarathonSkills2016DataSet._marathon_skills_2016_timesheet_importDataTable dataTable) {
  1849. return this.Adapter.Update(dataTable);
  1850. }
  1851. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1852. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1853. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1854. public virtual int Update(LeMarathonSkills2016DataSet dataSet) {
  1855. return this.Adapter.Update(dataSet, "marathon-skills-2016-timesheet-import");
  1856. }
  1857. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1858. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1859. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1860. public virtual int Update(global::System.Data.DataRow dataRow) {
  1861. return this.Adapter.Update(new global::System.Data.DataRow[] {
  1862. dataRow});
  1863. }
  1864. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1865. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1866. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1867. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  1868. return this.Adapter.Update(dataRows);
  1869. }
  1870. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1871. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1872. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1873. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  1874. public virtual int Insert(global::System.Nullable<int> TimesheetID, global::System.Nullable<int> NumStaffID, string NumStartDateTime, string EndDateTime, string PaymentAmount) {
  1875. if ((TimesheetID.HasValue == true)) {
  1876. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(TimesheetID.Value));
  1877. }
  1878. else {
  1879. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  1880. }
  1881. if ((NumStaffID.HasValue == true)) {
  1882. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(NumStaffID.Value));
  1883. }
  1884. else {
  1885. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  1886. }
  1887. if ((NumStartDateTime == null)) {
  1888. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  1889. }
  1890. else {
  1891. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(NumStartDateTime));
  1892. }
  1893. if ((EndDateTime == null)) {
  1894. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  1895. }
  1896. else {
  1897. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(EndDateTime));
  1898. }
  1899. if ((PaymentAmount == null)) {
  1900. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  1901. }
  1902. else {
  1903. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(PaymentAmount));
  1904. }
  1905. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  1906. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  1907. != global::System.Data.ConnectionState.Open)) {
  1908. this.Adapter.InsertCommand.Connection.Open();
  1909. }
  1910. try {
  1911. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  1912. return returnValue;
  1913. }
  1914. finally {
  1915. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  1916. this.Adapter.InsertCommand.Connection.Close();
  1917. }
  1918. }
  1919. }
  1920. }
  1921. /// <summary>
  1922. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  1923. ///</summary>
  1924. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  1925. [global::System.ComponentModel.ToolboxItem(true)]
  1926. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  1927. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  1928. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  1929. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  1930. private UpdateOrderOption _updateOrder;
  1931. private _1234TableAdapter @__1234TableAdapter;
  1932. private marathon_skills_2016_timesheet_importTableAdapter _marathon_skills_2016_timesheet_importTableAdapter;
  1933. private bool _backupDataSetBeforeUpdate;
  1934. private global::System.Data.IDbConnection _connection;
  1935. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1936. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1937. public UpdateOrderOption UpdateOrder {
  1938. get {
  1939. return this._updateOrder;
  1940. }
  1941. set {
  1942. this._updateOrder = value;
  1943. }
  1944. }
  1945. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1946. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1947. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  1948. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  1949. "a", "System.Drawing.Design.UITypeEditor")]
  1950. public _1234TableAdapter _1234TableAdapter {
  1951. get {
  1952. return this.@__1234TableAdapter;
  1953. }
  1954. set {
  1955. this.@__1234TableAdapter = value;
  1956. }
  1957. }
  1958. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1959. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1960. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  1961. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  1962. "a", "System.Drawing.Design.UITypeEditor")]
  1963. public marathon_skills_2016_timesheet_importTableAdapter marathon_skills_2016_timesheet_importTableAdapter {
  1964. get {
  1965. return this._marathon_skills_2016_timesheet_importTableAdapter;
  1966. }
  1967. set {
  1968. this._marathon_skills_2016_timesheet_importTableAdapter = value;
  1969. }
  1970. }
  1971. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1972. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1973. public bool BackupDataSetBeforeUpdate {
  1974. get {
  1975. return this._backupDataSetBeforeUpdate;
  1976. }
  1977. set {
  1978. this._backupDataSetBeforeUpdate = value;
  1979. }
  1980. }
  1981. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1982. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1983. [global::System.ComponentModel.Browsable(false)]
  1984. public global::System.Data.IDbConnection Connection {
  1985. get {
  1986. if ((this._connection != null)) {
  1987. return this._connection;
  1988. }
  1989. if (((this.@__1234TableAdapter != null)
  1990. && (this.@__1234TableAdapter.Connection != null))) {
  1991. return this.@__1234TableAdapter.Connection;
  1992. }
  1993. if (((this._marathon_skills_2016_timesheet_importTableAdapter != null)
  1994. && (this._marathon_skills_2016_timesheet_importTableAdapter.Connection != null))) {
  1995. return this._marathon_skills_2016_timesheet_importTableAdapter.Connection;
  1996. }
  1997. return null;
  1998. }
  1999. set {
  2000. this._connection = value;
  2001. }
  2002. }
  2003. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2004. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2005. [global::System.ComponentModel.Browsable(false)]
  2006. public int TableAdapterInstanceCount {
  2007. get {
  2008. int count = 0;
  2009. if ((this.@__1234TableAdapter != null)) {
  2010. count = (count + 1);
  2011. }
  2012. if ((this._marathon_skills_2016_timesheet_importTableAdapter != null)) {
  2013. count = (count + 1);
  2014. }
  2015. return count;
  2016. }
  2017. }
  2018. /// <summary>
  2019. ///Update rows in top-down order.
  2020. ///</summary>
  2021. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2022. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2023. private int UpdateUpdatedRows(LeMarathonSkills2016DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  2024. int result = 0;
  2025. if ((this.@__1234TableAdapter != null)) {
  2026. global::System.Data.DataRow[] updatedRows = dataSet._1234.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  2027. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  2028. if (((updatedRows != null)
  2029. && (0 < updatedRows.Length))) {
  2030. result = (result + this.@__1234TableAdapter.Update(updatedRows));
  2031. allChangedRows.AddRange(updatedRows);
  2032. }
  2033. }
  2034. if ((this._marathon_skills_2016_timesheet_importTableAdapter != null)) {
  2035. global::System.Data.DataRow[] updatedRows = dataSet._marathon_skills_2016_timesheet_import.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  2036. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  2037. if (((updatedRows != null)
  2038. && (0 < updatedRows.Length))) {
  2039. result = (result + this._marathon_skills_2016_timesheet_importTableAdapter.Update(updatedRows));
  2040. allChangedRows.AddRange(updatedRows);
  2041. }
  2042. }
  2043. return result;
  2044. }
  2045. /// <summary>
  2046. ///Insert rows in top-down order.
  2047. ///</summary>
  2048. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2049. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2050. private int UpdateInsertedRows(LeMarathonSkills2016DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  2051. int result = 0;
  2052. if ((this.@__1234TableAdapter != null)) {
  2053. global::System.Data.DataRow[] addedRows = dataSet._1234.Select(null, null, global::System.Data.DataViewRowState.Added);
  2054. if (((addedRows != null)
  2055. && (0 < addedRows.Length))) {
  2056. result = (result + this.@__1234TableAdapter.Update(addedRows));
  2057. allAddedRows.AddRange(addedRows);
  2058. }
  2059. }
  2060. if ((this._marathon_skills_2016_timesheet_importTableAdapter != null)) {
  2061. global::System.Data.DataRow[] addedRows = dataSet._marathon_skills_2016_timesheet_import.Select(null, null, global::System.Data.DataViewRowState.Added);
  2062. if (((addedRows != null)
  2063. && (0 < addedRows.Length))) {
  2064. result = (result + this._marathon_skills_2016_timesheet_importTableAdapter.Update(addedRows));
  2065. allAddedRows.AddRange(addedRows);
  2066. }
  2067. }
  2068. return result;
  2069. }
  2070. /// <summary>
  2071. ///Delete rows in bottom-up order.
  2072. ///</summary>
  2073. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2074. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2075. private int UpdateDeletedRows(LeMarathonSkills2016DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  2076. int result = 0;
  2077. if ((this._marathon_skills_2016_timesheet_importTableAdapter != null)) {
  2078. global::System.Data.DataRow[] deletedRows = dataSet._marathon_skills_2016_timesheet_import.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  2079. if (((deletedRows != null)
  2080. && (0 < deletedRows.Length))) {
  2081. result = (result + this._marathon_skills_2016_timesheet_importTableAdapter.Update(deletedRows));
  2082. allChangedRows.AddRange(deletedRows);
  2083. }
  2084. }
  2085. if ((this.@__1234TableAdapter != null)) {
  2086. global::System.Data.DataRow[] deletedRows = dataSet._1234.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  2087. if (((deletedRows != null)
  2088. && (0 < deletedRows.Length))) {
  2089. result = (result + this.@__1234TableAdapter.Update(deletedRows));
  2090. allChangedRows.AddRange(deletedRows);
  2091. }
  2092. }
  2093. return result;
  2094. }
  2095. /// <summary>
  2096. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  2097. ///</summary>
  2098. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2099. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2100. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  2101. if (((updatedRows == null)
  2102. || (updatedRows.Length < 1))) {
  2103. return updatedRows;
  2104. }
  2105. if (((allAddedRows == null)
  2106. || (allAddedRows.Count < 1))) {
  2107. return updatedRows;
  2108. }
  2109. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  2110. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  2111. global::System.Data.DataRow row = updatedRows[i];
  2112. if ((allAddedRows.Contains(row) == false)) {
  2113. realUpdatedRows.Add(row);
  2114. }
  2115. }
  2116. return realUpdatedRows.ToArray();
  2117. }
  2118. /// <summary>
  2119. ///Update all changes to the dataset.
  2120. ///</summary>
  2121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2123. public virtual int UpdateAll(LeMarathonSkills2016DataSet dataSet) {
  2124. if ((dataSet == null)) {
  2125. throw new global::System.ArgumentNullException("dataSet");
  2126. }
  2127. if ((dataSet.HasChanges() == false)) {
  2128. return 0;
  2129. }
  2130. if (((this.@__1234TableAdapter != null)
  2131. && (this.MatchTableAdapterConnection(this.@__1234TableAdapter.Connection) == false))) {
  2132. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  2133. "r, должны использовать одинаковую строку подключения.");
  2134. }
  2135. if (((this._marathon_skills_2016_timesheet_importTableAdapter != null)
  2136. && (this.MatchTableAdapterConnection(this._marathon_skills_2016_timesheet_importTableAdapter.Connection) == false))) {
  2137. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  2138. "r, должны использовать одинаковую строку подключения.");
  2139. }
  2140. global::System.Data.IDbConnection workConnection = this.Connection;
  2141. if ((workConnection == null)) {
  2142. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  2143. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  2144. }
  2145. bool workConnOpened = false;
  2146. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  2147. == global::System.Data.ConnectionState.Broken)) {
  2148. workConnection.Close();
  2149. }
  2150. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  2151. workConnection.Open();
  2152. workConnOpened = true;
  2153. }
  2154. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  2155. if ((workTransaction == null)) {
  2156. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  2157. "и или текущее состояние не позволяет начать транзакцию.");
  2158. }
  2159. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  2160. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  2161. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  2162. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  2163. int result = 0;
  2164. global::System.Data.DataSet backupDataSet = null;
  2165. if (this.BackupDataSetBeforeUpdate) {
  2166. backupDataSet = new global::System.Data.DataSet();
  2167. backupDataSet.Merge(dataSet);
  2168. }
  2169. try {
  2170. // ---- Prepare for update -----------
  2171. //
  2172. if ((this.@__1234TableAdapter != null)) {
  2173. revertConnections.Add(this.@__1234TableAdapter, this.@__1234TableAdapter.Connection);
  2174. this.@__1234TableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  2175. this.@__1234TableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  2176. if (this.@__1234TableAdapter.Adapter.AcceptChangesDuringUpdate) {
  2177. this.@__1234TableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  2178. adaptersWithAcceptChangesDuringUpdate.Add(this.@__1234TableAdapter.Adapter);
  2179. }
  2180. }
  2181. if ((this._marathon_skills_2016_timesheet_importTableAdapter != null)) {
  2182. revertConnections.Add(this._marathon_skills_2016_timesheet_importTableAdapter, this._marathon_skills_2016_timesheet_importTableAdapter.Connection);
  2183. this._marathon_skills_2016_timesheet_importTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  2184. this._marathon_skills_2016_timesheet_importTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  2185. if (this._marathon_skills_2016_timesheet_importTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  2186. this._marathon_skills_2016_timesheet_importTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  2187. adaptersWithAcceptChangesDuringUpdate.Add(this._marathon_skills_2016_timesheet_importTableAdapter.Adapter);
  2188. }
  2189. }
  2190. //
  2191. //---- Perform updates -----------
  2192. //
  2193. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  2194. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  2195. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  2196. }
  2197. else {
  2198. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  2199. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  2200. }
  2201. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  2202. //
  2203. //---- Commit updates -----------
  2204. //
  2205. workTransaction.Commit();
  2206. if ((0 < allAddedRows.Count)) {
  2207. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  2208. allAddedRows.CopyTo(rows);
  2209. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  2210. global::System.Data.DataRow row = rows[i];
  2211. row.AcceptChanges();
  2212. }
  2213. }
  2214. if ((0 < allChangedRows.Count)) {
  2215. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  2216. allChangedRows.CopyTo(rows);
  2217. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  2218. global::System.Data.DataRow row = rows[i];
  2219. row.AcceptChanges();
  2220. }
  2221. }
  2222. }
  2223. catch (global::System.Exception ex) {
  2224. workTransaction.Rollback();
  2225. // ---- Restore the dataset -----------
  2226. if (this.BackupDataSetBeforeUpdate) {
  2227. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  2228. dataSet.Clear();
  2229. dataSet.Merge(backupDataSet);
  2230. }
  2231. else {
  2232. if ((0 < allAddedRows.Count)) {
  2233. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  2234. allAddedRows.CopyTo(rows);
  2235. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  2236. global::System.Data.DataRow row = rows[i];
  2237. row.AcceptChanges();
  2238. row.SetAdded();
  2239. }
  2240. }
  2241. }
  2242. throw ex;
  2243. }
  2244. finally {
  2245. if (workConnOpened) {
  2246. workConnection.Close();
  2247. }
  2248. if ((this.@__1234TableAdapter != null)) {
  2249. this.@__1234TableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this.@__1234TableAdapter]));
  2250. this.@__1234TableAdapter.Transaction = null;
  2251. }
  2252. if ((this._marathon_skills_2016_timesheet_importTableAdapter != null)) {
  2253. this._marathon_skills_2016_timesheet_importTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._marathon_skills_2016_timesheet_importTableAdapter]));
  2254. this._marathon_skills_2016_timesheet_importTableAdapter.Transaction = null;
  2255. }
  2256. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  2257. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  2258. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  2259. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  2260. global::System.Data.Common.DataAdapter adapter = adapters[i];
  2261. adapter.AcceptChangesDuringUpdate = true;
  2262. }
  2263. }
  2264. }
  2265. return result;
  2266. }
  2267. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2268. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2269. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  2270. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  2271. }
  2272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2274. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  2275. if ((this._connection != null)) {
  2276. return true;
  2277. }
  2278. if (((this.Connection == null)
  2279. || (inputConnection == null))) {
  2280. return true;
  2281. }
  2282. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  2283. return true;
  2284. }
  2285. return false;
  2286. }
  2287. /// <summary>
  2288. ///Update Order Option
  2289. ///</summary>
  2290. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2291. public enum UpdateOrderOption {
  2292. InsertUpdateDelete = 0,
  2293. UpdateInsertDelete = 1,
  2294. }
  2295. /// <summary>
  2296. ///Used to sort self-referenced table's rows
  2297. ///</summary>
  2298. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2299. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  2300. private global::System.Data.DataRelation _relation;
  2301. private int _childFirst;
  2302. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2303. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2304. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  2305. this._relation = relation;
  2306. if (childFirst) {
  2307. this._childFirst = -1;
  2308. }
  2309. else {
  2310. this._childFirst = 1;
  2311. }
  2312. }
  2313. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2314. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2315. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  2316. global::System.Diagnostics.Debug.Assert((row != null));
  2317. global::System.Data.DataRow root = row;
  2318. distance = 0;
  2319. 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>();
  2320. traversedRows[row] = row;
  2321. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  2322. for (
  2323. ; ((parent != null)
  2324. && (traversedRows.ContainsKey(parent) == false));
  2325. ) {
  2326. distance = (distance + 1);
  2327. root = parent;
  2328. traversedRows[parent] = parent;
  2329. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  2330. }
  2331. if ((distance == 0)) {
  2332. traversedRows.Clear();
  2333. traversedRows[row] = row;
  2334. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  2335. for (
  2336. ; ((parent != null)
  2337. && (traversedRows.ContainsKey(parent) == false));
  2338. ) {
  2339. distance = (distance + 1);
  2340. root = parent;
  2341. traversedRows[parent] = parent;
  2342. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  2343. }
  2344. }
  2345. return root;
  2346. }
  2347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2349. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  2350. if (object.ReferenceEquals(row1, row2)) {
  2351. return 0;
  2352. }
  2353. if ((row1 == null)) {
  2354. return -1;
  2355. }
  2356. if ((row2 == null)) {
  2357. return 1;
  2358. }
  2359. int distance1 = 0;
  2360. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  2361. int distance2 = 0;
  2362. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  2363. if (object.ReferenceEquals(root1, root2)) {
  2364. return (this._childFirst * distance1.CompareTo(distance2));
  2365. }
  2366. else {
  2367. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  2368. && (root2.Table != null)));
  2369. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  2370. return -1;
  2371. }
  2372. else {
  2373. return 1;
  2374. }
  2375. }
  2376. }
  2377. }
  2378. }
  2379. }
  2380. #pragma warning restore 1591