IS31YshakovDataSet.Designer.cs 253 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace yshakov {
  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("IS31YshakovDataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class IS31YshakovDataSet : global::System.Data.DataSet {
  22. private user_importDataTable tableuser_import;
  23. private Заказ_importDataTable tableЗаказ_import;
  24. private Пункты_выдачи_importDataTable tableПункты_выдачи_import;
  25. private Товар_import_СтройматериалыDataTable tableТовар_import_Стройматериалы;
  26. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  27. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  28. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  29. public IS31YshakovDataSet() {
  30. this.BeginInit();
  31. this.InitClass();
  32. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  33. base.Tables.CollectionChanged += schemaChangedHandler;
  34. base.Relations.CollectionChanged += schemaChangedHandler;
  35. this.EndInit();
  36. }
  37. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  38. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  39. protected IS31YshakovDataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  40. base(info, context, false) {
  41. if ((this.IsBinarySerialized(info, context) == true)) {
  42. this.InitVars(false);
  43. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  44. this.Tables.CollectionChanged += schemaChangedHandler1;
  45. this.Relations.CollectionChanged += schemaChangedHandler1;
  46. return;
  47. }
  48. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  49. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  50. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  51. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  52. if ((ds.Tables["user_import"] != null)) {
  53. base.Tables.Add(new user_importDataTable(ds.Tables["user_import"]));
  54. }
  55. if ((ds.Tables["Заказ_import"] != null)) {
  56. base.Tables.Add(new Заказ_importDataTable(ds.Tables["Заказ_import"]));
  57. }
  58. if ((ds.Tables["Пункты выдачи_import"] != null)) {
  59. base.Tables.Add(new Пункты_выдачи_importDataTable(ds.Tables["Пункты выдачи_import"]));
  60. }
  61. if ((ds.Tables["Товар_import_Стройматериалы"] != null)) {
  62. base.Tables.Add(new Товар_import_СтройматериалыDataTable(ds.Tables["Товар_import_Стройматериалы"]));
  63. }
  64. this.DataSetName = ds.DataSetName;
  65. this.Prefix = ds.Prefix;
  66. this.Namespace = ds.Namespace;
  67. this.Locale = ds.Locale;
  68. this.CaseSensitive = ds.CaseSensitive;
  69. this.EnforceConstraints = ds.EnforceConstraints;
  70. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  71. this.InitVars();
  72. }
  73. else {
  74. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  75. }
  76. this.GetSerializationData(info, context);
  77. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  78. base.Tables.CollectionChanged += schemaChangedHandler;
  79. this.Relations.CollectionChanged += schemaChangedHandler;
  80. }
  81. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  82. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  83. [global::System.ComponentModel.Browsable(false)]
  84. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  85. public user_importDataTable user_import {
  86. get {
  87. return this.tableuser_import;
  88. }
  89. }
  90. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  91. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  92. [global::System.ComponentModel.Browsable(false)]
  93. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  94. public Заказ_importDataTable Заказ_import {
  95. get {
  96. return this.tableЗаказ_import;
  97. }
  98. }
  99. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  100. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  101. [global::System.ComponentModel.Browsable(false)]
  102. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  103. public Пункты_выдачи_importDataTable Пункты_выдачи_import {
  104. get {
  105. return this.tableПункты_выдачи_import;
  106. }
  107. }
  108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  110. [global::System.ComponentModel.Browsable(false)]
  111. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  112. public Товар_import_СтройматериалыDataTable Товар_import_Стройматериалы {
  113. get {
  114. return this.tableТовар_import_Стройматериалы;
  115. }
  116. }
  117. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  118. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  119. [global::System.ComponentModel.BrowsableAttribute(true)]
  120. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  121. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  122. get {
  123. return this._schemaSerializationMode;
  124. }
  125. set {
  126. this._schemaSerializationMode = value;
  127. }
  128. }
  129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  131. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  132. public new global::System.Data.DataTableCollection Tables {
  133. get {
  134. return base.Tables;
  135. }
  136. }
  137. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  138. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  139. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  140. public new global::System.Data.DataRelationCollection Relations {
  141. get {
  142. return base.Relations;
  143. }
  144. }
  145. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  146. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  147. protected override void InitializeDerivedDataSet() {
  148. this.BeginInit();
  149. this.InitClass();
  150. this.EndInit();
  151. }
  152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  154. public override global::System.Data.DataSet Clone() {
  155. IS31YshakovDataSet cln = ((IS31YshakovDataSet)(base.Clone()));
  156. cln.InitVars();
  157. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  158. return cln;
  159. }
  160. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  161. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  162. protected override bool ShouldSerializeTables() {
  163. return false;
  164. }
  165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  167. protected override bool ShouldSerializeRelations() {
  168. return false;
  169. }
  170. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  171. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  172. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  173. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  174. this.Reset();
  175. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  176. ds.ReadXml(reader);
  177. if ((ds.Tables["user_import"] != null)) {
  178. base.Tables.Add(new user_importDataTable(ds.Tables["user_import"]));
  179. }
  180. if ((ds.Tables["Заказ_import"] != null)) {
  181. base.Tables.Add(new Заказ_importDataTable(ds.Tables["Заказ_import"]));
  182. }
  183. if ((ds.Tables["Пункты выдачи_import"] != null)) {
  184. base.Tables.Add(new Пункты_выдачи_importDataTable(ds.Tables["Пункты выдачи_import"]));
  185. }
  186. if ((ds.Tables["Товар_import_Стройматериалы"] != null)) {
  187. base.Tables.Add(new Товар_import_СтройматериалыDataTable(ds.Tables["Товар_import_Стройматериалы"]));
  188. }
  189. this.DataSetName = ds.DataSetName;
  190. this.Prefix = ds.Prefix;
  191. this.Namespace = ds.Namespace;
  192. this.Locale = ds.Locale;
  193. this.CaseSensitive = ds.CaseSensitive;
  194. this.EnforceConstraints = ds.EnforceConstraints;
  195. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  196. this.InitVars();
  197. }
  198. else {
  199. this.ReadXml(reader);
  200. this.InitVars();
  201. }
  202. }
  203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  204. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  205. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  206. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  207. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  208. stream.Position = 0;
  209. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  210. }
  211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  213. internal void InitVars() {
  214. this.InitVars(true);
  215. }
  216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  218. internal void InitVars(bool initTable) {
  219. this.tableuser_import = ((user_importDataTable)(base.Tables["user_import"]));
  220. if ((initTable == true)) {
  221. if ((this.tableuser_import != null)) {
  222. this.tableuser_import.InitVars();
  223. }
  224. }
  225. this.tableЗаказ_import = ((Заказ_importDataTable)(base.Tables["Заказ_import"]));
  226. if ((initTable == true)) {
  227. if ((this.tableЗаказ_import != null)) {
  228. this.tableЗаказ_import.InitVars();
  229. }
  230. }
  231. this.tableПункты_выдачи_import = ((Пункты_выдачи_importDataTable)(base.Tables["Пункты выдачи_import"]));
  232. if ((initTable == true)) {
  233. if ((this.tableПункты_выдачи_import != null)) {
  234. this.tableПункты_выдачи_import.InitVars();
  235. }
  236. }
  237. this.tableТовар_import_Стройматериалы = ((Товар_import_СтройматериалыDataTable)(base.Tables["Товар_import_Стройматериалы"]));
  238. if ((initTable == true)) {
  239. if ((this.tableТовар_import_Стройматериалы != null)) {
  240. this.tableТовар_import_Стройматериалы.InitVars();
  241. }
  242. }
  243. }
  244. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  245. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  246. private void InitClass() {
  247. this.DataSetName = "IS31YshakovDataSet";
  248. this.Prefix = "";
  249. this.Namespace = "http://tempuri.org/IS31YshakovDataSet.xsd";
  250. this.EnforceConstraints = true;
  251. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  252. this.tableuser_import = new user_importDataTable();
  253. base.Tables.Add(this.tableuser_import);
  254. this.tableЗаказ_import = new Заказ_importDataTable();
  255. base.Tables.Add(this.tableЗаказ_import);
  256. this.tableПункты_выдачи_import = new Пункты_выдачи_importDataTable();
  257. base.Tables.Add(this.tableПункты_выдачи_import);
  258. this.tableТовар_import_Стройматериалы = new Товар_import_СтройматериалыDataTable();
  259. base.Tables.Add(this.tableТовар_import_Стройматериалы);
  260. }
  261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  262. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  263. private bool ShouldSerializeuser_import() {
  264. return false;
  265. }
  266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  268. private bool ShouldSerializeЗаказ_import() {
  269. return false;
  270. }
  271. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  272. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  273. private bool ShouldSerializeПункты_выдачи_import() {
  274. return false;
  275. }
  276. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  277. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  278. private bool ShouldSerializeТовар_import_Стройматериалы() {
  279. return false;
  280. }
  281. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  282. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  283. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  284. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  285. this.InitVars();
  286. }
  287. }
  288. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  289. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  290. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  291. IS31YshakovDataSet ds = new IS31YshakovDataSet();
  292. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  293. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  294. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  295. any.Namespace = ds.Namespace;
  296. sequence.Items.Add(any);
  297. type.Particle = sequence;
  298. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  299. if (xs.Contains(dsSchema.TargetNamespace)) {
  300. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  301. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  302. try {
  303. global::System.Xml.Schema.XmlSchema schema = null;
  304. dsSchema.Write(s1);
  305. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  306. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  307. s2.SetLength(0);
  308. schema.Write(s2);
  309. if ((s1.Length == s2.Length)) {
  310. s1.Position = 0;
  311. s2.Position = 0;
  312. for (; ((s1.Position != s1.Length)
  313. && (s1.ReadByte() == s2.ReadByte())); ) {
  314. ;
  315. }
  316. if ((s1.Position == s1.Length)) {
  317. return type;
  318. }
  319. }
  320. }
  321. }
  322. finally {
  323. if ((s1 != null)) {
  324. s1.Close();
  325. }
  326. if ((s2 != null)) {
  327. s2.Close();
  328. }
  329. }
  330. }
  331. xs.Add(dsSchema);
  332. return type;
  333. }
  334. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  335. public delegate void user_importRowChangeEventHandler(object sender, user_importRowChangeEvent e);
  336. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  337. public delegate void Заказ_importRowChangeEventHandler(object sender, Заказ_importRowChangeEvent e);
  338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  339. public delegate void Пункты_выдачи_importRowChangeEventHandler(object sender, Пункты_выдачи_importRowChangeEvent e);
  340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  341. public delegate void Товар_import_СтройматериалыRowChangeEventHandler(object sender, Товар_import_СтройматериалыRowChangeEvent e);
  342. /// <summary>
  343. ///Represents the strongly named DataTable class.
  344. ///</summary>
  345. [global::System.Serializable()]
  346. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  347. public partial class user_importDataTable : global::System.Data.TypedTableBase<user_importRow> {
  348. private global::System.Data.DataColumn columnРоль_сотрудника;
  349. private global::System.Data.DataColumn columnФИО;
  350. private global::System.Data.DataColumn columnЛогин;
  351. private global::System.Data.DataColumn columnПароль;
  352. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  353. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  354. public user_importDataTable() {
  355. this.TableName = "user_import";
  356. this.BeginInit();
  357. this.InitClass();
  358. this.EndInit();
  359. }
  360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  361. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  362. internal user_importDataTable(global::System.Data.DataTable table) {
  363. this.TableName = table.TableName;
  364. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  365. this.CaseSensitive = table.CaseSensitive;
  366. }
  367. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  368. this.Locale = table.Locale;
  369. }
  370. if ((table.Namespace != table.DataSet.Namespace)) {
  371. this.Namespace = table.Namespace;
  372. }
  373. this.Prefix = table.Prefix;
  374. this.MinimumCapacity = table.MinimumCapacity;
  375. }
  376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  378. protected user_importDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  379. base(info, context) {
  380. this.InitVars();
  381. }
  382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  383. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  384. public global::System.Data.DataColumn Роль_сотрудникаColumn {
  385. get {
  386. return this.columnРоль_сотрудника;
  387. }
  388. }
  389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  390. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  391. public global::System.Data.DataColumn ФИОColumn {
  392. get {
  393. return this.columnФИО;
  394. }
  395. }
  396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  398. public global::System.Data.DataColumn ЛогинColumn {
  399. get {
  400. return this.columnЛогин;
  401. }
  402. }
  403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  404. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  405. public global::System.Data.DataColumn ПарольColumn {
  406. get {
  407. return this.columnПароль;
  408. }
  409. }
  410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  411. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  412. [global::System.ComponentModel.Browsable(false)]
  413. public int Count {
  414. get {
  415. return this.Rows.Count;
  416. }
  417. }
  418. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  419. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  420. public user_importRow this[int index] {
  421. get {
  422. return ((user_importRow)(this.Rows[index]));
  423. }
  424. }
  425. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  426. public event user_importRowChangeEventHandler user_importRowChanging;
  427. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  428. public event user_importRowChangeEventHandler user_importRowChanged;
  429. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  430. public event user_importRowChangeEventHandler user_importRowDeleting;
  431. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  432. public event user_importRowChangeEventHandler user_importRowDeleted;
  433. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  434. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  435. public void Adduser_importRow(user_importRow row) {
  436. this.Rows.Add(row);
  437. }
  438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  439. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  440. public user_importRow Adduser_importRow(string Роль_сотрудника, string ФИО, string Логин, string Пароль) {
  441. user_importRow rowuser_importRow = ((user_importRow)(this.NewRow()));
  442. object[] columnValuesArray = new object[] {
  443. Роль_сотрудника,
  444. ФИО,
  445. Логин,
  446. Пароль};
  447. rowuser_importRow.ItemArray = columnValuesArray;
  448. this.Rows.Add(rowuser_importRow);
  449. return rowuser_importRow;
  450. }
  451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  452. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  453. public override global::System.Data.DataTable Clone() {
  454. user_importDataTable cln = ((user_importDataTable)(base.Clone()));
  455. cln.InitVars();
  456. return cln;
  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.DataTable CreateInstance() {
  461. return new user_importDataTable();
  462. }
  463. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  464. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  465. internal void InitVars() {
  466. this.columnРоль_сотрудника = base.Columns["Роль_сотрудника"];
  467. this.columnФИО = base.Columns["ФИО"];
  468. this.columnЛогин = base.Columns["Логин"];
  469. this.columnПароль = base.Columns["Пароль"];
  470. }
  471. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  473. private void InitClass() {
  474. this.columnРоль_сотрудника = new global::System.Data.DataColumn("Роль_сотрудника", typeof(string), null, global::System.Data.MappingType.Element);
  475. base.Columns.Add(this.columnРоль_сотрудника);
  476. this.columnФИО = new global::System.Data.DataColumn("ФИО", typeof(string), null, global::System.Data.MappingType.Element);
  477. base.Columns.Add(this.columnФИО);
  478. this.columnЛогин = new global::System.Data.DataColumn("Логин", typeof(string), null, global::System.Data.MappingType.Element);
  479. base.Columns.Add(this.columnЛогин);
  480. this.columnПароль = new global::System.Data.DataColumn("Пароль", typeof(string), null, global::System.Data.MappingType.Element);
  481. base.Columns.Add(this.columnПароль);
  482. this.columnРоль_сотрудника.AllowDBNull = false;
  483. this.columnРоль_сотрудника.MaxLength = 50;
  484. this.columnФИО.AllowDBNull = false;
  485. this.columnФИО.MaxLength = 50;
  486. this.columnЛогин.AllowDBNull = false;
  487. this.columnЛогин.MaxLength = 50;
  488. this.columnПароль.AllowDBNull = false;
  489. this.columnПароль.MaxLength = 50;
  490. }
  491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  492. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  493. public user_importRow Newuser_importRow() {
  494. return ((user_importRow)(this.NewRow()));
  495. }
  496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  497. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  498. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  499. return new user_importRow(builder);
  500. }
  501. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  502. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  503. protected override global::System.Type GetRowType() {
  504. return typeof(user_importRow);
  505. }
  506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  508. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  509. base.OnRowChanged(e);
  510. if ((this.user_importRowChanged != null)) {
  511. this.user_importRowChanged(this, new user_importRowChangeEvent(((user_importRow)(e.Row)), e.Action));
  512. }
  513. }
  514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  515. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  516. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  517. base.OnRowChanging(e);
  518. if ((this.user_importRowChanging != null)) {
  519. this.user_importRowChanging(this, new user_importRowChangeEvent(((user_importRow)(e.Row)), e.Action));
  520. }
  521. }
  522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  524. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  525. base.OnRowDeleted(e);
  526. if ((this.user_importRowDeleted != null)) {
  527. this.user_importRowDeleted(this, new user_importRowChangeEvent(((user_importRow)(e.Row)), e.Action));
  528. }
  529. }
  530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  532. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  533. base.OnRowDeleting(e);
  534. if ((this.user_importRowDeleting != null)) {
  535. this.user_importRowDeleting(this, new user_importRowChangeEvent(((user_importRow)(e.Row)), e.Action));
  536. }
  537. }
  538. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  539. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  540. public void Removeuser_importRow(user_importRow row) {
  541. this.Rows.Remove(row);
  542. }
  543. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  544. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  545. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  546. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  547. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  548. IS31YshakovDataSet ds = new IS31YshakovDataSet();
  549. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  550. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  551. any1.MinOccurs = new decimal(0);
  552. any1.MaxOccurs = decimal.MaxValue;
  553. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  554. sequence.Items.Add(any1);
  555. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  556. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  557. any2.MinOccurs = new decimal(1);
  558. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  559. sequence.Items.Add(any2);
  560. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  561. attribute1.Name = "namespace";
  562. attribute1.FixedValue = ds.Namespace;
  563. type.Attributes.Add(attribute1);
  564. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  565. attribute2.Name = "tableTypeName";
  566. attribute2.FixedValue = "user_importDataTable";
  567. type.Attributes.Add(attribute2);
  568. type.Particle = sequence;
  569. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  570. if (xs.Contains(dsSchema.TargetNamespace)) {
  571. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  572. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  573. try {
  574. global::System.Xml.Schema.XmlSchema schema = null;
  575. dsSchema.Write(s1);
  576. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  577. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  578. s2.SetLength(0);
  579. schema.Write(s2);
  580. if ((s1.Length == s2.Length)) {
  581. s1.Position = 0;
  582. s2.Position = 0;
  583. for (; ((s1.Position != s1.Length)
  584. && (s1.ReadByte() == s2.ReadByte())); ) {
  585. ;
  586. }
  587. if ((s1.Position == s1.Length)) {
  588. return type;
  589. }
  590. }
  591. }
  592. }
  593. finally {
  594. if ((s1 != null)) {
  595. s1.Close();
  596. }
  597. if ((s2 != null)) {
  598. s2.Close();
  599. }
  600. }
  601. }
  602. xs.Add(dsSchema);
  603. return type;
  604. }
  605. }
  606. /// <summary>
  607. ///Represents the strongly named DataTable class.
  608. ///</summary>
  609. [global::System.Serializable()]
  610. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  611. public partial class Заказ_importDataTable : global::System.Data.TypedTableBase<Заказ_importRow> {
  612. private global::System.Data.DataColumn columnНомер_заказа;
  613. private global::System.Data.DataColumn columnСостав_заказа;
  614. private global::System.Data.DataColumn columnДата_заказа;
  615. private global::System.Data.DataColumn columnДата_доставки;
  616. private global::System.Data.DataColumn columnПункт_выдачи;
  617. private global::System.Data.DataColumn columnФИО_клиента;
  618. private global::System.Data.DataColumn columnКод_для_получения;
  619. private global::System.Data.DataColumn columnСтатус_заказа;
  620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  621. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  622. public Заказ_importDataTable() {
  623. this.TableName = "Заказ_import";
  624. this.BeginInit();
  625. this.InitClass();
  626. this.EndInit();
  627. }
  628. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  630. internal Заказ_importDataTable(global::System.Data.DataTable table) {
  631. this.TableName = table.TableName;
  632. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  633. this.CaseSensitive = table.CaseSensitive;
  634. }
  635. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  636. this.Locale = table.Locale;
  637. }
  638. if ((table.Namespace != table.DataSet.Namespace)) {
  639. this.Namespace = table.Namespace;
  640. }
  641. this.Prefix = table.Prefix;
  642. this.MinimumCapacity = table.MinimumCapacity;
  643. }
  644. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  645. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  646. protected Заказ_importDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  647. base(info, context) {
  648. this.InitVars();
  649. }
  650. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  651. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  652. public global::System.Data.DataColumn Номер_заказаColumn {
  653. get {
  654. return this.columnНомер_заказа;
  655. }
  656. }
  657. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  658. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  659. public global::System.Data.DataColumn Состав_заказаColumn {
  660. get {
  661. return this.columnСостав_заказа;
  662. }
  663. }
  664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  666. public global::System.Data.DataColumn Дата_заказаColumn {
  667. get {
  668. return this.columnДата_заказа;
  669. }
  670. }
  671. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  672. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  673. public global::System.Data.DataColumn Дата_доставкиColumn {
  674. get {
  675. return this.columnДата_доставки;
  676. }
  677. }
  678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  680. public global::System.Data.DataColumn Пункт_выдачиColumn {
  681. get {
  682. return this.columnПункт_выдачи;
  683. }
  684. }
  685. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  686. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  687. public global::System.Data.DataColumn ФИО_клиентаColumn {
  688. get {
  689. return this.columnФИО_клиента;
  690. }
  691. }
  692. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  693. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  694. public global::System.Data.DataColumn Код_для_полученияColumn {
  695. get {
  696. return this.columnКод_для_получения;
  697. }
  698. }
  699. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  700. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  701. public global::System.Data.DataColumn Статус_заказаColumn {
  702. get {
  703. return this.columnСтатус_заказа;
  704. }
  705. }
  706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  708. [global::System.ComponentModel.Browsable(false)]
  709. public int Count {
  710. get {
  711. return this.Rows.Count;
  712. }
  713. }
  714. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  715. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  716. public Заказ_importRow this[int index] {
  717. get {
  718. return ((Заказ_importRow)(this.Rows[index]));
  719. }
  720. }
  721. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  722. public event Заказ_importRowChangeEventHandler Заказ_importRowChanging;
  723. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  724. public event Заказ_importRowChangeEventHandler Заказ_importRowChanged;
  725. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  726. public event Заказ_importRowChangeEventHandler Заказ_importRowDeleting;
  727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  728. public event Заказ_importRowChangeEventHandler Заказ_importRowDeleted;
  729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  730. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  731. public void AddЗаказ_importRow(Заказ_importRow row) {
  732. this.Rows.Add(row);
  733. }
  734. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  736. public Заказ_importRow AddЗаказ_importRow(string Номер_заказа, string Состав_заказа, System.DateTime Дата_заказа, System.DateTime Дата_доставки, int Пункт_выдачи, string ФИО_клиента, int Код_для_получения, string Статус_заказа) {
  737. Заказ_importRow rowЗаказ_importRow = ((Заказ_importRow)(this.NewRow()));
  738. object[] columnValuesArray = new object[] {
  739. Номер_заказа,
  740. Состав_заказа,
  741. Дата_заказа,
  742. Дата_доставки,
  743. Пункт_выдачи,
  744. ФИО_клиента,
  745. Код_для_получения,
  746. Статус_заказа};
  747. rowЗаказ_importRow.ItemArray = columnValuesArray;
  748. this.Rows.Add(rowЗаказ_importRow);
  749. return rowЗаказ_importRow;
  750. }
  751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  753. public override global::System.Data.DataTable Clone() {
  754. Заказ_importDataTable cln = ((Заказ_importDataTable)(base.Clone()));
  755. cln.InitVars();
  756. return cln;
  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.DataTable CreateInstance() {
  761. return new Заказ_importDataTable();
  762. }
  763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  764. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  765. internal void InitVars() {
  766. this.columnНомер_заказа = base.Columns["Номер_заказа"];
  767. this.columnСостав_заказа = base.Columns["Состав_заказа"];
  768. this.columnДата_заказа = base.Columns["Дата_заказа"];
  769. this.columnДата_доставки = base.Columns["Дата_доставки"];
  770. this.columnПункт_выдачи = base.Columns["Пункт_выдачи"];
  771. this.columnФИО_клиента = base.Columns["ФИО_клиента"];
  772. this.columnКод_для_получения = base.Columns["Код_для_получения"];
  773. this.columnСтатус_заказа = base.Columns["Статус_заказа"];
  774. }
  775. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  776. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  777. private void InitClass() {
  778. this.columnНомер_заказа = new global::System.Data.DataColumn("Номер_заказа", typeof(string), null, global::System.Data.MappingType.Element);
  779. base.Columns.Add(this.columnНомер_заказа);
  780. this.columnСостав_заказа = new global::System.Data.DataColumn("Состав_заказа", typeof(string), null, global::System.Data.MappingType.Element);
  781. base.Columns.Add(this.columnСостав_заказа);
  782. this.columnДата_заказа = new global::System.Data.DataColumn("Дата_заказа", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  783. base.Columns.Add(this.columnДата_заказа);
  784. this.columnДата_доставки = new global::System.Data.DataColumn("Дата_доставки", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  785. base.Columns.Add(this.columnДата_доставки);
  786. this.columnПункт_выдачи = new global::System.Data.DataColumn("Пункт_выдачи", typeof(int), null, global::System.Data.MappingType.Element);
  787. base.Columns.Add(this.columnПункт_выдачи);
  788. this.columnФИО_клиента = new global::System.Data.DataColumn("ФИО_клиента", typeof(string), null, global::System.Data.MappingType.Element);
  789. base.Columns.Add(this.columnФИО_клиента);
  790. this.columnКод_для_получения = new global::System.Data.DataColumn("Код_для_получения", typeof(int), null, global::System.Data.MappingType.Element);
  791. base.Columns.Add(this.columnКод_для_получения);
  792. this.columnСтатус_заказа = new global::System.Data.DataColumn("Статус_заказа", typeof(string), null, global::System.Data.MappingType.Element);
  793. base.Columns.Add(this.columnСтатус_заказа);
  794. this.columnНомер_заказа.AllowDBNull = false;
  795. this.columnНомер_заказа.MaxLength = 50;
  796. this.columnСостав_заказа.AllowDBNull = false;
  797. this.columnСостав_заказа.MaxLength = 50;
  798. this.columnДата_заказа.AllowDBNull = false;
  799. this.columnДата_доставки.AllowDBNull = false;
  800. this.columnПункт_выдачи.AllowDBNull = false;
  801. this.columnФИО_клиента.MaxLength = 50;
  802. this.columnКод_для_получения.AllowDBNull = false;
  803. this.columnСтатус_заказа.AllowDBNull = false;
  804. this.columnСтатус_заказа.MaxLength = 50;
  805. }
  806. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  807. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  808. public Заказ_importRow NewЗаказ_importRow() {
  809. return ((Заказ_importRow)(this.NewRow()));
  810. }
  811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  812. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  813. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  814. return new Заказ_importRow(builder);
  815. }
  816. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  817. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  818. protected override global::System.Type GetRowType() {
  819. return typeof(Заказ_importRow);
  820. }
  821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  822. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  823. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  824. base.OnRowChanged(e);
  825. if ((this.Заказ_importRowChanged != null)) {
  826. this.Заказ_importRowChanged(this, new Заказ_importRowChangeEvent(((Заказ_importRow)(e.Row)), e.Action));
  827. }
  828. }
  829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  830. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  831. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  832. base.OnRowChanging(e);
  833. if ((this.Заказ_importRowChanging != null)) {
  834. this.Заказ_importRowChanging(this, new Заказ_importRowChangeEvent(((Заказ_importRow)(e.Row)), e.Action));
  835. }
  836. }
  837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  839. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  840. base.OnRowDeleted(e);
  841. if ((this.Заказ_importRowDeleted != null)) {
  842. this.Заказ_importRowDeleted(this, new Заказ_importRowChangeEvent(((Заказ_importRow)(e.Row)), e.Action));
  843. }
  844. }
  845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  846. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  847. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  848. base.OnRowDeleting(e);
  849. if ((this.Заказ_importRowDeleting != null)) {
  850. this.Заказ_importRowDeleting(this, new Заказ_importRowChangeEvent(((Заказ_importRow)(e.Row)), e.Action));
  851. }
  852. }
  853. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  854. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  855. public void RemoveЗаказ_importRow(Заказ_importRow row) {
  856. this.Rows.Remove(row);
  857. }
  858. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  859. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  860. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  861. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  862. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  863. IS31YshakovDataSet ds = new IS31YshakovDataSet();
  864. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  865. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  866. any1.MinOccurs = new decimal(0);
  867. any1.MaxOccurs = decimal.MaxValue;
  868. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  869. sequence.Items.Add(any1);
  870. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  871. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  872. any2.MinOccurs = new decimal(1);
  873. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  874. sequence.Items.Add(any2);
  875. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  876. attribute1.Name = "namespace";
  877. attribute1.FixedValue = ds.Namespace;
  878. type.Attributes.Add(attribute1);
  879. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  880. attribute2.Name = "tableTypeName";
  881. attribute2.FixedValue = "Заказ_importDataTable";
  882. type.Attributes.Add(attribute2);
  883. type.Particle = sequence;
  884. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  885. if (xs.Contains(dsSchema.TargetNamespace)) {
  886. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  887. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  888. try {
  889. global::System.Xml.Schema.XmlSchema schema = null;
  890. dsSchema.Write(s1);
  891. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  892. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  893. s2.SetLength(0);
  894. schema.Write(s2);
  895. if ((s1.Length == s2.Length)) {
  896. s1.Position = 0;
  897. s2.Position = 0;
  898. for (; ((s1.Position != s1.Length)
  899. && (s1.ReadByte() == s2.ReadByte())); ) {
  900. ;
  901. }
  902. if ((s1.Position == s1.Length)) {
  903. return type;
  904. }
  905. }
  906. }
  907. }
  908. finally {
  909. if ((s1 != null)) {
  910. s1.Close();
  911. }
  912. if ((s2 != null)) {
  913. s2.Close();
  914. }
  915. }
  916. }
  917. xs.Add(dsSchema);
  918. return type;
  919. }
  920. }
  921. /// <summary>
  922. ///Represents the strongly named DataTable class.
  923. ///</summary>
  924. [global::System.Serializable()]
  925. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  926. public partial class Пункты_выдачи_importDataTable : global::System.Data.TypedTableBase<Пункты_выдачи_importRow> {
  927. private global::System.Data.DataColumn columnid;
  928. private global::System.Data.DataColumn columnГород;
  929. private global::System.Data.DataColumn columnУлица;
  930. private global::System.Data.DataColumn columnНомер;
  931. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  932. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  933. public Пункты_выдачи_importDataTable() {
  934. this.TableName = "Пункты выдачи_import";
  935. this.BeginInit();
  936. this.InitClass();
  937. this.EndInit();
  938. }
  939. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  940. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  941. internal Пункты_выдачи_importDataTable(global::System.Data.DataTable table) {
  942. this.TableName = table.TableName;
  943. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  944. this.CaseSensitive = table.CaseSensitive;
  945. }
  946. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  947. this.Locale = table.Locale;
  948. }
  949. if ((table.Namespace != table.DataSet.Namespace)) {
  950. this.Namespace = table.Namespace;
  951. }
  952. this.Prefix = table.Prefix;
  953. this.MinimumCapacity = table.MinimumCapacity;
  954. }
  955. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  956. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  957. protected Пункты_выдачи_importDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  958. base(info, context) {
  959. this.InitVars();
  960. }
  961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  962. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  963. public global::System.Data.DataColumn idColumn {
  964. get {
  965. return this.columnid;
  966. }
  967. }
  968. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  969. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  970. public global::System.Data.DataColumn ГородColumn {
  971. get {
  972. return this.columnГород;
  973. }
  974. }
  975. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  976. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  977. public global::System.Data.DataColumn УлицаColumn {
  978. get {
  979. return this.columnУлица;
  980. }
  981. }
  982. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  983. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  984. public global::System.Data.DataColumn НомерColumn {
  985. get {
  986. return this.columnНомер;
  987. }
  988. }
  989. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  990. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  991. [global::System.ComponentModel.Browsable(false)]
  992. public int Count {
  993. get {
  994. return this.Rows.Count;
  995. }
  996. }
  997. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  998. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  999. public Пункты_выдачи_importRow this[int index] {
  1000. get {
  1001. return ((Пункты_выдачи_importRow)(this.Rows[index]));
  1002. }
  1003. }
  1004. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1005. public event Пункты_выдачи_importRowChangeEventHandler Пункты_выдачи_importRowChanging;
  1006. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1007. public event Пункты_выдачи_importRowChangeEventHandler Пункты_выдачи_importRowChanged;
  1008. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1009. public event Пункты_выдачи_importRowChangeEventHandler Пункты_выдачи_importRowDeleting;
  1010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1011. public event Пункты_выдачи_importRowChangeEventHandler Пункты_выдачи_importRowDeleted;
  1012. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1013. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1014. public void AddПункты_выдачи_importRow(Пункты_выдачи_importRow row) {
  1015. this.Rows.Add(row);
  1016. }
  1017. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1018. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1019. public Пункты_выдачи_importRow AddПункты_выдачи_importRow(int id, string Город, string Улица, string Номер) {
  1020. Пункты_выдачи_importRow rowПункты_выдачи_importRow = ((Пункты_выдачи_importRow)(this.NewRow()));
  1021. object[] columnValuesArray = new object[] {
  1022. id,
  1023. Город,
  1024. Улица,
  1025. Номер};
  1026. rowПункты_выдачи_importRow.ItemArray = columnValuesArray;
  1027. this.Rows.Add(rowПункты_выдачи_importRow);
  1028. return rowПункты_выдачи_importRow;
  1029. }
  1030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1032. public override global::System.Data.DataTable Clone() {
  1033. Пункты_выдачи_importDataTable cln = ((Пункты_выдачи_importDataTable)(base.Clone()));
  1034. cln.InitVars();
  1035. return cln;
  1036. }
  1037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1038. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1039. protected override global::System.Data.DataTable CreateInstance() {
  1040. return new Пункты_выдачи_importDataTable();
  1041. }
  1042. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1043. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1044. internal void InitVars() {
  1045. this.columnid = base.Columns["id"];
  1046. this.columnГород = base.Columns["Город"];
  1047. this.columnУлица = base.Columns["Улица"];
  1048. this.columnНомер = base.Columns["Номер"];
  1049. }
  1050. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1052. private void InitClass() {
  1053. this.columnid = new global::System.Data.DataColumn("id", typeof(int), null, global::System.Data.MappingType.Element);
  1054. base.Columns.Add(this.columnid);
  1055. this.columnГород = new global::System.Data.DataColumn("Город", typeof(string), null, global::System.Data.MappingType.Element);
  1056. base.Columns.Add(this.columnГород);
  1057. this.columnУлица = new global::System.Data.DataColumn("Улица", typeof(string), null, global::System.Data.MappingType.Element);
  1058. base.Columns.Add(this.columnУлица);
  1059. this.columnНомер = new global::System.Data.DataColumn("Номер", typeof(string), null, global::System.Data.MappingType.Element);
  1060. base.Columns.Add(this.columnНомер);
  1061. this.columnid.AllowDBNull = false;
  1062. this.columnГород.AllowDBNull = false;
  1063. this.columnГород.MaxLength = 50;
  1064. this.columnУлица.AllowDBNull = false;
  1065. this.columnУлица.MaxLength = 50;
  1066. this.columnНомер.MaxLength = 50;
  1067. }
  1068. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1069. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1070. public Пункты_выдачи_importRow NewПункты_выдачи_importRow() {
  1071. return ((Пункты_выдачи_importRow)(this.NewRow()));
  1072. }
  1073. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1074. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1075. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1076. return new Пункты_выдачи_importRow(builder);
  1077. }
  1078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1079. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1080. protected override global::System.Type GetRowType() {
  1081. return typeof(Пункты_выдачи_importRow);
  1082. }
  1083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1085. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1086. base.OnRowChanged(e);
  1087. if ((this.Пункты_выдачи_importRowChanged != null)) {
  1088. this.Пункты_выдачи_importRowChanged(this, new Пункты_выдачи_importRowChangeEvent(((Пункты_выдачи_importRow)(e.Row)), e.Action));
  1089. }
  1090. }
  1091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1093. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1094. base.OnRowChanging(e);
  1095. if ((this.Пункты_выдачи_importRowChanging != null)) {
  1096. this.Пункты_выдачи_importRowChanging(this, new Пункты_выдачи_importRowChangeEvent(((Пункты_выдачи_importRow)(e.Row)), e.Action));
  1097. }
  1098. }
  1099. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1100. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1101. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1102. base.OnRowDeleted(e);
  1103. if ((this.Пункты_выдачи_importRowDeleted != null)) {
  1104. this.Пункты_выдачи_importRowDeleted(this, new Пункты_выдачи_importRowChangeEvent(((Пункты_выдачи_importRow)(e.Row)), e.Action));
  1105. }
  1106. }
  1107. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1108. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1109. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1110. base.OnRowDeleting(e);
  1111. if ((this.Пункты_выдачи_importRowDeleting != null)) {
  1112. this.Пункты_выдачи_importRowDeleting(this, new Пункты_выдачи_importRowChangeEvent(((Пункты_выдачи_importRow)(e.Row)), e.Action));
  1113. }
  1114. }
  1115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1116. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1117. public void RemoveПункты_выдачи_importRow(Пункты_выдачи_importRow row) {
  1118. this.Rows.Remove(row);
  1119. }
  1120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1121. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1122. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1123. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1124. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1125. IS31YshakovDataSet ds = new IS31YshakovDataSet();
  1126. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1127. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1128. any1.MinOccurs = new decimal(0);
  1129. any1.MaxOccurs = decimal.MaxValue;
  1130. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1131. sequence.Items.Add(any1);
  1132. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1133. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1134. any2.MinOccurs = new decimal(1);
  1135. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1136. sequence.Items.Add(any2);
  1137. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1138. attribute1.Name = "namespace";
  1139. attribute1.FixedValue = ds.Namespace;
  1140. type.Attributes.Add(attribute1);
  1141. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1142. attribute2.Name = "tableTypeName";
  1143. attribute2.FixedValue = "Пункты_выдачи_importDataTable";
  1144. type.Attributes.Add(attribute2);
  1145. type.Particle = sequence;
  1146. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1147. if (xs.Contains(dsSchema.TargetNamespace)) {
  1148. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1149. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1150. try {
  1151. global::System.Xml.Schema.XmlSchema schema = null;
  1152. dsSchema.Write(s1);
  1153. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1154. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1155. s2.SetLength(0);
  1156. schema.Write(s2);
  1157. if ((s1.Length == s2.Length)) {
  1158. s1.Position = 0;
  1159. s2.Position = 0;
  1160. for (; ((s1.Position != s1.Length)
  1161. && (s1.ReadByte() == s2.ReadByte())); ) {
  1162. ;
  1163. }
  1164. if ((s1.Position == s1.Length)) {
  1165. return type;
  1166. }
  1167. }
  1168. }
  1169. }
  1170. finally {
  1171. if ((s1 != null)) {
  1172. s1.Close();
  1173. }
  1174. if ((s2 != null)) {
  1175. s2.Close();
  1176. }
  1177. }
  1178. }
  1179. xs.Add(dsSchema);
  1180. return type;
  1181. }
  1182. }
  1183. /// <summary>
  1184. ///Represents the strongly named DataTable class.
  1185. ///</summary>
  1186. [global::System.Serializable()]
  1187. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1188. public partial class Товар_import_СтройматериалыDataTable : global::System.Data.TypedTableBase<Товар_import_СтройматериалыRow> {
  1189. private global::System.Data.DataColumn columnАртикул;
  1190. private global::System.Data.DataColumn columnНаименование;
  1191. private global::System.Data.DataColumn columnЕдиница_измерения;
  1192. private global::System.Data.DataColumn columnСтоимость;
  1193. private global::System.Data.DataColumn columnРазмер_максимально_возможной_скидки;
  1194. private global::System.Data.DataColumn columnПроизводитель;
  1195. private global::System.Data.DataColumn columnПоставщик;
  1196. private global::System.Data.DataColumn columnКатегория_товара;
  1197. private global::System.Data.DataColumn columnДействующая_скидка;
  1198. private global::System.Data.DataColumn columnКол_во_на_складе;
  1199. private global::System.Data.DataColumn columnОписание;
  1200. private global::System.Data.DataColumn columnИзображение;
  1201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1203. public Товар_import_СтройматериалыDataTable() {
  1204. this.TableName = "Товар_import_Стройматериалы";
  1205. this.BeginInit();
  1206. this.InitClass();
  1207. this.EndInit();
  1208. }
  1209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1210. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1211. internal Товар_import_СтройматериалыDataTable(global::System.Data.DataTable table) {
  1212. this.TableName = table.TableName;
  1213. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1214. this.CaseSensitive = table.CaseSensitive;
  1215. }
  1216. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1217. this.Locale = table.Locale;
  1218. }
  1219. if ((table.Namespace != table.DataSet.Namespace)) {
  1220. this.Namespace = table.Namespace;
  1221. }
  1222. this.Prefix = table.Prefix;
  1223. this.MinimumCapacity = table.MinimumCapacity;
  1224. }
  1225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1227. protected Товар_import_СтройматериалыDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1228. base(info, context) {
  1229. this.InitVars();
  1230. }
  1231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1233. public global::System.Data.DataColumn АртикулColumn {
  1234. get {
  1235. return this.columnАртикул;
  1236. }
  1237. }
  1238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1239. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1240. public global::System.Data.DataColumn НаименованиеColumn {
  1241. get {
  1242. return this.columnНаименование;
  1243. }
  1244. }
  1245. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1246. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1247. public global::System.Data.DataColumn Единица_измеренияColumn {
  1248. get {
  1249. return this.columnЕдиница_измерения;
  1250. }
  1251. }
  1252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1254. public global::System.Data.DataColumn СтоимостьColumn {
  1255. get {
  1256. return this.columnСтоимость;
  1257. }
  1258. }
  1259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1260. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1261. public global::System.Data.DataColumn Размер_максимально_возможной_скидкиColumn {
  1262. get {
  1263. return this.columnРазмер_максимально_возможной_скидки;
  1264. }
  1265. }
  1266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1268. public global::System.Data.DataColumn ПроизводительColumn {
  1269. get {
  1270. return this.columnПроизводитель;
  1271. }
  1272. }
  1273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1274. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1275. public global::System.Data.DataColumn ПоставщикColumn {
  1276. get {
  1277. return this.columnПоставщик;
  1278. }
  1279. }
  1280. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1281. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1282. public global::System.Data.DataColumn Категория_товараColumn {
  1283. get {
  1284. return this.columnКатегория_товара;
  1285. }
  1286. }
  1287. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1288. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1289. public global::System.Data.DataColumn Действующая_скидкаColumn {
  1290. get {
  1291. return this.columnДействующая_скидка;
  1292. }
  1293. }
  1294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1296. public global::System.Data.DataColumn Кол_во_на_складеColumn {
  1297. get {
  1298. return this.columnКол_во_на_складе;
  1299. }
  1300. }
  1301. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1302. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1303. public global::System.Data.DataColumn ОписаниеColumn {
  1304. get {
  1305. return this.columnОписание;
  1306. }
  1307. }
  1308. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1309. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1310. public global::System.Data.DataColumn ИзображениеColumn {
  1311. get {
  1312. return this.columnИзображение;
  1313. }
  1314. }
  1315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1316. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1317. [global::System.ComponentModel.Browsable(false)]
  1318. public int Count {
  1319. get {
  1320. return this.Rows.Count;
  1321. }
  1322. }
  1323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1324. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1325. public Товар_import_СтройматериалыRow this[int index] {
  1326. get {
  1327. return ((Товар_import_СтройматериалыRow)(this.Rows[index]));
  1328. }
  1329. }
  1330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1331. public event Товар_import_СтройматериалыRowChangeEventHandler Товар_import_СтройматериалыRowChanging;
  1332. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1333. public event Товар_import_СтройматериалыRowChangeEventHandler Товар_import_СтройматериалыRowChanged;
  1334. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1335. public event Товар_import_СтройматериалыRowChangeEventHandler Товар_import_СтройматериалыRowDeleting;
  1336. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1337. public event Товар_import_СтройматериалыRowChangeEventHandler Товар_import_СтройматериалыRowDeleted;
  1338. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1339. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1340. public void AddТовар_import_СтройматериалыRow(Товар_import_СтройматериалыRow row) {
  1341. this.Rows.Add(row);
  1342. }
  1343. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1344. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1345. public Товар_import_СтройматериалыRow AddТовар_import_СтройматериалыRow(string Артикул, string Наименование, string Единица_измерения, int Стоимость, string Размер_максимально_возможной_скидки, string Производитель, string Поставщик, string Категория_товара, string Действующая_скидка, int Кол_во_на_складе, string Описание, string Изображение) {
  1346. Товар_import_СтройматериалыRow rowТовар_import_СтройматериалыRow = ((Товар_import_СтройматериалыRow)(this.NewRow()));
  1347. object[] columnValuesArray = new object[] {
  1348. Артикул,
  1349. Наименование,
  1350. Единица_измерения,
  1351. Стоимость,
  1352. Размер_максимально_возможной_скидки,
  1353. Производитель,
  1354. Поставщик,
  1355. Категория_товара,
  1356. Действующая_скидка,
  1357. Кол_во_на_складе,
  1358. Описание,
  1359. Изображение};
  1360. rowТовар_import_СтройматериалыRow.ItemArray = columnValuesArray;
  1361. this.Rows.Add(rowТовар_import_СтройматериалыRow);
  1362. return rowТовар_import_СтройматериалыRow;
  1363. }
  1364. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1365. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1366. public override global::System.Data.DataTable Clone() {
  1367. Товар_import_СтройматериалыDataTable cln = ((Товар_import_СтройматериалыDataTable)(base.Clone()));
  1368. cln.InitVars();
  1369. return cln;
  1370. }
  1371. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1372. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1373. protected override global::System.Data.DataTable CreateInstance() {
  1374. return new Товар_import_СтройматериалыDataTable();
  1375. }
  1376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1378. internal void InitVars() {
  1379. this.columnАртикул = base.Columns["Артикул"];
  1380. this.columnНаименование = base.Columns["Наименование"];
  1381. this.columnЕдиница_измерения = base.Columns["Единица_измерения"];
  1382. this.columnСтоимость = base.Columns["Стоимость"];
  1383. this.columnРазмер_максимально_возможной_скидки = base.Columns["Размер_максимально_возможной_скидки"];
  1384. this.columnПроизводитель = base.Columns["Производитель"];
  1385. this.columnПоставщик = base.Columns["Поставщик"];
  1386. this.columnКатегория_товара = base.Columns["Категория_товара"];
  1387. this.columnДействующая_скидка = base.Columns["Действующая_скидка"];
  1388. this.columnКол_во_на_складе = base.Columns["Кол_во_на_складе"];
  1389. this.columnОписание = base.Columns["Описание"];
  1390. this.columnИзображение = base.Columns["Изображение"];
  1391. }
  1392. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1393. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1394. private void InitClass() {
  1395. this.columnАртикул = new global::System.Data.DataColumn("Артикул", typeof(string), null, global::System.Data.MappingType.Element);
  1396. base.Columns.Add(this.columnАртикул);
  1397. this.columnНаименование = new global::System.Data.DataColumn("Наименование", typeof(string), null, global::System.Data.MappingType.Element);
  1398. base.Columns.Add(this.columnНаименование);
  1399. this.columnЕдиница_измерения = new global::System.Data.DataColumn("Единица_измерения", typeof(string), null, global::System.Data.MappingType.Element);
  1400. base.Columns.Add(this.columnЕдиница_измерения);
  1401. this.columnСтоимость = new global::System.Data.DataColumn("Стоимость", typeof(int), null, global::System.Data.MappingType.Element);
  1402. base.Columns.Add(this.columnСтоимость);
  1403. this.columnРазмер_максимально_возможной_скидки = new global::System.Data.DataColumn("Размер_максимально_возможной_скидки", typeof(string), null, global::System.Data.MappingType.Element);
  1404. base.Columns.Add(this.columnРазмер_максимально_возможной_скидки);
  1405. this.columnПроизводитель = new global::System.Data.DataColumn("Производитель", typeof(string), null, global::System.Data.MappingType.Element);
  1406. base.Columns.Add(this.columnПроизводитель);
  1407. this.columnПоставщик = new global::System.Data.DataColumn("Поставщик", typeof(string), null, global::System.Data.MappingType.Element);
  1408. base.Columns.Add(this.columnПоставщик);
  1409. this.columnКатегория_товара = new global::System.Data.DataColumn("Категория_товара", typeof(string), null, global::System.Data.MappingType.Element);
  1410. base.Columns.Add(this.columnКатегория_товара);
  1411. this.columnДействующая_скидка = new global::System.Data.DataColumn("Действующая_скидка", typeof(string), null, global::System.Data.MappingType.Element);
  1412. base.Columns.Add(this.columnДействующая_скидка);
  1413. this.columnКол_во_на_складе = new global::System.Data.DataColumn("Кол_во_на_складе", typeof(int), null, global::System.Data.MappingType.Element);
  1414. base.Columns.Add(this.columnКол_во_на_складе);
  1415. this.columnОписание = new global::System.Data.DataColumn("Описание", typeof(string), null, global::System.Data.MappingType.Element);
  1416. base.Columns.Add(this.columnОписание);
  1417. this.columnИзображение = new global::System.Data.DataColumn("Изображение", typeof(string), null, global::System.Data.MappingType.Element);
  1418. base.Columns.Add(this.columnИзображение);
  1419. this.columnАртикул.MaxLength = 50;
  1420. this.columnНаименование.MaxLength = 50;
  1421. this.columnЕдиница_измерения.MaxLength = 50;
  1422. this.columnРазмер_максимально_возможной_скидки.MaxLength = 50;
  1423. this.columnПроизводитель.MaxLength = 50;
  1424. this.columnПоставщик.MaxLength = 50;
  1425. this.columnКатегория_товара.MaxLength = 50;
  1426. this.columnДействующая_скидка.MaxLength = 50;
  1427. this.columnОписание.MaxLength = 150;
  1428. this.columnИзображение.MaxLength = 50;
  1429. }
  1430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1431. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1432. public Товар_import_СтройматериалыRow NewТовар_import_СтройматериалыRow() {
  1433. return ((Товар_import_СтройматериалыRow)(this.NewRow()));
  1434. }
  1435. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1436. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1437. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1438. return new Товар_import_СтройматериалыRow(builder);
  1439. }
  1440. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1441. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1442. protected override global::System.Type GetRowType() {
  1443. return typeof(Товар_import_СтройматериалыRow);
  1444. }
  1445. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1446. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1447. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1448. base.OnRowChanged(e);
  1449. if ((this.Товар_import_СтройматериалыRowChanged != null)) {
  1450. this.Товар_import_СтройматериалыRowChanged(this, new Товар_import_СтройматериалыRowChangeEvent(((Товар_import_СтройматериалыRow)(e.Row)), e.Action));
  1451. }
  1452. }
  1453. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1454. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1455. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1456. base.OnRowChanging(e);
  1457. if ((this.Товар_import_СтройматериалыRowChanging != null)) {
  1458. this.Товар_import_СтройматериалыRowChanging(this, new Товар_import_СтройматериалыRowChangeEvent(((Товар_import_СтройматериалыRow)(e.Row)), e.Action));
  1459. }
  1460. }
  1461. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1462. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1463. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1464. base.OnRowDeleted(e);
  1465. if ((this.Товар_import_СтройматериалыRowDeleted != null)) {
  1466. this.Товар_import_СтройматериалыRowDeleted(this, new Товар_import_СтройматериалыRowChangeEvent(((Товар_import_СтройматериалыRow)(e.Row)), e.Action));
  1467. }
  1468. }
  1469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1470. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1471. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1472. base.OnRowDeleting(e);
  1473. if ((this.Товар_import_СтройматериалыRowDeleting != null)) {
  1474. this.Товар_import_СтройматериалыRowDeleting(this, new Товар_import_СтройматериалыRowChangeEvent(((Товар_import_СтройматериалыRow)(e.Row)), e.Action));
  1475. }
  1476. }
  1477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1479. public void RemoveТовар_import_СтройматериалыRow(Товар_import_СтройматериалыRow row) {
  1480. this.Rows.Remove(row);
  1481. }
  1482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1484. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1485. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1486. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1487. IS31YshakovDataSet ds = new IS31YshakovDataSet();
  1488. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1489. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1490. any1.MinOccurs = new decimal(0);
  1491. any1.MaxOccurs = decimal.MaxValue;
  1492. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1493. sequence.Items.Add(any1);
  1494. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1495. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1496. any2.MinOccurs = new decimal(1);
  1497. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1498. sequence.Items.Add(any2);
  1499. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1500. attribute1.Name = "namespace";
  1501. attribute1.FixedValue = ds.Namespace;
  1502. type.Attributes.Add(attribute1);
  1503. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1504. attribute2.Name = "tableTypeName";
  1505. attribute2.FixedValue = "Товар_import_СтройматериалыDataTable";
  1506. type.Attributes.Add(attribute2);
  1507. type.Particle = sequence;
  1508. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1509. if (xs.Contains(dsSchema.TargetNamespace)) {
  1510. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1511. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1512. try {
  1513. global::System.Xml.Schema.XmlSchema schema = null;
  1514. dsSchema.Write(s1);
  1515. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1516. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1517. s2.SetLength(0);
  1518. schema.Write(s2);
  1519. if ((s1.Length == s2.Length)) {
  1520. s1.Position = 0;
  1521. s2.Position = 0;
  1522. for (; ((s1.Position != s1.Length)
  1523. && (s1.ReadByte() == s2.ReadByte())); ) {
  1524. ;
  1525. }
  1526. if ((s1.Position == s1.Length)) {
  1527. return type;
  1528. }
  1529. }
  1530. }
  1531. }
  1532. finally {
  1533. if ((s1 != null)) {
  1534. s1.Close();
  1535. }
  1536. if ((s2 != null)) {
  1537. s2.Close();
  1538. }
  1539. }
  1540. }
  1541. xs.Add(dsSchema);
  1542. return type;
  1543. }
  1544. }
  1545. /// <summary>
  1546. ///Represents strongly named DataRow class.
  1547. ///</summary>
  1548. public partial class user_importRow : global::System.Data.DataRow {
  1549. private user_importDataTable tableuser_import;
  1550. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1551. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1552. internal user_importRow(global::System.Data.DataRowBuilder rb) :
  1553. base(rb) {
  1554. this.tableuser_import = ((user_importDataTable)(this.Table));
  1555. }
  1556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1557. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1558. public string Роль_сотрудника {
  1559. get {
  1560. return ((string)(this[this.tableuser_import.Роль_сотрудникаColumn]));
  1561. }
  1562. set {
  1563. this[this.tableuser_import.Роль_сотрудникаColumn] = value;
  1564. }
  1565. }
  1566. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1567. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1568. public string ФИО {
  1569. get {
  1570. return ((string)(this[this.tableuser_import.ФИОColumn]));
  1571. }
  1572. set {
  1573. this[this.tableuser_import.ФИОColumn] = value;
  1574. }
  1575. }
  1576. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1577. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1578. public string Логин {
  1579. get {
  1580. return ((string)(this[this.tableuser_import.ЛогинColumn]));
  1581. }
  1582. set {
  1583. this[this.tableuser_import.ЛогинColumn] = value;
  1584. }
  1585. }
  1586. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1587. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1588. public string Пароль {
  1589. get {
  1590. return ((string)(this[this.tableuser_import.ПарольColumn]));
  1591. }
  1592. set {
  1593. this[this.tableuser_import.ПарольColumn] = value;
  1594. }
  1595. }
  1596. }
  1597. /// <summary>
  1598. ///Represents strongly named DataRow class.
  1599. ///</summary>
  1600. public partial class Заказ_importRow : global::System.Data.DataRow {
  1601. private Заказ_importDataTable tableЗаказ_import;
  1602. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1603. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1604. internal Заказ_importRow(global::System.Data.DataRowBuilder rb) :
  1605. base(rb) {
  1606. this.tableЗаказ_import = ((Заказ_importDataTable)(this.Table));
  1607. }
  1608. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1609. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1610. public string Номер_заказа {
  1611. get {
  1612. return ((string)(this[this.tableЗаказ_import.Номер_заказаColumn]));
  1613. }
  1614. set {
  1615. this[this.tableЗаказ_import.Номер_заказаColumn] = value;
  1616. }
  1617. }
  1618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1619. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1620. public string Состав_заказа {
  1621. get {
  1622. return ((string)(this[this.tableЗаказ_import.Состав_заказаColumn]));
  1623. }
  1624. set {
  1625. this[this.tableЗаказ_import.Состав_заказаColumn] = value;
  1626. }
  1627. }
  1628. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1630. public System.DateTime Дата_заказа {
  1631. get {
  1632. return ((global::System.DateTime)(this[this.tableЗаказ_import.Дата_заказаColumn]));
  1633. }
  1634. set {
  1635. this[this.tableЗаказ_import.Дата_заказаColumn] = value;
  1636. }
  1637. }
  1638. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1639. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1640. public System.DateTime Дата_доставки {
  1641. get {
  1642. return ((global::System.DateTime)(this[this.tableЗаказ_import.Дата_доставкиColumn]));
  1643. }
  1644. set {
  1645. this[this.tableЗаказ_import.Дата_доставкиColumn] = value;
  1646. }
  1647. }
  1648. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1649. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1650. public int Пункт_выдачи {
  1651. get {
  1652. return ((int)(this[this.tableЗаказ_import.Пункт_выдачиColumn]));
  1653. }
  1654. set {
  1655. this[this.tableЗаказ_import.Пункт_выдачиColumn] = value;
  1656. }
  1657. }
  1658. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1659. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1660. public string ФИО_клиента {
  1661. get {
  1662. try {
  1663. return ((string)(this[this.tableЗаказ_import.ФИО_клиентаColumn]));
  1664. }
  1665. catch (global::System.InvalidCastException e) {
  1666. throw new global::System.Data.StrongTypingException("Значение для столбца \'ФИО_клиента\' в таблице \'Заказ_import\' равно DBNull.", e);
  1667. }
  1668. }
  1669. set {
  1670. this[this.tableЗаказ_import.ФИО_клиентаColumn] = value;
  1671. }
  1672. }
  1673. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1674. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1675. public int Код_для_получения {
  1676. get {
  1677. return ((int)(this[this.tableЗаказ_import.Код_для_полученияColumn]));
  1678. }
  1679. set {
  1680. this[this.tableЗаказ_import.Код_для_полученияColumn] = value;
  1681. }
  1682. }
  1683. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1684. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1685. public string Статус_заказа {
  1686. get {
  1687. return ((string)(this[this.tableЗаказ_import.Статус_заказаColumn]));
  1688. }
  1689. set {
  1690. this[this.tableЗаказ_import.Статус_заказаColumn] = value;
  1691. }
  1692. }
  1693. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1694. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1695. public bool IsФИО_клиентаNull() {
  1696. return this.IsNull(this.tableЗаказ_import.ФИО_клиентаColumn);
  1697. }
  1698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1699. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1700. public void SetФИО_клиентаNull() {
  1701. this[this.tableЗаказ_import.ФИО_клиентаColumn] = global::System.Convert.DBNull;
  1702. }
  1703. }
  1704. /// <summary>
  1705. ///Represents strongly named DataRow class.
  1706. ///</summary>
  1707. public partial class Пункты_выдачи_importRow : global::System.Data.DataRow {
  1708. private Пункты_выдачи_importDataTable tableПункты_выдачи_import;
  1709. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1710. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1711. internal Пункты_выдачи_importRow(global::System.Data.DataRowBuilder rb) :
  1712. base(rb) {
  1713. this.tableПункты_выдачи_import = ((Пункты_выдачи_importDataTable)(this.Table));
  1714. }
  1715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1717. public int id {
  1718. get {
  1719. return ((int)(this[this.tableПункты_выдачи_import.idColumn]));
  1720. }
  1721. set {
  1722. this[this.tableПункты_выдачи_import.idColumn] = value;
  1723. }
  1724. }
  1725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1726. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1727. public string Город {
  1728. get {
  1729. return ((string)(this[this.tableПункты_выдачи_import.ГородColumn]));
  1730. }
  1731. set {
  1732. this[this.tableПункты_выдачи_import.ГородColumn] = value;
  1733. }
  1734. }
  1735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1736. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1737. public string Улица {
  1738. get {
  1739. return ((string)(this[this.tableПункты_выдачи_import.УлицаColumn]));
  1740. }
  1741. set {
  1742. this[this.tableПункты_выдачи_import.УлицаColumn] = value;
  1743. }
  1744. }
  1745. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1746. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1747. public string Номер {
  1748. get {
  1749. try {
  1750. return ((string)(this[this.tableПункты_выдачи_import.НомерColumn]));
  1751. }
  1752. catch (global::System.InvalidCastException e) {
  1753. throw new global::System.Data.StrongTypingException("Значение для столбца \'Номер\' в таблице \'Пункты выдачи_import\' равно DBNull.", e);
  1754. }
  1755. }
  1756. set {
  1757. this[this.tableПункты_выдачи_import.НомерColumn] = value;
  1758. }
  1759. }
  1760. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1761. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1762. public bool IsНомерNull() {
  1763. return this.IsNull(this.tableПункты_выдачи_import.НомерColumn);
  1764. }
  1765. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1766. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1767. public void SetНомерNull() {
  1768. this[this.tableПункты_выдачи_import.НомерColumn] = global::System.Convert.DBNull;
  1769. }
  1770. }
  1771. /// <summary>
  1772. ///Represents strongly named DataRow class.
  1773. ///</summary>
  1774. public partial class Товар_import_СтройматериалыRow : global::System.Data.DataRow {
  1775. private Товар_import_СтройматериалыDataTable tableТовар_import_Стройматериалы;
  1776. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1777. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1778. internal Товар_import_СтройматериалыRow(global::System.Data.DataRowBuilder rb) :
  1779. base(rb) {
  1780. this.tableТовар_import_Стройматериалы = ((Товар_import_СтройматериалыDataTable)(this.Table));
  1781. }
  1782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1783. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1784. public string Артикул {
  1785. get {
  1786. try {
  1787. return ((string)(this[this.tableТовар_import_Стройматериалы.АртикулColumn]));
  1788. }
  1789. catch (global::System.InvalidCastException e) {
  1790. throw new global::System.Data.StrongTypingException("Значение для столбца \'Артикул\' в таблице \'Товар_import_Стройматериалы\' равно DBNu" +
  1791. "ll.", e);
  1792. }
  1793. }
  1794. set {
  1795. this[this.tableТовар_import_Стройматериалы.АртикулColumn] = value;
  1796. }
  1797. }
  1798. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1799. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1800. public string Наименование {
  1801. get {
  1802. try {
  1803. return ((string)(this[this.tableТовар_import_Стройматериалы.НаименованиеColumn]));
  1804. }
  1805. catch (global::System.InvalidCastException e) {
  1806. throw new global::System.Data.StrongTypingException("Значение для столбца \'Наименование\' в таблице \'Товар_import_Стройматериалы\' равно" +
  1807. " DBNull.", e);
  1808. }
  1809. }
  1810. set {
  1811. this[this.tableТовар_import_Стройматериалы.НаименованиеColumn] = value;
  1812. }
  1813. }
  1814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1816. public string Единица_измерения {
  1817. get {
  1818. try {
  1819. return ((string)(this[this.tableТовар_import_Стройматериалы.Единица_измеренияColumn]));
  1820. }
  1821. catch (global::System.InvalidCastException e) {
  1822. throw new global::System.Data.StrongTypingException("Значение для столбца \'Единица_измерения\' в таблице \'Товар_import_Стройматериалы\' " +
  1823. "равно DBNull.", e);
  1824. }
  1825. }
  1826. set {
  1827. this[this.tableТовар_import_Стройматериалы.Единица_измеренияColumn] = value;
  1828. }
  1829. }
  1830. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1831. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1832. public int Стоимость {
  1833. get {
  1834. try {
  1835. return ((int)(this[this.tableТовар_import_Стройматериалы.СтоимостьColumn]));
  1836. }
  1837. catch (global::System.InvalidCastException e) {
  1838. throw new global::System.Data.StrongTypingException("Значение для столбца \'Стоимость\' в таблице \'Товар_import_Стройматериалы\' равно DB" +
  1839. "Null.", e);
  1840. }
  1841. }
  1842. set {
  1843. this[this.tableТовар_import_Стройматериалы.СтоимостьColumn] = value;
  1844. }
  1845. }
  1846. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1847. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1848. public string Размер_максимально_возможной_скидки {
  1849. get {
  1850. try {
  1851. return ((string)(this[this.tableТовар_import_Стройматериалы.Размер_максимально_возможной_скидкиColumn]));
  1852. }
  1853. catch (global::System.InvalidCastException e) {
  1854. throw new global::System.Data.StrongTypingException("Значение для столбца \'Размер_максимально_возможной_скидки\' в таблице \'Товар_impor" +
  1855. "t_Стройматериалы\' равно DBNull.", e);
  1856. }
  1857. }
  1858. set {
  1859. this[this.tableТовар_import_Стройматериалы.Размер_максимально_возможной_скидкиColumn] = value;
  1860. }
  1861. }
  1862. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1863. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1864. public string Производитель {
  1865. get {
  1866. try {
  1867. return ((string)(this[this.tableТовар_import_Стройматериалы.ПроизводительColumn]));
  1868. }
  1869. catch (global::System.InvalidCastException e) {
  1870. throw new global::System.Data.StrongTypingException("Значение для столбца \'Производитель\' в таблице \'Товар_import_Стройматериалы\' равн" +
  1871. "о DBNull.", e);
  1872. }
  1873. }
  1874. set {
  1875. this[this.tableТовар_import_Стройматериалы.ПроизводительColumn] = value;
  1876. }
  1877. }
  1878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1879. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1880. public string Поставщик {
  1881. get {
  1882. try {
  1883. return ((string)(this[this.tableТовар_import_Стройматериалы.ПоставщикColumn]));
  1884. }
  1885. catch (global::System.InvalidCastException e) {
  1886. throw new global::System.Data.StrongTypingException("Значение для столбца \'Поставщик\' в таблице \'Товар_import_Стройматериалы\' равно DB" +
  1887. "Null.", e);
  1888. }
  1889. }
  1890. set {
  1891. this[this.tableТовар_import_Стройматериалы.ПоставщикColumn] = value;
  1892. }
  1893. }
  1894. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1895. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1896. public string Категория_товара {
  1897. get {
  1898. try {
  1899. return ((string)(this[this.tableТовар_import_Стройматериалы.Категория_товараColumn]));
  1900. }
  1901. catch (global::System.InvalidCastException e) {
  1902. throw new global::System.Data.StrongTypingException("Значение для столбца \'Категория_товара\' в таблице \'Товар_import_Стройматериалы\' р" +
  1903. "авно DBNull.", e);
  1904. }
  1905. }
  1906. set {
  1907. this[this.tableТовар_import_Стройматериалы.Категория_товараColumn] = value;
  1908. }
  1909. }
  1910. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1911. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1912. public string Действующая_скидка {
  1913. get {
  1914. try {
  1915. return ((string)(this[this.tableТовар_import_Стройматериалы.Действующая_скидкаColumn]));
  1916. }
  1917. catch (global::System.InvalidCastException e) {
  1918. throw new global::System.Data.StrongTypingException("Значение для столбца \'Действующая_скидка\' в таблице \'Товар_import_Стройматериалы\'" +
  1919. " равно DBNull.", e);
  1920. }
  1921. }
  1922. set {
  1923. this[this.tableТовар_import_Стройматериалы.Действующая_скидкаColumn] = value;
  1924. }
  1925. }
  1926. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1927. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1928. public int Кол_во_на_складе {
  1929. get {
  1930. try {
  1931. return ((int)(this[this.tableТовар_import_Стройматериалы.Кол_во_на_складеColumn]));
  1932. }
  1933. catch (global::System.InvalidCastException e) {
  1934. throw new global::System.Data.StrongTypingException("Значение для столбца \'Кол_во_на_складе\' в таблице \'Товар_import_Стройматериалы\' р" +
  1935. "авно DBNull.", e);
  1936. }
  1937. }
  1938. set {
  1939. this[this.tableТовар_import_Стройматериалы.Кол_во_на_складеColumn] = value;
  1940. }
  1941. }
  1942. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1943. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1944. public string Описание {
  1945. get {
  1946. try {
  1947. return ((string)(this[this.tableТовар_import_Стройматериалы.ОписаниеColumn]));
  1948. }
  1949. catch (global::System.InvalidCastException e) {
  1950. throw new global::System.Data.StrongTypingException("Значение для столбца \'Описание\' в таблице \'Товар_import_Стройматериалы\' равно DBN" +
  1951. "ull.", e);
  1952. }
  1953. }
  1954. set {
  1955. this[this.tableТовар_import_Стройматериалы.ОписаниеColumn] = value;
  1956. }
  1957. }
  1958. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1959. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1960. public string Изображение {
  1961. get {
  1962. try {
  1963. return ((string)(this[this.tableТовар_import_Стройматериалы.ИзображениеColumn]));
  1964. }
  1965. catch (global::System.InvalidCastException e) {
  1966. throw new global::System.Data.StrongTypingException("Значение для столбца \'Изображение\' в таблице \'Товар_import_Стройматериалы\' равно " +
  1967. "DBNull.", e);
  1968. }
  1969. }
  1970. set {
  1971. this[this.tableТовар_import_Стройматериалы.ИзображениеColumn] = value;
  1972. }
  1973. }
  1974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1975. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1976. public bool IsАртикулNull() {
  1977. return this.IsNull(this.tableТовар_import_Стройматериалы.АртикулColumn);
  1978. }
  1979. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1980. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1981. public void SetАртикулNull() {
  1982. this[this.tableТовар_import_Стройматериалы.АртикулColumn] = global::System.Convert.DBNull;
  1983. }
  1984. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1985. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1986. public bool IsНаименованиеNull() {
  1987. return this.IsNull(this.tableТовар_import_Стройматериалы.НаименованиеColumn);
  1988. }
  1989. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1990. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1991. public void SetНаименованиеNull() {
  1992. this[this.tableТовар_import_Стройматериалы.НаименованиеColumn] = global::System.Convert.DBNull;
  1993. }
  1994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1995. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1996. public bool IsЕдиница_измеренияNull() {
  1997. return this.IsNull(this.tableТовар_import_Стройматериалы.Единица_измеренияColumn);
  1998. }
  1999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2001. public void SetЕдиница_измеренияNull() {
  2002. this[this.tableТовар_import_Стройматериалы.Единица_измеренияColumn] = global::System.Convert.DBNull;
  2003. }
  2004. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2005. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2006. public bool IsСтоимостьNull() {
  2007. return this.IsNull(this.tableТовар_import_Стройматериалы.СтоимостьColumn);
  2008. }
  2009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2011. public void SetСтоимостьNull() {
  2012. this[this.tableТовар_import_Стройматериалы.СтоимостьColumn] = global::System.Convert.DBNull;
  2013. }
  2014. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2015. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2016. public bool IsРазмер_максимально_возможной_скидкиNull() {
  2017. return this.IsNull(this.tableТовар_import_Стройматериалы.Размер_максимально_возможной_скидкиColumn);
  2018. }
  2019. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2020. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2021. public void SetРазмер_максимально_возможной_скидкиNull() {
  2022. this[this.tableТовар_import_Стройматериалы.Размер_максимально_возможной_скидкиColumn] = global::System.Convert.DBNull;
  2023. }
  2024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2025. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2026. public bool IsПроизводительNull() {
  2027. return this.IsNull(this.tableТовар_import_Стройматериалы.ПроизводительColumn);
  2028. }
  2029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2031. public void SetПроизводительNull() {
  2032. this[this.tableТовар_import_Стройматериалы.ПроизводительColumn] = global::System.Convert.DBNull;
  2033. }
  2034. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2035. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2036. public bool IsПоставщикNull() {
  2037. return this.IsNull(this.tableТовар_import_Стройматериалы.ПоставщикColumn);
  2038. }
  2039. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2041. public void SetПоставщикNull() {
  2042. this[this.tableТовар_import_Стройматериалы.ПоставщикColumn] = global::System.Convert.DBNull;
  2043. }
  2044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2046. public bool IsКатегория_товараNull() {
  2047. return this.IsNull(this.tableТовар_import_Стройматериалы.Категория_товараColumn);
  2048. }
  2049. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2050. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2051. public void SetКатегория_товараNull() {
  2052. this[this.tableТовар_import_Стройматериалы.Категория_товараColumn] = global::System.Convert.DBNull;
  2053. }
  2054. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2055. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2056. public bool IsДействующая_скидкаNull() {
  2057. return this.IsNull(this.tableТовар_import_Стройматериалы.Действующая_скидкаColumn);
  2058. }
  2059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2060. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2061. public void SetДействующая_скидкаNull() {
  2062. this[this.tableТовар_import_Стройматериалы.Действующая_скидкаColumn] = global::System.Convert.DBNull;
  2063. }
  2064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2065. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2066. public bool IsКол_во_на_складеNull() {
  2067. return this.IsNull(this.tableТовар_import_Стройматериалы.Кол_во_на_складеColumn);
  2068. }
  2069. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2070. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2071. public void SetКол_во_на_складеNull() {
  2072. this[this.tableТовар_import_Стройматериалы.Кол_во_на_складеColumn] = global::System.Convert.DBNull;
  2073. }
  2074. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2075. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2076. public bool IsОписаниеNull() {
  2077. return this.IsNull(this.tableТовар_import_Стройматериалы.ОписаниеColumn);
  2078. }
  2079. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2080. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2081. public void SetОписаниеNull() {
  2082. this[this.tableТовар_import_Стройматериалы.ОписаниеColumn] = global::System.Convert.DBNull;
  2083. }
  2084. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2085. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2086. public bool IsИзображениеNull() {
  2087. return this.IsNull(this.tableТовар_import_Стройматериалы.ИзображениеColumn);
  2088. }
  2089. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2090. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2091. public void SetИзображениеNull() {
  2092. this[this.tableТовар_import_Стройматериалы.ИзображениеColumn] = global::System.Convert.DBNull;
  2093. }
  2094. }
  2095. /// <summary>
  2096. ///Row event argument class
  2097. ///</summary>
  2098. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2099. public class user_importRowChangeEvent : global::System.EventArgs {
  2100. private user_importRow eventRow;
  2101. private global::System.Data.DataRowAction eventAction;
  2102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2103. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2104. public user_importRowChangeEvent(user_importRow row, global::System.Data.DataRowAction action) {
  2105. this.eventRow = row;
  2106. this.eventAction = action;
  2107. }
  2108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2110. public user_importRow Row {
  2111. get {
  2112. return this.eventRow;
  2113. }
  2114. }
  2115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2116. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2117. public global::System.Data.DataRowAction Action {
  2118. get {
  2119. return this.eventAction;
  2120. }
  2121. }
  2122. }
  2123. /// <summary>
  2124. ///Row event argument class
  2125. ///</summary>
  2126. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2127. public class Заказ_importRowChangeEvent : global::System.EventArgs {
  2128. private Заказ_importRow eventRow;
  2129. private global::System.Data.DataRowAction eventAction;
  2130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2131. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2132. public Заказ_importRowChangeEvent(Заказ_importRow row, global::System.Data.DataRowAction action) {
  2133. this.eventRow = row;
  2134. this.eventAction = action;
  2135. }
  2136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2137. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2138. public Заказ_importRow Row {
  2139. get {
  2140. return this.eventRow;
  2141. }
  2142. }
  2143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2144. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2145. public global::System.Data.DataRowAction Action {
  2146. get {
  2147. return this.eventAction;
  2148. }
  2149. }
  2150. }
  2151. /// <summary>
  2152. ///Row event argument class
  2153. ///</summary>
  2154. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2155. public class Пункты_выдачи_importRowChangeEvent : global::System.EventArgs {
  2156. private Пункты_выдачи_importRow eventRow;
  2157. private global::System.Data.DataRowAction eventAction;
  2158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2159. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2160. public Пункты_выдачи_importRowChangeEvent(Пункты_выдачи_importRow row, global::System.Data.DataRowAction action) {
  2161. this.eventRow = row;
  2162. this.eventAction = action;
  2163. }
  2164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2165. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2166. public Пункты_выдачи_importRow Row {
  2167. get {
  2168. return this.eventRow;
  2169. }
  2170. }
  2171. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2172. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2173. public global::System.Data.DataRowAction Action {
  2174. get {
  2175. return this.eventAction;
  2176. }
  2177. }
  2178. }
  2179. /// <summary>
  2180. ///Row event argument class
  2181. ///</summary>
  2182. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2183. public class Товар_import_СтройматериалыRowChangeEvent : global::System.EventArgs {
  2184. private Товар_import_СтройматериалыRow eventRow;
  2185. private global::System.Data.DataRowAction eventAction;
  2186. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2187. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2188. public Товар_import_СтройматериалыRowChangeEvent(Товар_import_СтройматериалыRow row, global::System.Data.DataRowAction action) {
  2189. this.eventRow = row;
  2190. this.eventAction = action;
  2191. }
  2192. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2193. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2194. public Товар_import_СтройматериалыRow Row {
  2195. get {
  2196. return this.eventRow;
  2197. }
  2198. }
  2199. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2200. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2201. public global::System.Data.DataRowAction Action {
  2202. get {
  2203. return this.eventAction;
  2204. }
  2205. }
  2206. }
  2207. }
  2208. }
  2209. namespace yshakov.IS31YshakovDataSetTableAdapters {
  2210. /// <summary>
  2211. ///Represents the connection and commands used to retrieve and save data.
  2212. ///</summary>
  2213. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  2214. [global::System.ComponentModel.ToolboxItem(true)]
  2215. [global::System.ComponentModel.DataObjectAttribute(true)]
  2216. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  2217. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  2218. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2219. public partial class user_importTableAdapter : global::System.ComponentModel.Component {
  2220. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  2221. private global::System.Data.SqlClient.SqlConnection _connection;
  2222. private global::System.Data.SqlClient.SqlTransaction _transaction;
  2223. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  2224. private bool _clearBeforeFill;
  2225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2227. public user_importTableAdapter() {
  2228. this.ClearBeforeFill = true;
  2229. }
  2230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2232. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  2233. get {
  2234. if ((this._adapter == null)) {
  2235. this.InitAdapter();
  2236. }
  2237. return this._adapter;
  2238. }
  2239. }
  2240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2241. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2242. internal global::System.Data.SqlClient.SqlConnection Connection {
  2243. get {
  2244. if ((this._connection == null)) {
  2245. this.InitConnection();
  2246. }
  2247. return this._connection;
  2248. }
  2249. set {
  2250. this._connection = value;
  2251. if ((this.Adapter.InsertCommand != null)) {
  2252. this.Adapter.InsertCommand.Connection = value;
  2253. }
  2254. if ((this.Adapter.DeleteCommand != null)) {
  2255. this.Adapter.DeleteCommand.Connection = value;
  2256. }
  2257. if ((this.Adapter.UpdateCommand != null)) {
  2258. this.Adapter.UpdateCommand.Connection = value;
  2259. }
  2260. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2261. if ((this.CommandCollection[i] != null)) {
  2262. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  2263. }
  2264. }
  2265. }
  2266. }
  2267. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2268. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2269. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  2270. get {
  2271. return this._transaction;
  2272. }
  2273. set {
  2274. this._transaction = value;
  2275. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2276. this.CommandCollection[i].Transaction = this._transaction;
  2277. }
  2278. if (((this.Adapter != null)
  2279. && (this.Adapter.DeleteCommand != null))) {
  2280. this.Adapter.DeleteCommand.Transaction = this._transaction;
  2281. }
  2282. if (((this.Adapter != null)
  2283. && (this.Adapter.InsertCommand != null))) {
  2284. this.Adapter.InsertCommand.Transaction = this._transaction;
  2285. }
  2286. if (((this.Adapter != null)
  2287. && (this.Adapter.UpdateCommand != null))) {
  2288. this.Adapter.UpdateCommand.Transaction = this._transaction;
  2289. }
  2290. }
  2291. }
  2292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2293. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2294. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  2295. get {
  2296. if ((this._commandCollection == null)) {
  2297. this.InitCommandCollection();
  2298. }
  2299. return this._commandCollection;
  2300. }
  2301. }
  2302. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2303. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2304. public bool ClearBeforeFill {
  2305. get {
  2306. return this._clearBeforeFill;
  2307. }
  2308. set {
  2309. this._clearBeforeFill = value;
  2310. }
  2311. }
  2312. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2313. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2314. private void InitAdapter() {
  2315. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  2316. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  2317. tableMapping.SourceTable = "Table";
  2318. tableMapping.DataSetTable = "user_import";
  2319. tableMapping.ColumnMappings.Add("Роль_сотрудника", "Роль_сотрудника");
  2320. tableMapping.ColumnMappings.Add("ФИО", "ФИО");
  2321. tableMapping.ColumnMappings.Add("Логин", "Логин");
  2322. tableMapping.ColumnMappings.Add("Пароль", "Пароль");
  2323. this._adapter.TableMappings.Add(tableMapping);
  2324. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  2325. this._adapter.InsertCommand.Connection = this.Connection;
  2326. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[user_import] ([Роль_сотрудника], [ФИО], [Логин], [Пароль]) VAL" +
  2327. "UES (@Роль_сотрудника, @ФИО, @Логин, @Пароль)";
  2328. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  2329. 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, "", "", ""));
  2330. 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, "", "", ""));
  2331. 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, "", "", ""));
  2332. 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, "", "", ""));
  2333. }
  2334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2336. private void InitConnection() {
  2337. this._connection = new global::System.Data.SqlClient.SqlConnection();
  2338. this._connection.ConnectionString = global::yshakov.Properties.Settings.Default.IS31YshakovConnectionString;
  2339. }
  2340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2341. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2342. private void InitCommandCollection() {
  2343. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  2344. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  2345. this._commandCollection[0].Connection = this.Connection;
  2346. this._commandCollection[0].CommandText = "SELECT Роль_сотрудника, ФИО, Логин, Пароль FROM dbo.user_import";
  2347. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  2348. }
  2349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2351. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2352. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  2353. public virtual int Fill(IS31YshakovDataSet.user_importDataTable dataTable) {
  2354. this.Adapter.SelectCommand = this.CommandCollection[0];
  2355. if ((this.ClearBeforeFill == true)) {
  2356. dataTable.Clear();
  2357. }
  2358. int returnValue = this.Adapter.Fill(dataTable);
  2359. return returnValue;
  2360. }
  2361. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2362. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2363. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2364. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  2365. public virtual IS31YshakovDataSet.user_importDataTable GetData() {
  2366. this.Adapter.SelectCommand = this.CommandCollection[0];
  2367. IS31YshakovDataSet.user_importDataTable dataTable = new IS31YshakovDataSet.user_importDataTable();
  2368. this.Adapter.Fill(dataTable);
  2369. return dataTable;
  2370. }
  2371. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2372. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2373. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2374. public virtual int Update(IS31YshakovDataSet.user_importDataTable dataTable) {
  2375. return this.Adapter.Update(dataTable);
  2376. }
  2377. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2378. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2379. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2380. public virtual int Update(IS31YshakovDataSet dataSet) {
  2381. return this.Adapter.Update(dataSet, "user_import");
  2382. }
  2383. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2384. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2385. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2386. public virtual int Update(global::System.Data.DataRow dataRow) {
  2387. return this.Adapter.Update(new global::System.Data.DataRow[] {
  2388. dataRow});
  2389. }
  2390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2392. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2393. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  2394. return this.Adapter.Update(dataRows);
  2395. }
  2396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2398. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2399. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  2400. public virtual int Insert(string Роль_сотрудника, string ФИО, string Логин, string Пароль) {
  2401. if ((Роль_сотрудника == null)) {
  2402. throw new global::System.ArgumentNullException("Роль_сотрудника");
  2403. }
  2404. else {
  2405. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Роль_сотрудника));
  2406. }
  2407. if ((ФИО == null)) {
  2408. throw new global::System.ArgumentNullException("ФИО");
  2409. }
  2410. else {
  2411. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(ФИО));
  2412. }
  2413. if ((Логин == null)) {
  2414. throw new global::System.ArgumentNullException("Логин");
  2415. }
  2416. else {
  2417. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Логин));
  2418. }
  2419. if ((Пароль == null)) {
  2420. throw new global::System.ArgumentNullException("Пароль");
  2421. }
  2422. else {
  2423. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Пароль));
  2424. }
  2425. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  2426. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  2427. != global::System.Data.ConnectionState.Open)) {
  2428. this.Adapter.InsertCommand.Connection.Open();
  2429. }
  2430. try {
  2431. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  2432. return returnValue;
  2433. }
  2434. finally {
  2435. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  2436. this.Adapter.InsertCommand.Connection.Close();
  2437. }
  2438. }
  2439. }
  2440. }
  2441. /// <summary>
  2442. ///Represents the connection and commands used to retrieve and save data.
  2443. ///</summary>
  2444. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  2445. [global::System.ComponentModel.ToolboxItem(true)]
  2446. [global::System.ComponentModel.DataObjectAttribute(true)]
  2447. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  2448. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  2449. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2450. public partial class Заказ_importTableAdapter : global::System.ComponentModel.Component {
  2451. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  2452. private global::System.Data.SqlClient.SqlConnection _connection;
  2453. private global::System.Data.SqlClient.SqlTransaction _transaction;
  2454. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  2455. private bool _clearBeforeFill;
  2456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2457. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2458. public Заказ_importTableAdapter() {
  2459. this.ClearBeforeFill = true;
  2460. }
  2461. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2462. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2463. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  2464. get {
  2465. if ((this._adapter == null)) {
  2466. this.InitAdapter();
  2467. }
  2468. return this._adapter;
  2469. }
  2470. }
  2471. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2473. internal global::System.Data.SqlClient.SqlConnection Connection {
  2474. get {
  2475. if ((this._connection == null)) {
  2476. this.InitConnection();
  2477. }
  2478. return this._connection;
  2479. }
  2480. set {
  2481. this._connection = value;
  2482. if ((this.Adapter.InsertCommand != null)) {
  2483. this.Adapter.InsertCommand.Connection = value;
  2484. }
  2485. if ((this.Adapter.DeleteCommand != null)) {
  2486. this.Adapter.DeleteCommand.Connection = value;
  2487. }
  2488. if ((this.Adapter.UpdateCommand != null)) {
  2489. this.Adapter.UpdateCommand.Connection = value;
  2490. }
  2491. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2492. if ((this.CommandCollection[i] != null)) {
  2493. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  2494. }
  2495. }
  2496. }
  2497. }
  2498. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2499. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2500. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  2501. get {
  2502. return this._transaction;
  2503. }
  2504. set {
  2505. this._transaction = value;
  2506. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2507. this.CommandCollection[i].Transaction = this._transaction;
  2508. }
  2509. if (((this.Adapter != null)
  2510. && (this.Adapter.DeleteCommand != null))) {
  2511. this.Adapter.DeleteCommand.Transaction = this._transaction;
  2512. }
  2513. if (((this.Adapter != null)
  2514. && (this.Adapter.InsertCommand != null))) {
  2515. this.Adapter.InsertCommand.Transaction = this._transaction;
  2516. }
  2517. if (((this.Adapter != null)
  2518. && (this.Adapter.UpdateCommand != null))) {
  2519. this.Adapter.UpdateCommand.Transaction = this._transaction;
  2520. }
  2521. }
  2522. }
  2523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2524. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2525. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  2526. get {
  2527. if ((this._commandCollection == null)) {
  2528. this.InitCommandCollection();
  2529. }
  2530. return this._commandCollection;
  2531. }
  2532. }
  2533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2535. public bool ClearBeforeFill {
  2536. get {
  2537. return this._clearBeforeFill;
  2538. }
  2539. set {
  2540. this._clearBeforeFill = value;
  2541. }
  2542. }
  2543. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2544. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2545. private void InitAdapter() {
  2546. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  2547. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  2548. tableMapping.SourceTable = "Table";
  2549. tableMapping.DataSetTable = "Заказ_import";
  2550. tableMapping.ColumnMappings.Add("Номер_заказа", "Номер_заказа");
  2551. tableMapping.ColumnMappings.Add("Состав_заказа", "Состав_заказа");
  2552. tableMapping.ColumnMappings.Add("Дата_заказа", "Дата_заказа");
  2553. tableMapping.ColumnMappings.Add("Дата_доставки", "Дата_доставки");
  2554. tableMapping.ColumnMappings.Add("Пункт_выдачи", "Пункт_выдачи");
  2555. tableMapping.ColumnMappings.Add("ФИО_клиента", "ФИО_клиента");
  2556. tableMapping.ColumnMappings.Add("Код_для_получения", "Код_для_получения");
  2557. tableMapping.ColumnMappings.Add("Статус_заказа", "Статус_заказа");
  2558. this._adapter.TableMappings.Add(tableMapping);
  2559. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  2560. this._adapter.InsertCommand.Connection = this.Connection;
  2561. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Заказ_import] ([Номер_заказа], [Состав_заказа], [Дата_заказа], [Дата_доставки], [Пункт_выдачи], [ФИО_клиента], [Код_для_получения], [Статус_заказа]) VALUES (@Номер_заказа, @Состав_заказа, @Дата_заказа, @Дата_доставки, @Пункт_выдачи, @ФИО_клиента, @Код_для_получения, @Статус_заказа)";
  2562. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  2563. 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, "", "", ""));
  2564. 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, "", "", ""));
  2565. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дата_заказа", global::System.Data.SqlDbType.DateTime2, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_заказа", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2566. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дата_доставки", global::System.Data.SqlDbType.DateTime2, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_доставки", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2567. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Пункт_выдачи", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Пункт_выдачи", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2568. 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, "", "", ""));
  2569. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_для_получения", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код_для_получения", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2570. 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, "", "", ""));
  2571. }
  2572. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2573. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2574. private void InitConnection() {
  2575. this._connection = new global::System.Data.SqlClient.SqlConnection();
  2576. this._connection.ConnectionString = global::yshakov.Properties.Settings.Default.IS31YshakovConnectionString;
  2577. }
  2578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2580. private void InitCommandCollection() {
  2581. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  2582. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  2583. this._commandCollection[0].Connection = this.Connection;
  2584. this._commandCollection[0].CommandText = "SELECT Номер_заказа, Состав_заказа, Дата_заказа, Дата_доставки, Пункт_выдачи, ФИО" +
  2585. "_клиента, Код_для_получения, Статус_заказа FROM dbo.Заказ_import";
  2586. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  2587. }
  2588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2589. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2590. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2591. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  2592. public virtual int Fill(IS31YshakovDataSet.Заказ_importDataTable dataTable) {
  2593. this.Adapter.SelectCommand = this.CommandCollection[0];
  2594. if ((this.ClearBeforeFill == true)) {
  2595. dataTable.Clear();
  2596. }
  2597. int returnValue = this.Adapter.Fill(dataTable);
  2598. return returnValue;
  2599. }
  2600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2601. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2602. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2603. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  2604. public virtual IS31YshakovDataSet.Заказ_importDataTable GetData() {
  2605. this.Adapter.SelectCommand = this.CommandCollection[0];
  2606. IS31YshakovDataSet.Заказ_importDataTable dataTable = new IS31YshakovDataSet.Заказ_importDataTable();
  2607. this.Adapter.Fill(dataTable);
  2608. return dataTable;
  2609. }
  2610. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2611. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2612. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2613. public virtual int Update(IS31YshakovDataSet.Заказ_importDataTable dataTable) {
  2614. return this.Adapter.Update(dataTable);
  2615. }
  2616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2617. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2618. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2619. public virtual int Update(IS31YshakovDataSet dataSet) {
  2620. return this.Adapter.Update(dataSet, "Заказ_import");
  2621. }
  2622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2623. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2624. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2625. public virtual int Update(global::System.Data.DataRow dataRow) {
  2626. return this.Adapter.Update(new global::System.Data.DataRow[] {
  2627. dataRow});
  2628. }
  2629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2631. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2632. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  2633. return this.Adapter.Update(dataRows);
  2634. }
  2635. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2636. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2637. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2638. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  2639. public virtual int Insert(string Номер_заказа, string Состав_заказа, System.DateTime Дата_заказа, System.DateTime Дата_доставки, int Пункт_выдачи, string ФИО_клиента, int Код_для_получения, string Статус_заказа) {
  2640. if ((Номер_заказа == null)) {
  2641. throw new global::System.ArgumentNullException("Номер_заказа");
  2642. }
  2643. else {
  2644. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Номер_заказа));
  2645. }
  2646. if ((Состав_заказа == null)) {
  2647. throw new global::System.ArgumentNullException("Состав_заказа");
  2648. }
  2649. else {
  2650. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Состав_заказа));
  2651. }
  2652. this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(Дата_заказа));
  2653. this.Adapter.InsertCommand.Parameters[3].Value = ((System.DateTime)(Дата_доставки));
  2654. this.Adapter.InsertCommand.Parameters[4].Value = ((int)(Пункт_выдачи));
  2655. if ((ФИО_клиента == null)) {
  2656. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  2657. }
  2658. else {
  2659. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(ФИО_клиента));
  2660. }
  2661. this.Adapter.InsertCommand.Parameters[6].Value = ((int)(Код_для_получения));
  2662. if ((Статус_заказа == null)) {
  2663. throw new global::System.ArgumentNullException("Статус_заказа");
  2664. }
  2665. else {
  2666. this.Adapter.InsertCommand.Parameters[7].Value = ((string)(Статус_заказа));
  2667. }
  2668. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  2669. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  2670. != global::System.Data.ConnectionState.Open)) {
  2671. this.Adapter.InsertCommand.Connection.Open();
  2672. }
  2673. try {
  2674. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  2675. return returnValue;
  2676. }
  2677. finally {
  2678. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  2679. this.Adapter.InsertCommand.Connection.Close();
  2680. }
  2681. }
  2682. }
  2683. }
  2684. /// <summary>
  2685. ///Represents the connection and commands used to retrieve and save data.
  2686. ///</summary>
  2687. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  2688. [global::System.ComponentModel.ToolboxItem(true)]
  2689. [global::System.ComponentModel.DataObjectAttribute(true)]
  2690. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  2691. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  2692. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2693. public partial class Пункты_выдачи_importTableAdapter : global::System.ComponentModel.Component {
  2694. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  2695. private global::System.Data.SqlClient.SqlConnection _connection;
  2696. private global::System.Data.SqlClient.SqlTransaction _transaction;
  2697. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  2698. private bool _clearBeforeFill;
  2699. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2700. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2701. public Пункты_выдачи_importTableAdapter() {
  2702. this.ClearBeforeFill = true;
  2703. }
  2704. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2705. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2706. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  2707. get {
  2708. if ((this._adapter == null)) {
  2709. this.InitAdapter();
  2710. }
  2711. return this._adapter;
  2712. }
  2713. }
  2714. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2715. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2716. internal global::System.Data.SqlClient.SqlConnection Connection {
  2717. get {
  2718. if ((this._connection == null)) {
  2719. this.InitConnection();
  2720. }
  2721. return this._connection;
  2722. }
  2723. set {
  2724. this._connection = value;
  2725. if ((this.Adapter.InsertCommand != null)) {
  2726. this.Adapter.InsertCommand.Connection = value;
  2727. }
  2728. if ((this.Adapter.DeleteCommand != null)) {
  2729. this.Adapter.DeleteCommand.Connection = value;
  2730. }
  2731. if ((this.Adapter.UpdateCommand != null)) {
  2732. this.Adapter.UpdateCommand.Connection = value;
  2733. }
  2734. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2735. if ((this.CommandCollection[i] != null)) {
  2736. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  2737. }
  2738. }
  2739. }
  2740. }
  2741. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2742. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2743. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  2744. get {
  2745. return this._transaction;
  2746. }
  2747. set {
  2748. this._transaction = value;
  2749. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2750. this.CommandCollection[i].Transaction = this._transaction;
  2751. }
  2752. if (((this.Adapter != null)
  2753. && (this.Adapter.DeleteCommand != null))) {
  2754. this.Adapter.DeleteCommand.Transaction = this._transaction;
  2755. }
  2756. if (((this.Adapter != null)
  2757. && (this.Adapter.InsertCommand != null))) {
  2758. this.Adapter.InsertCommand.Transaction = this._transaction;
  2759. }
  2760. if (((this.Adapter != null)
  2761. && (this.Adapter.UpdateCommand != null))) {
  2762. this.Adapter.UpdateCommand.Transaction = this._transaction;
  2763. }
  2764. }
  2765. }
  2766. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2767. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2768. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  2769. get {
  2770. if ((this._commandCollection == null)) {
  2771. this.InitCommandCollection();
  2772. }
  2773. return this._commandCollection;
  2774. }
  2775. }
  2776. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2777. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2778. public bool ClearBeforeFill {
  2779. get {
  2780. return this._clearBeforeFill;
  2781. }
  2782. set {
  2783. this._clearBeforeFill = value;
  2784. }
  2785. }
  2786. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2787. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2788. private void InitAdapter() {
  2789. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  2790. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  2791. tableMapping.SourceTable = "Table";
  2792. tableMapping.DataSetTable = "Пункты выдачи_import";
  2793. tableMapping.ColumnMappings.Add("id", "id");
  2794. tableMapping.ColumnMappings.Add("Город", "Город");
  2795. tableMapping.ColumnMappings.Add("Улица", "Улица");
  2796. tableMapping.ColumnMappings.Add("Номер", "Номер");
  2797. this._adapter.TableMappings.Add(tableMapping);
  2798. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  2799. this._adapter.InsertCommand.Connection = this.Connection;
  2800. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Пункты выдачи_import] ([id], [Город], [Улица], [Номер]) VALUES" +
  2801. " (@id, @Город, @Улица, @Номер)";
  2802. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  2803. 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, "", "", ""));
  2804. 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, "", "", ""));
  2805. 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, "", "", ""));
  2806. 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, "", "", ""));
  2807. }
  2808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2810. private void InitConnection() {
  2811. this._connection = new global::System.Data.SqlClient.SqlConnection();
  2812. this._connection.ConnectionString = global::yshakov.Properties.Settings.Default.IS31YshakovConnectionString;
  2813. }
  2814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2816. private void InitCommandCollection() {
  2817. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  2818. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  2819. this._commandCollection[0].Connection = this.Connection;
  2820. this._commandCollection[0].CommandText = "SELECT id, Город, Улица, Номер FROM dbo.[Пункты выдачи_import]";
  2821. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  2822. }
  2823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2824. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2825. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2826. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  2827. public virtual int Fill(IS31YshakovDataSet.Пункты_выдачи_importDataTable dataTable) {
  2828. this.Adapter.SelectCommand = this.CommandCollection[0];
  2829. if ((this.ClearBeforeFill == true)) {
  2830. dataTable.Clear();
  2831. }
  2832. int returnValue = this.Adapter.Fill(dataTable);
  2833. return returnValue;
  2834. }
  2835. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2836. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2837. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2838. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  2839. public virtual IS31YshakovDataSet.Пункты_выдачи_importDataTable GetData() {
  2840. this.Adapter.SelectCommand = this.CommandCollection[0];
  2841. IS31YshakovDataSet.Пункты_выдачи_importDataTable dataTable = new IS31YshakovDataSet.Пункты_выдачи_importDataTable();
  2842. this.Adapter.Fill(dataTable);
  2843. return dataTable;
  2844. }
  2845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2846. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2847. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2848. public virtual int Update(IS31YshakovDataSet.Пункты_выдачи_importDataTable dataTable) {
  2849. return this.Adapter.Update(dataTable);
  2850. }
  2851. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2852. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2853. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2854. public virtual int Update(IS31YshakovDataSet dataSet) {
  2855. return this.Adapter.Update(dataSet, "Пункты выдачи_import");
  2856. }
  2857. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2858. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2859. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2860. public virtual int Update(global::System.Data.DataRow dataRow) {
  2861. return this.Adapter.Update(new global::System.Data.DataRow[] {
  2862. dataRow});
  2863. }
  2864. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2865. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2866. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2867. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  2868. return this.Adapter.Update(dataRows);
  2869. }
  2870. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2871. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2872. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2873. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  2874. public virtual int Insert(int id, string Город, string Улица, string Номер) {
  2875. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(id));
  2876. if ((Город == null)) {
  2877. throw new global::System.ArgumentNullException("Город");
  2878. }
  2879. else {
  2880. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Город));
  2881. }
  2882. if ((Улица == null)) {
  2883. throw new global::System.ArgumentNullException("Улица");
  2884. }
  2885. else {
  2886. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Улица));
  2887. }
  2888. if ((Номер == null)) {
  2889. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  2890. }
  2891. else {
  2892. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Номер));
  2893. }
  2894. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  2895. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  2896. != global::System.Data.ConnectionState.Open)) {
  2897. this.Adapter.InsertCommand.Connection.Open();
  2898. }
  2899. try {
  2900. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  2901. return returnValue;
  2902. }
  2903. finally {
  2904. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  2905. this.Adapter.InsertCommand.Connection.Close();
  2906. }
  2907. }
  2908. }
  2909. }
  2910. /// <summary>
  2911. ///Represents the connection and commands used to retrieve and save data.
  2912. ///</summary>
  2913. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  2914. [global::System.ComponentModel.ToolboxItem(true)]
  2915. [global::System.ComponentModel.DataObjectAttribute(true)]
  2916. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  2917. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  2918. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2919. public partial class Товар_import_СтройматериалыTableAdapter : global::System.ComponentModel.Component {
  2920. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  2921. private global::System.Data.SqlClient.SqlConnection _connection;
  2922. private global::System.Data.SqlClient.SqlTransaction _transaction;
  2923. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  2924. private bool _clearBeforeFill;
  2925. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2926. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2927. public Товар_import_СтройматериалыTableAdapter() {
  2928. this.ClearBeforeFill = true;
  2929. }
  2930. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2931. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2932. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  2933. get {
  2934. if ((this._adapter == null)) {
  2935. this.InitAdapter();
  2936. }
  2937. return this._adapter;
  2938. }
  2939. }
  2940. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2941. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2942. internal global::System.Data.SqlClient.SqlConnection Connection {
  2943. get {
  2944. if ((this._connection == null)) {
  2945. this.InitConnection();
  2946. }
  2947. return this._connection;
  2948. }
  2949. set {
  2950. this._connection = value;
  2951. if ((this.Adapter.InsertCommand != null)) {
  2952. this.Adapter.InsertCommand.Connection = value;
  2953. }
  2954. if ((this.Adapter.DeleteCommand != null)) {
  2955. this.Adapter.DeleteCommand.Connection = value;
  2956. }
  2957. if ((this.Adapter.UpdateCommand != null)) {
  2958. this.Adapter.UpdateCommand.Connection = value;
  2959. }
  2960. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2961. if ((this.CommandCollection[i] != null)) {
  2962. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  2963. }
  2964. }
  2965. }
  2966. }
  2967. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2968. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2969. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  2970. get {
  2971. return this._transaction;
  2972. }
  2973. set {
  2974. this._transaction = value;
  2975. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2976. this.CommandCollection[i].Transaction = this._transaction;
  2977. }
  2978. if (((this.Adapter != null)
  2979. && (this.Adapter.DeleteCommand != null))) {
  2980. this.Adapter.DeleteCommand.Transaction = this._transaction;
  2981. }
  2982. if (((this.Adapter != null)
  2983. && (this.Adapter.InsertCommand != null))) {
  2984. this.Adapter.InsertCommand.Transaction = this._transaction;
  2985. }
  2986. if (((this.Adapter != null)
  2987. && (this.Adapter.UpdateCommand != null))) {
  2988. this.Adapter.UpdateCommand.Transaction = this._transaction;
  2989. }
  2990. }
  2991. }
  2992. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2993. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2994. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  2995. get {
  2996. if ((this._commandCollection == null)) {
  2997. this.InitCommandCollection();
  2998. }
  2999. return this._commandCollection;
  3000. }
  3001. }
  3002. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3003. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3004. public bool ClearBeforeFill {
  3005. get {
  3006. return this._clearBeforeFill;
  3007. }
  3008. set {
  3009. this._clearBeforeFill = value;
  3010. }
  3011. }
  3012. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3013. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3014. private void InitAdapter() {
  3015. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  3016. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  3017. tableMapping.SourceTable = "Table";
  3018. tableMapping.DataSetTable = "Товар_import_Стройматериалы";
  3019. tableMapping.ColumnMappings.Add("Артикул", "Артикул");
  3020. tableMapping.ColumnMappings.Add("Наименование", "Наименование");
  3021. tableMapping.ColumnMappings.Add("Единица_измерения", "Единица_измерения");
  3022. tableMapping.ColumnMappings.Add("Стоимость", "Стоимость");
  3023. tableMapping.ColumnMappings.Add("Размер_максимально_возможной_скидки", "Размер_максимально_возможной_скидки");
  3024. tableMapping.ColumnMappings.Add("Производитель", "Производитель");
  3025. tableMapping.ColumnMappings.Add("Поставщик", "Поставщик");
  3026. tableMapping.ColumnMappings.Add("Категория_товара", "Категория_товара");
  3027. tableMapping.ColumnMappings.Add("Действующая_скидка", "Действующая_скидка");
  3028. tableMapping.ColumnMappings.Add("Кол_во_на_складе", "Кол_во_на_складе");
  3029. tableMapping.ColumnMappings.Add("Описание", "Описание");
  3030. tableMapping.ColumnMappings.Add("Изображение", "Изображение");
  3031. this._adapter.TableMappings.Add(tableMapping);
  3032. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  3033. this._adapter.InsertCommand.Connection = this.Connection;
  3034. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Товар_import_Стройматериалы] ([Артикул], [Наименование], [Единица_измерения], [Стоимость], [Размер_максимально_возможной_скидки], [Производитель], [Поставщик], [Категория_товара], [Действующая_скидка], [Кол_во_на_складе], [Описание], [Изображение]) VALUES (@Артикул, @Наименование, @Единица_измерения, @Стоимость, @Размер_максимально_возможной_скидки, @Производитель, @Поставщик, @Категория_товара, @Действующая_скидка, @Кол_во_на_складе, @Описание, @Изображение)";
  3035. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  3036. 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, "", "", ""));
  3037. 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, "", "", ""));
  3038. 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, "", "", ""));
  3039. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Стоимость", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Стоимость", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3040. 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, "", "", ""));
  3041. 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, "", "", ""));
  3042. 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, "", "", ""));
  3043. 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, "", "", ""));
  3044. 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, "", "", ""));
  3045. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Кол_во_на_складе", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Кол_во_на_складе", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3046. 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, "", "", ""));
  3047. 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, "", "", ""));
  3048. }
  3049. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3050. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3051. private void InitConnection() {
  3052. this._connection = new global::System.Data.SqlClient.SqlConnection();
  3053. this._connection.ConnectionString = global::yshakov.Properties.Settings.Default.IS31YshakovConnectionString;
  3054. }
  3055. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3056. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3057. private void InitCommandCollection() {
  3058. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  3059. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  3060. this._commandCollection[0].Connection = this.Connection;
  3061. this._commandCollection[0].CommandText = "SELECT Артикул, Наименование, Единица_измерения, Стоимость, Размер_максимально_во" +
  3062. "зможной_скидки, Производитель, Поставщик, Категория_товара, Действующая_скидка, " +
  3063. "Кол_во_на_складе, Описание, Изображение FROM dbo.Товар_import_Стройматериалы";
  3064. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  3065. }
  3066. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3067. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3068. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3069. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  3070. public virtual int Fill(IS31YshakovDataSet.Товар_import_СтройматериалыDataTable dataTable) {
  3071. this.Adapter.SelectCommand = this.CommandCollection[0];
  3072. if ((this.ClearBeforeFill == true)) {
  3073. dataTable.Clear();
  3074. }
  3075. int returnValue = this.Adapter.Fill(dataTable);
  3076. return returnValue;
  3077. }
  3078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3079. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3080. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3081. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  3082. public virtual IS31YshakovDataSet.Товар_import_СтройматериалыDataTable GetData() {
  3083. this.Adapter.SelectCommand = this.CommandCollection[0];
  3084. IS31YshakovDataSet.Товар_import_СтройматериалыDataTable dataTable = new IS31YshakovDataSet.Товар_import_СтройматериалыDataTable();
  3085. this.Adapter.Fill(dataTable);
  3086. return dataTable;
  3087. }
  3088. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3089. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3090. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3091. public virtual int Update(IS31YshakovDataSet.Товар_import_СтройматериалыDataTable dataTable) {
  3092. return this.Adapter.Update(dataTable);
  3093. }
  3094. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3095. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3096. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3097. public virtual int Update(IS31YshakovDataSet dataSet) {
  3098. return this.Adapter.Update(dataSet, "Товар_import_Стройматериалы");
  3099. }
  3100. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3101. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3102. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3103. public virtual int Update(global::System.Data.DataRow dataRow) {
  3104. return this.Adapter.Update(new global::System.Data.DataRow[] {
  3105. dataRow});
  3106. }
  3107. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3108. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3109. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3110. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  3111. return this.Adapter.Update(dataRows);
  3112. }
  3113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3114. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3115. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3116. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  3117. public virtual int Insert(string Артикул, string Наименование, string Единица_измерения, global::System.Nullable<int> Стоимость, string Размер_максимально_возможной_скидки, string Производитель, string Поставщик, string Категория_товара, string Действующая_скидка, global::System.Nullable<int> Кол_во_на_складе, string Описание, string Изображение) {
  3118. if ((Артикул == null)) {
  3119. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  3120. }
  3121. else {
  3122. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Артикул));
  3123. }
  3124. if ((Наименование == null)) {
  3125. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  3126. }
  3127. else {
  3128. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Наименование));
  3129. }
  3130. if ((Единица_измерения == null)) {
  3131. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  3132. }
  3133. else {
  3134. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Единица_измерения));
  3135. }
  3136. if ((Стоимость.HasValue == true)) {
  3137. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(Стоимость.Value));
  3138. }
  3139. else {
  3140. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  3141. }
  3142. if ((Размер_максимально_возможной_скидки == null)) {
  3143. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  3144. }
  3145. else {
  3146. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Размер_максимально_возможной_скидки));
  3147. }
  3148. if ((Производитель == null)) {
  3149. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  3150. }
  3151. else {
  3152. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Производитель));
  3153. }
  3154. if ((Поставщик == null)) {
  3155. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  3156. }
  3157. else {
  3158. this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Поставщик));
  3159. }
  3160. if ((Категория_товара == null)) {
  3161. this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
  3162. }
  3163. else {
  3164. this.Adapter.InsertCommand.Parameters[7].Value = ((string)(Категория_товара));
  3165. }
  3166. if ((Действующая_скидка == null)) {
  3167. this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
  3168. }
  3169. else {
  3170. this.Adapter.InsertCommand.Parameters[8].Value = ((string)(Действующая_скидка));
  3171. }
  3172. if ((Кол_во_на_складе.HasValue == true)) {
  3173. this.Adapter.InsertCommand.Parameters[9].Value = ((int)(Кол_во_на_складе.Value));
  3174. }
  3175. else {
  3176. this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value;
  3177. }
  3178. if ((Описание == null)) {
  3179. this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value;
  3180. }
  3181. else {
  3182. this.Adapter.InsertCommand.Parameters[10].Value = ((string)(Описание));
  3183. }
  3184. if ((Изображение == null)) {
  3185. this.Adapter.InsertCommand.Parameters[11].Value = global::System.DBNull.Value;
  3186. }
  3187. else {
  3188. this.Adapter.InsertCommand.Parameters[11].Value = ((string)(Изображение));
  3189. }
  3190. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  3191. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3192. != global::System.Data.ConnectionState.Open)) {
  3193. this.Adapter.InsertCommand.Connection.Open();
  3194. }
  3195. try {
  3196. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  3197. return returnValue;
  3198. }
  3199. finally {
  3200. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3201. this.Adapter.InsertCommand.Connection.Close();
  3202. }
  3203. }
  3204. }
  3205. }
  3206. /// <summary>
  3207. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  3208. ///</summary>
  3209. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3210. [global::System.ComponentModel.ToolboxItem(true)]
  3211. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  3212. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3213. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  3214. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  3215. private UpdateOrderOption _updateOrder;
  3216. private user_importTableAdapter _user_importTableAdapter;
  3217. private Заказ_importTableAdapter _заказ_importTableAdapter;
  3218. private Пункты_выдачи_importTableAdapter _пункты_выдачи_importTableAdapter;
  3219. private Товар_import_СтройматериалыTableAdapter _товар_import_СтройматериалыTableAdapter;
  3220. private bool _backupDataSetBeforeUpdate;
  3221. private global::System.Data.IDbConnection _connection;
  3222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3224. public UpdateOrderOption UpdateOrder {
  3225. get {
  3226. return this._updateOrder;
  3227. }
  3228. set {
  3229. this._updateOrder = value;
  3230. }
  3231. }
  3232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3233. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3234. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  3235. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  3236. "a", "System.Drawing.Design.UITypeEditor")]
  3237. public user_importTableAdapter user_importTableAdapter {
  3238. get {
  3239. return this._user_importTableAdapter;
  3240. }
  3241. set {
  3242. this._user_importTableAdapter = value;
  3243. }
  3244. }
  3245. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3246. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3247. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  3248. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  3249. "a", "System.Drawing.Design.UITypeEditor")]
  3250. public Заказ_importTableAdapter Заказ_importTableAdapter {
  3251. get {
  3252. return this._заказ_importTableAdapter;
  3253. }
  3254. set {
  3255. this._заказ_importTableAdapter = value;
  3256. }
  3257. }
  3258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3260. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  3261. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  3262. "a", "System.Drawing.Design.UITypeEditor")]
  3263. public Пункты_выдачи_importTableAdapter Пункты_выдачи_importTableAdapter {
  3264. get {
  3265. return this._пункты_выдачи_importTableAdapter;
  3266. }
  3267. set {
  3268. this._пункты_выдачи_importTableAdapter = value;
  3269. }
  3270. }
  3271. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3272. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3273. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  3274. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  3275. "a", "System.Drawing.Design.UITypeEditor")]
  3276. public Товар_import_СтройматериалыTableAdapter Товар_import_СтройматериалыTableAdapter {
  3277. get {
  3278. return this._товар_import_СтройматериалыTableAdapter;
  3279. }
  3280. set {
  3281. this._товар_import_СтройматериалыTableAdapter = value;
  3282. }
  3283. }
  3284. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3285. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3286. public bool BackupDataSetBeforeUpdate {
  3287. get {
  3288. return this._backupDataSetBeforeUpdate;
  3289. }
  3290. set {
  3291. this._backupDataSetBeforeUpdate = value;
  3292. }
  3293. }
  3294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3296. [global::System.ComponentModel.Browsable(false)]
  3297. public global::System.Data.IDbConnection Connection {
  3298. get {
  3299. if ((this._connection != null)) {
  3300. return this._connection;
  3301. }
  3302. if (((this._user_importTableAdapter != null)
  3303. && (this._user_importTableAdapter.Connection != null))) {
  3304. return this._user_importTableAdapter.Connection;
  3305. }
  3306. if (((this._заказ_importTableAdapter != null)
  3307. && (this._заказ_importTableAdapter.Connection != null))) {
  3308. return this._заказ_importTableAdapter.Connection;
  3309. }
  3310. if (((this._пункты_выдачи_importTableAdapter != null)
  3311. && (this._пункты_выдачи_importTableAdapter.Connection != null))) {
  3312. return this._пункты_выдачи_importTableAdapter.Connection;
  3313. }
  3314. if (((this._товар_import_СтройматериалыTableAdapter != null)
  3315. && (this._товар_import_СтройматериалыTableAdapter.Connection != null))) {
  3316. return this._товар_import_СтройматериалыTableAdapter.Connection;
  3317. }
  3318. return null;
  3319. }
  3320. set {
  3321. this._connection = value;
  3322. }
  3323. }
  3324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3326. [global::System.ComponentModel.Browsable(false)]
  3327. public int TableAdapterInstanceCount {
  3328. get {
  3329. int count = 0;
  3330. if ((this._user_importTableAdapter != null)) {
  3331. count = (count + 1);
  3332. }
  3333. if ((this._заказ_importTableAdapter != null)) {
  3334. count = (count + 1);
  3335. }
  3336. if ((this._пункты_выдачи_importTableAdapter != null)) {
  3337. count = (count + 1);
  3338. }
  3339. if ((this._товар_import_СтройматериалыTableAdapter != null)) {
  3340. count = (count + 1);
  3341. }
  3342. return count;
  3343. }
  3344. }
  3345. /// <summary>
  3346. ///Update rows in top-down order.
  3347. ///</summary>
  3348. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3349. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3350. private int UpdateUpdatedRows(IS31YshakovDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  3351. int result = 0;
  3352. if ((this._user_importTableAdapter != null)) {
  3353. global::System.Data.DataRow[] updatedRows = dataSet.user_import.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  3354. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  3355. if (((updatedRows != null)
  3356. && (0 < updatedRows.Length))) {
  3357. result = (result + this._user_importTableAdapter.Update(updatedRows));
  3358. allChangedRows.AddRange(updatedRows);
  3359. }
  3360. }
  3361. if ((this._заказ_importTableAdapter != null)) {
  3362. global::System.Data.DataRow[] updatedRows = dataSet.Заказ_import.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  3363. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  3364. if (((updatedRows != null)
  3365. && (0 < updatedRows.Length))) {
  3366. result = (result + this._заказ_importTableAdapter.Update(updatedRows));
  3367. allChangedRows.AddRange(updatedRows);
  3368. }
  3369. }
  3370. if ((this._пункты_выдачи_importTableAdapter != null)) {
  3371. global::System.Data.DataRow[] updatedRows = dataSet.Пункты_выдачи_import.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  3372. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  3373. if (((updatedRows != null)
  3374. && (0 < updatedRows.Length))) {
  3375. result = (result + this._пункты_выдачи_importTableAdapter.Update(updatedRows));
  3376. allChangedRows.AddRange(updatedRows);
  3377. }
  3378. }
  3379. if ((this._товар_import_СтройматериалыTableAdapter != null)) {
  3380. global::System.Data.DataRow[] updatedRows = dataSet.Товар_import_Стройматериалы.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  3381. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  3382. if (((updatedRows != null)
  3383. && (0 < updatedRows.Length))) {
  3384. result = (result + this._товар_import_СтройматериалыTableAdapter.Update(updatedRows));
  3385. allChangedRows.AddRange(updatedRows);
  3386. }
  3387. }
  3388. return result;
  3389. }
  3390. /// <summary>
  3391. ///Insert rows in top-down order.
  3392. ///</summary>
  3393. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3394. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3395. private int UpdateInsertedRows(IS31YshakovDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  3396. int result = 0;
  3397. if ((this._user_importTableAdapter != null)) {
  3398. global::System.Data.DataRow[] addedRows = dataSet.user_import.Select(null, null, global::System.Data.DataViewRowState.Added);
  3399. if (((addedRows != null)
  3400. && (0 < addedRows.Length))) {
  3401. result = (result + this._user_importTableAdapter.Update(addedRows));
  3402. allAddedRows.AddRange(addedRows);
  3403. }
  3404. }
  3405. if ((this._заказ_importTableAdapter != null)) {
  3406. global::System.Data.DataRow[] addedRows = dataSet.Заказ_import.Select(null, null, global::System.Data.DataViewRowState.Added);
  3407. if (((addedRows != null)
  3408. && (0 < addedRows.Length))) {
  3409. result = (result + this._заказ_importTableAdapter.Update(addedRows));
  3410. allAddedRows.AddRange(addedRows);
  3411. }
  3412. }
  3413. if ((this._пункты_выдачи_importTableAdapter != null)) {
  3414. global::System.Data.DataRow[] addedRows = dataSet.Пункты_выдачи_import.Select(null, null, global::System.Data.DataViewRowState.Added);
  3415. if (((addedRows != null)
  3416. && (0 < addedRows.Length))) {
  3417. result = (result + this._пункты_выдачи_importTableAdapter.Update(addedRows));
  3418. allAddedRows.AddRange(addedRows);
  3419. }
  3420. }
  3421. if ((this._товар_import_СтройматериалыTableAdapter != null)) {
  3422. global::System.Data.DataRow[] addedRows = dataSet.Товар_import_Стройматериалы.Select(null, null, global::System.Data.DataViewRowState.Added);
  3423. if (((addedRows != null)
  3424. && (0 < addedRows.Length))) {
  3425. result = (result + this._товар_import_СтройматериалыTableAdapter.Update(addedRows));
  3426. allAddedRows.AddRange(addedRows);
  3427. }
  3428. }
  3429. return result;
  3430. }
  3431. /// <summary>
  3432. ///Delete rows in bottom-up order.
  3433. ///</summary>
  3434. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3435. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3436. private int UpdateDeletedRows(IS31YshakovDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  3437. int result = 0;
  3438. if ((this._товар_import_СтройматериалыTableAdapter != null)) {
  3439. global::System.Data.DataRow[] deletedRows = dataSet.Товар_import_Стройматериалы.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  3440. if (((deletedRows != null)
  3441. && (0 < deletedRows.Length))) {
  3442. result = (result + this._товар_import_СтройматериалыTableAdapter.Update(deletedRows));
  3443. allChangedRows.AddRange(deletedRows);
  3444. }
  3445. }
  3446. if ((this._пункты_выдачи_importTableAdapter != null)) {
  3447. global::System.Data.DataRow[] deletedRows = dataSet.Пункты_выдачи_import.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  3448. if (((deletedRows != null)
  3449. && (0 < deletedRows.Length))) {
  3450. result = (result + this._пункты_выдачи_importTableAdapter.Update(deletedRows));
  3451. allChangedRows.AddRange(deletedRows);
  3452. }
  3453. }
  3454. if ((this._заказ_importTableAdapter != null)) {
  3455. global::System.Data.DataRow[] deletedRows = dataSet.Заказ_import.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  3456. if (((deletedRows != null)
  3457. && (0 < deletedRows.Length))) {
  3458. result = (result + this._заказ_importTableAdapter.Update(deletedRows));
  3459. allChangedRows.AddRange(deletedRows);
  3460. }
  3461. }
  3462. if ((this._user_importTableAdapter != null)) {
  3463. global::System.Data.DataRow[] deletedRows = dataSet.user_import.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  3464. if (((deletedRows != null)
  3465. && (0 < deletedRows.Length))) {
  3466. result = (result + this._user_importTableAdapter.Update(deletedRows));
  3467. allChangedRows.AddRange(deletedRows);
  3468. }
  3469. }
  3470. return result;
  3471. }
  3472. /// <summary>
  3473. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  3474. ///</summary>
  3475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3477. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  3478. if (((updatedRows == null)
  3479. || (updatedRows.Length < 1))) {
  3480. return updatedRows;
  3481. }
  3482. if (((allAddedRows == null)
  3483. || (allAddedRows.Count < 1))) {
  3484. return updatedRows;
  3485. }
  3486. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  3487. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  3488. global::System.Data.DataRow row = updatedRows[i];
  3489. if ((allAddedRows.Contains(row) == false)) {
  3490. realUpdatedRows.Add(row);
  3491. }
  3492. }
  3493. return realUpdatedRows.ToArray();
  3494. }
  3495. /// <summary>
  3496. ///Update all changes to the dataset.
  3497. ///</summary>
  3498. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3499. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3500. public virtual int UpdateAll(IS31YshakovDataSet dataSet) {
  3501. if ((dataSet == null)) {
  3502. throw new global::System.ArgumentNullException("dataSet");
  3503. }
  3504. if ((dataSet.HasChanges() == false)) {
  3505. return 0;
  3506. }
  3507. if (((this._user_importTableAdapter != null)
  3508. && (this.MatchTableAdapterConnection(this._user_importTableAdapter.Connection) == false))) {
  3509. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  3510. "r, должны использовать одинаковую строку подключения.");
  3511. }
  3512. if (((this._заказ_importTableAdapter != null)
  3513. && (this.MatchTableAdapterConnection(this._заказ_importTableAdapter.Connection) == false))) {
  3514. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  3515. "r, должны использовать одинаковую строку подключения.");
  3516. }
  3517. if (((this._пункты_выдачи_importTableAdapter != null)
  3518. && (this.MatchTableAdapterConnection(this._пункты_выдачи_importTableAdapter.Connection) == false))) {
  3519. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  3520. "r, должны использовать одинаковую строку подключения.");
  3521. }
  3522. if (((this._товар_import_СтройматериалыTableAdapter != null)
  3523. && (this.MatchTableAdapterConnection(this._товар_import_СтройматериалыTableAdapter.Connection) == false))) {
  3524. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  3525. "r, должны использовать одинаковую строку подключения.");
  3526. }
  3527. global::System.Data.IDbConnection workConnection = this.Connection;
  3528. if ((workConnection == null)) {
  3529. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  3530. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  3531. }
  3532. bool workConnOpened = false;
  3533. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  3534. == global::System.Data.ConnectionState.Broken)) {
  3535. workConnection.Close();
  3536. }
  3537. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  3538. workConnection.Open();
  3539. workConnOpened = true;
  3540. }
  3541. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  3542. if ((workTransaction == null)) {
  3543. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  3544. "и или текущее состояние не позволяет начать транзакцию.");
  3545. }
  3546. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  3547. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  3548. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  3549. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  3550. int result = 0;
  3551. global::System.Data.DataSet backupDataSet = null;
  3552. if (this.BackupDataSetBeforeUpdate) {
  3553. backupDataSet = new global::System.Data.DataSet();
  3554. backupDataSet.Merge(dataSet);
  3555. }
  3556. try {
  3557. // ---- Prepare for update -----------
  3558. //
  3559. if ((this._user_importTableAdapter != null)) {
  3560. revertConnections.Add(this._user_importTableAdapter, this._user_importTableAdapter.Connection);
  3561. this._user_importTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  3562. this._user_importTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  3563. if (this._user_importTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  3564. this._user_importTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  3565. adaptersWithAcceptChangesDuringUpdate.Add(this._user_importTableAdapter.Adapter);
  3566. }
  3567. }
  3568. if ((this._заказ_importTableAdapter != null)) {
  3569. revertConnections.Add(this._заказ_importTableAdapter, this._заказ_importTableAdapter.Connection);
  3570. this._заказ_importTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  3571. this._заказ_importTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  3572. if (this._заказ_importTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  3573. this._заказ_importTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  3574. adaptersWithAcceptChangesDuringUpdate.Add(this._заказ_importTableAdapter.Adapter);
  3575. }
  3576. }
  3577. if ((this._пункты_выдачи_importTableAdapter != null)) {
  3578. revertConnections.Add(this._пункты_выдачи_importTableAdapter, this._пункты_выдачи_importTableAdapter.Connection);
  3579. this._пункты_выдачи_importTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  3580. this._пункты_выдачи_importTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  3581. if (this._пункты_выдачи_importTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  3582. this._пункты_выдачи_importTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  3583. adaptersWithAcceptChangesDuringUpdate.Add(this._пункты_выдачи_importTableAdapter.Adapter);
  3584. }
  3585. }
  3586. if ((this._товар_import_СтройматериалыTableAdapter != null)) {
  3587. revertConnections.Add(this._товар_import_СтройматериалыTableAdapter, this._товар_import_СтройматериалыTableAdapter.Connection);
  3588. this._товар_import_СтройматериалыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  3589. this._товар_import_СтройматериалыTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  3590. if (this._товар_import_СтройматериалыTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  3591. this._товар_import_СтройматериалыTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  3592. adaptersWithAcceptChangesDuringUpdate.Add(this._товар_import_СтройматериалыTableAdapter.Adapter);
  3593. }
  3594. }
  3595. //
  3596. //---- Perform updates -----------
  3597. //
  3598. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  3599. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  3600. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  3601. }
  3602. else {
  3603. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  3604. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  3605. }
  3606. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  3607. //
  3608. //---- Commit updates -----------
  3609. //
  3610. workTransaction.Commit();
  3611. if ((0 < allAddedRows.Count)) {
  3612. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  3613. allAddedRows.CopyTo(rows);
  3614. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  3615. global::System.Data.DataRow row = rows[i];
  3616. row.AcceptChanges();
  3617. }
  3618. }
  3619. if ((0 < allChangedRows.Count)) {
  3620. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  3621. allChangedRows.CopyTo(rows);
  3622. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  3623. global::System.Data.DataRow row = rows[i];
  3624. row.AcceptChanges();
  3625. }
  3626. }
  3627. }
  3628. catch (global::System.Exception ex) {
  3629. workTransaction.Rollback();
  3630. // ---- Restore the dataset -----------
  3631. if (this.BackupDataSetBeforeUpdate) {
  3632. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  3633. dataSet.Clear();
  3634. dataSet.Merge(backupDataSet);
  3635. }
  3636. else {
  3637. if ((0 < allAddedRows.Count)) {
  3638. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  3639. allAddedRows.CopyTo(rows);
  3640. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  3641. global::System.Data.DataRow row = rows[i];
  3642. row.AcceptChanges();
  3643. row.SetAdded();
  3644. }
  3645. }
  3646. }
  3647. throw ex;
  3648. }
  3649. finally {
  3650. if (workConnOpened) {
  3651. workConnection.Close();
  3652. }
  3653. if ((this._user_importTableAdapter != null)) {
  3654. this._user_importTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._user_importTableAdapter]));
  3655. this._user_importTableAdapter.Transaction = null;
  3656. }
  3657. if ((this._заказ_importTableAdapter != null)) {
  3658. this._заказ_importTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._заказ_importTableAdapter]));
  3659. this._заказ_importTableAdapter.Transaction = null;
  3660. }
  3661. if ((this._пункты_выдачи_importTableAdapter != null)) {
  3662. this._пункты_выдачи_importTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._пункты_выдачи_importTableAdapter]));
  3663. this._пункты_выдачи_importTableAdapter.Transaction = null;
  3664. }
  3665. if ((this._товар_import_СтройматериалыTableAdapter != null)) {
  3666. this._товар_import_СтройматериалыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._товар_import_СтройматериалыTableAdapter]));
  3667. this._товар_import_СтройматериалыTableAdapter.Transaction = null;
  3668. }
  3669. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  3670. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  3671. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  3672. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  3673. global::System.Data.Common.DataAdapter adapter = adapters[i];
  3674. adapter.AcceptChangesDuringUpdate = true;
  3675. }
  3676. }
  3677. }
  3678. return result;
  3679. }
  3680. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3681. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3682. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  3683. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  3684. }
  3685. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3686. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3687. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  3688. if ((this._connection != null)) {
  3689. return true;
  3690. }
  3691. if (((this.Connection == null)
  3692. || (inputConnection == null))) {
  3693. return true;
  3694. }
  3695. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  3696. return true;
  3697. }
  3698. return false;
  3699. }
  3700. /// <summary>
  3701. ///Update Order Option
  3702. ///</summary>
  3703. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3704. public enum UpdateOrderOption {
  3705. InsertUpdateDelete = 0,
  3706. UpdateInsertDelete = 1,
  3707. }
  3708. /// <summary>
  3709. ///Used to sort self-referenced table's rows
  3710. ///</summary>
  3711. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3712. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  3713. private global::System.Data.DataRelation _relation;
  3714. private int _childFirst;
  3715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3717. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  3718. this._relation = relation;
  3719. if (childFirst) {
  3720. this._childFirst = -1;
  3721. }
  3722. else {
  3723. this._childFirst = 1;
  3724. }
  3725. }
  3726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3728. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  3729. global::System.Diagnostics.Debug.Assert((row != null));
  3730. global::System.Data.DataRow root = row;
  3731. distance = 0;
  3732. 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>();
  3733. traversedRows[row] = row;
  3734. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  3735. for (
  3736. ; ((parent != null)
  3737. && (traversedRows.ContainsKey(parent) == false));
  3738. ) {
  3739. distance = (distance + 1);
  3740. root = parent;
  3741. traversedRows[parent] = parent;
  3742. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  3743. }
  3744. if ((distance == 0)) {
  3745. traversedRows.Clear();
  3746. traversedRows[row] = row;
  3747. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  3748. for (
  3749. ; ((parent != null)
  3750. && (traversedRows.ContainsKey(parent) == false));
  3751. ) {
  3752. distance = (distance + 1);
  3753. root = parent;
  3754. traversedRows[parent] = parent;
  3755. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  3756. }
  3757. }
  3758. return root;
  3759. }
  3760. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3761. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3762. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  3763. if (object.ReferenceEquals(row1, row2)) {
  3764. return 0;
  3765. }
  3766. if ((row1 == null)) {
  3767. return -1;
  3768. }
  3769. if ((row2 == null)) {
  3770. return 1;
  3771. }
  3772. int distance1 = 0;
  3773. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  3774. int distance2 = 0;
  3775. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  3776. if (object.ReferenceEquals(root1, root2)) {
  3777. return (this._childFirst * distance1.CompareTo(distance2));
  3778. }
  3779. else {
  3780. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  3781. && (root2.Table != null)));
  3782. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  3783. return -1;
  3784. }
  3785. else {
  3786. return 1;
  3787. }
  3788. }
  3789. }
  3790. }
  3791. }
  3792. }
  3793. #pragma warning restore 1591