ZhorovaRP42DataSet.Designer.cs 205 KB

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