Lyakhov_Bilet10DataSet.Designer.cs 279 KB

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