_14ВариантОбщепитНамурзаевDataSet.Designer.cs 293 KB

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