Rp42MartynenkoDataSet1.Designer.cs 177 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925
  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("Rp42MartynenkoDataSet1")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class Rp42MartynenkoDataSet1 : 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 Rp42MartynenkoDataSet1() {
  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 Rp42MartynenkoDataSet1(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. Rp42MartynenkoDataSet1 cln = ((Rp42MartynenkoDataSet1)(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 = "Rp42MartynenkoDataSet1";
  226. this.Prefix = "";
  227. this.Namespace = "http://tempuri.org/Rp42MartynenkoDataSet1.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. Rp42MartynenkoDataSet1 ds = new Rp42MartynenkoDataSet1();
  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. Rp42MartynenkoDataSet1 ds = new Rp42MartynenkoDataSet1();
  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. Rp42MartynenkoDataSet1 ds = new Rp42MartynenkoDataSet1();
  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. Rp42MartynenkoDataSet1 ds = new Rp42MartynenkoDataSet1();
  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.Rp42MartynenkoDataSet1TableAdapters {
  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[1];
  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. }
  1439. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1440. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1441. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1442. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  1443. public virtual int Fill(Rp42MartynenkoDataSet1.manufacturer_b_importDataTable dataTable) {
  1444. this.Adapter.SelectCommand = this.CommandCollection[0];
  1445. if ((this.ClearBeforeFill == true)) {
  1446. dataTable.Clear();
  1447. }
  1448. int returnValue = this.Adapter.Fill(dataTable);
  1449. return returnValue;
  1450. }
  1451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1452. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1453. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1454. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  1455. public virtual Rp42MartynenkoDataSet1.manufacturer_b_importDataTable GetData() {
  1456. this.Adapter.SelectCommand = this.CommandCollection[0];
  1457. Rp42MartynenkoDataSet1.manufacturer_b_importDataTable dataTable = new Rp42MartynenkoDataSet1.manufacturer_b_importDataTable();
  1458. this.Adapter.Fill(dataTable);
  1459. return dataTable;
  1460. }
  1461. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1462. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1463. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1464. public virtual int Update(Rp42MartynenkoDataSet1.manufacturer_b_importDataTable dataTable) {
  1465. return this.Adapter.Update(dataTable);
  1466. }
  1467. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1468. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1469. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1470. public virtual int Update(Rp42MartynenkoDataSet1 dataSet) {
  1471. return this.Adapter.Update(dataSet, "manufacturer_b_import");
  1472. }
  1473. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1474. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1475. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1476. public virtual int Update(global::System.Data.DataRow dataRow) {
  1477. return this.Adapter.Update(new global::System.Data.DataRow[] {
  1478. dataRow});
  1479. }
  1480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1482. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1483. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  1484. return this.Adapter.Update(dataRows);
  1485. }
  1486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1488. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1489. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  1490. public virtual int Insert(string Название_производителя, System.DateTime Дата_начала_работы) {
  1491. if ((Название_производителя == null)) {
  1492. throw new global::System.ArgumentNullException("Название_производителя");
  1493. }
  1494. else {
  1495. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Название_производителя));
  1496. }
  1497. this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(Дата_начала_работы));
  1498. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  1499. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  1500. != global::System.Data.ConnectionState.Open)) {
  1501. this.Adapter.InsertCommand.Connection.Open();
  1502. }
  1503. try {
  1504. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  1505. return returnValue;
  1506. }
  1507. finally {
  1508. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  1509. this.Adapter.InsertCommand.Connection.Close();
  1510. }
  1511. }
  1512. }
  1513. }
  1514. /// <summary>
  1515. ///Represents the connection and commands used to retrieve and save data.
  1516. ///</summary>
  1517. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  1518. [global::System.ComponentModel.ToolboxItem(true)]
  1519. [global::System.ComponentModel.DataObjectAttribute(true)]
  1520. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  1521. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  1522. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1523. public partial class product_b_importTableAdapter : global::System.ComponentModel.Component {
  1524. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  1525. private global::System.Data.SqlClient.SqlConnection _connection;
  1526. private global::System.Data.SqlClient.SqlTransaction _transaction;
  1527. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  1528. private bool _clearBeforeFill;
  1529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1530. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1531. public product_b_importTableAdapter() {
  1532. this.ClearBeforeFill = true;
  1533. }
  1534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1535. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1536. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  1537. get {
  1538. if ((this._adapter == null)) {
  1539. this.InitAdapter();
  1540. }
  1541. return this._adapter;
  1542. }
  1543. }
  1544. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1545. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1546. internal global::System.Data.SqlClient.SqlConnection Connection {
  1547. get {
  1548. if ((this._connection == null)) {
  1549. this.InitConnection();
  1550. }
  1551. return this._connection;
  1552. }
  1553. set {
  1554. this._connection = value;
  1555. if ((this.Adapter.InsertCommand != null)) {
  1556. this.Adapter.InsertCommand.Connection = value;
  1557. }
  1558. if ((this.Adapter.DeleteCommand != null)) {
  1559. this.Adapter.DeleteCommand.Connection = value;
  1560. }
  1561. if ((this.Adapter.UpdateCommand != null)) {
  1562. this.Adapter.UpdateCommand.Connection = value;
  1563. }
  1564. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  1565. if ((this.CommandCollection[i] != null)) {
  1566. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  1567. }
  1568. }
  1569. }
  1570. }
  1571. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1572. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1573. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  1574. get {
  1575. return this._transaction;
  1576. }
  1577. set {
  1578. this._transaction = value;
  1579. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  1580. this.CommandCollection[i].Transaction = this._transaction;
  1581. }
  1582. if (((this.Adapter != null)
  1583. && (this.Adapter.DeleteCommand != null))) {
  1584. this.Adapter.DeleteCommand.Transaction = this._transaction;
  1585. }
  1586. if (((this.Adapter != null)
  1587. && (this.Adapter.InsertCommand != null))) {
  1588. this.Adapter.InsertCommand.Transaction = this._transaction;
  1589. }
  1590. if (((this.Adapter != null)
  1591. && (this.Adapter.UpdateCommand != null))) {
  1592. this.Adapter.UpdateCommand.Transaction = this._transaction;
  1593. }
  1594. }
  1595. }
  1596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1597. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1598. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  1599. get {
  1600. if ((this._commandCollection == null)) {
  1601. this.InitCommandCollection();
  1602. }
  1603. return this._commandCollection;
  1604. }
  1605. }
  1606. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1607. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1608. public bool ClearBeforeFill {
  1609. get {
  1610. return this._clearBeforeFill;
  1611. }
  1612. set {
  1613. this._clearBeforeFill = value;
  1614. }
  1615. }
  1616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1617. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1618. private void InitAdapter() {
  1619. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  1620. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  1621. tableMapping.SourceTable = "Table";
  1622. tableMapping.DataSetTable = "product_b_import";
  1623. tableMapping.ColumnMappings.Add("Наименование_товара", "Наименование_товара");
  1624. tableMapping.ColumnMappings.Add("Главное_изображение", "Главное_изображение");
  1625. tableMapping.ColumnMappings.Add("Производитель", "Производитель");
  1626. tableMapping.ColumnMappings.Add("Активен", "Активен");
  1627. tableMapping.ColumnMappings.Add("Цена", "Цена");
  1628. this._adapter.TableMappings.Add(tableMapping);
  1629. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  1630. this._adapter.DeleteCommand.Connection = this.Connection;
  1631. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[product_b_import] WHERE (([Наименование_товара] = @Original_Наименование_товара) AND ([Главное_изображение] = @Original_Главное_изображение) AND ([Производитель] = @Original_Производитель) AND ([Активен] = @Original_Активен) AND ([Цена] = @Original_Цена))";
  1632. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  1633. 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, "", "", ""));
  1634. 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, "", "", ""));
  1635. 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, "", "", ""));
  1636. 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, "", "", ""));
  1637. 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, "", "", ""));
  1638. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  1639. this._adapter.InsertCommand.Connection = this.Connection;
  1640. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[product_b_import] ([Наименование_товара], [Главное_изображение], [Производитель], [Активен], [Цена]) VALUES (@Наименование_товара, @Главное_изображение, @Производитель, @Активен, @Цена);
  1641. SELECT Наименование_товара, Главное_изображение, Производитель, Активен, Цена FROM product_b_import WHERE (Наименование_товара = @Наименование_товара)";
  1642. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  1643. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Наименование_товара", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование_товара", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1644. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Главное_изображение", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Главное_изображение", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1645. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Производитель", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Производитель", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1646. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Активен", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Активен", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1647. 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, "", "", ""));
  1648. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  1649. this._adapter.UpdateCommand.Connection = this.Connection;
  1650. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[product_b_import] SET [Наименование_товара] = @Наименование_товара, [Главное_изображение] = @Главное_изображение, [Производитель] = @Производитель, [Активен] = @Активен, [Цена] = @Цена WHERE (([Наименование_товара] = @Original_Наименование_товара) AND ([Главное_изображение] = @Original_Главное_изображение) AND ([Производитель] = @Original_Производитель) AND ([Активен] = @Original_Активен) AND ([Цена] = @Original_Цена));
  1651. SELECT Наименование_товара, Главное_изображение, Производитель, Активен, Цена FROM product_b_import WHERE (Наименование_товара = @Наименование_товара)";
  1652. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  1653. 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, "", "", ""));
  1654. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Главное_изображение", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Главное_изображение", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1655. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Производитель", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Производитель", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1656. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Активен", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Активен", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1657. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Цена", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1658. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Наименование_товара", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование_товара", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  1659. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Главное_изображение", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Главное_изображение", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  1660. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Производитель", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Производитель", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  1661. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Активен", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Активен", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  1662. 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, "", "", ""));
  1663. }
  1664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1666. private void InitConnection() {
  1667. this._connection = new global::System.Data.SqlClient.SqlConnection();
  1668. this._connection.ConnectionString = global::Rp42OlegMartynenko.Properties.Settings.Default.Rp42MartynenkoConnectionString;
  1669. }
  1670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1671. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1672. private void InitCommandCollection() {
  1673. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  1674. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  1675. this._commandCollection[0].Connection = this.Connection;
  1676. this._commandCollection[0].CommandText = "SELECT Наименование_товара, Главное_изображение, Производитель, Активен, Цена FRO" +
  1677. "M dbo.product_b_import";
  1678. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  1679. }
  1680. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1681. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1682. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1683. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  1684. public virtual int Fill(Rp42MartynenkoDataSet1.product_b_importDataTable dataTable) {
  1685. this.Adapter.SelectCommand = this.CommandCollection[0];
  1686. if ((this.ClearBeforeFill == true)) {
  1687. dataTable.Clear();
  1688. }
  1689. int returnValue = this.Adapter.Fill(dataTable);
  1690. return returnValue;
  1691. }
  1692. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1693. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1694. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1695. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  1696. public virtual Rp42MartynenkoDataSet1.product_b_importDataTable GetData() {
  1697. this.Adapter.SelectCommand = this.CommandCollection[0];
  1698. Rp42MartynenkoDataSet1.product_b_importDataTable dataTable = new Rp42MartynenkoDataSet1.product_b_importDataTable();
  1699. this.Adapter.Fill(dataTable);
  1700. return dataTable;
  1701. }
  1702. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1703. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1704. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1705. public virtual int Update(Rp42MartynenkoDataSet1.product_b_importDataTable dataTable) {
  1706. return this.Adapter.Update(dataTable);
  1707. }
  1708. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1709. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1710. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1711. public virtual int Update(Rp42MartynenkoDataSet1 dataSet) {
  1712. return this.Adapter.Update(dataSet, "product_b_import");
  1713. }
  1714. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1715. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1716. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1717. public virtual int Update(global::System.Data.DataRow dataRow) {
  1718. return this.Adapter.Update(new global::System.Data.DataRow[] {
  1719. dataRow});
  1720. }
  1721. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1722. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1723. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1724. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  1725. return this.Adapter.Update(dataRows);
  1726. }
  1727. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1728. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1729. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1730. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  1731. public virtual int Delete(string Original_Наименование_товара, string Original_Главное_изображение, string Original_Производитель, string Original_Активен, string Original_Цена) {
  1732. if ((Original_Наименование_товара == null)) {
  1733. throw new global::System.ArgumentNullException("Original_Наименование_товара");
  1734. }
  1735. else {
  1736. this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_Наименование_товара));
  1737. }
  1738. if ((Original_Главное_изображение == null)) {
  1739. throw new global::System.ArgumentNullException("Original_Главное_изображение");
  1740. }
  1741. else {
  1742. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Главное_изображение));
  1743. }
  1744. if ((Original_Производитель == null)) {
  1745. throw new global::System.ArgumentNullException("Original_Производитель");
  1746. }
  1747. else {
  1748. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Производитель));
  1749. }
  1750. if ((Original_Активен == null)) {
  1751. throw new global::System.ArgumentNullException("Original_Активен");
  1752. }
  1753. else {
  1754. this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_Активен));
  1755. }
  1756. if ((Original_Цена == null)) {
  1757. throw new global::System.ArgumentNullException("Original_Цена");
  1758. }
  1759. else {
  1760. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Цена));
  1761. }
  1762. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  1763. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  1764. != global::System.Data.ConnectionState.Open)) {
  1765. this.Adapter.DeleteCommand.Connection.Open();
  1766. }
  1767. try {
  1768. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  1769. return returnValue;
  1770. }
  1771. finally {
  1772. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  1773. this.Adapter.DeleteCommand.Connection.Close();
  1774. }
  1775. }
  1776. }
  1777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1779. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1780. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  1781. public virtual int Insert(string Наименование_товара, string Главное_изображение, string Производитель, string Активен, string Цена) {
  1782. if ((Наименование_товара == null)) {
  1783. throw new global::System.ArgumentNullException("Наименование_товара");
  1784. }
  1785. else {
  1786. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Наименование_товара));
  1787. }
  1788. if ((Главное_изображение == null)) {
  1789. throw new global::System.ArgumentNullException("Главное_изображение");
  1790. }
  1791. else {
  1792. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Главное_изображение));
  1793. }
  1794. if ((Производитель == null)) {
  1795. throw new global::System.ArgumentNullException("Производитель");
  1796. }
  1797. else {
  1798. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Производитель));
  1799. }
  1800. if ((Активен == null)) {
  1801. throw new global::System.ArgumentNullException("Активен");
  1802. }
  1803. else {
  1804. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Активен));
  1805. }
  1806. if ((Цена == null)) {
  1807. throw new global::System.ArgumentNullException("Цена");
  1808. }
  1809. else {
  1810. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Цена));
  1811. }
  1812. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  1813. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  1814. != global::System.Data.ConnectionState.Open)) {
  1815. this.Adapter.InsertCommand.Connection.Open();
  1816. }
  1817. try {
  1818. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  1819. return returnValue;
  1820. }
  1821. finally {
  1822. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  1823. this.Adapter.InsertCommand.Connection.Close();
  1824. }
  1825. }
  1826. }
  1827. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1828. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1829. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1830. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  1831. public virtual int Update(string Наименование_товара, string Главное_изображение, string Производитель, string Активен, string Цена, string Original_Наименование_товара, string Original_Главное_изображение, string Original_Производитель, string Original_Активен, string Original_Цена) {
  1832. if ((Наименование_товара == null)) {
  1833. throw new global::System.ArgumentNullException("Наименование_товара");
  1834. }
  1835. else {
  1836. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Наименование_товара));
  1837. }
  1838. if ((Главное_изображение == null)) {
  1839. throw new global::System.ArgumentNullException("Главное_изображение");
  1840. }
  1841. else {
  1842. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Главное_изображение));
  1843. }
  1844. if ((Производитель == null)) {
  1845. throw new global::System.ArgumentNullException("Производитель");
  1846. }
  1847. else {
  1848. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Производитель));
  1849. }
  1850. if ((Активен == null)) {
  1851. throw new global::System.ArgumentNullException("Активен");
  1852. }
  1853. else {
  1854. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Активен));
  1855. }
  1856. if ((Цена == null)) {
  1857. throw new global::System.ArgumentNullException("Цена");
  1858. }
  1859. else {
  1860. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Цена));
  1861. }
  1862. if ((Original_Наименование_товара == null)) {
  1863. throw new global::System.ArgumentNullException("Original_Наименование_товара");
  1864. }
  1865. else {
  1866. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Наименование_товара));
  1867. }
  1868. if ((Original_Главное_изображение == null)) {
  1869. throw new global::System.ArgumentNullException("Original_Главное_изображение");
  1870. }
  1871. else {
  1872. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_Главное_изображение));
  1873. }
  1874. if ((Original_Производитель == null)) {
  1875. throw new global::System.ArgumentNullException("Original_Производитель");
  1876. }
  1877. else {
  1878. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Производитель));
  1879. }
  1880. if ((Original_Активен == null)) {
  1881. throw new global::System.ArgumentNullException("Original_Активен");
  1882. }
  1883. else {
  1884. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_Активен));
  1885. }
  1886. if ((Original_Цена == null)) {
  1887. throw new global::System.ArgumentNullException("Original_Цена");
  1888. }
  1889. else {
  1890. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_Цена));
  1891. }
  1892. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  1893. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  1894. != global::System.Data.ConnectionState.Open)) {
  1895. this.Adapter.UpdateCommand.Connection.Open();
  1896. }
  1897. try {
  1898. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  1899. return returnValue;
  1900. }
  1901. finally {
  1902. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  1903. this.Adapter.UpdateCommand.Connection.Close();
  1904. }
  1905. }
  1906. }
  1907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1909. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1910. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  1911. public virtual int Update(string Главное_изображение, string Производитель, string Активен, string Цена, string Original_Наименование_товара, string Original_Главное_изображение, string Original_Производитель, string Original_Активен, string Original_Цена) {
  1912. return this.Update(Original_Наименование_товара, Главное_изображение, Производитель, Активен, Цена, Original_Наименование_товара, Original_Главное_изображение, Original_Производитель, Original_Активен, Original_Цена);
  1913. }
  1914. }
  1915. /// <summary>
  1916. ///Represents the connection and commands used to retrieve and save data.
  1917. ///</summary>
  1918. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  1919. [global::System.ComponentModel.ToolboxItem(true)]
  1920. [global::System.ComponentModel.DataObjectAttribute(true)]
  1921. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  1922. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  1923. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1924. public partial class productsale_b_importTableAdapter : global::System.ComponentModel.Component {
  1925. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  1926. private global::System.Data.SqlClient.SqlConnection _connection;
  1927. private global::System.Data.SqlClient.SqlTransaction _transaction;
  1928. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  1929. private bool _clearBeforeFill;
  1930. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1931. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1932. public productsale_b_importTableAdapter() {
  1933. this.ClearBeforeFill = true;
  1934. }
  1935. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1936. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1937. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  1938. get {
  1939. if ((this._adapter == null)) {
  1940. this.InitAdapter();
  1941. }
  1942. return this._adapter;
  1943. }
  1944. }
  1945. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1946. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1947. internal global::System.Data.SqlClient.SqlConnection Connection {
  1948. get {
  1949. if ((this._connection == null)) {
  1950. this.InitConnection();
  1951. }
  1952. return this._connection;
  1953. }
  1954. set {
  1955. this._connection = value;
  1956. if ((this.Adapter.InsertCommand != null)) {
  1957. this.Adapter.InsertCommand.Connection = value;
  1958. }
  1959. if ((this.Adapter.DeleteCommand != null)) {
  1960. this.Adapter.DeleteCommand.Connection = value;
  1961. }
  1962. if ((this.Adapter.UpdateCommand != null)) {
  1963. this.Adapter.UpdateCommand.Connection = value;
  1964. }
  1965. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  1966. if ((this.CommandCollection[i] != null)) {
  1967. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  1968. }
  1969. }
  1970. }
  1971. }
  1972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1973. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1974. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  1975. get {
  1976. return this._transaction;
  1977. }
  1978. set {
  1979. this._transaction = value;
  1980. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  1981. this.CommandCollection[i].Transaction = this._transaction;
  1982. }
  1983. if (((this.Adapter != null)
  1984. && (this.Adapter.DeleteCommand != null))) {
  1985. this.Adapter.DeleteCommand.Transaction = this._transaction;
  1986. }
  1987. if (((this.Adapter != null)
  1988. && (this.Adapter.InsertCommand != null))) {
  1989. this.Adapter.InsertCommand.Transaction = this._transaction;
  1990. }
  1991. if (((this.Adapter != null)
  1992. && (this.Adapter.UpdateCommand != null))) {
  1993. this.Adapter.UpdateCommand.Transaction = this._transaction;
  1994. }
  1995. }
  1996. }
  1997. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1998. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1999. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  2000. get {
  2001. if ((this._commandCollection == null)) {
  2002. this.InitCommandCollection();
  2003. }
  2004. return this._commandCollection;
  2005. }
  2006. }
  2007. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2008. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2009. public bool ClearBeforeFill {
  2010. get {
  2011. return this._clearBeforeFill;
  2012. }
  2013. set {
  2014. this._clearBeforeFill = value;
  2015. }
  2016. }
  2017. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2018. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2019. private void InitAdapter() {
  2020. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  2021. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  2022. tableMapping.SourceTable = "Table";
  2023. tableMapping.DataSetTable = "productsale_b_import";
  2024. tableMapping.ColumnMappings.Add("Товар", "Товар");
  2025. tableMapping.ColumnMappings.Add("Количество", "Количество");
  2026. tableMapping.ColumnMappings.Add("Дата_и_время_продажи", "Дата_и_время_продажи");
  2027. this._adapter.TableMappings.Add(tableMapping);
  2028. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  2029. this._adapter.InsertCommand.Connection = this.Connection;
  2030. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[productsale_b_import] ([Товар], [Количество], [Дата_и_время_пр" +
  2031. "одажи]) VALUES (@Товар, @Количество, @Дата_и_время_продажи)";
  2032. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  2033. 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, "", "", ""));
  2034. 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, "", "", ""));
  2035. 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, "", "", ""));
  2036. }
  2037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2038. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2039. private void InitConnection() {
  2040. this._connection = new global::System.Data.SqlClient.SqlConnection();
  2041. this._connection.ConnectionString = global::Rp42OlegMartynenko.Properties.Settings.Default.Rp42MartynenkoConnectionString;
  2042. }
  2043. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2044. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2045. private void InitCommandCollection() {
  2046. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  2047. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  2048. this._commandCollection[0].Connection = this.Connection;
  2049. this._commandCollection[0].CommandText = "SELECT Товар, Количество, Дата_и_время_продажи FROM dbo.productsale_b_import";
  2050. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  2051. }
  2052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2053. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2054. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2055. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  2056. public virtual int Fill(Rp42MartynenkoDataSet1.productsale_b_importDataTable dataTable) {
  2057. this.Adapter.SelectCommand = this.CommandCollection[0];
  2058. if ((this.ClearBeforeFill == true)) {
  2059. dataTable.Clear();
  2060. }
  2061. int returnValue = this.Adapter.Fill(dataTable);
  2062. return returnValue;
  2063. }
  2064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2065. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2066. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2067. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  2068. public virtual Rp42MartynenkoDataSet1.productsale_b_importDataTable GetData() {
  2069. this.Adapter.SelectCommand = this.CommandCollection[0];
  2070. Rp42MartynenkoDataSet1.productsale_b_importDataTable dataTable = new Rp42MartynenkoDataSet1.productsale_b_importDataTable();
  2071. this.Adapter.Fill(dataTable);
  2072. return dataTable;
  2073. }
  2074. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2075. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2076. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2077. public virtual int Update(Rp42MartynenkoDataSet1.productsale_b_importDataTable dataTable) {
  2078. return this.Adapter.Update(dataTable);
  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. public virtual int Update(Rp42MartynenkoDataSet1 dataSet) {
  2084. return this.Adapter.Update(dataSet, "productsale_b_import");
  2085. }
  2086. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2087. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2088. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2089. public virtual int Update(global::System.Data.DataRow dataRow) {
  2090. return this.Adapter.Update(new global::System.Data.DataRow[] {
  2091. dataRow});
  2092. }
  2093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2094. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2095. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2096. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  2097. return this.Adapter.Update(dataRows);
  2098. }
  2099. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2100. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2101. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2102. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  2103. public virtual int Insert(string Товар, byte Количество, System.DateTime Дата_и_время_продажи) {
  2104. if ((Товар == null)) {
  2105. throw new global::System.ArgumentNullException("Товар");
  2106. }
  2107. else {
  2108. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Товар));
  2109. }
  2110. this.Adapter.InsertCommand.Parameters[1].Value = ((byte)(Количество));
  2111. this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(Дата_и_время_продажи));
  2112. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  2113. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  2114. != global::System.Data.ConnectionState.Open)) {
  2115. this.Adapter.InsertCommand.Connection.Open();
  2116. }
  2117. try {
  2118. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  2119. return returnValue;
  2120. }
  2121. finally {
  2122. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  2123. this.Adapter.InsertCommand.Connection.Close();
  2124. }
  2125. }
  2126. }
  2127. }
  2128. /// <summary>
  2129. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  2130. ///</summary>
  2131. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  2132. [global::System.ComponentModel.ToolboxItem(true)]
  2133. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  2134. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  2135. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  2136. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  2137. private UpdateOrderOption _updateOrder;
  2138. private manufacturer_b_importTableAdapter _manufacturer_b_importTableAdapter;
  2139. private product_b_importTableAdapter _product_b_importTableAdapter;
  2140. private productsale_b_importTableAdapter _productsale_b_importTableAdapter;
  2141. private bool _backupDataSetBeforeUpdate;
  2142. private global::System.Data.IDbConnection _connection;
  2143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2144. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2145. public UpdateOrderOption UpdateOrder {
  2146. get {
  2147. return this._updateOrder;
  2148. }
  2149. set {
  2150. this._updateOrder = value;
  2151. }
  2152. }
  2153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2154. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2155. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  2156. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  2157. "a", "System.Drawing.Design.UITypeEditor")]
  2158. public manufacturer_b_importTableAdapter manufacturer_b_importTableAdapter {
  2159. get {
  2160. return this._manufacturer_b_importTableAdapter;
  2161. }
  2162. set {
  2163. this._manufacturer_b_importTableAdapter = value;
  2164. }
  2165. }
  2166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2167. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2168. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  2169. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  2170. "a", "System.Drawing.Design.UITypeEditor")]
  2171. public product_b_importTableAdapter product_b_importTableAdapter {
  2172. get {
  2173. return this._product_b_importTableAdapter;
  2174. }
  2175. set {
  2176. this._product_b_importTableAdapter = value;
  2177. }
  2178. }
  2179. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2180. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2181. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  2182. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  2183. "a", "System.Drawing.Design.UITypeEditor")]
  2184. public productsale_b_importTableAdapter productsale_b_importTableAdapter {
  2185. get {
  2186. return this._productsale_b_importTableAdapter;
  2187. }
  2188. set {
  2189. this._productsale_b_importTableAdapter = value;
  2190. }
  2191. }
  2192. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2193. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2194. public bool BackupDataSetBeforeUpdate {
  2195. get {
  2196. return this._backupDataSetBeforeUpdate;
  2197. }
  2198. set {
  2199. this._backupDataSetBeforeUpdate = value;
  2200. }
  2201. }
  2202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2204. [global::System.ComponentModel.Browsable(false)]
  2205. public global::System.Data.IDbConnection Connection {
  2206. get {
  2207. if ((this._connection != null)) {
  2208. return this._connection;
  2209. }
  2210. if (((this._manufacturer_b_importTableAdapter != null)
  2211. && (this._manufacturer_b_importTableAdapter.Connection != null))) {
  2212. return this._manufacturer_b_importTableAdapter.Connection;
  2213. }
  2214. if (((this._product_b_importTableAdapter != null)
  2215. && (this._product_b_importTableAdapter.Connection != null))) {
  2216. return this._product_b_importTableAdapter.Connection;
  2217. }
  2218. if (((this._productsale_b_importTableAdapter != null)
  2219. && (this._productsale_b_importTableAdapter.Connection != null))) {
  2220. return this._productsale_b_importTableAdapter.Connection;
  2221. }
  2222. return null;
  2223. }
  2224. set {
  2225. this._connection = value;
  2226. }
  2227. }
  2228. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2229. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2230. [global::System.ComponentModel.Browsable(false)]
  2231. public int TableAdapterInstanceCount {
  2232. get {
  2233. int count = 0;
  2234. if ((this._manufacturer_b_importTableAdapter != null)) {
  2235. count = (count + 1);
  2236. }
  2237. if ((this._product_b_importTableAdapter != null)) {
  2238. count = (count + 1);
  2239. }
  2240. if ((this._productsale_b_importTableAdapter != null)) {
  2241. count = (count + 1);
  2242. }
  2243. return count;
  2244. }
  2245. }
  2246. /// <summary>
  2247. ///Update rows in top-down order.
  2248. ///</summary>
  2249. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2250. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2251. private int UpdateUpdatedRows(Rp42MartynenkoDataSet1 dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  2252. int result = 0;
  2253. if ((this._manufacturer_b_importTableAdapter != null)) {
  2254. global::System.Data.DataRow[] updatedRows = dataSet.manufacturer_b_import.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  2255. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  2256. if (((updatedRows != null)
  2257. && (0 < updatedRows.Length))) {
  2258. result = (result + this._manufacturer_b_importTableAdapter.Update(updatedRows));
  2259. allChangedRows.AddRange(updatedRows);
  2260. }
  2261. }
  2262. if ((this._product_b_importTableAdapter != null)) {
  2263. global::System.Data.DataRow[] updatedRows = dataSet.product_b_import.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  2264. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  2265. if (((updatedRows != null)
  2266. && (0 < updatedRows.Length))) {
  2267. result = (result + this._product_b_importTableAdapter.Update(updatedRows));
  2268. allChangedRows.AddRange(updatedRows);
  2269. }
  2270. }
  2271. if ((this._productsale_b_importTableAdapter != null)) {
  2272. global::System.Data.DataRow[] updatedRows = dataSet.productsale_b_import.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  2273. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  2274. if (((updatedRows != null)
  2275. && (0 < updatedRows.Length))) {
  2276. result = (result + this._productsale_b_importTableAdapter.Update(updatedRows));
  2277. allChangedRows.AddRange(updatedRows);
  2278. }
  2279. }
  2280. return result;
  2281. }
  2282. /// <summary>
  2283. ///Insert rows in top-down order.
  2284. ///</summary>
  2285. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2286. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2287. private int UpdateInsertedRows(Rp42MartynenkoDataSet1 dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  2288. int result = 0;
  2289. if ((this._manufacturer_b_importTableAdapter != null)) {
  2290. global::System.Data.DataRow[] addedRows = dataSet.manufacturer_b_import.Select(null, null, global::System.Data.DataViewRowState.Added);
  2291. if (((addedRows != null)
  2292. && (0 < addedRows.Length))) {
  2293. result = (result + this._manufacturer_b_importTableAdapter.Update(addedRows));
  2294. allAddedRows.AddRange(addedRows);
  2295. }
  2296. }
  2297. if ((this._product_b_importTableAdapter != null)) {
  2298. global::System.Data.DataRow[] addedRows = dataSet.product_b_import.Select(null, null, global::System.Data.DataViewRowState.Added);
  2299. if (((addedRows != null)
  2300. && (0 < addedRows.Length))) {
  2301. result = (result + this._product_b_importTableAdapter.Update(addedRows));
  2302. allAddedRows.AddRange(addedRows);
  2303. }
  2304. }
  2305. if ((this._productsale_b_importTableAdapter != null)) {
  2306. global::System.Data.DataRow[] addedRows = dataSet.productsale_b_import.Select(null, null, global::System.Data.DataViewRowState.Added);
  2307. if (((addedRows != null)
  2308. && (0 < addedRows.Length))) {
  2309. result = (result + this._productsale_b_importTableAdapter.Update(addedRows));
  2310. allAddedRows.AddRange(addedRows);
  2311. }
  2312. }
  2313. return result;
  2314. }
  2315. /// <summary>
  2316. ///Delete rows in bottom-up order.
  2317. ///</summary>
  2318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2319. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2320. private int UpdateDeletedRows(Rp42MartynenkoDataSet1 dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  2321. int result = 0;
  2322. if ((this._productsale_b_importTableAdapter != null)) {
  2323. global::System.Data.DataRow[] deletedRows = dataSet.productsale_b_import.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  2324. if (((deletedRows != null)
  2325. && (0 < deletedRows.Length))) {
  2326. result = (result + this._productsale_b_importTableAdapter.Update(deletedRows));
  2327. allChangedRows.AddRange(deletedRows);
  2328. }
  2329. }
  2330. if ((this._product_b_importTableAdapter != null)) {
  2331. global::System.Data.DataRow[] deletedRows = dataSet.product_b_import.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  2332. if (((deletedRows != null)
  2333. && (0 < deletedRows.Length))) {
  2334. result = (result + this._product_b_importTableAdapter.Update(deletedRows));
  2335. allChangedRows.AddRange(deletedRows);
  2336. }
  2337. }
  2338. if ((this._manufacturer_b_importTableAdapter != null)) {
  2339. global::System.Data.DataRow[] deletedRows = dataSet.manufacturer_b_import.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  2340. if (((deletedRows != null)
  2341. && (0 < deletedRows.Length))) {
  2342. result = (result + this._manufacturer_b_importTableAdapter.Update(deletedRows));
  2343. allChangedRows.AddRange(deletedRows);
  2344. }
  2345. }
  2346. return result;
  2347. }
  2348. /// <summary>
  2349. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  2350. ///</summary>
  2351. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2352. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2353. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  2354. if (((updatedRows == null)
  2355. || (updatedRows.Length < 1))) {
  2356. return updatedRows;
  2357. }
  2358. if (((allAddedRows == null)
  2359. || (allAddedRows.Count < 1))) {
  2360. return updatedRows;
  2361. }
  2362. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  2363. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  2364. global::System.Data.DataRow row = updatedRows[i];
  2365. if ((allAddedRows.Contains(row) == false)) {
  2366. realUpdatedRows.Add(row);
  2367. }
  2368. }
  2369. return realUpdatedRows.ToArray();
  2370. }
  2371. /// <summary>
  2372. ///Update all changes to the dataset.
  2373. ///</summary>
  2374. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2375. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2376. public virtual int UpdateAll(Rp42MartynenkoDataSet1 dataSet) {
  2377. if ((dataSet == null)) {
  2378. throw new global::System.ArgumentNullException("dataSet");
  2379. }
  2380. if ((dataSet.HasChanges() == false)) {
  2381. return 0;
  2382. }
  2383. if (((this._manufacturer_b_importTableAdapter != null)
  2384. && (this.MatchTableAdapterConnection(this._manufacturer_b_importTableAdapter.Connection) == false))) {
  2385. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  2386. "r, должны использовать одинаковую строку подключения.");
  2387. }
  2388. if (((this._product_b_importTableAdapter != null)
  2389. && (this.MatchTableAdapterConnection(this._product_b_importTableAdapter.Connection) == false))) {
  2390. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  2391. "r, должны использовать одинаковую строку подключения.");
  2392. }
  2393. if (((this._productsale_b_importTableAdapter != null)
  2394. && (this.MatchTableAdapterConnection(this._productsale_b_importTableAdapter.Connection) == false))) {
  2395. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  2396. "r, должны использовать одинаковую строку подключения.");
  2397. }
  2398. global::System.Data.IDbConnection workConnection = this.Connection;
  2399. if ((workConnection == null)) {
  2400. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  2401. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  2402. }
  2403. bool workConnOpened = false;
  2404. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  2405. == global::System.Data.ConnectionState.Broken)) {
  2406. workConnection.Close();
  2407. }
  2408. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  2409. workConnection.Open();
  2410. workConnOpened = true;
  2411. }
  2412. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  2413. if ((workTransaction == null)) {
  2414. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  2415. "и или текущее состояние не позволяет начать транзакцию.");
  2416. }
  2417. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  2418. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  2419. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  2420. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  2421. int result = 0;
  2422. global::System.Data.DataSet backupDataSet = null;
  2423. if (this.BackupDataSetBeforeUpdate) {
  2424. backupDataSet = new global::System.Data.DataSet();
  2425. backupDataSet.Merge(dataSet);
  2426. }
  2427. try {
  2428. // ---- Prepare for update -----------
  2429. //
  2430. if ((this._manufacturer_b_importTableAdapter != null)) {
  2431. revertConnections.Add(this._manufacturer_b_importTableAdapter, this._manufacturer_b_importTableAdapter.Connection);
  2432. this._manufacturer_b_importTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  2433. this._manufacturer_b_importTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  2434. if (this._manufacturer_b_importTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  2435. this._manufacturer_b_importTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  2436. adaptersWithAcceptChangesDuringUpdate.Add(this._manufacturer_b_importTableAdapter.Adapter);
  2437. }
  2438. }
  2439. if ((this._product_b_importTableAdapter != null)) {
  2440. revertConnections.Add(this._product_b_importTableAdapter, this._product_b_importTableAdapter.Connection);
  2441. this._product_b_importTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  2442. this._product_b_importTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  2443. if (this._product_b_importTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  2444. this._product_b_importTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  2445. adaptersWithAcceptChangesDuringUpdate.Add(this._product_b_importTableAdapter.Adapter);
  2446. }
  2447. }
  2448. if ((this._productsale_b_importTableAdapter != null)) {
  2449. revertConnections.Add(this._productsale_b_importTableAdapter, this._productsale_b_importTableAdapter.Connection);
  2450. this._productsale_b_importTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  2451. this._productsale_b_importTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  2452. if (this._productsale_b_importTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  2453. this._productsale_b_importTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  2454. adaptersWithAcceptChangesDuringUpdate.Add(this._productsale_b_importTableAdapter.Adapter);
  2455. }
  2456. }
  2457. //
  2458. //---- Perform updates -----------
  2459. //
  2460. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  2461. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  2462. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  2463. }
  2464. else {
  2465. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  2466. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  2467. }
  2468. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  2469. //
  2470. //---- Commit updates -----------
  2471. //
  2472. workTransaction.Commit();
  2473. if ((0 < allAddedRows.Count)) {
  2474. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  2475. allAddedRows.CopyTo(rows);
  2476. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  2477. global::System.Data.DataRow row = rows[i];
  2478. row.AcceptChanges();
  2479. }
  2480. }
  2481. if ((0 < allChangedRows.Count)) {
  2482. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  2483. allChangedRows.CopyTo(rows);
  2484. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  2485. global::System.Data.DataRow row = rows[i];
  2486. row.AcceptChanges();
  2487. }
  2488. }
  2489. }
  2490. catch (global::System.Exception ex) {
  2491. workTransaction.Rollback();
  2492. // ---- Restore the dataset -----------
  2493. if (this.BackupDataSetBeforeUpdate) {
  2494. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  2495. dataSet.Clear();
  2496. dataSet.Merge(backupDataSet);
  2497. }
  2498. else {
  2499. if ((0 < allAddedRows.Count)) {
  2500. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  2501. allAddedRows.CopyTo(rows);
  2502. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  2503. global::System.Data.DataRow row = rows[i];
  2504. row.AcceptChanges();
  2505. row.SetAdded();
  2506. }
  2507. }
  2508. }
  2509. throw ex;
  2510. }
  2511. finally {
  2512. if (workConnOpened) {
  2513. workConnection.Close();
  2514. }
  2515. if ((this._manufacturer_b_importTableAdapter != null)) {
  2516. this._manufacturer_b_importTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._manufacturer_b_importTableAdapter]));
  2517. this._manufacturer_b_importTableAdapter.Transaction = null;
  2518. }
  2519. if ((this._product_b_importTableAdapter != null)) {
  2520. this._product_b_importTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._product_b_importTableAdapter]));
  2521. this._product_b_importTableAdapter.Transaction = null;
  2522. }
  2523. if ((this._productsale_b_importTableAdapter != null)) {
  2524. this._productsale_b_importTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productsale_b_importTableAdapter]));
  2525. this._productsale_b_importTableAdapter.Transaction = null;
  2526. }
  2527. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  2528. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  2529. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  2530. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  2531. global::System.Data.Common.DataAdapter adapter = adapters[i];
  2532. adapter.AcceptChangesDuringUpdate = true;
  2533. }
  2534. }
  2535. }
  2536. return result;
  2537. }
  2538. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2539. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2540. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  2541. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  2542. }
  2543. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2544. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2545. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  2546. if ((this._connection != null)) {
  2547. return true;
  2548. }
  2549. if (((this.Connection == null)
  2550. || (inputConnection == null))) {
  2551. return true;
  2552. }
  2553. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  2554. return true;
  2555. }
  2556. return false;
  2557. }
  2558. /// <summary>
  2559. ///Update Order Option
  2560. ///</summary>
  2561. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2562. public enum UpdateOrderOption {
  2563. InsertUpdateDelete = 0,
  2564. UpdateInsertDelete = 1,
  2565. }
  2566. /// <summary>
  2567. ///Used to sort self-referenced table's rows
  2568. ///</summary>
  2569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2570. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  2571. private global::System.Data.DataRelation _relation;
  2572. private int _childFirst;
  2573. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2574. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2575. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  2576. this._relation = relation;
  2577. if (childFirst) {
  2578. this._childFirst = -1;
  2579. }
  2580. else {
  2581. this._childFirst = 1;
  2582. }
  2583. }
  2584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2586. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  2587. global::System.Diagnostics.Debug.Assert((row != null));
  2588. global::System.Data.DataRow root = row;
  2589. distance = 0;
  2590. 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>();
  2591. traversedRows[row] = row;
  2592. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  2593. for (
  2594. ; ((parent != null)
  2595. && (traversedRows.ContainsKey(parent) == false));
  2596. ) {
  2597. distance = (distance + 1);
  2598. root = parent;
  2599. traversedRows[parent] = parent;
  2600. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  2601. }
  2602. if ((distance == 0)) {
  2603. traversedRows.Clear();
  2604. traversedRows[row] = row;
  2605. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  2606. for (
  2607. ; ((parent != null)
  2608. && (traversedRows.ContainsKey(parent) == false));
  2609. ) {
  2610. distance = (distance + 1);
  2611. root = parent;
  2612. traversedRows[parent] = parent;
  2613. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  2614. }
  2615. }
  2616. return root;
  2617. }
  2618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2619. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2620. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  2621. if (object.ReferenceEquals(row1, row2)) {
  2622. return 0;
  2623. }
  2624. if ((row1 == null)) {
  2625. return -1;
  2626. }
  2627. if ((row2 == null)) {
  2628. return 1;
  2629. }
  2630. int distance1 = 0;
  2631. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  2632. int distance2 = 0;
  2633. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  2634. if (object.ReferenceEquals(root1, root2)) {
  2635. return (this._childFirst * distance1.CompareTo(distance2));
  2636. }
  2637. else {
  2638. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  2639. && (root2.Table != null)));
  2640. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  2641. return -1;
  2642. }
  2643. else {
  2644. return 1;
  2645. }
  2646. }
  2647. }
  2648. }
  2649. }
  2650. }
  2651. #pragma warning restore 1591