DyakonovRP41DataSet.Designer.cs 215 KB

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