Rp42MartynenkoDataSet.Designer.cs 178 KB

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