DoncovISPDataSet.Designer.cs 227 KB

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