_pozdniakova_isp43DataSet.Designer.cs 178 KB

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