_ГЕС_5DataSet.Designer.cs 366 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace ГЕС_5 {
  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("_ГЕС_5DataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class _ГЕС_5DataSet : global::System.Data.DataSet {
  22. private ContractsDataTable tableContracts;
  23. private CustomerDataTable tableCustomer;
  24. private FlowersDataTable tableFlowers;
  25. private OrdersDataTable tableOrders;
  26. private PostavDataTable tablePostav;
  27. private Postav_FlowersDataTable tablePostav_Flowers;
  28. private global::System.Data.DataRelation relationFK_Contracts_Customer;
  29. private global::System.Data.DataRelation relationFK_Contracts_Postav;
  30. private global::System.Data.DataRelation relationFK_Orders_Flowers;
  31. private global::System.Data.DataRelation relationFK_Postav_Flowers_Flowers;
  32. private global::System.Data.DataRelation relationFK_Postav_Flowers_Postav;
  33. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  34. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  35. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  36. public _ГЕС_5DataSet() {
  37. this.BeginInit();
  38. this.InitClass();
  39. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  40. base.Tables.CollectionChanged += schemaChangedHandler;
  41. base.Relations.CollectionChanged += schemaChangedHandler;
  42. this.EndInit();
  43. }
  44. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  45. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  46. protected _ГЕС_5DataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  47. base(info, context, false) {
  48. if ((this.IsBinarySerialized(info, context) == true)) {
  49. this.InitVars(false);
  50. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  51. this.Tables.CollectionChanged += schemaChangedHandler1;
  52. this.Relations.CollectionChanged += schemaChangedHandler1;
  53. return;
  54. }
  55. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  56. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  57. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  58. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  59. if ((ds.Tables["Contracts"] != null)) {
  60. base.Tables.Add(new ContractsDataTable(ds.Tables["Contracts"]));
  61. }
  62. if ((ds.Tables["Customer"] != null)) {
  63. base.Tables.Add(new CustomerDataTable(ds.Tables["Customer"]));
  64. }
  65. if ((ds.Tables["Flowers"] != null)) {
  66. base.Tables.Add(new FlowersDataTable(ds.Tables["Flowers"]));
  67. }
  68. if ((ds.Tables["Orders"] != null)) {
  69. base.Tables.Add(new OrdersDataTable(ds.Tables["Orders"]));
  70. }
  71. if ((ds.Tables["Postav"] != null)) {
  72. base.Tables.Add(new PostavDataTable(ds.Tables["Postav"]));
  73. }
  74. if ((ds.Tables["Postav_Flowers"] != null)) {
  75. base.Tables.Add(new Postav_FlowersDataTable(ds.Tables["Postav_Flowers"]));
  76. }
  77. this.DataSetName = ds.DataSetName;
  78. this.Prefix = ds.Prefix;
  79. this.Namespace = ds.Namespace;
  80. this.Locale = ds.Locale;
  81. this.CaseSensitive = ds.CaseSensitive;
  82. this.EnforceConstraints = ds.EnforceConstraints;
  83. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  84. this.InitVars();
  85. }
  86. else {
  87. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  88. }
  89. this.GetSerializationData(info, context);
  90. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  91. base.Tables.CollectionChanged += schemaChangedHandler;
  92. this.Relations.CollectionChanged += schemaChangedHandler;
  93. }
  94. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  95. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  96. [global::System.ComponentModel.Browsable(false)]
  97. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  98. public ContractsDataTable Contracts {
  99. get {
  100. return this.tableContracts;
  101. }
  102. }
  103. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  104. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  105. [global::System.ComponentModel.Browsable(false)]
  106. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  107. public CustomerDataTable Customer {
  108. get {
  109. return this.tableCustomer;
  110. }
  111. }
  112. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  113. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  114. [global::System.ComponentModel.Browsable(false)]
  115. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  116. public FlowersDataTable Flowers {
  117. get {
  118. return this.tableFlowers;
  119. }
  120. }
  121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  123. [global::System.ComponentModel.Browsable(false)]
  124. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  125. public OrdersDataTable Orders {
  126. get {
  127. return this.tableOrders;
  128. }
  129. }
  130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  131. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  132. [global::System.ComponentModel.Browsable(false)]
  133. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  134. public PostavDataTable Postav {
  135. get {
  136. return this.tablePostav;
  137. }
  138. }
  139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  141. [global::System.ComponentModel.Browsable(false)]
  142. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  143. public Postav_FlowersDataTable Postav_Flowers {
  144. get {
  145. return this.tablePostav_Flowers;
  146. }
  147. }
  148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  150. [global::System.ComponentModel.BrowsableAttribute(true)]
  151. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  152. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  153. get {
  154. return this._schemaSerializationMode;
  155. }
  156. set {
  157. this._schemaSerializationMode = value;
  158. }
  159. }
  160. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  161. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  162. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  163. public new global::System.Data.DataTableCollection Tables {
  164. get {
  165. return base.Tables;
  166. }
  167. }
  168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  169. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  170. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  171. public new global::System.Data.DataRelationCollection Relations {
  172. get {
  173. return base.Relations;
  174. }
  175. }
  176. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  177. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  178. protected override void InitializeDerivedDataSet() {
  179. this.BeginInit();
  180. this.InitClass();
  181. this.EndInit();
  182. }
  183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  185. public override global::System.Data.DataSet Clone() {
  186. _ГЕС_5DataSet cln = ((_ГЕС_5DataSet)(base.Clone()));
  187. cln.InitVars();
  188. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  189. return cln;
  190. }
  191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  192. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  193. protected override bool ShouldSerializeTables() {
  194. return false;
  195. }
  196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  197. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  198. protected override bool ShouldSerializeRelations() {
  199. return false;
  200. }
  201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  203. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  204. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  205. this.Reset();
  206. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  207. ds.ReadXml(reader);
  208. if ((ds.Tables["Contracts"] != null)) {
  209. base.Tables.Add(new ContractsDataTable(ds.Tables["Contracts"]));
  210. }
  211. if ((ds.Tables["Customer"] != null)) {
  212. base.Tables.Add(new CustomerDataTable(ds.Tables["Customer"]));
  213. }
  214. if ((ds.Tables["Flowers"] != null)) {
  215. base.Tables.Add(new FlowersDataTable(ds.Tables["Flowers"]));
  216. }
  217. if ((ds.Tables["Orders"] != null)) {
  218. base.Tables.Add(new OrdersDataTable(ds.Tables["Orders"]));
  219. }
  220. if ((ds.Tables["Postav"] != null)) {
  221. base.Tables.Add(new PostavDataTable(ds.Tables["Postav"]));
  222. }
  223. if ((ds.Tables["Postav_Flowers"] != null)) {
  224. base.Tables.Add(new Postav_FlowersDataTable(ds.Tables["Postav_Flowers"]));
  225. }
  226. this.DataSetName = ds.DataSetName;
  227. this.Prefix = ds.Prefix;
  228. this.Namespace = ds.Namespace;
  229. this.Locale = ds.Locale;
  230. this.CaseSensitive = ds.CaseSensitive;
  231. this.EnforceConstraints = ds.EnforceConstraints;
  232. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  233. this.InitVars();
  234. }
  235. else {
  236. this.ReadXml(reader);
  237. this.InitVars();
  238. }
  239. }
  240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  241. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  242. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  243. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  244. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  245. stream.Position = 0;
  246. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  247. }
  248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  249. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  250. internal void InitVars() {
  251. this.InitVars(true);
  252. }
  253. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  254. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  255. internal void InitVars(bool initTable) {
  256. this.tableContracts = ((ContractsDataTable)(base.Tables["Contracts"]));
  257. if ((initTable == true)) {
  258. if ((this.tableContracts != null)) {
  259. this.tableContracts.InitVars();
  260. }
  261. }
  262. this.tableCustomer = ((CustomerDataTable)(base.Tables["Customer"]));
  263. if ((initTable == true)) {
  264. if ((this.tableCustomer != null)) {
  265. this.tableCustomer.InitVars();
  266. }
  267. }
  268. this.tableFlowers = ((FlowersDataTable)(base.Tables["Flowers"]));
  269. if ((initTable == true)) {
  270. if ((this.tableFlowers != null)) {
  271. this.tableFlowers.InitVars();
  272. }
  273. }
  274. this.tableOrders = ((OrdersDataTable)(base.Tables["Orders"]));
  275. if ((initTable == true)) {
  276. if ((this.tableOrders != null)) {
  277. this.tableOrders.InitVars();
  278. }
  279. }
  280. this.tablePostav = ((PostavDataTable)(base.Tables["Postav"]));
  281. if ((initTable == true)) {
  282. if ((this.tablePostav != null)) {
  283. this.tablePostav.InitVars();
  284. }
  285. }
  286. this.tablePostav_Flowers = ((Postav_FlowersDataTable)(base.Tables["Postav_Flowers"]));
  287. if ((initTable == true)) {
  288. if ((this.tablePostav_Flowers != null)) {
  289. this.tablePostav_Flowers.InitVars();
  290. }
  291. }
  292. this.relationFK_Contracts_Customer = this.Relations["FK_Contracts_Customer"];
  293. this.relationFK_Contracts_Postav = this.Relations["FK_Contracts_Postav"];
  294. this.relationFK_Orders_Flowers = this.Relations["FK_Orders_Flowers"];
  295. this.relationFK_Postav_Flowers_Flowers = this.Relations["FK_Postav_Flowers_Flowers"];
  296. this.relationFK_Postav_Flowers_Postav = this.Relations["FK_Postav_Flowers_Postav"];
  297. }
  298. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  299. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  300. private void InitClass() {
  301. this.DataSetName = "_ГЕС_5DataSet";
  302. this.Prefix = "";
  303. this.Namespace = "http://tempuri.org/_ГЕС_5DataSet.xsd";
  304. this.EnforceConstraints = true;
  305. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  306. this.tableContracts = new ContractsDataTable();
  307. base.Tables.Add(this.tableContracts);
  308. this.tableCustomer = new CustomerDataTable();
  309. base.Tables.Add(this.tableCustomer);
  310. this.tableFlowers = new FlowersDataTable();
  311. base.Tables.Add(this.tableFlowers);
  312. this.tableOrders = new OrdersDataTable();
  313. base.Tables.Add(this.tableOrders);
  314. this.tablePostav = new PostavDataTable();
  315. base.Tables.Add(this.tablePostav);
  316. this.tablePostav_Flowers = new Postav_FlowersDataTable();
  317. base.Tables.Add(this.tablePostav_Flowers);
  318. this.relationFK_Contracts_Customer = new global::System.Data.DataRelation("FK_Contracts_Customer", new global::System.Data.DataColumn[] {
  319. this.tableCustomer.Код_заказчикаColumn}, new global::System.Data.DataColumn[] {
  320. this.tableContracts.Код_заказчикаColumn}, false);
  321. this.Relations.Add(this.relationFK_Contracts_Customer);
  322. this.relationFK_Contracts_Postav = new global::System.Data.DataRelation("FK_Contracts_Postav", new global::System.Data.DataColumn[] {
  323. this.tablePostav.Код_поставщикаColumn}, new global::System.Data.DataColumn[] {
  324. this.tableContracts.Код_поставщикаColumn}, false);
  325. this.Relations.Add(this.relationFK_Contracts_Postav);
  326. this.relationFK_Orders_Flowers = new global::System.Data.DataRelation("FK_Orders_Flowers", new global::System.Data.DataColumn[] {
  327. this.tableFlowers.Код_цветкаColumn}, new global::System.Data.DataColumn[] {
  328. this.tableOrders.Код_цветкаColumn}, false);
  329. this.Relations.Add(this.relationFK_Orders_Flowers);
  330. this.relationFK_Postav_Flowers_Flowers = new global::System.Data.DataRelation("FK_Postav_Flowers_Flowers", new global::System.Data.DataColumn[] {
  331. this.tableFlowers.Код_цветкаColumn}, new global::System.Data.DataColumn[] {
  332. this.tablePostav_Flowers.Код_цветкаColumn}, false);
  333. this.Relations.Add(this.relationFK_Postav_Flowers_Flowers);
  334. this.relationFK_Postav_Flowers_Postav = new global::System.Data.DataRelation("FK_Postav_Flowers_Postav", new global::System.Data.DataColumn[] {
  335. this.tablePostav.Код_поставщикаColumn}, new global::System.Data.DataColumn[] {
  336. this.tablePostav_Flowers.Код_поставщикаColumn}, false);
  337. this.Relations.Add(this.relationFK_Postav_Flowers_Postav);
  338. }
  339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  341. private bool ShouldSerializeContracts() {
  342. return false;
  343. }
  344. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  345. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  346. private bool ShouldSerializeCustomer() {
  347. return false;
  348. }
  349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  351. private bool ShouldSerializeFlowers() {
  352. return false;
  353. }
  354. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  355. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  356. private bool ShouldSerializeOrders() {
  357. return false;
  358. }
  359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  360. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  361. private bool ShouldSerializePostav() {
  362. return false;
  363. }
  364. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  365. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  366. private bool ShouldSerializePostav_Flowers() {
  367. return false;
  368. }
  369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  371. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  372. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  373. this.InitVars();
  374. }
  375. }
  376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  378. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  379. _ГЕС_5DataSet ds = new _ГЕС_5DataSet();
  380. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  381. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  382. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  383. any.Namespace = ds.Namespace;
  384. sequence.Items.Add(any);
  385. type.Particle = sequence;
  386. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  387. if (xs.Contains(dsSchema.TargetNamespace)) {
  388. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  389. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  390. try {
  391. global::System.Xml.Schema.XmlSchema schema = null;
  392. dsSchema.Write(s1);
  393. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  394. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  395. s2.SetLength(0);
  396. schema.Write(s2);
  397. if ((s1.Length == s2.Length)) {
  398. s1.Position = 0;
  399. s2.Position = 0;
  400. for (; ((s1.Position != s1.Length)
  401. && (s1.ReadByte() == s2.ReadByte())); ) {
  402. ;
  403. }
  404. if ((s1.Position == s1.Length)) {
  405. return type;
  406. }
  407. }
  408. }
  409. }
  410. finally {
  411. if ((s1 != null)) {
  412. s1.Close();
  413. }
  414. if ((s2 != null)) {
  415. s2.Close();
  416. }
  417. }
  418. }
  419. xs.Add(dsSchema);
  420. return type;
  421. }
  422. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  423. public delegate void ContractsRowChangeEventHandler(object sender, ContractsRowChangeEvent e);
  424. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  425. public delegate void CustomerRowChangeEventHandler(object sender, CustomerRowChangeEvent e);
  426. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  427. public delegate void FlowersRowChangeEventHandler(object sender, FlowersRowChangeEvent e);
  428. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  429. public delegate void OrdersRowChangeEventHandler(object sender, OrdersRowChangeEvent e);
  430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  431. public delegate void PostavRowChangeEventHandler(object sender, PostavRowChangeEvent e);
  432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  433. public delegate void Postav_FlowersRowChangeEventHandler(object sender, Postav_FlowersRowChangeEvent e);
  434. /// <summary>
  435. ///Represents the strongly named DataTable class.
  436. ///</summary>
  437. [global::System.Serializable()]
  438. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  439. public partial class ContractsDataTable : global::System.Data.TypedTableBase<ContractsRow> {
  440. private global::System.Data.DataColumn columnКод_договора;
  441. private global::System.Data.DataColumn columnНомер_договора;
  442. private global::System.Data.DataColumn columnКод_заказчика;
  443. private global::System.Data.DataColumn columnДата_оформления_договора;
  444. private global::System.Data.DataColumn columnКод_поставщика;
  445. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  446. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  447. public ContractsDataTable() {
  448. this.TableName = "Contracts";
  449. this.BeginInit();
  450. this.InitClass();
  451. this.EndInit();
  452. }
  453. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  454. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  455. internal ContractsDataTable(global::System.Data.DataTable table) {
  456. this.TableName = table.TableName;
  457. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  458. this.CaseSensitive = table.CaseSensitive;
  459. }
  460. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  461. this.Locale = table.Locale;
  462. }
  463. if ((table.Namespace != table.DataSet.Namespace)) {
  464. this.Namespace = table.Namespace;
  465. }
  466. this.Prefix = table.Prefix;
  467. this.MinimumCapacity = table.MinimumCapacity;
  468. }
  469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  470. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  471. protected ContractsDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  472. base(info, context) {
  473. this.InitVars();
  474. }
  475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  477. public global::System.Data.DataColumn Код_договораColumn {
  478. get {
  479. return this.columnКод_договора;
  480. }
  481. }
  482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  484. public global::System.Data.DataColumn Номер_договораColumn {
  485. get {
  486. return this.columnНомер_договора;
  487. }
  488. }
  489. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  490. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  491. public global::System.Data.DataColumn Код_заказчикаColumn {
  492. get {
  493. return this.columnКод_заказчика;
  494. }
  495. }
  496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  497. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  498. public global::System.Data.DataColumn Дата_оформления_договораColumn {
  499. get {
  500. return this.columnДата_оформления_договора;
  501. }
  502. }
  503. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  504. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  505. public global::System.Data.DataColumn Код_поставщикаColumn {
  506. get {
  507. return this.columnКод_поставщика;
  508. }
  509. }
  510. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  511. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  512. [global::System.ComponentModel.Browsable(false)]
  513. public int Count {
  514. get {
  515. return this.Rows.Count;
  516. }
  517. }
  518. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  519. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  520. public ContractsRow this[int index] {
  521. get {
  522. return ((ContractsRow)(this.Rows[index]));
  523. }
  524. }
  525. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  526. public event ContractsRowChangeEventHandler ContractsRowChanging;
  527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  528. public event ContractsRowChangeEventHandler ContractsRowChanged;
  529. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  530. public event ContractsRowChangeEventHandler ContractsRowDeleting;
  531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  532. public event ContractsRowChangeEventHandler ContractsRowDeleted;
  533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  535. public void AddContractsRow(ContractsRow row) {
  536. this.Rows.Add(row);
  537. }
  538. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  539. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  540. public ContractsRow AddContractsRow(int Код_договора, int Номер_договора, CustomerRow parentCustomerRowByFK_Contracts_Customer, System.DateTime Дата_оформления_договора, PostavRow parentPostavRowByFK_Contracts_Postav) {
  541. ContractsRow rowContractsRow = ((ContractsRow)(this.NewRow()));
  542. object[] columnValuesArray = new object[] {
  543. Код_договора,
  544. Номер_договора,
  545. null,
  546. Дата_оформления_договора,
  547. null};
  548. if ((parentCustomerRowByFK_Contracts_Customer != null)) {
  549. columnValuesArray[2] = parentCustomerRowByFK_Contracts_Customer[0];
  550. }
  551. if ((parentPostavRowByFK_Contracts_Postav != null)) {
  552. columnValuesArray[4] = parentPostavRowByFK_Contracts_Postav[0];
  553. }
  554. rowContractsRow.ItemArray = columnValuesArray;
  555. this.Rows.Add(rowContractsRow);
  556. return rowContractsRow;
  557. }
  558. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  559. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  560. public ContractsRow FindByКод_договора(int Код_договора) {
  561. return ((ContractsRow)(this.Rows.Find(new object[] {
  562. Код_договора})));
  563. }
  564. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  565. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  566. public override global::System.Data.DataTable Clone() {
  567. ContractsDataTable cln = ((ContractsDataTable)(base.Clone()));
  568. cln.InitVars();
  569. return cln;
  570. }
  571. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  572. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  573. protected override global::System.Data.DataTable CreateInstance() {
  574. return new ContractsDataTable();
  575. }
  576. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  577. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  578. internal void InitVars() {
  579. this.columnКод_договора = base.Columns["Код договора"];
  580. this.columnНомер_договора = base.Columns["Номер договора"];
  581. this.columnКод_заказчика = base.Columns["Код заказчика"];
  582. this.columnДата_оформления_договора = base.Columns["Дата оформления договора"];
  583. this.columnКод_поставщика = base.Columns["Код поставщика"];
  584. }
  585. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  586. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  587. private void InitClass() {
  588. this.columnКод_договора = new global::System.Data.DataColumn("Код договора", typeof(int), null, global::System.Data.MappingType.Element);
  589. base.Columns.Add(this.columnКод_договора);
  590. this.columnНомер_договора = new global::System.Data.DataColumn("Номер договора", typeof(int), null, global::System.Data.MappingType.Element);
  591. base.Columns.Add(this.columnНомер_договора);
  592. this.columnКод_заказчика = new global::System.Data.DataColumn("Код заказчика", typeof(int), null, global::System.Data.MappingType.Element);
  593. base.Columns.Add(this.columnКод_заказчика);
  594. this.columnДата_оформления_договора = new global::System.Data.DataColumn("Дата оформления договора", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  595. base.Columns.Add(this.columnДата_оформления_договора);
  596. this.columnКод_поставщика = new global::System.Data.DataColumn("Код поставщика", typeof(int), null, global::System.Data.MappingType.Element);
  597. base.Columns.Add(this.columnКод_поставщика);
  598. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  599. this.columnКод_договора}, true));
  600. this.columnКод_договора.AllowDBNull = false;
  601. this.columnКод_договора.Unique = true;
  602. }
  603. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  604. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  605. public ContractsRow NewContractsRow() {
  606. return ((ContractsRow)(this.NewRow()));
  607. }
  608. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  609. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  610. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  611. return new ContractsRow(builder);
  612. }
  613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  614. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  615. protected override global::System.Type GetRowType() {
  616. return typeof(ContractsRow);
  617. }
  618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  619. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  620. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  621. base.OnRowChanged(e);
  622. if ((this.ContractsRowChanged != null)) {
  623. this.ContractsRowChanged(this, new ContractsRowChangeEvent(((ContractsRow)(e.Row)), e.Action));
  624. }
  625. }
  626. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  627. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  628. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  629. base.OnRowChanging(e);
  630. if ((this.ContractsRowChanging != null)) {
  631. this.ContractsRowChanging(this, new ContractsRowChangeEvent(((ContractsRow)(e.Row)), e.Action));
  632. }
  633. }
  634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  636. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  637. base.OnRowDeleted(e);
  638. if ((this.ContractsRowDeleted != null)) {
  639. this.ContractsRowDeleted(this, new ContractsRowChangeEvent(((ContractsRow)(e.Row)), e.Action));
  640. }
  641. }
  642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  644. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  645. base.OnRowDeleting(e);
  646. if ((this.ContractsRowDeleting != null)) {
  647. this.ContractsRowDeleting(this, new ContractsRowChangeEvent(((ContractsRow)(e.Row)), e.Action));
  648. }
  649. }
  650. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  651. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  652. public void RemoveContractsRow(ContractsRow row) {
  653. this.Rows.Remove(row);
  654. }
  655. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  656. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  657. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  658. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  659. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  660. _ГЕС_5DataSet ds = new _ГЕС_5DataSet();
  661. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  662. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  663. any1.MinOccurs = new decimal(0);
  664. any1.MaxOccurs = decimal.MaxValue;
  665. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  666. sequence.Items.Add(any1);
  667. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  668. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  669. any2.MinOccurs = new decimal(1);
  670. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  671. sequence.Items.Add(any2);
  672. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  673. attribute1.Name = "namespace";
  674. attribute1.FixedValue = ds.Namespace;
  675. type.Attributes.Add(attribute1);
  676. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  677. attribute2.Name = "tableTypeName";
  678. attribute2.FixedValue = "ContractsDataTable";
  679. type.Attributes.Add(attribute2);
  680. type.Particle = sequence;
  681. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  682. if (xs.Contains(dsSchema.TargetNamespace)) {
  683. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  684. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  685. try {
  686. global::System.Xml.Schema.XmlSchema schema = null;
  687. dsSchema.Write(s1);
  688. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  689. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  690. s2.SetLength(0);
  691. schema.Write(s2);
  692. if ((s1.Length == s2.Length)) {
  693. s1.Position = 0;
  694. s2.Position = 0;
  695. for (; ((s1.Position != s1.Length)
  696. && (s1.ReadByte() == s2.ReadByte())); ) {
  697. ;
  698. }
  699. if ((s1.Position == s1.Length)) {
  700. return type;
  701. }
  702. }
  703. }
  704. }
  705. finally {
  706. if ((s1 != null)) {
  707. s1.Close();
  708. }
  709. if ((s2 != null)) {
  710. s2.Close();
  711. }
  712. }
  713. }
  714. xs.Add(dsSchema);
  715. return type;
  716. }
  717. }
  718. /// <summary>
  719. ///Represents the strongly named DataTable class.
  720. ///</summary>
  721. [global::System.Serializable()]
  722. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  723. public partial class CustomerDataTable : global::System.Data.TypedTableBase<CustomerRow> {
  724. private global::System.Data.DataColumn columnКод_заказчика;
  725. private global::System.Data.DataColumn columnНазвание_заказчика;
  726. private global::System.Data.DataColumn columnТелефон;
  727. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  728. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  729. public CustomerDataTable() {
  730. this.TableName = "Customer";
  731. this.BeginInit();
  732. this.InitClass();
  733. this.EndInit();
  734. }
  735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  736. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  737. internal CustomerDataTable(global::System.Data.DataTable table) {
  738. this.TableName = table.TableName;
  739. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  740. this.CaseSensitive = table.CaseSensitive;
  741. }
  742. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  743. this.Locale = table.Locale;
  744. }
  745. if ((table.Namespace != table.DataSet.Namespace)) {
  746. this.Namespace = table.Namespace;
  747. }
  748. this.Prefix = table.Prefix;
  749. this.MinimumCapacity = table.MinimumCapacity;
  750. }
  751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  753. protected CustomerDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  754. base(info, context) {
  755. this.InitVars();
  756. }
  757. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  758. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  759. public global::System.Data.DataColumn Код_заказчикаColumn {
  760. get {
  761. return this.columnКод_заказчика;
  762. }
  763. }
  764. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  765. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  766. public global::System.Data.DataColumn Название_заказчикаColumn {
  767. get {
  768. return this.columnНазвание_заказчика;
  769. }
  770. }
  771. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  772. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  773. public global::System.Data.DataColumn ТелефонColumn {
  774. get {
  775. return this.columnТелефон;
  776. }
  777. }
  778. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  779. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  780. [global::System.ComponentModel.Browsable(false)]
  781. public int Count {
  782. get {
  783. return this.Rows.Count;
  784. }
  785. }
  786. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  787. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  788. public CustomerRow this[int index] {
  789. get {
  790. return ((CustomerRow)(this.Rows[index]));
  791. }
  792. }
  793. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  794. public event CustomerRowChangeEventHandler CustomerRowChanging;
  795. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  796. public event CustomerRowChangeEventHandler CustomerRowChanged;
  797. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  798. public event CustomerRowChangeEventHandler CustomerRowDeleting;
  799. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  800. public event CustomerRowChangeEventHandler CustomerRowDeleted;
  801. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  802. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  803. public void AddCustomerRow(CustomerRow row) {
  804. this.Rows.Add(row);
  805. }
  806. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  807. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  808. public CustomerRow AddCustomerRow(int Код_заказчика, string Название_заказчика, string Телефон) {
  809. CustomerRow rowCustomerRow = ((CustomerRow)(this.NewRow()));
  810. object[] columnValuesArray = new object[] {
  811. Код_заказчика,
  812. Название_заказчика,
  813. Телефон};
  814. rowCustomerRow.ItemArray = columnValuesArray;
  815. this.Rows.Add(rowCustomerRow);
  816. return rowCustomerRow;
  817. }
  818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  819. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  820. public CustomerRow FindByКод_заказчика(int Код_заказчика) {
  821. return ((CustomerRow)(this.Rows.Find(new object[] {
  822. Код_заказчика})));
  823. }
  824. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  825. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  826. public override global::System.Data.DataTable Clone() {
  827. CustomerDataTable cln = ((CustomerDataTable)(base.Clone()));
  828. cln.InitVars();
  829. return cln;
  830. }
  831. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  832. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  833. protected override global::System.Data.DataTable CreateInstance() {
  834. return new CustomerDataTable();
  835. }
  836. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  837. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  838. internal void InitVars() {
  839. this.columnКод_заказчика = base.Columns["Код заказчика"];
  840. this.columnНазвание_заказчика = base.Columns["Название заказчика"];
  841. this.columnТелефон = base.Columns["Телефон"];
  842. }
  843. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  844. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  845. private void InitClass() {
  846. this.columnКод_заказчика = new global::System.Data.DataColumn("Код заказчика", typeof(int), null, global::System.Data.MappingType.Element);
  847. base.Columns.Add(this.columnКод_заказчика);
  848. this.columnНазвание_заказчика = new global::System.Data.DataColumn("Название заказчика", typeof(string), null, global::System.Data.MappingType.Element);
  849. base.Columns.Add(this.columnНазвание_заказчика);
  850. this.columnТелефон = new global::System.Data.DataColumn("Телефон", typeof(string), null, global::System.Data.MappingType.Element);
  851. base.Columns.Add(this.columnТелефон);
  852. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  853. this.columnКод_заказчика}, true));
  854. this.columnКод_заказчика.AllowDBNull = false;
  855. this.columnКод_заказчика.Unique = true;
  856. this.columnНазвание_заказчика.MaxLength = 4000;
  857. this.columnТелефон.MaxLength = 30;
  858. }
  859. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  860. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  861. public CustomerRow NewCustomerRow() {
  862. return ((CustomerRow)(this.NewRow()));
  863. }
  864. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  865. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  866. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  867. return new CustomerRow(builder);
  868. }
  869. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  870. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  871. protected override global::System.Type GetRowType() {
  872. return typeof(CustomerRow);
  873. }
  874. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  875. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  876. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  877. base.OnRowChanged(e);
  878. if ((this.CustomerRowChanged != null)) {
  879. this.CustomerRowChanged(this, new CustomerRowChangeEvent(((CustomerRow)(e.Row)), e.Action));
  880. }
  881. }
  882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  883. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  884. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  885. base.OnRowChanging(e);
  886. if ((this.CustomerRowChanging != null)) {
  887. this.CustomerRowChanging(this, new CustomerRowChangeEvent(((CustomerRow)(e.Row)), e.Action));
  888. }
  889. }
  890. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  891. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  892. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  893. base.OnRowDeleted(e);
  894. if ((this.CustomerRowDeleted != null)) {
  895. this.CustomerRowDeleted(this, new CustomerRowChangeEvent(((CustomerRow)(e.Row)), e.Action));
  896. }
  897. }
  898. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  899. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  900. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  901. base.OnRowDeleting(e);
  902. if ((this.CustomerRowDeleting != null)) {
  903. this.CustomerRowDeleting(this, new CustomerRowChangeEvent(((CustomerRow)(e.Row)), e.Action));
  904. }
  905. }
  906. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  907. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  908. public void RemoveCustomerRow(CustomerRow row) {
  909. this.Rows.Remove(row);
  910. }
  911. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  912. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  913. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  914. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  915. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  916. _ГЕС_5DataSet ds = new _ГЕС_5DataSet();
  917. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  918. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  919. any1.MinOccurs = new decimal(0);
  920. any1.MaxOccurs = decimal.MaxValue;
  921. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  922. sequence.Items.Add(any1);
  923. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  924. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  925. any2.MinOccurs = new decimal(1);
  926. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  927. sequence.Items.Add(any2);
  928. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  929. attribute1.Name = "namespace";
  930. attribute1.FixedValue = ds.Namespace;
  931. type.Attributes.Add(attribute1);
  932. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  933. attribute2.Name = "tableTypeName";
  934. attribute2.FixedValue = "CustomerDataTable";
  935. type.Attributes.Add(attribute2);
  936. type.Particle = sequence;
  937. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  938. if (xs.Contains(dsSchema.TargetNamespace)) {
  939. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  940. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  941. try {
  942. global::System.Xml.Schema.XmlSchema schema = null;
  943. dsSchema.Write(s1);
  944. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  945. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  946. s2.SetLength(0);
  947. schema.Write(s2);
  948. if ((s1.Length == s2.Length)) {
  949. s1.Position = 0;
  950. s2.Position = 0;
  951. for (; ((s1.Position != s1.Length)
  952. && (s1.ReadByte() == s2.ReadByte())); ) {
  953. ;
  954. }
  955. if ((s1.Position == s1.Length)) {
  956. return type;
  957. }
  958. }
  959. }
  960. }
  961. finally {
  962. if ((s1 != null)) {
  963. s1.Close();
  964. }
  965. if ((s2 != null)) {
  966. s2.Close();
  967. }
  968. }
  969. }
  970. xs.Add(dsSchema);
  971. return type;
  972. }
  973. }
  974. /// <summary>
  975. ///Represents the strongly named DataTable class.
  976. ///</summary>
  977. [global::System.Serializable()]
  978. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  979. public partial class FlowersDataTable : global::System.Data.TypedTableBase<FlowersRow> {
  980. private global::System.Data.DataColumn columnКод_цветка;
  981. private global::System.Data.DataColumn columnНазвание_цветка;
  982. private global::System.Data.DataColumn _columnЦена_рассады__руб__;
  983. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  984. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  985. public FlowersDataTable() {
  986. this.TableName = "Flowers";
  987. this.BeginInit();
  988. this.InitClass();
  989. this.EndInit();
  990. }
  991. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  992. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  993. internal FlowersDataTable(global::System.Data.DataTable table) {
  994. this.TableName = table.TableName;
  995. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  996. this.CaseSensitive = table.CaseSensitive;
  997. }
  998. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  999. this.Locale = table.Locale;
  1000. }
  1001. if ((table.Namespace != table.DataSet.Namespace)) {
  1002. this.Namespace = table.Namespace;
  1003. }
  1004. this.Prefix = table.Prefix;
  1005. this.MinimumCapacity = table.MinimumCapacity;
  1006. }
  1007. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1008. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1009. protected FlowersDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1010. base(info, context) {
  1011. this.InitVars();
  1012. }
  1013. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1014. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1015. public global::System.Data.DataColumn Код_цветкаColumn {
  1016. get {
  1017. return this.columnКод_цветка;
  1018. }
  1019. }
  1020. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1021. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1022. public global::System.Data.DataColumn Название_цветкаColumn {
  1023. get {
  1024. return this.columnНазвание_цветка;
  1025. }
  1026. }
  1027. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1028. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1029. public global::System.Data.DataColumn _Цена_рассады__руб__Column {
  1030. get {
  1031. return this._columnЦена_рассады__руб__;
  1032. }
  1033. }
  1034. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1035. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1036. [global::System.ComponentModel.Browsable(false)]
  1037. public int Count {
  1038. get {
  1039. return this.Rows.Count;
  1040. }
  1041. }
  1042. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1043. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1044. public FlowersRow this[int index] {
  1045. get {
  1046. return ((FlowersRow)(this.Rows[index]));
  1047. }
  1048. }
  1049. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1050. public event FlowersRowChangeEventHandler FlowersRowChanging;
  1051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1052. public event FlowersRowChangeEventHandler FlowersRowChanged;
  1053. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1054. public event FlowersRowChangeEventHandler FlowersRowDeleting;
  1055. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1056. public event FlowersRowChangeEventHandler FlowersRowDeleted;
  1057. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1058. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1059. public void AddFlowersRow(FlowersRow row) {
  1060. this.Rows.Add(row);
  1061. }
  1062. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1063. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1064. public FlowersRow AddFlowersRow(int Код_цветка, string Название_цветка, decimal _Цена_рассады__руб__) {
  1065. FlowersRow rowFlowersRow = ((FlowersRow)(this.NewRow()));
  1066. object[] columnValuesArray = new object[] {
  1067. Код_цветка,
  1068. Название_цветка,
  1069. _Цена_рассады__руб__};
  1070. rowFlowersRow.ItemArray = columnValuesArray;
  1071. this.Rows.Add(rowFlowersRow);
  1072. return rowFlowersRow;
  1073. }
  1074. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1075. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1076. public FlowersRow FindByКод_цветка(int Код_цветка) {
  1077. return ((FlowersRow)(this.Rows.Find(new object[] {
  1078. Код_цветка})));
  1079. }
  1080. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1081. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1082. public override global::System.Data.DataTable Clone() {
  1083. FlowersDataTable cln = ((FlowersDataTable)(base.Clone()));
  1084. cln.InitVars();
  1085. return cln;
  1086. }
  1087. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1088. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1089. protected override global::System.Data.DataTable CreateInstance() {
  1090. return new FlowersDataTable();
  1091. }
  1092. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1093. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1094. internal void InitVars() {
  1095. this.columnКод_цветка = base.Columns["Код цветка"];
  1096. this.columnНазвание_цветка = base.Columns["Название цветка"];
  1097. this._columnЦена_рассады__руб__ = base.Columns["Цена рассады (руб_)"];
  1098. }
  1099. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1100. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1101. private void InitClass() {
  1102. this.columnКод_цветка = new global::System.Data.DataColumn("Код цветка", typeof(int), null, global::System.Data.MappingType.Element);
  1103. base.Columns.Add(this.columnКод_цветка);
  1104. this.columnНазвание_цветка = new global::System.Data.DataColumn("Название цветка", typeof(string), null, global::System.Data.MappingType.Element);
  1105. base.Columns.Add(this.columnНазвание_цветка);
  1106. this._columnЦена_рассады__руб__ = new global::System.Data.DataColumn("Цена рассады (руб_)", typeof(decimal), null, global::System.Data.MappingType.Element);
  1107. this._columnЦена_рассады__руб__.ExtendedProperties.Add("Generator_ColumnVarNameInTable", "_columnЦена_рассады__руб__");
  1108. this._columnЦена_рассады__руб__.ExtendedProperties.Add("Generator_UserColumnName", "Цена рассады (руб_)");
  1109. base.Columns.Add(this._columnЦена_рассады__руб__);
  1110. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1111. this.columnКод_цветка}, true));
  1112. this.columnКод_цветка.AllowDBNull = false;
  1113. this.columnКод_цветка.Unique = true;
  1114. this.columnНазвание_цветка.MaxLength = 4000;
  1115. }
  1116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1118. public FlowersRow NewFlowersRow() {
  1119. return ((FlowersRow)(this.NewRow()));
  1120. }
  1121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1123. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1124. return new FlowersRow(builder);
  1125. }
  1126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1128. protected override global::System.Type GetRowType() {
  1129. return typeof(FlowersRow);
  1130. }
  1131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1132. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1133. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1134. base.OnRowChanged(e);
  1135. if ((this.FlowersRowChanged != null)) {
  1136. this.FlowersRowChanged(this, new FlowersRowChangeEvent(((FlowersRow)(e.Row)), e.Action));
  1137. }
  1138. }
  1139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1141. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1142. base.OnRowChanging(e);
  1143. if ((this.FlowersRowChanging != null)) {
  1144. this.FlowersRowChanging(this, new FlowersRowChangeEvent(((FlowersRow)(e.Row)), e.Action));
  1145. }
  1146. }
  1147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1149. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1150. base.OnRowDeleted(e);
  1151. if ((this.FlowersRowDeleted != null)) {
  1152. this.FlowersRowDeleted(this, new FlowersRowChangeEvent(((FlowersRow)(e.Row)), e.Action));
  1153. }
  1154. }
  1155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1156. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1157. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1158. base.OnRowDeleting(e);
  1159. if ((this.FlowersRowDeleting != null)) {
  1160. this.FlowersRowDeleting(this, new FlowersRowChangeEvent(((FlowersRow)(e.Row)), e.Action));
  1161. }
  1162. }
  1163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1164. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1165. public void RemoveFlowersRow(FlowersRow row) {
  1166. this.Rows.Remove(row);
  1167. }
  1168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1169. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1170. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1171. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1172. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1173. _ГЕС_5DataSet ds = new _ГЕС_5DataSet();
  1174. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1175. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1176. any1.MinOccurs = new decimal(0);
  1177. any1.MaxOccurs = decimal.MaxValue;
  1178. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1179. sequence.Items.Add(any1);
  1180. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1181. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1182. any2.MinOccurs = new decimal(1);
  1183. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1184. sequence.Items.Add(any2);
  1185. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1186. attribute1.Name = "namespace";
  1187. attribute1.FixedValue = ds.Namespace;
  1188. type.Attributes.Add(attribute1);
  1189. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1190. attribute2.Name = "tableTypeName";
  1191. attribute2.FixedValue = "FlowersDataTable";
  1192. type.Attributes.Add(attribute2);
  1193. type.Particle = sequence;
  1194. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1195. if (xs.Contains(dsSchema.TargetNamespace)) {
  1196. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1197. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1198. try {
  1199. global::System.Xml.Schema.XmlSchema schema = null;
  1200. dsSchema.Write(s1);
  1201. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1202. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1203. s2.SetLength(0);
  1204. schema.Write(s2);
  1205. if ((s1.Length == s2.Length)) {
  1206. s1.Position = 0;
  1207. s2.Position = 0;
  1208. for (; ((s1.Position != s1.Length)
  1209. && (s1.ReadByte() == s2.ReadByte())); ) {
  1210. ;
  1211. }
  1212. if ((s1.Position == s1.Length)) {
  1213. return type;
  1214. }
  1215. }
  1216. }
  1217. }
  1218. finally {
  1219. if ((s1 != null)) {
  1220. s1.Close();
  1221. }
  1222. if ((s2 != null)) {
  1223. s2.Close();
  1224. }
  1225. }
  1226. }
  1227. xs.Add(dsSchema);
  1228. return type;
  1229. }
  1230. }
  1231. /// <summary>
  1232. ///Represents the strongly named DataTable class.
  1233. ///</summary>
  1234. [global::System.Serializable()]
  1235. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1236. public partial class OrdersDataTable : global::System.Data.TypedTableBase<OrdersRow> {
  1237. private global::System.Data.DataColumn columnНомер_заказчика;
  1238. private global::System.Data.DataColumn columnКод_цветка;
  1239. private global::System.Data.DataColumn _columnРассады__кол_во_цветков_;
  1240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1241. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1242. public OrdersDataTable() {
  1243. this.TableName = "Orders";
  1244. this.BeginInit();
  1245. this.InitClass();
  1246. this.EndInit();
  1247. }
  1248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1249. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1250. internal OrdersDataTable(global::System.Data.DataTable table) {
  1251. this.TableName = table.TableName;
  1252. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1253. this.CaseSensitive = table.CaseSensitive;
  1254. }
  1255. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1256. this.Locale = table.Locale;
  1257. }
  1258. if ((table.Namespace != table.DataSet.Namespace)) {
  1259. this.Namespace = table.Namespace;
  1260. }
  1261. this.Prefix = table.Prefix;
  1262. this.MinimumCapacity = table.MinimumCapacity;
  1263. }
  1264. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1265. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1266. protected OrdersDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1267. base(info, context) {
  1268. this.InitVars();
  1269. }
  1270. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1271. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1272. public global::System.Data.DataColumn Номер_заказчикаColumn {
  1273. get {
  1274. return this.columnНомер_заказчика;
  1275. }
  1276. }
  1277. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1278. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1279. public global::System.Data.DataColumn Код_цветкаColumn {
  1280. get {
  1281. return this.columnКод_цветка;
  1282. }
  1283. }
  1284. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1285. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1286. public global::System.Data.DataColumn _Рассады__кол_во_цветков_Column {
  1287. get {
  1288. return this._columnРассады__кол_во_цветков_;
  1289. }
  1290. }
  1291. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1292. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1293. [global::System.ComponentModel.Browsable(false)]
  1294. public int Count {
  1295. get {
  1296. return this.Rows.Count;
  1297. }
  1298. }
  1299. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1300. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1301. public OrdersRow this[int index] {
  1302. get {
  1303. return ((OrdersRow)(this.Rows[index]));
  1304. }
  1305. }
  1306. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1307. public event OrdersRowChangeEventHandler OrdersRowChanging;
  1308. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1309. public event OrdersRowChangeEventHandler OrdersRowChanged;
  1310. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1311. public event OrdersRowChangeEventHandler OrdersRowDeleting;
  1312. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1313. public event OrdersRowChangeEventHandler OrdersRowDeleted;
  1314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1315. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1316. public void AddOrdersRow(OrdersRow row) {
  1317. this.Rows.Add(row);
  1318. }
  1319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1320. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1321. public OrdersRow AddOrdersRow(int Номер_заказчика, FlowersRow parentFlowersRowByFK_Orders_Flowers, int _Рассады__кол_во_цветков_) {
  1322. OrdersRow rowOrdersRow = ((OrdersRow)(this.NewRow()));
  1323. object[] columnValuesArray = new object[] {
  1324. Номер_заказчика,
  1325. null,
  1326. _Рассады__кол_во_цветков_};
  1327. if ((parentFlowersRowByFK_Orders_Flowers != null)) {
  1328. columnValuesArray[1] = parentFlowersRowByFK_Orders_Flowers[0];
  1329. }
  1330. rowOrdersRow.ItemArray = columnValuesArray;
  1331. this.Rows.Add(rowOrdersRow);
  1332. return rowOrdersRow;
  1333. }
  1334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1336. public override global::System.Data.DataTable Clone() {
  1337. OrdersDataTable cln = ((OrdersDataTable)(base.Clone()));
  1338. cln.InitVars();
  1339. return cln;
  1340. }
  1341. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1342. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1343. protected override global::System.Data.DataTable CreateInstance() {
  1344. return new OrdersDataTable();
  1345. }
  1346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1347. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1348. internal void InitVars() {
  1349. this.columnНомер_заказчика = base.Columns["Номер заказчика"];
  1350. this.columnКод_цветка = base.Columns["Код цветка"];
  1351. this._columnРассады__кол_во_цветков_ = base.Columns["Рассады (кол-во цветков)"];
  1352. }
  1353. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1354. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1355. private void InitClass() {
  1356. this.columnНомер_заказчика = new global::System.Data.DataColumn("Номер заказчика", typeof(int), null, global::System.Data.MappingType.Element);
  1357. base.Columns.Add(this.columnНомер_заказчика);
  1358. this.columnКод_цветка = new global::System.Data.DataColumn("Код цветка", typeof(int), null, global::System.Data.MappingType.Element);
  1359. base.Columns.Add(this.columnКод_цветка);
  1360. this._columnРассады__кол_во_цветков_ = new global::System.Data.DataColumn("Рассады (кол-во цветков)", typeof(int), null, global::System.Data.MappingType.Element);
  1361. this._columnРассады__кол_во_цветков_.ExtendedProperties.Add("Generator_ColumnVarNameInTable", "_columnРассады__кол_во_цветков_");
  1362. this._columnРассады__кол_во_цветков_.ExtendedProperties.Add("Generator_UserColumnName", "Рассады (кол-во цветков)");
  1363. base.Columns.Add(this._columnРассады__кол_во_цветков_);
  1364. }
  1365. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1366. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1367. public OrdersRow NewOrdersRow() {
  1368. return ((OrdersRow)(this.NewRow()));
  1369. }
  1370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1371. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1372. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1373. return new OrdersRow(builder);
  1374. }
  1375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1377. protected override global::System.Type GetRowType() {
  1378. return typeof(OrdersRow);
  1379. }
  1380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1382. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1383. base.OnRowChanged(e);
  1384. if ((this.OrdersRowChanged != null)) {
  1385. this.OrdersRowChanged(this, new OrdersRowChangeEvent(((OrdersRow)(e.Row)), e.Action));
  1386. }
  1387. }
  1388. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1389. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1390. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1391. base.OnRowChanging(e);
  1392. if ((this.OrdersRowChanging != null)) {
  1393. this.OrdersRowChanging(this, new OrdersRowChangeEvent(((OrdersRow)(e.Row)), e.Action));
  1394. }
  1395. }
  1396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1398. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1399. base.OnRowDeleted(e);
  1400. if ((this.OrdersRowDeleted != null)) {
  1401. this.OrdersRowDeleted(this, new OrdersRowChangeEvent(((OrdersRow)(e.Row)), e.Action));
  1402. }
  1403. }
  1404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1406. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1407. base.OnRowDeleting(e);
  1408. if ((this.OrdersRowDeleting != null)) {
  1409. this.OrdersRowDeleting(this, new OrdersRowChangeEvent(((OrdersRow)(e.Row)), e.Action));
  1410. }
  1411. }
  1412. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1413. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1414. public void RemoveOrdersRow(OrdersRow row) {
  1415. this.Rows.Remove(row);
  1416. }
  1417. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1418. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1419. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1420. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1421. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1422. _ГЕС_5DataSet ds = new _ГЕС_5DataSet();
  1423. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1424. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1425. any1.MinOccurs = new decimal(0);
  1426. any1.MaxOccurs = decimal.MaxValue;
  1427. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1428. sequence.Items.Add(any1);
  1429. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1430. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1431. any2.MinOccurs = new decimal(1);
  1432. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1433. sequence.Items.Add(any2);
  1434. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1435. attribute1.Name = "namespace";
  1436. attribute1.FixedValue = ds.Namespace;
  1437. type.Attributes.Add(attribute1);
  1438. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1439. attribute2.Name = "tableTypeName";
  1440. attribute2.FixedValue = "OrdersDataTable";
  1441. type.Attributes.Add(attribute2);
  1442. type.Particle = sequence;
  1443. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1444. if (xs.Contains(dsSchema.TargetNamespace)) {
  1445. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1446. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1447. try {
  1448. global::System.Xml.Schema.XmlSchema schema = null;
  1449. dsSchema.Write(s1);
  1450. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1451. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1452. s2.SetLength(0);
  1453. schema.Write(s2);
  1454. if ((s1.Length == s2.Length)) {
  1455. s1.Position = 0;
  1456. s2.Position = 0;
  1457. for (; ((s1.Position != s1.Length)
  1458. && (s1.ReadByte() == s2.ReadByte())); ) {
  1459. ;
  1460. }
  1461. if ((s1.Position == s1.Length)) {
  1462. return type;
  1463. }
  1464. }
  1465. }
  1466. }
  1467. finally {
  1468. if ((s1 != null)) {
  1469. s1.Close();
  1470. }
  1471. if ((s2 != null)) {
  1472. s2.Close();
  1473. }
  1474. }
  1475. }
  1476. xs.Add(dsSchema);
  1477. return type;
  1478. }
  1479. }
  1480. /// <summary>
  1481. ///Represents the strongly named DataTable class.
  1482. ///</summary>
  1483. [global::System.Serializable()]
  1484. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1485. public partial class PostavDataTable : global::System.Data.TypedTableBase<PostavRow> {
  1486. private global::System.Data.DataColumn columnКод_поставщика;
  1487. private global::System.Data.DataColumn columnНазвание_поставщика;
  1488. private global::System.Data.DataColumn columnАдрес_поставщика;
  1489. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1490. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1491. public PostavDataTable() {
  1492. this.TableName = "Postav";
  1493. this.BeginInit();
  1494. this.InitClass();
  1495. this.EndInit();
  1496. }
  1497. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1498. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1499. internal PostavDataTable(global::System.Data.DataTable table) {
  1500. this.TableName = table.TableName;
  1501. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1502. this.CaseSensitive = table.CaseSensitive;
  1503. }
  1504. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1505. this.Locale = table.Locale;
  1506. }
  1507. if ((table.Namespace != table.DataSet.Namespace)) {
  1508. this.Namespace = table.Namespace;
  1509. }
  1510. this.Prefix = table.Prefix;
  1511. this.MinimumCapacity = table.MinimumCapacity;
  1512. }
  1513. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1514. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1515. protected PostavDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1516. base(info, context) {
  1517. this.InitVars();
  1518. }
  1519. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1520. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1521. public global::System.Data.DataColumn Код_поставщикаColumn {
  1522. get {
  1523. return this.columnКод_поставщика;
  1524. }
  1525. }
  1526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1528. public global::System.Data.DataColumn Название_поставщикаColumn {
  1529. get {
  1530. return this.columnНазвание_поставщика;
  1531. }
  1532. }
  1533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1535. public global::System.Data.DataColumn Адрес_поставщикаColumn {
  1536. get {
  1537. return this.columnАдрес_поставщика;
  1538. }
  1539. }
  1540. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1541. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1542. [global::System.ComponentModel.Browsable(false)]
  1543. public int Count {
  1544. get {
  1545. return this.Rows.Count;
  1546. }
  1547. }
  1548. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1549. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1550. public PostavRow this[int index] {
  1551. get {
  1552. return ((PostavRow)(this.Rows[index]));
  1553. }
  1554. }
  1555. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1556. public event PostavRowChangeEventHandler PostavRowChanging;
  1557. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1558. public event PostavRowChangeEventHandler PostavRowChanged;
  1559. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1560. public event PostavRowChangeEventHandler PostavRowDeleting;
  1561. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1562. public event PostavRowChangeEventHandler PostavRowDeleted;
  1563. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1564. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1565. public void AddPostavRow(PostavRow row) {
  1566. this.Rows.Add(row);
  1567. }
  1568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1570. public PostavRow AddPostavRow(int Код_поставщика, string Название_поставщика, string Адрес_поставщика) {
  1571. PostavRow rowPostavRow = ((PostavRow)(this.NewRow()));
  1572. object[] columnValuesArray = new object[] {
  1573. Код_поставщика,
  1574. Название_поставщика,
  1575. Адрес_поставщика};
  1576. rowPostavRow.ItemArray = columnValuesArray;
  1577. this.Rows.Add(rowPostavRow);
  1578. return rowPostavRow;
  1579. }
  1580. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1581. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1582. public PostavRow FindByКод_поставщика(int Код_поставщика) {
  1583. return ((PostavRow)(this.Rows.Find(new object[] {
  1584. Код_поставщика})));
  1585. }
  1586. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1587. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1588. public override global::System.Data.DataTable Clone() {
  1589. PostavDataTable cln = ((PostavDataTable)(base.Clone()));
  1590. cln.InitVars();
  1591. return cln;
  1592. }
  1593. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1594. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1595. protected override global::System.Data.DataTable CreateInstance() {
  1596. return new PostavDataTable();
  1597. }
  1598. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1599. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1600. internal void InitVars() {
  1601. this.columnКод_поставщика = base.Columns["Код поставщика"];
  1602. this.columnНазвание_поставщика = base.Columns["Название поставщика"];
  1603. this.columnАдрес_поставщика = base.Columns["Адрес поставщика"];
  1604. }
  1605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1607. private void InitClass() {
  1608. this.columnКод_поставщика = new global::System.Data.DataColumn("Код поставщика", typeof(int), null, global::System.Data.MappingType.Element);
  1609. base.Columns.Add(this.columnКод_поставщика);
  1610. this.columnНазвание_поставщика = new global::System.Data.DataColumn("Название поставщика", typeof(string), null, global::System.Data.MappingType.Element);
  1611. base.Columns.Add(this.columnНазвание_поставщика);
  1612. this.columnАдрес_поставщика = new global::System.Data.DataColumn("Адрес поставщика", typeof(string), null, global::System.Data.MappingType.Element);
  1613. base.Columns.Add(this.columnАдрес_поставщика);
  1614. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1615. this.columnКод_поставщика}, true));
  1616. this.columnКод_поставщика.AllowDBNull = false;
  1617. this.columnКод_поставщика.Unique = true;
  1618. this.columnНазвание_поставщика.MaxLength = 4000;
  1619. this.columnАдрес_поставщика.MaxLength = 4000;
  1620. }
  1621. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1622. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1623. public PostavRow NewPostavRow() {
  1624. return ((PostavRow)(this.NewRow()));
  1625. }
  1626. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1627. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1628. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1629. return new PostavRow(builder);
  1630. }
  1631. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1632. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1633. protected override global::System.Type GetRowType() {
  1634. return typeof(PostavRow);
  1635. }
  1636. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1637. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1638. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1639. base.OnRowChanged(e);
  1640. if ((this.PostavRowChanged != null)) {
  1641. this.PostavRowChanged(this, new PostavRowChangeEvent(((PostavRow)(e.Row)), e.Action));
  1642. }
  1643. }
  1644. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1645. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1646. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1647. base.OnRowChanging(e);
  1648. if ((this.PostavRowChanging != null)) {
  1649. this.PostavRowChanging(this, new PostavRowChangeEvent(((PostavRow)(e.Row)), e.Action));
  1650. }
  1651. }
  1652. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1653. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1654. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1655. base.OnRowDeleted(e);
  1656. if ((this.PostavRowDeleted != null)) {
  1657. this.PostavRowDeleted(this, new PostavRowChangeEvent(((PostavRow)(e.Row)), e.Action));
  1658. }
  1659. }
  1660. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1661. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1662. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1663. base.OnRowDeleting(e);
  1664. if ((this.PostavRowDeleting != null)) {
  1665. this.PostavRowDeleting(this, new PostavRowChangeEvent(((PostavRow)(e.Row)), e.Action));
  1666. }
  1667. }
  1668. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1669. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1670. public void RemovePostavRow(PostavRow row) {
  1671. this.Rows.Remove(row);
  1672. }
  1673. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1674. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1675. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1676. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1677. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1678. _ГЕС_5DataSet ds = new _ГЕС_5DataSet();
  1679. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1680. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1681. any1.MinOccurs = new decimal(0);
  1682. any1.MaxOccurs = decimal.MaxValue;
  1683. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1684. sequence.Items.Add(any1);
  1685. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1686. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1687. any2.MinOccurs = new decimal(1);
  1688. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1689. sequence.Items.Add(any2);
  1690. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1691. attribute1.Name = "namespace";
  1692. attribute1.FixedValue = ds.Namespace;
  1693. type.Attributes.Add(attribute1);
  1694. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1695. attribute2.Name = "tableTypeName";
  1696. attribute2.FixedValue = "PostavDataTable";
  1697. type.Attributes.Add(attribute2);
  1698. type.Particle = sequence;
  1699. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1700. if (xs.Contains(dsSchema.TargetNamespace)) {
  1701. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1702. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1703. try {
  1704. global::System.Xml.Schema.XmlSchema schema = null;
  1705. dsSchema.Write(s1);
  1706. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1707. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1708. s2.SetLength(0);
  1709. schema.Write(s2);
  1710. if ((s1.Length == s2.Length)) {
  1711. s1.Position = 0;
  1712. s2.Position = 0;
  1713. for (; ((s1.Position != s1.Length)
  1714. && (s1.ReadByte() == s2.ReadByte())); ) {
  1715. ;
  1716. }
  1717. if ((s1.Position == s1.Length)) {
  1718. return type;
  1719. }
  1720. }
  1721. }
  1722. }
  1723. finally {
  1724. if ((s1 != null)) {
  1725. s1.Close();
  1726. }
  1727. if ((s2 != null)) {
  1728. s2.Close();
  1729. }
  1730. }
  1731. }
  1732. xs.Add(dsSchema);
  1733. return type;
  1734. }
  1735. }
  1736. /// <summary>
  1737. ///Represents the strongly named DataTable class.
  1738. ///</summary>
  1739. [global::System.Serializable()]
  1740. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1741. public partial class Postav_FlowersDataTable : global::System.Data.TypedTableBase<Postav_FlowersRow> {
  1742. private global::System.Data.DataColumn columnКод_цветка;
  1743. private global::System.Data.DataColumn columnНазвание_цветка;
  1744. private global::System.Data.DataColumn columnКод_поставщика;
  1745. private global::System.Data.DataColumn columnНазвание_поставщика;
  1746. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1747. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1748. public Postav_FlowersDataTable() {
  1749. this.TableName = "Postav_Flowers";
  1750. this.BeginInit();
  1751. this.InitClass();
  1752. this.EndInit();
  1753. }
  1754. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1755. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1756. internal Postav_FlowersDataTable(global::System.Data.DataTable table) {
  1757. this.TableName = table.TableName;
  1758. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1759. this.CaseSensitive = table.CaseSensitive;
  1760. }
  1761. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1762. this.Locale = table.Locale;
  1763. }
  1764. if ((table.Namespace != table.DataSet.Namespace)) {
  1765. this.Namespace = table.Namespace;
  1766. }
  1767. this.Prefix = table.Prefix;
  1768. this.MinimumCapacity = table.MinimumCapacity;
  1769. }
  1770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1771. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1772. protected Postav_FlowersDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1773. base(info, context) {
  1774. this.InitVars();
  1775. }
  1776. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1777. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1778. public global::System.Data.DataColumn Код_цветкаColumn {
  1779. get {
  1780. return this.columnКод_цветка;
  1781. }
  1782. }
  1783. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1784. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1785. public global::System.Data.DataColumn Название_цветкаColumn {
  1786. get {
  1787. return this.columnНазвание_цветка;
  1788. }
  1789. }
  1790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1792. public global::System.Data.DataColumn Код_поставщикаColumn {
  1793. get {
  1794. return this.columnКод_поставщика;
  1795. }
  1796. }
  1797. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1798. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1799. public global::System.Data.DataColumn Название_поставщикаColumn {
  1800. get {
  1801. return this.columnНазвание_поставщика;
  1802. }
  1803. }
  1804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1806. [global::System.ComponentModel.Browsable(false)]
  1807. public int Count {
  1808. get {
  1809. return this.Rows.Count;
  1810. }
  1811. }
  1812. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1813. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1814. public Postav_FlowersRow this[int index] {
  1815. get {
  1816. return ((Postav_FlowersRow)(this.Rows[index]));
  1817. }
  1818. }
  1819. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1820. public event Postav_FlowersRowChangeEventHandler Postav_FlowersRowChanging;
  1821. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1822. public event Postav_FlowersRowChangeEventHandler Postav_FlowersRowChanged;
  1823. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1824. public event Postav_FlowersRowChangeEventHandler Postav_FlowersRowDeleting;
  1825. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1826. public event Postav_FlowersRowChangeEventHandler Postav_FlowersRowDeleted;
  1827. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1828. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1829. public void AddPostav_FlowersRow(Postav_FlowersRow row) {
  1830. this.Rows.Add(row);
  1831. }
  1832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1833. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1834. public Postav_FlowersRow AddPostav_FlowersRow(FlowersRow parentFlowersRowByFK_Postav_Flowers_Flowers, string Название_цветка, PostavRow parentPostavRowByFK_Postav_Flowers_Postav, string Название_поставщика) {
  1835. Postav_FlowersRow rowPostav_FlowersRow = ((Postav_FlowersRow)(this.NewRow()));
  1836. object[] columnValuesArray = new object[] {
  1837. null,
  1838. Название_цветка,
  1839. null,
  1840. Название_поставщика};
  1841. if ((parentFlowersRowByFK_Postav_Flowers_Flowers != null)) {
  1842. columnValuesArray[0] = parentFlowersRowByFK_Postav_Flowers_Flowers[0];
  1843. }
  1844. if ((parentPostavRowByFK_Postav_Flowers_Postav != null)) {
  1845. columnValuesArray[2] = parentPostavRowByFK_Postav_Flowers_Postav[0];
  1846. }
  1847. rowPostav_FlowersRow.ItemArray = columnValuesArray;
  1848. this.Rows.Add(rowPostav_FlowersRow);
  1849. return rowPostav_FlowersRow;
  1850. }
  1851. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1852. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1853. public override global::System.Data.DataTable Clone() {
  1854. Postav_FlowersDataTable cln = ((Postav_FlowersDataTable)(base.Clone()));
  1855. cln.InitVars();
  1856. return cln;
  1857. }
  1858. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1859. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1860. protected override global::System.Data.DataTable CreateInstance() {
  1861. return new Postav_FlowersDataTable();
  1862. }
  1863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1864. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1865. internal void InitVars() {
  1866. this.columnКод_цветка = base.Columns["Код цветка"];
  1867. this.columnНазвание_цветка = base.Columns["Название цветка"];
  1868. this.columnКод_поставщика = base.Columns["Код поставщика"];
  1869. this.columnНазвание_поставщика = base.Columns["Название поставщика"];
  1870. }
  1871. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1872. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1873. private void InitClass() {
  1874. this.columnКод_цветка = new global::System.Data.DataColumn("Код цветка", typeof(int), null, global::System.Data.MappingType.Element);
  1875. base.Columns.Add(this.columnКод_цветка);
  1876. this.columnНазвание_цветка = new global::System.Data.DataColumn("Название цветка", typeof(string), null, global::System.Data.MappingType.Element);
  1877. base.Columns.Add(this.columnНазвание_цветка);
  1878. this.columnКод_поставщика = new global::System.Data.DataColumn("Код поставщика", typeof(int), null, global::System.Data.MappingType.Element);
  1879. base.Columns.Add(this.columnКод_поставщика);
  1880. this.columnНазвание_поставщика = new global::System.Data.DataColumn("Название поставщика", typeof(string), null, global::System.Data.MappingType.Element);
  1881. base.Columns.Add(this.columnНазвание_поставщика);
  1882. this.columnНазвание_цветка.MaxLength = 4000;
  1883. this.columnКод_поставщика.AllowDBNull = false;
  1884. this.columnНазвание_поставщика.MaxLength = 4000;
  1885. }
  1886. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1887. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1888. public Postav_FlowersRow NewPostav_FlowersRow() {
  1889. return ((Postav_FlowersRow)(this.NewRow()));
  1890. }
  1891. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1892. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1893. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1894. return new Postav_FlowersRow(builder);
  1895. }
  1896. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1897. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1898. protected override global::System.Type GetRowType() {
  1899. return typeof(Postav_FlowersRow);
  1900. }
  1901. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1902. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1903. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1904. base.OnRowChanged(e);
  1905. if ((this.Postav_FlowersRowChanged != null)) {
  1906. this.Postav_FlowersRowChanged(this, new Postav_FlowersRowChangeEvent(((Postav_FlowersRow)(e.Row)), e.Action));
  1907. }
  1908. }
  1909. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1910. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1911. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1912. base.OnRowChanging(e);
  1913. if ((this.Postav_FlowersRowChanging != null)) {
  1914. this.Postav_FlowersRowChanging(this, new Postav_FlowersRowChangeEvent(((Postav_FlowersRow)(e.Row)), e.Action));
  1915. }
  1916. }
  1917. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1918. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1919. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1920. base.OnRowDeleted(e);
  1921. if ((this.Postav_FlowersRowDeleted != null)) {
  1922. this.Postav_FlowersRowDeleted(this, new Postav_FlowersRowChangeEvent(((Postav_FlowersRow)(e.Row)), e.Action));
  1923. }
  1924. }
  1925. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1926. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1927. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1928. base.OnRowDeleting(e);
  1929. if ((this.Postav_FlowersRowDeleting != null)) {
  1930. this.Postav_FlowersRowDeleting(this, new Postav_FlowersRowChangeEvent(((Postav_FlowersRow)(e.Row)), e.Action));
  1931. }
  1932. }
  1933. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1934. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1935. public void RemovePostav_FlowersRow(Postav_FlowersRow row) {
  1936. this.Rows.Remove(row);
  1937. }
  1938. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1939. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1940. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1941. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1942. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1943. _ГЕС_5DataSet ds = new _ГЕС_5DataSet();
  1944. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1945. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1946. any1.MinOccurs = new decimal(0);
  1947. any1.MaxOccurs = decimal.MaxValue;
  1948. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1949. sequence.Items.Add(any1);
  1950. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1951. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1952. any2.MinOccurs = new decimal(1);
  1953. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1954. sequence.Items.Add(any2);
  1955. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1956. attribute1.Name = "namespace";
  1957. attribute1.FixedValue = ds.Namespace;
  1958. type.Attributes.Add(attribute1);
  1959. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1960. attribute2.Name = "tableTypeName";
  1961. attribute2.FixedValue = "Postav_FlowersDataTable";
  1962. type.Attributes.Add(attribute2);
  1963. type.Particle = sequence;
  1964. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1965. if (xs.Contains(dsSchema.TargetNamespace)) {
  1966. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1967. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1968. try {
  1969. global::System.Xml.Schema.XmlSchema schema = null;
  1970. dsSchema.Write(s1);
  1971. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1972. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1973. s2.SetLength(0);
  1974. schema.Write(s2);
  1975. if ((s1.Length == s2.Length)) {
  1976. s1.Position = 0;
  1977. s2.Position = 0;
  1978. for (; ((s1.Position != s1.Length)
  1979. && (s1.ReadByte() == s2.ReadByte())); ) {
  1980. ;
  1981. }
  1982. if ((s1.Position == s1.Length)) {
  1983. return type;
  1984. }
  1985. }
  1986. }
  1987. }
  1988. finally {
  1989. if ((s1 != null)) {
  1990. s1.Close();
  1991. }
  1992. if ((s2 != null)) {
  1993. s2.Close();
  1994. }
  1995. }
  1996. }
  1997. xs.Add(dsSchema);
  1998. return type;
  1999. }
  2000. }
  2001. /// <summary>
  2002. ///Represents strongly named DataRow class.
  2003. ///</summary>
  2004. public partial class ContractsRow : global::System.Data.DataRow {
  2005. private ContractsDataTable tableContracts;
  2006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2008. internal ContractsRow(global::System.Data.DataRowBuilder rb) :
  2009. base(rb) {
  2010. this.tableContracts = ((ContractsDataTable)(this.Table));
  2011. }
  2012. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2013. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2014. public int Код_договора {
  2015. get {
  2016. return ((int)(this[this.tableContracts.Код_договораColumn]));
  2017. }
  2018. set {
  2019. this[this.tableContracts.Код_договораColumn] = value;
  2020. }
  2021. }
  2022. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2023. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2024. public int Номер_договора {
  2025. get {
  2026. try {
  2027. return ((int)(this[this.tableContracts.Номер_договораColumn]));
  2028. }
  2029. catch (global::System.InvalidCastException e) {
  2030. throw new global::System.Data.StrongTypingException("Значение для столбца \'Номер договора\' в таблице \'Contracts\' равно DBNull.", e);
  2031. }
  2032. }
  2033. set {
  2034. this[this.tableContracts.Номер_договораColumn] = value;
  2035. }
  2036. }
  2037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2038. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2039. public int Код_заказчика {
  2040. get {
  2041. try {
  2042. return ((int)(this[this.tableContracts.Код_заказчикаColumn]));
  2043. }
  2044. catch (global::System.InvalidCastException e) {
  2045. throw new global::System.Data.StrongTypingException("Значение для столбца \'Код заказчика\' в таблице \'Contracts\' равно DBNull.", e);
  2046. }
  2047. }
  2048. set {
  2049. this[this.tableContracts.Код_заказчикаColumn] = value;
  2050. }
  2051. }
  2052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2053. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2054. public System.DateTime Дата_оформления_договора {
  2055. get {
  2056. try {
  2057. return ((global::System.DateTime)(this[this.tableContracts.Дата_оформления_договораColumn]));
  2058. }
  2059. catch (global::System.InvalidCastException e) {
  2060. throw new global::System.Data.StrongTypingException("Значение для столбца \'Дата оформления договора\' в таблице \'Contracts\' равно DBNul" +
  2061. "l.", e);
  2062. }
  2063. }
  2064. set {
  2065. this[this.tableContracts.Дата_оформления_договораColumn] = value;
  2066. }
  2067. }
  2068. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2069. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2070. public int Код_поставщика {
  2071. get {
  2072. try {
  2073. return ((int)(this[this.tableContracts.Код_поставщикаColumn]));
  2074. }
  2075. catch (global::System.InvalidCastException e) {
  2076. throw new global::System.Data.StrongTypingException("Значение для столбца \'Код поставщика\' в таблице \'Contracts\' равно DBNull.", e);
  2077. }
  2078. }
  2079. set {
  2080. this[this.tableContracts.Код_поставщикаColumn] = value;
  2081. }
  2082. }
  2083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2085. public CustomerRow CustomerRow {
  2086. get {
  2087. return ((CustomerRow)(this.GetParentRow(this.Table.ParentRelations["FK_Contracts_Customer"])));
  2088. }
  2089. set {
  2090. this.SetParentRow(value, this.Table.ParentRelations["FK_Contracts_Customer"]);
  2091. }
  2092. }
  2093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2094. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2095. public PostavRow PostavRow {
  2096. get {
  2097. return ((PostavRow)(this.GetParentRow(this.Table.ParentRelations["FK_Contracts_Postav"])));
  2098. }
  2099. set {
  2100. this.SetParentRow(value, this.Table.ParentRelations["FK_Contracts_Postav"]);
  2101. }
  2102. }
  2103. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2104. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2105. public bool IsНомер_договораNull() {
  2106. return this.IsNull(this.tableContracts.Номер_договораColumn);
  2107. }
  2108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2110. public void SetНомер_договораNull() {
  2111. this[this.tableContracts.Номер_договораColumn] = global::System.Convert.DBNull;
  2112. }
  2113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2114. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2115. public bool IsКод_заказчикаNull() {
  2116. return this.IsNull(this.tableContracts.Код_заказчикаColumn);
  2117. }
  2118. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2119. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2120. public void SetКод_заказчикаNull() {
  2121. this[this.tableContracts.Код_заказчикаColumn] = global::System.Convert.DBNull;
  2122. }
  2123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2124. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2125. public bool IsДата_оформления_договораNull() {
  2126. return this.IsNull(this.tableContracts.Дата_оформления_договораColumn);
  2127. }
  2128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2129. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2130. public void SetДата_оформления_договораNull() {
  2131. this[this.tableContracts.Дата_оформления_договораColumn] = global::System.Convert.DBNull;
  2132. }
  2133. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2134. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2135. public bool IsКод_поставщикаNull() {
  2136. return this.IsNull(this.tableContracts.Код_поставщикаColumn);
  2137. }
  2138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2139. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2140. public void SetКод_поставщикаNull() {
  2141. this[this.tableContracts.Код_поставщикаColumn] = global::System.Convert.DBNull;
  2142. }
  2143. }
  2144. /// <summary>
  2145. ///Represents strongly named DataRow class.
  2146. ///</summary>
  2147. public partial class CustomerRow : global::System.Data.DataRow {
  2148. private CustomerDataTable tableCustomer;
  2149. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2150. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2151. internal CustomerRow(global::System.Data.DataRowBuilder rb) :
  2152. base(rb) {
  2153. this.tableCustomer = ((CustomerDataTable)(this.Table));
  2154. }
  2155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2156. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2157. public int Код_заказчика {
  2158. get {
  2159. return ((int)(this[this.tableCustomer.Код_заказчикаColumn]));
  2160. }
  2161. set {
  2162. this[this.tableCustomer.Код_заказчикаColumn] = value;
  2163. }
  2164. }
  2165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2167. public string Название_заказчика {
  2168. get {
  2169. try {
  2170. return ((string)(this[this.tableCustomer.Название_заказчикаColumn]));
  2171. }
  2172. catch (global::System.InvalidCastException e) {
  2173. throw new global::System.Data.StrongTypingException("Значение для столбца \'Название заказчика\' в таблице \'Customer\' равно DBNull.", e);
  2174. }
  2175. }
  2176. set {
  2177. this[this.tableCustomer.Название_заказчикаColumn] = value;
  2178. }
  2179. }
  2180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2181. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2182. public string Телефон {
  2183. get {
  2184. try {
  2185. return ((string)(this[this.tableCustomer.ТелефонColumn]));
  2186. }
  2187. catch (global::System.InvalidCastException e) {
  2188. throw new global::System.Data.StrongTypingException("Значение для столбца \'Телефон\' в таблице \'Customer\' равно DBNull.", e);
  2189. }
  2190. }
  2191. set {
  2192. this[this.tableCustomer.ТелефонColumn] = value;
  2193. }
  2194. }
  2195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2197. public bool IsНазвание_заказчикаNull() {
  2198. return this.IsNull(this.tableCustomer.Название_заказчикаColumn);
  2199. }
  2200. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2201. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2202. public void SetНазвание_заказчикаNull() {
  2203. this[this.tableCustomer.Название_заказчикаColumn] = global::System.Convert.DBNull;
  2204. }
  2205. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2206. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2207. public bool IsТелефонNull() {
  2208. return this.IsNull(this.tableCustomer.ТелефонColumn);
  2209. }
  2210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2212. public void SetТелефонNull() {
  2213. this[this.tableCustomer.ТелефонColumn] = global::System.Convert.DBNull;
  2214. }
  2215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2216. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2217. public ContractsRow[] GetContractsRows() {
  2218. if ((this.Table.ChildRelations["FK_Contracts_Customer"] == null)) {
  2219. return new ContractsRow[0];
  2220. }
  2221. else {
  2222. return ((ContractsRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Contracts_Customer"])));
  2223. }
  2224. }
  2225. }
  2226. /// <summary>
  2227. ///Represents strongly named DataRow class.
  2228. ///</summary>
  2229. public partial class FlowersRow : global::System.Data.DataRow {
  2230. private FlowersDataTable tableFlowers;
  2231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2233. internal FlowersRow(global::System.Data.DataRowBuilder rb) :
  2234. base(rb) {
  2235. this.tableFlowers = ((FlowersDataTable)(this.Table));
  2236. }
  2237. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2238. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2239. public int Код_цветка {
  2240. get {
  2241. return ((int)(this[this.tableFlowers.Код_цветкаColumn]));
  2242. }
  2243. set {
  2244. this[this.tableFlowers.Код_цветкаColumn] = value;
  2245. }
  2246. }
  2247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2249. public string Название_цветка {
  2250. get {
  2251. try {
  2252. return ((string)(this[this.tableFlowers.Название_цветкаColumn]));
  2253. }
  2254. catch (global::System.InvalidCastException e) {
  2255. throw new global::System.Data.StrongTypingException("Значение для столбца \'Название цветка\' в таблице \'Flowers\' равно DBNull.", e);
  2256. }
  2257. }
  2258. set {
  2259. this[this.tableFlowers.Название_цветкаColumn] = value;
  2260. }
  2261. }
  2262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2263. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2264. public decimal _Цена_рассады__руб__ {
  2265. get {
  2266. try {
  2267. return ((decimal)(this[this.tableFlowers._Цена_рассады__руб__Column]));
  2268. }
  2269. catch (global::System.InvalidCastException e) {
  2270. throw new global::System.Data.StrongTypingException("Значение для столбца \'Цена рассады (руб_)\' в таблице \'Flowers\' равно DBNull.", e);
  2271. }
  2272. }
  2273. set {
  2274. this[this.tableFlowers._Цена_рассады__руб__Column] = value;
  2275. }
  2276. }
  2277. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2278. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2279. public bool IsНазвание_цветкаNull() {
  2280. return this.IsNull(this.tableFlowers.Название_цветкаColumn);
  2281. }
  2282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2284. public void SetНазвание_цветкаNull() {
  2285. this[this.tableFlowers.Название_цветкаColumn] = global::System.Convert.DBNull;
  2286. }
  2287. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2288. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2289. public bool Is_Цена_рассады__руб__Null() {
  2290. return this.IsNull(this.tableFlowers._Цена_рассады__руб__Column);
  2291. }
  2292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2293. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2294. public void Set_Цена_рассады__руб__Null() {
  2295. this[this.tableFlowers._Цена_рассады__руб__Column] = global::System.Convert.DBNull;
  2296. }
  2297. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2298. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2299. public OrdersRow[] GetOrdersRows() {
  2300. if ((this.Table.ChildRelations["FK_Orders_Flowers"] == null)) {
  2301. return new OrdersRow[0];
  2302. }
  2303. else {
  2304. return ((OrdersRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Orders_Flowers"])));
  2305. }
  2306. }
  2307. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2308. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2309. public Postav_FlowersRow[] GetPostav_FlowersRows() {
  2310. if ((this.Table.ChildRelations["FK_Postav_Flowers_Flowers"] == null)) {
  2311. return new Postav_FlowersRow[0];
  2312. }
  2313. else {
  2314. return ((Postav_FlowersRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Postav_Flowers_Flowers"])));
  2315. }
  2316. }
  2317. }
  2318. /// <summary>
  2319. ///Represents strongly named DataRow class.
  2320. ///</summary>
  2321. public partial class OrdersRow : global::System.Data.DataRow {
  2322. private OrdersDataTable tableOrders;
  2323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2324. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2325. internal OrdersRow(global::System.Data.DataRowBuilder rb) :
  2326. base(rb) {
  2327. this.tableOrders = ((OrdersDataTable)(this.Table));
  2328. }
  2329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2331. public int Номер_заказчика {
  2332. get {
  2333. try {
  2334. return ((int)(this[this.tableOrders.Номер_заказчикаColumn]));
  2335. }
  2336. catch (global::System.InvalidCastException e) {
  2337. throw new global::System.Data.StrongTypingException("Значение для столбца \'Номер заказчика\' в таблице \'Orders\' равно DBNull.", e);
  2338. }
  2339. }
  2340. set {
  2341. this[this.tableOrders.Номер_заказчикаColumn] = value;
  2342. }
  2343. }
  2344. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2345. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2346. public int Код_цветка {
  2347. get {
  2348. try {
  2349. return ((int)(this[this.tableOrders.Код_цветкаColumn]));
  2350. }
  2351. catch (global::System.InvalidCastException e) {
  2352. throw new global::System.Data.StrongTypingException("Значение для столбца \'Код цветка\' в таблице \'Orders\' равно DBNull.", e);
  2353. }
  2354. }
  2355. set {
  2356. this[this.tableOrders.Код_цветкаColumn] = value;
  2357. }
  2358. }
  2359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2360. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2361. public int _Рассады__кол_во_цветков_ {
  2362. get {
  2363. try {
  2364. return ((int)(this[this.tableOrders._Рассады__кол_во_цветков_Column]));
  2365. }
  2366. catch (global::System.InvalidCastException e) {
  2367. throw new global::System.Data.StrongTypingException("Значение для столбца \'Рассады (кол-во цветков)\' в таблице \'Orders\' равно DBNull.", e);
  2368. }
  2369. }
  2370. set {
  2371. this[this.tableOrders._Рассады__кол_во_цветков_Column] = value;
  2372. }
  2373. }
  2374. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2375. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2376. public FlowersRow FlowersRow {
  2377. get {
  2378. return ((FlowersRow)(this.GetParentRow(this.Table.ParentRelations["FK_Orders_Flowers"])));
  2379. }
  2380. set {
  2381. this.SetParentRow(value, this.Table.ParentRelations["FK_Orders_Flowers"]);
  2382. }
  2383. }
  2384. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2385. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2386. public bool IsНомер_заказчикаNull() {
  2387. return this.IsNull(this.tableOrders.Номер_заказчикаColumn);
  2388. }
  2389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2390. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2391. public void SetНомер_заказчикаNull() {
  2392. this[this.tableOrders.Номер_заказчикаColumn] = global::System.Convert.DBNull;
  2393. }
  2394. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2395. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2396. public bool IsКод_цветкаNull() {
  2397. return this.IsNull(this.tableOrders.Код_цветкаColumn);
  2398. }
  2399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2401. public void SetКод_цветкаNull() {
  2402. this[this.tableOrders.Код_цветкаColumn] = global::System.Convert.DBNull;
  2403. }
  2404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2406. public bool Is_Рассады__кол_во_цветков_Null() {
  2407. return this.IsNull(this.tableOrders._Рассады__кол_во_цветков_Column);
  2408. }
  2409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2411. public void Set_Рассады__кол_во_цветков_Null() {
  2412. this[this.tableOrders._Рассады__кол_во_цветков_Column] = global::System.Convert.DBNull;
  2413. }
  2414. }
  2415. /// <summary>
  2416. ///Represents strongly named DataRow class.
  2417. ///</summary>
  2418. public partial class PostavRow : global::System.Data.DataRow {
  2419. private PostavDataTable tablePostav;
  2420. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2421. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2422. internal PostavRow(global::System.Data.DataRowBuilder rb) :
  2423. base(rb) {
  2424. this.tablePostav = ((PostavDataTable)(this.Table));
  2425. }
  2426. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2427. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2428. public int Код_поставщика {
  2429. get {
  2430. return ((int)(this[this.tablePostav.Код_поставщикаColumn]));
  2431. }
  2432. set {
  2433. this[this.tablePostav.Код_поставщикаColumn] = value;
  2434. }
  2435. }
  2436. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2437. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2438. public string Название_поставщика {
  2439. get {
  2440. try {
  2441. return ((string)(this[this.tablePostav.Название_поставщикаColumn]));
  2442. }
  2443. catch (global::System.InvalidCastException e) {
  2444. throw new global::System.Data.StrongTypingException("Значение для столбца \'Название поставщика\' в таблице \'Postav\' равно DBNull.", e);
  2445. }
  2446. }
  2447. set {
  2448. this[this.tablePostav.Название_поставщикаColumn] = value;
  2449. }
  2450. }
  2451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2452. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2453. public string Адрес_поставщика {
  2454. get {
  2455. try {
  2456. return ((string)(this[this.tablePostav.Адрес_поставщикаColumn]));
  2457. }
  2458. catch (global::System.InvalidCastException e) {
  2459. throw new global::System.Data.StrongTypingException("Значение для столбца \'Адрес поставщика\' в таблице \'Postav\' равно DBNull.", e);
  2460. }
  2461. }
  2462. set {
  2463. this[this.tablePostav.Адрес_поставщикаColumn] = value;
  2464. }
  2465. }
  2466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2468. public bool IsНазвание_поставщикаNull() {
  2469. return this.IsNull(this.tablePostav.Название_поставщикаColumn);
  2470. }
  2471. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2473. public void SetНазвание_поставщикаNull() {
  2474. this[this.tablePostav.Название_поставщикаColumn] = global::System.Convert.DBNull;
  2475. }
  2476. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2477. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2478. public bool IsАдрес_поставщикаNull() {
  2479. return this.IsNull(this.tablePostav.Адрес_поставщикаColumn);
  2480. }
  2481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2483. public void SetАдрес_поставщикаNull() {
  2484. this[this.tablePostav.Адрес_поставщикаColumn] = global::System.Convert.DBNull;
  2485. }
  2486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2488. public ContractsRow[] GetContractsRows() {
  2489. if ((this.Table.ChildRelations["FK_Contracts_Postav"] == null)) {
  2490. return new ContractsRow[0];
  2491. }
  2492. else {
  2493. return ((ContractsRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Contracts_Postav"])));
  2494. }
  2495. }
  2496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2497. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2498. public Postav_FlowersRow[] GetPostav_FlowersRows() {
  2499. if ((this.Table.ChildRelations["FK_Postav_Flowers_Postav"] == null)) {
  2500. return new Postav_FlowersRow[0];
  2501. }
  2502. else {
  2503. return ((Postav_FlowersRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Postav_Flowers_Postav"])));
  2504. }
  2505. }
  2506. }
  2507. /// <summary>
  2508. ///Represents strongly named DataRow class.
  2509. ///</summary>
  2510. public partial class Postav_FlowersRow : global::System.Data.DataRow {
  2511. private Postav_FlowersDataTable tablePostav_Flowers;
  2512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2513. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2514. internal Postav_FlowersRow(global::System.Data.DataRowBuilder rb) :
  2515. base(rb) {
  2516. this.tablePostav_Flowers = ((Postav_FlowersDataTable)(this.Table));
  2517. }
  2518. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2519. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2520. public int Код_цветка {
  2521. get {
  2522. try {
  2523. return ((int)(this[this.tablePostav_Flowers.Код_цветкаColumn]));
  2524. }
  2525. catch (global::System.InvalidCastException e) {
  2526. throw new global::System.Data.StrongTypingException("Значение для столбца \'Код цветка\' в таблице \'Postav_Flowers\' равно DBNull.", e);
  2527. }
  2528. }
  2529. set {
  2530. this[this.tablePostav_Flowers.Код_цветкаColumn] = value;
  2531. }
  2532. }
  2533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2535. public string Название_цветка {
  2536. get {
  2537. try {
  2538. return ((string)(this[this.tablePostav_Flowers.Название_цветкаColumn]));
  2539. }
  2540. catch (global::System.InvalidCastException e) {
  2541. throw new global::System.Data.StrongTypingException("Значение для столбца \'Название цветка\' в таблице \'Postav_Flowers\' равно DBNull.", e);
  2542. }
  2543. }
  2544. set {
  2545. this[this.tablePostav_Flowers.Название_цветкаColumn] = value;
  2546. }
  2547. }
  2548. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2549. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2550. public int Код_поставщика {
  2551. get {
  2552. return ((int)(this[this.tablePostav_Flowers.Код_поставщикаColumn]));
  2553. }
  2554. set {
  2555. this[this.tablePostav_Flowers.Код_поставщикаColumn] = value;
  2556. }
  2557. }
  2558. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2559. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2560. public string Название_поставщика {
  2561. get {
  2562. try {
  2563. return ((string)(this[this.tablePostav_Flowers.Название_поставщикаColumn]));
  2564. }
  2565. catch (global::System.InvalidCastException e) {
  2566. throw new global::System.Data.StrongTypingException("Значение для столбца \'Название поставщика\' в таблице \'Postav_Flowers\' равно DBNul" +
  2567. "l.", e);
  2568. }
  2569. }
  2570. set {
  2571. this[this.tablePostav_Flowers.Название_поставщикаColumn] = value;
  2572. }
  2573. }
  2574. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2575. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2576. public FlowersRow FlowersRow {
  2577. get {
  2578. return ((FlowersRow)(this.GetParentRow(this.Table.ParentRelations["FK_Postav_Flowers_Flowers"])));
  2579. }
  2580. set {
  2581. this.SetParentRow(value, this.Table.ParentRelations["FK_Postav_Flowers_Flowers"]);
  2582. }
  2583. }
  2584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2586. public PostavRow PostavRow {
  2587. get {
  2588. return ((PostavRow)(this.GetParentRow(this.Table.ParentRelations["FK_Postav_Flowers_Postav"])));
  2589. }
  2590. set {
  2591. this.SetParentRow(value, this.Table.ParentRelations["FK_Postav_Flowers_Postav"]);
  2592. }
  2593. }
  2594. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2595. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2596. public bool IsКод_цветкаNull() {
  2597. return this.IsNull(this.tablePostav_Flowers.Код_цветкаColumn);
  2598. }
  2599. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2600. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2601. public void SetКод_цветкаNull() {
  2602. this[this.tablePostav_Flowers.Код_цветкаColumn] = global::System.Convert.DBNull;
  2603. }
  2604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2606. public bool IsНазвание_цветкаNull() {
  2607. return this.IsNull(this.tablePostav_Flowers.Название_цветкаColumn);
  2608. }
  2609. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2610. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2611. public void SetНазвание_цветкаNull() {
  2612. this[this.tablePostav_Flowers.Название_цветкаColumn] = global::System.Convert.DBNull;
  2613. }
  2614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2615. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2616. public bool IsНазвание_поставщикаNull() {
  2617. return this.IsNull(this.tablePostav_Flowers.Название_поставщикаColumn);
  2618. }
  2619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2621. public void SetНазвание_поставщикаNull() {
  2622. this[this.tablePostav_Flowers.Название_поставщикаColumn] = global::System.Convert.DBNull;
  2623. }
  2624. }
  2625. /// <summary>
  2626. ///Row event argument class
  2627. ///</summary>
  2628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2629. public class ContractsRowChangeEvent : global::System.EventArgs {
  2630. private ContractsRow eventRow;
  2631. private global::System.Data.DataRowAction eventAction;
  2632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2634. public ContractsRowChangeEvent(ContractsRow row, global::System.Data.DataRowAction action) {
  2635. this.eventRow = row;
  2636. this.eventAction = action;
  2637. }
  2638. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2639. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2640. public ContractsRow Row {
  2641. get {
  2642. return this.eventRow;
  2643. }
  2644. }
  2645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2646. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2647. public global::System.Data.DataRowAction Action {
  2648. get {
  2649. return this.eventAction;
  2650. }
  2651. }
  2652. }
  2653. /// <summary>
  2654. ///Row event argument class
  2655. ///</summary>
  2656. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2657. public class CustomerRowChangeEvent : global::System.EventArgs {
  2658. private CustomerRow eventRow;
  2659. private global::System.Data.DataRowAction eventAction;
  2660. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2661. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2662. public CustomerRowChangeEvent(CustomerRow row, global::System.Data.DataRowAction action) {
  2663. this.eventRow = row;
  2664. this.eventAction = action;
  2665. }
  2666. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2667. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2668. public CustomerRow Row {
  2669. get {
  2670. return this.eventRow;
  2671. }
  2672. }
  2673. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2674. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2675. public global::System.Data.DataRowAction Action {
  2676. get {
  2677. return this.eventAction;
  2678. }
  2679. }
  2680. }
  2681. /// <summary>
  2682. ///Row event argument class
  2683. ///</summary>
  2684. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2685. public class FlowersRowChangeEvent : global::System.EventArgs {
  2686. private FlowersRow eventRow;
  2687. private global::System.Data.DataRowAction eventAction;
  2688. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2689. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2690. public FlowersRowChangeEvent(FlowersRow row, global::System.Data.DataRowAction action) {
  2691. this.eventRow = row;
  2692. this.eventAction = action;
  2693. }
  2694. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2695. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2696. public FlowersRow Row {
  2697. get {
  2698. return this.eventRow;
  2699. }
  2700. }
  2701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2702. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2703. public global::System.Data.DataRowAction Action {
  2704. get {
  2705. return this.eventAction;
  2706. }
  2707. }
  2708. }
  2709. /// <summary>
  2710. ///Row event argument class
  2711. ///</summary>
  2712. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2713. public class OrdersRowChangeEvent : global::System.EventArgs {
  2714. private OrdersRow eventRow;
  2715. private global::System.Data.DataRowAction eventAction;
  2716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2717. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2718. public OrdersRowChangeEvent(OrdersRow row, global::System.Data.DataRowAction action) {
  2719. this.eventRow = row;
  2720. this.eventAction = action;
  2721. }
  2722. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2723. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2724. public OrdersRow Row {
  2725. get {
  2726. return this.eventRow;
  2727. }
  2728. }
  2729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2730. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2731. public global::System.Data.DataRowAction Action {
  2732. get {
  2733. return this.eventAction;
  2734. }
  2735. }
  2736. }
  2737. /// <summary>
  2738. ///Row event argument class
  2739. ///</summary>
  2740. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2741. public class PostavRowChangeEvent : global::System.EventArgs {
  2742. private PostavRow eventRow;
  2743. private global::System.Data.DataRowAction eventAction;
  2744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2746. public PostavRowChangeEvent(PostavRow row, global::System.Data.DataRowAction action) {
  2747. this.eventRow = row;
  2748. this.eventAction = action;
  2749. }
  2750. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2751. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2752. public PostavRow Row {
  2753. get {
  2754. return this.eventRow;
  2755. }
  2756. }
  2757. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2758. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2759. public global::System.Data.DataRowAction Action {
  2760. get {
  2761. return this.eventAction;
  2762. }
  2763. }
  2764. }
  2765. /// <summary>
  2766. ///Row event argument class
  2767. ///</summary>
  2768. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2769. public class Postav_FlowersRowChangeEvent : global::System.EventArgs {
  2770. private Postav_FlowersRow eventRow;
  2771. private global::System.Data.DataRowAction eventAction;
  2772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2773. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2774. public Postav_FlowersRowChangeEvent(Postav_FlowersRow row, global::System.Data.DataRowAction action) {
  2775. this.eventRow = row;
  2776. this.eventAction = action;
  2777. }
  2778. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2779. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2780. public Postav_FlowersRow Row {
  2781. get {
  2782. return this.eventRow;
  2783. }
  2784. }
  2785. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2786. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2787. public global::System.Data.DataRowAction Action {
  2788. get {
  2789. return this.eventAction;
  2790. }
  2791. }
  2792. }
  2793. }
  2794. }
  2795. namespace ГЕС_5._ГЕС_5DataSetTableAdapters {
  2796. /// <summary>
  2797. ///Represents the connection and commands used to retrieve and save data.
  2798. ///</summary>
  2799. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  2800. [global::System.ComponentModel.ToolboxItem(true)]
  2801. [global::System.ComponentModel.DataObjectAttribute(true)]
  2802. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  2803. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  2804. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2805. public partial class ContractsTableAdapter : global::System.ComponentModel.Component {
  2806. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  2807. private global::System.Data.SqlClient.SqlConnection _connection;
  2808. private global::System.Data.SqlClient.SqlTransaction _transaction;
  2809. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  2810. private bool _clearBeforeFill;
  2811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2812. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2813. public ContractsTableAdapter() {
  2814. this.ClearBeforeFill = true;
  2815. }
  2816. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2817. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2818. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  2819. get {
  2820. if ((this._adapter == null)) {
  2821. this.InitAdapter();
  2822. }
  2823. return this._adapter;
  2824. }
  2825. }
  2826. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2827. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2828. internal global::System.Data.SqlClient.SqlConnection Connection {
  2829. get {
  2830. if ((this._connection == null)) {
  2831. this.InitConnection();
  2832. }
  2833. return this._connection;
  2834. }
  2835. set {
  2836. this._connection = value;
  2837. if ((this.Adapter.InsertCommand != null)) {
  2838. this.Adapter.InsertCommand.Connection = value;
  2839. }
  2840. if ((this.Adapter.DeleteCommand != null)) {
  2841. this.Adapter.DeleteCommand.Connection = value;
  2842. }
  2843. if ((this.Adapter.UpdateCommand != null)) {
  2844. this.Adapter.UpdateCommand.Connection = value;
  2845. }
  2846. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2847. if ((this.CommandCollection[i] != null)) {
  2848. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  2849. }
  2850. }
  2851. }
  2852. }
  2853. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2854. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2855. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  2856. get {
  2857. return this._transaction;
  2858. }
  2859. set {
  2860. this._transaction = value;
  2861. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2862. this.CommandCollection[i].Transaction = this._transaction;
  2863. }
  2864. if (((this.Adapter != null)
  2865. && (this.Adapter.DeleteCommand != null))) {
  2866. this.Adapter.DeleteCommand.Transaction = this._transaction;
  2867. }
  2868. if (((this.Adapter != null)
  2869. && (this.Adapter.InsertCommand != null))) {
  2870. this.Adapter.InsertCommand.Transaction = this._transaction;
  2871. }
  2872. if (((this.Adapter != null)
  2873. && (this.Adapter.UpdateCommand != null))) {
  2874. this.Adapter.UpdateCommand.Transaction = this._transaction;
  2875. }
  2876. }
  2877. }
  2878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2879. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2880. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  2881. get {
  2882. if ((this._commandCollection == null)) {
  2883. this.InitCommandCollection();
  2884. }
  2885. return this._commandCollection;
  2886. }
  2887. }
  2888. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2889. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2890. public bool ClearBeforeFill {
  2891. get {
  2892. return this._clearBeforeFill;
  2893. }
  2894. set {
  2895. this._clearBeforeFill = value;
  2896. }
  2897. }
  2898. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2899. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2900. private void InitAdapter() {
  2901. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  2902. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  2903. tableMapping.SourceTable = "Table";
  2904. tableMapping.DataSetTable = "Contracts";
  2905. tableMapping.ColumnMappings.Add("Код договора", "Код договора");
  2906. tableMapping.ColumnMappings.Add("Номер договора", "Номер договора");
  2907. tableMapping.ColumnMappings.Add("Код заказчика", "Код заказчика");
  2908. tableMapping.ColumnMappings.Add("Дата оформления договора", "Дата оформления договора");
  2909. tableMapping.ColumnMappings.Add("Код поставщика", "Код поставщика");
  2910. this._adapter.TableMappings.Add(tableMapping);
  2911. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  2912. this._adapter.DeleteCommand.Connection = this.Connection;
  2913. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Contracts] 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 AND [Код поставщика] IS NULL) OR ([Код поставщика] = @Original_Код_поставщика)))";
  2914. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  2915. 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, "", "", ""));
  2916. 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, "", "", ""));
  2917. 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, "", "", ""));
  2918. 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, "", "", ""));
  2919. 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, "", "", ""));
  2920. 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, "", "", ""));
  2921. 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, "", "", ""));
  2922. 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, "", "", ""));
  2923. 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, "", "", ""));
  2924. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  2925. this._adapter.InsertCommand.Connection = this.Connection;
  2926. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Contracts] ([Код договора], [Номер договора], [Код заказчика], [Дата оформления договора], [Код поставщика]) VALUES (@Код_договора, @Номер_договора, @Код_заказчика, @Дата_оформления_договора, @Код_поставщика);
  2927. SELECT [Код договора], [Номер договора], [Код заказчика], [Дата оформления договора], [Код поставщика] FROM Contracts WHERE ([Код договора] = @Код_договора)";
  2928. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  2929. 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, "", "", ""));
  2930. 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, "", "", ""));
  2931. 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, "", "", ""));
  2932. 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, "", "", ""));
  2933. 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, "", "", ""));
  2934. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  2935. this._adapter.UpdateCommand.Connection = this.Connection;
  2936. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Contracts] 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_Дата_оформления_договора)) AND ((@IsNull_Код_поставщика = 1 AND [Код поставщика] IS NULL) OR ([Код поставщика] = @Original_Код_поставщика)));
  2937. SELECT [Код договора], [Номер договора], [Код заказчика], [Дата оформления договора], [Код поставщика] FROM Contracts WHERE ([Код договора] = @Код_договора)";
  2938. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  2939. 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, "", "", ""));
  2940. 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, "", "", ""));
  2941. 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, "", "", ""));
  2942. 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, "", "", ""));
  2943. 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, "", "", ""));
  2944. 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, "", "", ""));
  2945. 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, "", "", ""));
  2946. 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, "", "", ""));
  2947. 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, "", "", ""));
  2948. 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, "", "", ""));
  2949. 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, "", "", ""));
  2950. 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, "", "", ""));
  2951. 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, "", "", ""));
  2952. 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, "", "", ""));
  2953. }
  2954. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2955. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2956. private void InitConnection() {
  2957. this._connection = new global::System.Data.SqlClient.SqlConnection();
  2958. this._connection.ConnectionString = global::ГЕС_5.Properties.Settings.Default.ГЕС_5ConnectionString;
  2959. }
  2960. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2961. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2962. private void InitCommandCollection() {
  2963. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  2964. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  2965. this._commandCollection[0].Connection = this.Connection;
  2966. this._commandCollection[0].CommandText = "SELECT [Код договора], [Номер договора], [Код заказчика], [Дата оформления догово" +
  2967. "ра], [Код поставщика] FROM dbo.Contracts";
  2968. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  2969. }
  2970. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2971. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2972. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2973. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  2974. public virtual int Fill(_ГЕС_5DataSet.ContractsDataTable dataTable) {
  2975. this.Adapter.SelectCommand = this.CommandCollection[0];
  2976. if ((this.ClearBeforeFill == true)) {
  2977. dataTable.Clear();
  2978. }
  2979. int returnValue = this.Adapter.Fill(dataTable);
  2980. return returnValue;
  2981. }
  2982. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2983. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2984. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2985. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  2986. public virtual _ГЕС_5DataSet.ContractsDataTable GetData() {
  2987. this.Adapter.SelectCommand = this.CommandCollection[0];
  2988. _ГЕС_5DataSet.ContractsDataTable dataTable = new _ГЕС_5DataSet.ContractsDataTable();
  2989. this.Adapter.Fill(dataTable);
  2990. return dataTable;
  2991. }
  2992. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2993. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2994. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2995. public virtual int Update(_ГЕС_5DataSet.ContractsDataTable dataTable) {
  2996. return this.Adapter.Update(dataTable);
  2997. }
  2998. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2999. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3000. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3001. public virtual int Update(_ГЕС_5DataSet dataSet) {
  3002. return this.Adapter.Update(dataSet, "Contracts");
  3003. }
  3004. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3005. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3006. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3007. public virtual int Update(global::System.Data.DataRow dataRow) {
  3008. return this.Adapter.Update(new global::System.Data.DataRow[] {
  3009. dataRow});
  3010. }
  3011. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3012. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3013. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3014. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  3015. return this.Adapter.Update(dataRows);
  3016. }
  3017. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3018. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3019. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3020. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  3021. public virtual int Delete(int Original_Код_договора, global::System.Nullable<int> Original_Номер_договора, global::System.Nullable<int> Original_Код_заказчика, global::System.Nullable<global::System.DateTime> Original_Дата_оформления_договора, global::System.Nullable<int> Original_Код_поставщика) {
  3022. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_Код_договора));
  3023. if ((Original_Номер_договора.HasValue == true)) {
  3024. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  3025. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_Номер_договора.Value));
  3026. }
  3027. else {
  3028. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  3029. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  3030. }
  3031. if ((Original_Код_заказчика.HasValue == true)) {
  3032. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  3033. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_Код_заказчика.Value));
  3034. }
  3035. else {
  3036. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  3037. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  3038. }
  3039. if ((Original_Дата_оформления_договора.HasValue == true)) {
  3040. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  3041. this.Adapter.DeleteCommand.Parameters[6].Value = ((System.DateTime)(Original_Дата_оформления_договора.Value));
  3042. }
  3043. else {
  3044. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  3045. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  3046. }
  3047. if ((Original_Код_поставщика.HasValue == true)) {
  3048. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  3049. this.Adapter.DeleteCommand.Parameters[8].Value = ((int)(Original_Код_поставщика.Value));
  3050. }
  3051. else {
  3052. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  3053. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  3054. }
  3055. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  3056. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3057. != global::System.Data.ConnectionState.Open)) {
  3058. this.Adapter.DeleteCommand.Connection.Open();
  3059. }
  3060. try {
  3061. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  3062. return returnValue;
  3063. }
  3064. finally {
  3065. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3066. this.Adapter.DeleteCommand.Connection.Close();
  3067. }
  3068. }
  3069. }
  3070. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3071. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3072. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3073. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  3074. public virtual int Insert(int Код_договора, global::System.Nullable<int> Номер_договора, global::System.Nullable<int> Код_заказчика, global::System.Nullable<global::System.DateTime> Дата_оформления_договора, global::System.Nullable<int> Код_поставщика) {
  3075. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(Код_договора));
  3076. if ((Номер_договора.HasValue == true)) {
  3077. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(Номер_договора.Value));
  3078. }
  3079. else {
  3080. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  3081. }
  3082. if ((Код_заказчика.HasValue == true)) {
  3083. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Код_заказчика.Value));
  3084. }
  3085. else {
  3086. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  3087. }
  3088. if ((Дата_оформления_договора.HasValue == true)) {
  3089. this.Adapter.InsertCommand.Parameters[3].Value = ((System.DateTime)(Дата_оформления_договора.Value));
  3090. }
  3091. else {
  3092. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  3093. }
  3094. if ((Код_поставщика.HasValue == true)) {
  3095. this.Adapter.InsertCommand.Parameters[4].Value = ((int)(Код_поставщика.Value));
  3096. }
  3097. else {
  3098. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  3099. }
  3100. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  3101. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3102. != global::System.Data.ConnectionState.Open)) {
  3103. this.Adapter.InsertCommand.Connection.Open();
  3104. }
  3105. try {
  3106. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  3107. return returnValue;
  3108. }
  3109. finally {
  3110. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3111. this.Adapter.InsertCommand.Connection.Close();
  3112. }
  3113. }
  3114. }
  3115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3116. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3117. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3118. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3119. public virtual int Update(int Код_договора, global::System.Nullable<int> Номер_договора, global::System.Nullable<int> Код_заказчика, global::System.Nullable<global::System.DateTime> Дата_оформления_договора, global::System.Nullable<int> Код_поставщика, int Original_Код_договора, global::System.Nullable<int> Original_Номер_договора, global::System.Nullable<int> Original_Код_заказчика, global::System.Nullable<global::System.DateTime> Original_Дата_оформления_договора, global::System.Nullable<int> Original_Код_поставщика) {
  3120. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(Код_договора));
  3121. if ((Номер_договора.HasValue == true)) {
  3122. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Номер_договора.Value));
  3123. }
  3124. else {
  3125. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  3126. }
  3127. if ((Код_заказчика.HasValue == true)) {
  3128. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Код_заказчика.Value));
  3129. }
  3130. else {
  3131. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  3132. }
  3133. if ((Дата_оформления_договора.HasValue == true)) {
  3134. this.Adapter.UpdateCommand.Parameters[3].Value = ((System.DateTime)(Дата_оформления_договора.Value));
  3135. }
  3136. else {
  3137. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  3138. }
  3139. if ((Код_поставщика.HasValue == true)) {
  3140. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Код_поставщика.Value));
  3141. }
  3142. else {
  3143. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  3144. }
  3145. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_Код_договора));
  3146. if ((Original_Номер_договора.HasValue == true)) {
  3147. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  3148. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_Номер_договора.Value));
  3149. }
  3150. else {
  3151. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  3152. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  3153. }
  3154. if ((Original_Код_заказчика.HasValue == true)) {
  3155. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  3156. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_Код_заказчика.Value));
  3157. }
  3158. else {
  3159. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  3160. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  3161. }
  3162. if ((Original_Дата_оформления_договора.HasValue == true)) {
  3163. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  3164. this.Adapter.UpdateCommand.Parameters[11].Value = ((System.DateTime)(Original_Дата_оформления_договора.Value));
  3165. }
  3166. else {
  3167. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  3168. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  3169. }
  3170. if ((Original_Код_поставщика.HasValue == true)) {
  3171. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  3172. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Original_Код_поставщика.Value));
  3173. }
  3174. else {
  3175. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  3176. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  3177. }
  3178. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  3179. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3180. != global::System.Data.ConnectionState.Open)) {
  3181. this.Adapter.UpdateCommand.Connection.Open();
  3182. }
  3183. try {
  3184. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  3185. return returnValue;
  3186. }
  3187. finally {
  3188. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3189. this.Adapter.UpdateCommand.Connection.Close();
  3190. }
  3191. }
  3192. }
  3193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3194. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3195. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3196. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3197. public virtual int Update(global::System.Nullable<int> Номер_договора, global::System.Nullable<int> Код_заказчика, global::System.Nullable<global::System.DateTime> Дата_оформления_договора, global::System.Nullable<int> Код_поставщика, int Original_Код_договора, global::System.Nullable<int> Original_Номер_договора, global::System.Nullable<int> Original_Код_заказчика, global::System.Nullable<global::System.DateTime> Original_Дата_оформления_договора, global::System.Nullable<int> Original_Код_поставщика) {
  3198. return this.Update(Original_Код_договора, Номер_договора, Код_заказчика, Дата_оформления_договора, Код_поставщика, Original_Код_договора, Original_Номер_договора, Original_Код_заказчика, Original_Дата_оформления_договора, Original_Код_поставщика);
  3199. }
  3200. }
  3201. /// <summary>
  3202. ///Represents the connection and commands used to retrieve and save data.
  3203. ///</summary>
  3204. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3205. [global::System.ComponentModel.ToolboxItem(true)]
  3206. [global::System.ComponentModel.DataObjectAttribute(true)]
  3207. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  3208. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3209. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3210. public partial class CustomerTableAdapter : global::System.ComponentModel.Component {
  3211. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  3212. private global::System.Data.SqlClient.SqlConnection _connection;
  3213. private global::System.Data.SqlClient.SqlTransaction _transaction;
  3214. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  3215. private bool _clearBeforeFill;
  3216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3218. public CustomerTableAdapter() {
  3219. this.ClearBeforeFill = true;
  3220. }
  3221. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3222. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3223. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  3224. get {
  3225. if ((this._adapter == null)) {
  3226. this.InitAdapter();
  3227. }
  3228. return this._adapter;
  3229. }
  3230. }
  3231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3233. internal global::System.Data.SqlClient.SqlConnection Connection {
  3234. get {
  3235. if ((this._connection == null)) {
  3236. this.InitConnection();
  3237. }
  3238. return this._connection;
  3239. }
  3240. set {
  3241. this._connection = value;
  3242. if ((this.Adapter.InsertCommand != null)) {
  3243. this.Adapter.InsertCommand.Connection = value;
  3244. }
  3245. if ((this.Adapter.DeleteCommand != null)) {
  3246. this.Adapter.DeleteCommand.Connection = value;
  3247. }
  3248. if ((this.Adapter.UpdateCommand != null)) {
  3249. this.Adapter.UpdateCommand.Connection = value;
  3250. }
  3251. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3252. if ((this.CommandCollection[i] != null)) {
  3253. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  3254. }
  3255. }
  3256. }
  3257. }
  3258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3260. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  3261. get {
  3262. return this._transaction;
  3263. }
  3264. set {
  3265. this._transaction = value;
  3266. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3267. this.CommandCollection[i].Transaction = this._transaction;
  3268. }
  3269. if (((this.Adapter != null)
  3270. && (this.Adapter.DeleteCommand != null))) {
  3271. this.Adapter.DeleteCommand.Transaction = this._transaction;
  3272. }
  3273. if (((this.Adapter != null)
  3274. && (this.Adapter.InsertCommand != null))) {
  3275. this.Adapter.InsertCommand.Transaction = this._transaction;
  3276. }
  3277. if (((this.Adapter != null)
  3278. && (this.Adapter.UpdateCommand != null))) {
  3279. this.Adapter.UpdateCommand.Transaction = this._transaction;
  3280. }
  3281. }
  3282. }
  3283. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3284. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3285. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  3286. get {
  3287. if ((this._commandCollection == null)) {
  3288. this.InitCommandCollection();
  3289. }
  3290. return this._commandCollection;
  3291. }
  3292. }
  3293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3294. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3295. public bool ClearBeforeFill {
  3296. get {
  3297. return this._clearBeforeFill;
  3298. }
  3299. set {
  3300. this._clearBeforeFill = value;
  3301. }
  3302. }
  3303. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3304. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3305. private void InitAdapter() {
  3306. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  3307. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  3308. tableMapping.SourceTable = "Table";
  3309. tableMapping.DataSetTable = "Customer";
  3310. tableMapping.ColumnMappings.Add("Код заказчика", "Код заказчика");
  3311. tableMapping.ColumnMappings.Add("Название заказчика", "Название заказчика");
  3312. tableMapping.ColumnMappings.Add("Телефон", "Телефон");
  3313. this._adapter.TableMappings.Add(tableMapping);
  3314. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  3315. this._adapter.DeleteCommand.Connection = this.Connection;
  3316. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Customer] WHERE (([Код заказчика] = @Original_Код_заказчика) AND ((@IsNull_Название_заказчика = 1 AND [Название заказчика] IS NULL) OR ([Название заказчика] = @Original_Название_заказчика)) AND ((@IsNull_Телефон = 1 AND [Телефон] IS NULL) OR ([Телефон] = @Original_Телефон)))";
  3317. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  3318. 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, "", "", ""));
  3319. 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, "", "", ""));
  3320. 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, "", "", ""));
  3321. 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, "", "", ""));
  3322. 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, "", "", ""));
  3323. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  3324. this._adapter.InsertCommand.Connection = this.Connection;
  3325. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Customer] ([Код заказчика], [Название заказчика], [Телефон]) V" +
  3326. "ALUES (@Код_заказчика, @Название_заказчика, @Телефон);\r\nSELECT [Код заказчика], " +
  3327. "[Название заказчика], Телефон FROM Customer WHERE ([Код заказчика] = @Код_заказч" +
  3328. "ика)";
  3329. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  3330. 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, "", "", ""));
  3331. 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, "", "", ""));
  3332. 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, "", "", ""));
  3333. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  3334. this._adapter.UpdateCommand.Connection = this.Connection;
  3335. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Customer] SET [Код заказчика] = @Код_заказчика, [Название заказчика] = @Название_заказчика, [Телефон] = @Телефон WHERE (([Код заказчика] = @Original_Код_заказчика) AND ((@IsNull_Название_заказчика = 1 AND [Название заказчика] IS NULL) OR ([Название заказчика] = @Original_Название_заказчика)) AND ((@IsNull_Телефон = 1 AND [Телефон] IS NULL) OR ([Телефон] = @Original_Телефон)));
  3336. SELECT [Код заказчика], [Название заказчика], Телефон FROM Customer WHERE ([Код заказчика] = @Код_заказчика)";
  3337. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  3338. 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, "", "", ""));
  3339. 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, "", "", ""));
  3340. 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, "", "", ""));
  3341. 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, "", "", ""));
  3342. 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, "", "", ""));
  3343. 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, "", "", ""));
  3344. 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, "", "", ""));
  3345. 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, "", "", ""));
  3346. }
  3347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3349. private void InitConnection() {
  3350. this._connection = new global::System.Data.SqlClient.SqlConnection();
  3351. this._connection.ConnectionString = global::ГЕС_5.Properties.Settings.Default.ГЕС_5ConnectionString;
  3352. }
  3353. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3354. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3355. private void InitCommandCollection() {
  3356. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  3357. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  3358. this._commandCollection[0].Connection = this.Connection;
  3359. this._commandCollection[0].CommandText = "SELECT [Код заказчика], [Название заказчика], Телефон FROM dbo.Customer";
  3360. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  3361. }
  3362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3363. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3364. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3365. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  3366. public virtual int Fill(_ГЕС_5DataSet.CustomerDataTable dataTable) {
  3367. this.Adapter.SelectCommand = this.CommandCollection[0];
  3368. if ((this.ClearBeforeFill == true)) {
  3369. dataTable.Clear();
  3370. }
  3371. int returnValue = this.Adapter.Fill(dataTable);
  3372. return returnValue;
  3373. }
  3374. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3375. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3376. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3377. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  3378. public virtual _ГЕС_5DataSet.CustomerDataTable GetData() {
  3379. this.Adapter.SelectCommand = this.CommandCollection[0];
  3380. _ГЕС_5DataSet.CustomerDataTable dataTable = new _ГЕС_5DataSet.CustomerDataTable();
  3381. this.Adapter.Fill(dataTable);
  3382. return dataTable;
  3383. }
  3384. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3385. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3386. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3387. public virtual int Update(_ГЕС_5DataSet.CustomerDataTable dataTable) {
  3388. return this.Adapter.Update(dataTable);
  3389. }
  3390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3392. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3393. public virtual int Update(_ГЕС_5DataSet dataSet) {
  3394. return this.Adapter.Update(dataSet, "Customer");
  3395. }
  3396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3398. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3399. public virtual int Update(global::System.Data.DataRow dataRow) {
  3400. return this.Adapter.Update(new global::System.Data.DataRow[] {
  3401. dataRow});
  3402. }
  3403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3404. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3405. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3406. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  3407. return this.Adapter.Update(dataRows);
  3408. }
  3409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3411. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3412. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  3413. public virtual int Delete(int Original_Код_заказчика, string Original_Название_заказчика, string Original_Телефон) {
  3414. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_Код_заказчика));
  3415. if ((Original_Название_заказчика == null)) {
  3416. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  3417. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  3418. }
  3419. else {
  3420. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  3421. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Название_заказчика));
  3422. }
  3423. if ((Original_Телефон == null)) {
  3424. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  3425. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  3426. }
  3427. else {
  3428. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  3429. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Телефон));
  3430. }
  3431. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  3432. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3433. != global::System.Data.ConnectionState.Open)) {
  3434. this.Adapter.DeleteCommand.Connection.Open();
  3435. }
  3436. try {
  3437. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  3438. return returnValue;
  3439. }
  3440. finally {
  3441. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3442. this.Adapter.DeleteCommand.Connection.Close();
  3443. }
  3444. }
  3445. }
  3446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3447. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3448. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3449. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  3450. public virtual int Insert(int Код_заказчика, string Название_заказчика, string Телефон) {
  3451. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(Код_заказчика));
  3452. if ((Название_заказчика == null)) {
  3453. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  3454. }
  3455. else {
  3456. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Название_заказчика));
  3457. }
  3458. if ((Телефон == null)) {
  3459. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  3460. }
  3461. else {
  3462. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Телефон));
  3463. }
  3464. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  3465. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3466. != global::System.Data.ConnectionState.Open)) {
  3467. this.Adapter.InsertCommand.Connection.Open();
  3468. }
  3469. try {
  3470. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  3471. return returnValue;
  3472. }
  3473. finally {
  3474. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3475. this.Adapter.InsertCommand.Connection.Close();
  3476. }
  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.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3482. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3483. public virtual int Update(int Код_заказчика, string Название_заказчика, string Телефон, int Original_Код_заказчика, string Original_Название_заказчика, string Original_Телефон) {
  3484. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(Код_заказчика));
  3485. if ((Название_заказчика == null)) {
  3486. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  3487. }
  3488. else {
  3489. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Название_заказчика));
  3490. }
  3491. if ((Телефон == null)) {
  3492. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  3493. }
  3494. else {
  3495. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Телефон));
  3496. }
  3497. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_Код_заказчика));
  3498. if ((Original_Название_заказчика == null)) {
  3499. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  3500. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  3501. }
  3502. else {
  3503. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  3504. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Название_заказчика));
  3505. }
  3506. if ((Original_Телефон == null)) {
  3507. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  3508. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  3509. }
  3510. else {
  3511. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  3512. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Телефон));
  3513. }
  3514. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  3515. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3516. != global::System.Data.ConnectionState.Open)) {
  3517. this.Adapter.UpdateCommand.Connection.Open();
  3518. }
  3519. try {
  3520. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  3521. return returnValue;
  3522. }
  3523. finally {
  3524. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3525. this.Adapter.UpdateCommand.Connection.Close();
  3526. }
  3527. }
  3528. }
  3529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3530. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3531. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3532. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3533. public virtual int Update(string Название_заказчика, string Телефон, int Original_Код_заказчика, string Original_Название_заказчика, string Original_Телефон) {
  3534. return this.Update(Original_Код_заказчика, Название_заказчика, Телефон, Original_Код_заказчика, Original_Название_заказчика, Original_Телефон);
  3535. }
  3536. }
  3537. /// <summary>
  3538. ///Represents the connection and commands used to retrieve and save data.
  3539. ///</summary>
  3540. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3541. [global::System.ComponentModel.ToolboxItem(true)]
  3542. [global::System.ComponentModel.DataObjectAttribute(true)]
  3543. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  3544. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3545. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3546. public partial class FlowersTableAdapter : global::System.ComponentModel.Component {
  3547. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  3548. private global::System.Data.SqlClient.SqlConnection _connection;
  3549. private global::System.Data.SqlClient.SqlTransaction _transaction;
  3550. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  3551. private bool _clearBeforeFill;
  3552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3554. public FlowersTableAdapter() {
  3555. this.ClearBeforeFill = true;
  3556. }
  3557. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3558. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3559. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  3560. get {
  3561. if ((this._adapter == null)) {
  3562. this.InitAdapter();
  3563. }
  3564. return this._adapter;
  3565. }
  3566. }
  3567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3569. internal global::System.Data.SqlClient.SqlConnection Connection {
  3570. get {
  3571. if ((this._connection == null)) {
  3572. this.InitConnection();
  3573. }
  3574. return this._connection;
  3575. }
  3576. set {
  3577. this._connection = value;
  3578. if ((this.Adapter.InsertCommand != null)) {
  3579. this.Adapter.InsertCommand.Connection = value;
  3580. }
  3581. if ((this.Adapter.DeleteCommand != null)) {
  3582. this.Adapter.DeleteCommand.Connection = value;
  3583. }
  3584. if ((this.Adapter.UpdateCommand != null)) {
  3585. this.Adapter.UpdateCommand.Connection = value;
  3586. }
  3587. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3588. if ((this.CommandCollection[i] != null)) {
  3589. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  3590. }
  3591. }
  3592. }
  3593. }
  3594. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3595. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3596. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  3597. get {
  3598. return this._transaction;
  3599. }
  3600. set {
  3601. this._transaction = value;
  3602. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3603. this.CommandCollection[i].Transaction = this._transaction;
  3604. }
  3605. if (((this.Adapter != null)
  3606. && (this.Adapter.DeleteCommand != null))) {
  3607. this.Adapter.DeleteCommand.Transaction = this._transaction;
  3608. }
  3609. if (((this.Adapter != null)
  3610. && (this.Adapter.InsertCommand != null))) {
  3611. this.Adapter.InsertCommand.Transaction = this._transaction;
  3612. }
  3613. if (((this.Adapter != null)
  3614. && (this.Adapter.UpdateCommand != null))) {
  3615. this.Adapter.UpdateCommand.Transaction = this._transaction;
  3616. }
  3617. }
  3618. }
  3619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3621. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  3622. get {
  3623. if ((this._commandCollection == null)) {
  3624. this.InitCommandCollection();
  3625. }
  3626. return this._commandCollection;
  3627. }
  3628. }
  3629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3631. public bool ClearBeforeFill {
  3632. get {
  3633. return this._clearBeforeFill;
  3634. }
  3635. set {
  3636. this._clearBeforeFill = value;
  3637. }
  3638. }
  3639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3641. private void InitAdapter() {
  3642. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  3643. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  3644. tableMapping.SourceTable = "Table";
  3645. tableMapping.DataSetTable = "Flowers";
  3646. tableMapping.ColumnMappings.Add("Код цветка", "Код цветка");
  3647. tableMapping.ColumnMappings.Add("Название цветка", "Название цветка");
  3648. tableMapping.ColumnMappings.Add("Цена рассады (руб.)", "Цена рассады (руб_)");
  3649. this._adapter.TableMappings.Add(tableMapping);
  3650. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  3651. this._adapter.DeleteCommand.Connection = this.Connection;
  3652. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Flowers] WHERE (([Код цветка] = @Original_Код_цветка) AND ((@IsNull_Название_цветка = 1 AND [Название цветка] IS NULL) OR ([Название цветка] = @Original_Название_цветка)) AND ((@p3 = 1 AND [Цена рассады (руб.)] IS NULL) OR ([Цена рассады (руб.)] = @p2)))";
  3653. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  3654. 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, "", "", ""));
  3655. 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, "", "", ""));
  3656. 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, "", "", ""));
  3657. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p3", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена рассады (руб.)", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3658. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p2", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена рассады (руб.)", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3659. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  3660. this._adapter.InsertCommand.Connection = this.Connection;
  3661. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Flowers] ([Код цветка], [Название цветка], [Цена рассады (руб." +
  3662. ")]) VALUES (@Код_цветка, @Название_цветка, @p1);\r\nSELECT [Код цветка], [Название" +
  3663. " цветка], [Цена рассады (руб.)] FROM Flowers WHERE ([Код цветка] = @Код_цветка)";
  3664. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  3665. 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, "", "", ""));
  3666. 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, "", "", ""));
  3667. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p1", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена рассады (руб.)", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3668. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  3669. this._adapter.UpdateCommand.Connection = this.Connection;
  3670. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Flowers] SET [Код цветка] = @Код_цветка, [Название цветка] = @Название_цветка, [Цена рассады (руб.)] = @p1 WHERE (([Код цветка] = @Original_Код_цветка) AND ((@IsNull_Название_цветка = 1 AND [Название цветка] IS NULL) OR ([Название цветка] = @Original_Название_цветка)) AND ((@p3 = 1 AND [Цена рассады (руб.)] IS NULL) OR ([Цена рассады (руб.)] = @p2)));
  3671. SELECT [Код цветка], [Название цветка], [Цена рассады (руб.)] FROM Flowers WHERE ([Код цветка] = @Код_цветка)";
  3672. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  3673. 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, "", "", ""));
  3674. 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, "", "", ""));
  3675. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p1", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена рассады (руб.)", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3676. 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, "", "", ""));
  3677. 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, "", "", ""));
  3678. 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, "", "", ""));
  3679. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p3", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена рассады (руб.)", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3680. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p2", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена рассады (руб.)", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3681. }
  3682. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3683. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3684. private void InitConnection() {
  3685. this._connection = new global::System.Data.SqlClient.SqlConnection();
  3686. this._connection.ConnectionString = global::ГЕС_5.Properties.Settings.Default.ГЕС_5ConnectionString;
  3687. }
  3688. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3689. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3690. private void InitCommandCollection() {
  3691. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  3692. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  3693. this._commandCollection[0].Connection = this.Connection;
  3694. this._commandCollection[0].CommandText = "SELECT [Код цветка], [Название цветка], [Цена рассады (руб.)] FROM dbo.Flowers";
  3695. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  3696. }
  3697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3698. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3699. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3700. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  3701. public virtual int Fill(_ГЕС_5DataSet.FlowersDataTable dataTable) {
  3702. this.Adapter.SelectCommand = this.CommandCollection[0];
  3703. if ((this.ClearBeforeFill == true)) {
  3704. dataTable.Clear();
  3705. }
  3706. int returnValue = this.Adapter.Fill(dataTable);
  3707. return returnValue;
  3708. }
  3709. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3710. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3711. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3712. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  3713. public virtual _ГЕС_5DataSet.FlowersDataTable GetData() {
  3714. this.Adapter.SelectCommand = this.CommandCollection[0];
  3715. _ГЕС_5DataSet.FlowersDataTable dataTable = new _ГЕС_5DataSet.FlowersDataTable();
  3716. this.Adapter.Fill(dataTable);
  3717. return dataTable;
  3718. }
  3719. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3720. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3721. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3722. public virtual int Update(_ГЕС_5DataSet.FlowersDataTable dataTable) {
  3723. return this.Adapter.Update(dataTable);
  3724. }
  3725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3726. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3727. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3728. public virtual int Update(_ГЕС_5DataSet dataSet) {
  3729. return this.Adapter.Update(dataSet, "Flowers");
  3730. }
  3731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3732. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3733. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3734. public virtual int Update(global::System.Data.DataRow dataRow) {
  3735. return this.Adapter.Update(new global::System.Data.DataRow[] {
  3736. dataRow});
  3737. }
  3738. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3739. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3740. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3741. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  3742. return this.Adapter.Update(dataRows);
  3743. }
  3744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3746. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3747. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  3748. public virtual int Delete(int Original_Код_цветка, string Original_Название_цветка, global::System.Nullable<decimal> p2) {
  3749. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_Код_цветка));
  3750. if ((Original_Название_цветка == null)) {
  3751. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  3752. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  3753. }
  3754. else {
  3755. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  3756. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Название_цветка));
  3757. }
  3758. if ((p2.HasValue == true)) {
  3759. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  3760. this.Adapter.DeleteCommand.Parameters[4].Value = ((decimal)(p2.Value));
  3761. }
  3762. else {
  3763. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  3764. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  3765. }
  3766. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  3767. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3768. != global::System.Data.ConnectionState.Open)) {
  3769. this.Adapter.DeleteCommand.Connection.Open();
  3770. }
  3771. try {
  3772. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  3773. return returnValue;
  3774. }
  3775. finally {
  3776. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3777. this.Adapter.DeleteCommand.Connection.Close();
  3778. }
  3779. }
  3780. }
  3781. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3782. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3783. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3784. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  3785. public virtual int Insert(int Код_цветка, string Название_цветка, global::System.Nullable<decimal> p1) {
  3786. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(Код_цветка));
  3787. if ((Название_цветка == null)) {
  3788. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  3789. }
  3790. else {
  3791. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Название_цветка));
  3792. }
  3793. if ((p1.HasValue == true)) {
  3794. this.Adapter.InsertCommand.Parameters[2].Value = ((decimal)(p1.Value));
  3795. }
  3796. else {
  3797. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  3798. }
  3799. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  3800. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3801. != global::System.Data.ConnectionState.Open)) {
  3802. this.Adapter.InsertCommand.Connection.Open();
  3803. }
  3804. try {
  3805. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  3806. return returnValue;
  3807. }
  3808. finally {
  3809. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3810. this.Adapter.InsertCommand.Connection.Close();
  3811. }
  3812. }
  3813. }
  3814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3816. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3817. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3818. public virtual int Update(int Код_цветка, string Название_цветка, global::System.Nullable<decimal> p1, int Original_Код_цветка, string Original_Название_цветка, global::System.Nullable<decimal> p2) {
  3819. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(Код_цветка));
  3820. if ((Название_цветка == null)) {
  3821. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  3822. }
  3823. else {
  3824. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Название_цветка));
  3825. }
  3826. if ((p1.HasValue == true)) {
  3827. this.Adapter.UpdateCommand.Parameters[2].Value = ((decimal)(p1.Value));
  3828. }
  3829. else {
  3830. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  3831. }
  3832. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_Код_цветка));
  3833. if ((Original_Название_цветка == null)) {
  3834. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  3835. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  3836. }
  3837. else {
  3838. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  3839. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Название_цветка));
  3840. }
  3841. if ((p2.HasValue == true)) {
  3842. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  3843. this.Adapter.UpdateCommand.Parameters[7].Value = ((decimal)(p2.Value));
  3844. }
  3845. else {
  3846. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  3847. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  3848. }
  3849. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  3850. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3851. != global::System.Data.ConnectionState.Open)) {
  3852. this.Adapter.UpdateCommand.Connection.Open();
  3853. }
  3854. try {
  3855. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  3856. return returnValue;
  3857. }
  3858. finally {
  3859. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3860. this.Adapter.UpdateCommand.Connection.Close();
  3861. }
  3862. }
  3863. }
  3864. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3865. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3866. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3867. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3868. public virtual int Update(string Название_цветка, global::System.Nullable<decimal> p1, int Original_Код_цветка, string Original_Название_цветка, global::System.Nullable<decimal> p2) {
  3869. return this.Update(Original_Код_цветка, Название_цветка, p1, Original_Код_цветка, Original_Название_цветка, p2);
  3870. }
  3871. }
  3872. /// <summary>
  3873. ///Represents the connection and commands used to retrieve and save data.
  3874. ///</summary>
  3875. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3876. [global::System.ComponentModel.ToolboxItem(true)]
  3877. [global::System.ComponentModel.DataObjectAttribute(true)]
  3878. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  3879. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3880. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3881. public partial class OrdersTableAdapter : global::System.ComponentModel.Component {
  3882. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  3883. private global::System.Data.SqlClient.SqlConnection _connection;
  3884. private global::System.Data.SqlClient.SqlTransaction _transaction;
  3885. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  3886. private bool _clearBeforeFill;
  3887. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3888. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3889. public OrdersTableAdapter() {
  3890. this.ClearBeforeFill = true;
  3891. }
  3892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3894. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  3895. get {
  3896. if ((this._adapter == null)) {
  3897. this.InitAdapter();
  3898. }
  3899. return this._adapter;
  3900. }
  3901. }
  3902. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3903. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3904. internal global::System.Data.SqlClient.SqlConnection Connection {
  3905. get {
  3906. if ((this._connection == null)) {
  3907. this.InitConnection();
  3908. }
  3909. return this._connection;
  3910. }
  3911. set {
  3912. this._connection = value;
  3913. if ((this.Adapter.InsertCommand != null)) {
  3914. this.Adapter.InsertCommand.Connection = value;
  3915. }
  3916. if ((this.Adapter.DeleteCommand != null)) {
  3917. this.Adapter.DeleteCommand.Connection = value;
  3918. }
  3919. if ((this.Adapter.UpdateCommand != null)) {
  3920. this.Adapter.UpdateCommand.Connection = value;
  3921. }
  3922. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3923. if ((this.CommandCollection[i] != null)) {
  3924. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  3925. }
  3926. }
  3927. }
  3928. }
  3929. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3930. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3931. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  3932. get {
  3933. return this._transaction;
  3934. }
  3935. set {
  3936. this._transaction = value;
  3937. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3938. this.CommandCollection[i].Transaction = this._transaction;
  3939. }
  3940. if (((this.Adapter != null)
  3941. && (this.Adapter.DeleteCommand != null))) {
  3942. this.Adapter.DeleteCommand.Transaction = this._transaction;
  3943. }
  3944. if (((this.Adapter != null)
  3945. && (this.Adapter.InsertCommand != null))) {
  3946. this.Adapter.InsertCommand.Transaction = this._transaction;
  3947. }
  3948. if (((this.Adapter != null)
  3949. && (this.Adapter.UpdateCommand != null))) {
  3950. this.Adapter.UpdateCommand.Transaction = this._transaction;
  3951. }
  3952. }
  3953. }
  3954. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3955. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3956. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  3957. get {
  3958. if ((this._commandCollection == null)) {
  3959. this.InitCommandCollection();
  3960. }
  3961. return this._commandCollection;
  3962. }
  3963. }
  3964. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3965. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3966. public bool ClearBeforeFill {
  3967. get {
  3968. return this._clearBeforeFill;
  3969. }
  3970. set {
  3971. this._clearBeforeFill = value;
  3972. }
  3973. }
  3974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3975. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3976. private void InitAdapter() {
  3977. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  3978. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  3979. tableMapping.SourceTable = "Table";
  3980. tableMapping.DataSetTable = "Orders";
  3981. tableMapping.ColumnMappings.Add("Номер заказчика", "Номер заказчика");
  3982. tableMapping.ColumnMappings.Add("Код цветка", "Код цветка");
  3983. tableMapping.ColumnMappings.Add("Рассады (кол-во цветков)", "Рассады (кол-во цветков)");
  3984. this._adapter.TableMappings.Add(tableMapping);
  3985. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  3986. this._adapter.InsertCommand.Connection = this.Connection;
  3987. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Orders] ([Номер заказчика], [Код цветка], [Рассады (кол-во цве" +
  3988. "тков)]) VALUES (@Номер_заказчика, @Код_цветка, @p1)";
  3989. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  3990. 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, "", "", ""));
  3991. 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, "", "", ""));
  3992. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p1", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Рассады (кол-во цветков)", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3993. }
  3994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3995. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3996. private void InitConnection() {
  3997. this._connection = new global::System.Data.SqlClient.SqlConnection();
  3998. this._connection.ConnectionString = global::ГЕС_5.Properties.Settings.Default.ГЕС_5ConnectionString;
  3999. }
  4000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4001. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4002. private void InitCommandCollection() {
  4003. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4004. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4005. this._commandCollection[0].Connection = this.Connection;
  4006. this._commandCollection[0].CommandText = "SELECT [Номер заказчика], [Код цветка], [Рассады (кол-во цветков)] FROM dbo.Order" +
  4007. "s";
  4008. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4009. }
  4010. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4011. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4012. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4013. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4014. public virtual int Fill(_ГЕС_5DataSet.OrdersDataTable dataTable) {
  4015. this.Adapter.SelectCommand = this.CommandCollection[0];
  4016. if ((this.ClearBeforeFill == true)) {
  4017. dataTable.Clear();
  4018. }
  4019. int returnValue = this.Adapter.Fill(dataTable);
  4020. return returnValue;
  4021. }
  4022. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4023. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4024. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4025. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4026. public virtual _ГЕС_5DataSet.OrdersDataTable GetData() {
  4027. this.Adapter.SelectCommand = this.CommandCollection[0];
  4028. _ГЕС_5DataSet.OrdersDataTable dataTable = new _ГЕС_5DataSet.OrdersDataTable();
  4029. this.Adapter.Fill(dataTable);
  4030. return dataTable;
  4031. }
  4032. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4033. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4034. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4035. public virtual int Update(_ГЕС_5DataSet.OrdersDataTable dataTable) {
  4036. return this.Adapter.Update(dataTable);
  4037. }
  4038. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4039. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4040. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4041. public virtual int Update(_ГЕС_5DataSet dataSet) {
  4042. return this.Adapter.Update(dataSet, "Orders");
  4043. }
  4044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4046. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4047. public virtual int Update(global::System.Data.DataRow dataRow) {
  4048. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4049. dataRow});
  4050. }
  4051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4053. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4054. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  4055. return this.Adapter.Update(dataRows);
  4056. }
  4057. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4058. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4059. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4060. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  4061. public virtual int Insert(global::System.Nullable<int> Номер_заказчика, global::System.Nullable<int> Код_цветка, global::System.Nullable<int> p1) {
  4062. if ((Номер_заказчика.HasValue == true)) {
  4063. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(Номер_заказчика.Value));
  4064. }
  4065. else {
  4066. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  4067. }
  4068. if ((Код_цветка.HasValue == true)) {
  4069. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(Код_цветка.Value));
  4070. }
  4071. else {
  4072. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  4073. }
  4074. if ((p1.HasValue == true)) {
  4075. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(p1.Value));
  4076. }
  4077. else {
  4078. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  4079. }
  4080. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  4081. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4082. != global::System.Data.ConnectionState.Open)) {
  4083. this.Adapter.InsertCommand.Connection.Open();
  4084. }
  4085. try {
  4086. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  4087. return returnValue;
  4088. }
  4089. finally {
  4090. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4091. this.Adapter.InsertCommand.Connection.Close();
  4092. }
  4093. }
  4094. }
  4095. }
  4096. /// <summary>
  4097. ///Represents the connection and commands used to retrieve and save data.
  4098. ///</summary>
  4099. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4100. [global::System.ComponentModel.ToolboxItem(true)]
  4101. [global::System.ComponentModel.DataObjectAttribute(true)]
  4102. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4103. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4104. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4105. public partial class PostavTableAdapter : global::System.ComponentModel.Component {
  4106. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4107. private global::System.Data.SqlClient.SqlConnection _connection;
  4108. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4109. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4110. private bool _clearBeforeFill;
  4111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4113. public PostavTableAdapter() {
  4114. this.ClearBeforeFill = true;
  4115. }
  4116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4118. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4119. get {
  4120. if ((this._adapter == null)) {
  4121. this.InitAdapter();
  4122. }
  4123. return this._adapter;
  4124. }
  4125. }
  4126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4128. internal global::System.Data.SqlClient.SqlConnection Connection {
  4129. get {
  4130. if ((this._connection == null)) {
  4131. this.InitConnection();
  4132. }
  4133. return this._connection;
  4134. }
  4135. set {
  4136. this._connection = value;
  4137. if ((this.Adapter.InsertCommand != null)) {
  4138. this.Adapter.InsertCommand.Connection = value;
  4139. }
  4140. if ((this.Adapter.DeleteCommand != null)) {
  4141. this.Adapter.DeleteCommand.Connection = value;
  4142. }
  4143. if ((this.Adapter.UpdateCommand != null)) {
  4144. this.Adapter.UpdateCommand.Connection = value;
  4145. }
  4146. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4147. if ((this.CommandCollection[i] != null)) {
  4148. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4149. }
  4150. }
  4151. }
  4152. }
  4153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4154. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4155. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4156. get {
  4157. return this._transaction;
  4158. }
  4159. set {
  4160. this._transaction = value;
  4161. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4162. this.CommandCollection[i].Transaction = this._transaction;
  4163. }
  4164. if (((this.Adapter != null)
  4165. && (this.Adapter.DeleteCommand != null))) {
  4166. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4167. }
  4168. if (((this.Adapter != null)
  4169. && (this.Adapter.InsertCommand != null))) {
  4170. this.Adapter.InsertCommand.Transaction = this._transaction;
  4171. }
  4172. if (((this.Adapter != null)
  4173. && (this.Adapter.UpdateCommand != null))) {
  4174. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4175. }
  4176. }
  4177. }
  4178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4180. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4181. get {
  4182. if ((this._commandCollection == null)) {
  4183. this.InitCommandCollection();
  4184. }
  4185. return this._commandCollection;
  4186. }
  4187. }
  4188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4190. public bool ClearBeforeFill {
  4191. get {
  4192. return this._clearBeforeFill;
  4193. }
  4194. set {
  4195. this._clearBeforeFill = value;
  4196. }
  4197. }
  4198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4199. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4200. private void InitAdapter() {
  4201. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4202. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4203. tableMapping.SourceTable = "Table";
  4204. tableMapping.DataSetTable = "Postav";
  4205. tableMapping.ColumnMappings.Add("Код поставщика", "Код поставщика");
  4206. tableMapping.ColumnMappings.Add("Название поставщика", "Название поставщика");
  4207. tableMapping.ColumnMappings.Add("Адрес поставщика", "Адрес поставщика");
  4208. this._adapter.TableMappings.Add(tableMapping);
  4209. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4210. this._adapter.DeleteCommand.Connection = this.Connection;
  4211. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Postav] WHERE (([Код поставщика] = @Original_Код_поставщика) AND ((@IsNull_Название_поставщика = 1 AND [Название поставщика] IS NULL) OR ([Название поставщика] = @Original_Название_поставщика)) AND ((@IsNull_Адрес_поставщика = 1 AND [Адрес поставщика] IS NULL) OR ([Адрес поставщика] = @Original_Адрес_поставщика)))";
  4212. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4213. 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, "", "", ""));
  4214. 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, "", "", ""));
  4215. 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, "", "", ""));
  4216. 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, "", "", ""));
  4217. 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, "", "", ""));
  4218. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4219. this._adapter.InsertCommand.Connection = this.Connection;
  4220. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Postav] ([Код поставщика], [Название поставщика], [Адрес поставщика]) VALUES (@Код_поставщика, @Название_поставщика, @Адрес_поставщика);
  4221. SELECT [Код поставщика], [Название поставщика], [Адрес поставщика] FROM Postav WHERE ([Код поставщика] = @Код_поставщика)";
  4222. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4223. 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, "", "", ""));
  4224. 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, "", "", ""));
  4225. 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, "", "", ""));
  4226. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  4227. this._adapter.UpdateCommand.Connection = this.Connection;
  4228. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Postav] SET [Код поставщика] = @Код_поставщика, [Название поставщика] = @Название_поставщика, [Адрес поставщика] = @Адрес_поставщика WHERE (([Код поставщика] = @Original_Код_поставщика) AND ((@IsNull_Название_поставщика = 1 AND [Название поставщика] IS NULL) OR ([Название поставщика] = @Original_Название_поставщика)) AND ((@IsNull_Адрес_поставщика = 1 AND [Адрес поставщика] IS NULL) OR ([Адрес поставщика] = @Original_Адрес_поставщика)));
  4229. SELECT [Код поставщика], [Название поставщика], [Адрес поставщика] FROM Postav WHERE ([Код поставщика] = @Код_поставщика)";
  4230. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4231. 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, "", "", ""));
  4232. 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, "", "", ""));
  4233. 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, "", "", ""));
  4234. 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, "", "", ""));
  4235. 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, "", "", ""));
  4236. 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, "", "", ""));
  4237. 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, "", "", ""));
  4238. 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, "", "", ""));
  4239. }
  4240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4241. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4242. private void InitConnection() {
  4243. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4244. this._connection.ConnectionString = global::ГЕС_5.Properties.Settings.Default.ГЕС_5ConnectionString;
  4245. }
  4246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4247. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4248. private void InitCommandCollection() {
  4249. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4250. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4251. this._commandCollection[0].Connection = this.Connection;
  4252. this._commandCollection[0].CommandText = "SELECT [Код поставщика], [Название поставщика], [Адрес поставщика] FROM dbo.Posta" +
  4253. "v";
  4254. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4255. }
  4256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4258. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4259. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4260. public virtual int Fill(_ГЕС_5DataSet.PostavDataTable dataTable) {
  4261. this.Adapter.SelectCommand = this.CommandCollection[0];
  4262. if ((this.ClearBeforeFill == true)) {
  4263. dataTable.Clear();
  4264. }
  4265. int returnValue = this.Adapter.Fill(dataTable);
  4266. return returnValue;
  4267. }
  4268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4269. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4270. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4271. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4272. public virtual _ГЕС_5DataSet.PostavDataTable GetData() {
  4273. this.Adapter.SelectCommand = this.CommandCollection[0];
  4274. _ГЕС_5DataSet.PostavDataTable dataTable = new _ГЕС_5DataSet.PostavDataTable();
  4275. this.Adapter.Fill(dataTable);
  4276. return dataTable;
  4277. }
  4278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4279. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4280. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4281. public virtual int Update(_ГЕС_5DataSet.PostavDataTable dataTable) {
  4282. return this.Adapter.Update(dataTable);
  4283. }
  4284. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4285. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4286. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4287. public virtual int Update(_ГЕС_5DataSet dataSet) {
  4288. return this.Adapter.Update(dataSet, "Postav");
  4289. }
  4290. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4291. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4292. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4293. public virtual int Update(global::System.Data.DataRow dataRow) {
  4294. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4295. dataRow});
  4296. }
  4297. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4298. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4299. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4300. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  4301. return this.Adapter.Update(dataRows);
  4302. }
  4303. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4304. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4305. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4306. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  4307. public virtual int Delete(int Original_Код_поставщика, string Original_Название_поставщика, string Original_Адрес_поставщика) {
  4308. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_Код_поставщика));
  4309. if ((Original_Название_поставщика == null)) {
  4310. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  4311. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  4312. }
  4313. else {
  4314. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  4315. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Название_поставщика));
  4316. }
  4317. if ((Original_Адрес_поставщика == null)) {
  4318. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  4319. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  4320. }
  4321. else {
  4322. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  4323. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Адрес_поставщика));
  4324. }
  4325. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  4326. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4327. != global::System.Data.ConnectionState.Open)) {
  4328. this.Adapter.DeleteCommand.Connection.Open();
  4329. }
  4330. try {
  4331. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  4332. return returnValue;
  4333. }
  4334. finally {
  4335. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4336. this.Adapter.DeleteCommand.Connection.Close();
  4337. }
  4338. }
  4339. }
  4340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4341. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4342. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4343. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  4344. public virtual int Insert(int Код_поставщика, string Название_поставщика, string Адрес_поставщика) {
  4345. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(Код_поставщика));
  4346. if ((Название_поставщика == null)) {
  4347. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  4348. }
  4349. else {
  4350. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Название_поставщика));
  4351. }
  4352. if ((Адрес_поставщика == null)) {
  4353. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  4354. }
  4355. else {
  4356. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Адрес_поставщика));
  4357. }
  4358. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  4359. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4360. != global::System.Data.ConnectionState.Open)) {
  4361. this.Adapter.InsertCommand.Connection.Open();
  4362. }
  4363. try {
  4364. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  4365. return returnValue;
  4366. }
  4367. finally {
  4368. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4369. this.Adapter.InsertCommand.Connection.Close();
  4370. }
  4371. }
  4372. }
  4373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4374. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4375. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4376. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4377. public virtual int Update(int Код_поставщика, string Название_поставщика, string Адрес_поставщика, int Original_Код_поставщика, string Original_Название_поставщика, string Original_Адрес_поставщика) {
  4378. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(Код_поставщика));
  4379. if ((Название_поставщика == null)) {
  4380. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  4381. }
  4382. else {
  4383. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Название_поставщика));
  4384. }
  4385. if ((Адрес_поставщика == null)) {
  4386. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  4387. }
  4388. else {
  4389. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Адрес_поставщика));
  4390. }
  4391. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_Код_поставщика));
  4392. if ((Original_Название_поставщика == null)) {
  4393. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  4394. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  4395. }
  4396. else {
  4397. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  4398. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Название_поставщика));
  4399. }
  4400. if ((Original_Адрес_поставщика == null)) {
  4401. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  4402. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  4403. }
  4404. else {
  4405. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  4406. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Адрес_поставщика));
  4407. }
  4408. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  4409. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4410. != global::System.Data.ConnectionState.Open)) {
  4411. this.Adapter.UpdateCommand.Connection.Open();
  4412. }
  4413. try {
  4414. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  4415. return returnValue;
  4416. }
  4417. finally {
  4418. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4419. this.Adapter.UpdateCommand.Connection.Close();
  4420. }
  4421. }
  4422. }
  4423. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4424. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4425. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4426. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4427. public virtual int Update(string Название_поставщика, string Адрес_поставщика, int Original_Код_поставщика, string Original_Название_поставщика, string Original_Адрес_поставщика) {
  4428. return this.Update(Original_Код_поставщика, Название_поставщика, Адрес_поставщика, Original_Код_поставщика, Original_Название_поставщика, Original_Адрес_поставщика);
  4429. }
  4430. }
  4431. /// <summary>
  4432. ///Represents the connection and commands used to retrieve and save data.
  4433. ///</summary>
  4434. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4435. [global::System.ComponentModel.ToolboxItem(true)]
  4436. [global::System.ComponentModel.DataObjectAttribute(true)]
  4437. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4438. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4439. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4440. public partial class Postav_FlowersTableAdapter : global::System.ComponentModel.Component {
  4441. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4442. private global::System.Data.SqlClient.SqlConnection _connection;
  4443. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4444. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4445. private bool _clearBeforeFill;
  4446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4447. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4448. public Postav_FlowersTableAdapter() {
  4449. this.ClearBeforeFill = true;
  4450. }
  4451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4452. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4453. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4454. get {
  4455. if ((this._adapter == null)) {
  4456. this.InitAdapter();
  4457. }
  4458. return this._adapter;
  4459. }
  4460. }
  4461. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4462. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4463. internal global::System.Data.SqlClient.SqlConnection Connection {
  4464. get {
  4465. if ((this._connection == null)) {
  4466. this.InitConnection();
  4467. }
  4468. return this._connection;
  4469. }
  4470. set {
  4471. this._connection = value;
  4472. if ((this.Adapter.InsertCommand != null)) {
  4473. this.Adapter.InsertCommand.Connection = value;
  4474. }
  4475. if ((this.Adapter.DeleteCommand != null)) {
  4476. this.Adapter.DeleteCommand.Connection = value;
  4477. }
  4478. if ((this.Adapter.UpdateCommand != null)) {
  4479. this.Adapter.UpdateCommand.Connection = value;
  4480. }
  4481. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4482. if ((this.CommandCollection[i] != null)) {
  4483. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4484. }
  4485. }
  4486. }
  4487. }
  4488. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4489. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4490. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4491. get {
  4492. return this._transaction;
  4493. }
  4494. set {
  4495. this._transaction = value;
  4496. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4497. this.CommandCollection[i].Transaction = this._transaction;
  4498. }
  4499. if (((this.Adapter != null)
  4500. && (this.Adapter.DeleteCommand != null))) {
  4501. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4502. }
  4503. if (((this.Adapter != null)
  4504. && (this.Adapter.InsertCommand != null))) {
  4505. this.Adapter.InsertCommand.Transaction = this._transaction;
  4506. }
  4507. if (((this.Adapter != null)
  4508. && (this.Adapter.UpdateCommand != null))) {
  4509. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4510. }
  4511. }
  4512. }
  4513. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4514. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4515. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4516. get {
  4517. if ((this._commandCollection == null)) {
  4518. this.InitCommandCollection();
  4519. }
  4520. return this._commandCollection;
  4521. }
  4522. }
  4523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4524. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4525. public bool ClearBeforeFill {
  4526. get {
  4527. return this._clearBeforeFill;
  4528. }
  4529. set {
  4530. this._clearBeforeFill = value;
  4531. }
  4532. }
  4533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4535. private void InitAdapter() {
  4536. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4537. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4538. tableMapping.SourceTable = "Table";
  4539. tableMapping.DataSetTable = "Postav_Flowers";
  4540. tableMapping.ColumnMappings.Add("Код цветка", "Код цветка");
  4541. tableMapping.ColumnMappings.Add("Название цветка", "Название цветка");
  4542. tableMapping.ColumnMappings.Add("Код поставщика", "Код поставщика");
  4543. tableMapping.ColumnMappings.Add("Название поставщика", "Название поставщика");
  4544. this._adapter.TableMappings.Add(tableMapping);
  4545. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4546. this._adapter.InsertCommand.Connection = this.Connection;
  4547. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Postav_Flowers] ([Код цветка], [Название цветка], [Код поставщ" +
  4548. "ика], [Название поставщика]) VALUES (@Код_цветка, @Название_цветка, @Код_поставщ" +
  4549. "ика, @Название_поставщика)";
  4550. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4551. 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, "", "", ""));
  4552. 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, "", "", ""));
  4553. 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, "", "", ""));
  4554. 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, "", "", ""));
  4555. }
  4556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4557. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4558. private void InitConnection() {
  4559. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4560. this._connection.ConnectionString = global::ГЕС_5.Properties.Settings.Default.ГЕС_5ConnectionString;
  4561. }
  4562. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4563. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4564. private void InitCommandCollection() {
  4565. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4566. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4567. this._commandCollection[0].Connection = this.Connection;
  4568. this._commandCollection[0].CommandText = "SELECT [Код цветка], [Название цветка], [Код поставщика], [Название поставщика] F" +
  4569. "ROM dbo.Postav_Flowers";
  4570. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4571. }
  4572. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4573. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4574. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4575. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4576. public virtual int Fill(_ГЕС_5DataSet.Postav_FlowersDataTable dataTable) {
  4577. this.Adapter.SelectCommand = this.CommandCollection[0];
  4578. if ((this.ClearBeforeFill == true)) {
  4579. dataTable.Clear();
  4580. }
  4581. int returnValue = this.Adapter.Fill(dataTable);
  4582. return returnValue;
  4583. }
  4584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4586. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4587. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4588. public virtual _ГЕС_5DataSet.Postav_FlowersDataTable GetData() {
  4589. this.Adapter.SelectCommand = this.CommandCollection[0];
  4590. _ГЕС_5DataSet.Postav_FlowersDataTable dataTable = new _ГЕС_5DataSet.Postav_FlowersDataTable();
  4591. this.Adapter.Fill(dataTable);
  4592. return dataTable;
  4593. }
  4594. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4595. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4596. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4597. public virtual int Update(_ГЕС_5DataSet.Postav_FlowersDataTable dataTable) {
  4598. return this.Adapter.Update(dataTable);
  4599. }
  4600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4601. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4602. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4603. public virtual int Update(_ГЕС_5DataSet dataSet) {
  4604. return this.Adapter.Update(dataSet, "Postav_Flowers");
  4605. }
  4606. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4607. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4608. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4609. public virtual int Update(global::System.Data.DataRow dataRow) {
  4610. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4611. dataRow});
  4612. }
  4613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4614. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4615. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4616. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  4617. return this.Adapter.Update(dataRows);
  4618. }
  4619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4621. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4622. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  4623. public virtual int Insert(global::System.Nullable<int> Код_цветка, string Название_цветка, int Код_поставщика, string Название_поставщика) {
  4624. if ((Код_цветка.HasValue == true)) {
  4625. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(Код_цветка.Value));
  4626. }
  4627. else {
  4628. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  4629. }
  4630. if ((Название_цветка == null)) {
  4631. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  4632. }
  4633. else {
  4634. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Название_цветка));
  4635. }
  4636. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Код_поставщика));
  4637. if ((Название_поставщика == null)) {
  4638. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  4639. }
  4640. else {
  4641. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Название_поставщика));
  4642. }
  4643. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  4644. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4645. != global::System.Data.ConnectionState.Open)) {
  4646. this.Adapter.InsertCommand.Connection.Open();
  4647. }
  4648. try {
  4649. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  4650. return returnValue;
  4651. }
  4652. finally {
  4653. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4654. this.Adapter.InsertCommand.Connection.Close();
  4655. }
  4656. }
  4657. }
  4658. }
  4659. /// <summary>
  4660. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  4661. ///</summary>
  4662. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4663. [global::System.ComponentModel.ToolboxItem(true)]
  4664. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  4665. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4666. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  4667. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  4668. private UpdateOrderOption _updateOrder;
  4669. private ContractsTableAdapter _contractsTableAdapter;
  4670. private CustomerTableAdapter _customerTableAdapter;
  4671. private FlowersTableAdapter _flowersTableAdapter;
  4672. private OrdersTableAdapter _ordersTableAdapter;
  4673. private PostavTableAdapter _postavTableAdapter;
  4674. private Postav_FlowersTableAdapter _postav_FlowersTableAdapter;
  4675. private bool _backupDataSetBeforeUpdate;
  4676. private global::System.Data.IDbConnection _connection;
  4677. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4678. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4679. public UpdateOrderOption UpdateOrder {
  4680. get {
  4681. return this._updateOrder;
  4682. }
  4683. set {
  4684. this._updateOrder = value;
  4685. }
  4686. }
  4687. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4688. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4689. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  4690. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  4691. "a", "System.Drawing.Design.UITypeEditor")]
  4692. public ContractsTableAdapter ContractsTableAdapter {
  4693. get {
  4694. return this._contractsTableAdapter;
  4695. }
  4696. set {
  4697. this._contractsTableAdapter = value;
  4698. }
  4699. }
  4700. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4701. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4702. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  4703. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  4704. "a", "System.Drawing.Design.UITypeEditor")]
  4705. public CustomerTableAdapter CustomerTableAdapter {
  4706. get {
  4707. return this._customerTableAdapter;
  4708. }
  4709. set {
  4710. this._customerTableAdapter = value;
  4711. }
  4712. }
  4713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4715. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  4716. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  4717. "a", "System.Drawing.Design.UITypeEditor")]
  4718. public FlowersTableAdapter FlowersTableAdapter {
  4719. get {
  4720. return this._flowersTableAdapter;
  4721. }
  4722. set {
  4723. this._flowersTableAdapter = value;
  4724. }
  4725. }
  4726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4728. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  4729. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  4730. "a", "System.Drawing.Design.UITypeEditor")]
  4731. public OrdersTableAdapter OrdersTableAdapter {
  4732. get {
  4733. return this._ordersTableAdapter;
  4734. }
  4735. set {
  4736. this._ordersTableAdapter = value;
  4737. }
  4738. }
  4739. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4740. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4741. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  4742. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  4743. "a", "System.Drawing.Design.UITypeEditor")]
  4744. public PostavTableAdapter PostavTableAdapter {
  4745. get {
  4746. return this._postavTableAdapter;
  4747. }
  4748. set {
  4749. this._postavTableAdapter = value;
  4750. }
  4751. }
  4752. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4753. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4754. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  4755. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  4756. "a", "System.Drawing.Design.UITypeEditor")]
  4757. public Postav_FlowersTableAdapter Postav_FlowersTableAdapter {
  4758. get {
  4759. return this._postav_FlowersTableAdapter;
  4760. }
  4761. set {
  4762. this._postav_FlowersTableAdapter = value;
  4763. }
  4764. }
  4765. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4766. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4767. public bool BackupDataSetBeforeUpdate {
  4768. get {
  4769. return this._backupDataSetBeforeUpdate;
  4770. }
  4771. set {
  4772. this._backupDataSetBeforeUpdate = value;
  4773. }
  4774. }
  4775. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4776. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4777. [global::System.ComponentModel.Browsable(false)]
  4778. public global::System.Data.IDbConnection Connection {
  4779. get {
  4780. if ((this._connection != null)) {
  4781. return this._connection;
  4782. }
  4783. if (((this._contractsTableAdapter != null)
  4784. && (this._contractsTableAdapter.Connection != null))) {
  4785. return this._contractsTableAdapter.Connection;
  4786. }
  4787. if (((this._customerTableAdapter != null)
  4788. && (this._customerTableAdapter.Connection != null))) {
  4789. return this._customerTableAdapter.Connection;
  4790. }
  4791. if (((this._flowersTableAdapter != null)
  4792. && (this._flowersTableAdapter.Connection != null))) {
  4793. return this._flowersTableAdapter.Connection;
  4794. }
  4795. if (((this._ordersTableAdapter != null)
  4796. && (this._ordersTableAdapter.Connection != null))) {
  4797. return this._ordersTableAdapter.Connection;
  4798. }
  4799. if (((this._postavTableAdapter != null)
  4800. && (this._postavTableAdapter.Connection != null))) {
  4801. return this._postavTableAdapter.Connection;
  4802. }
  4803. if (((this._postav_FlowersTableAdapter != null)
  4804. && (this._postav_FlowersTableAdapter.Connection != null))) {
  4805. return this._postav_FlowersTableAdapter.Connection;
  4806. }
  4807. return null;
  4808. }
  4809. set {
  4810. this._connection = value;
  4811. }
  4812. }
  4813. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4814. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4815. [global::System.ComponentModel.Browsable(false)]
  4816. public int TableAdapterInstanceCount {
  4817. get {
  4818. int count = 0;
  4819. if ((this._contractsTableAdapter != null)) {
  4820. count = (count + 1);
  4821. }
  4822. if ((this._customerTableAdapter != null)) {
  4823. count = (count + 1);
  4824. }
  4825. if ((this._flowersTableAdapter != null)) {
  4826. count = (count + 1);
  4827. }
  4828. if ((this._ordersTableAdapter != null)) {
  4829. count = (count + 1);
  4830. }
  4831. if ((this._postavTableAdapter != null)) {
  4832. count = (count + 1);
  4833. }
  4834. if ((this._postav_FlowersTableAdapter != null)) {
  4835. count = (count + 1);
  4836. }
  4837. return count;
  4838. }
  4839. }
  4840. /// <summary>
  4841. ///Update rows in top-down order.
  4842. ///</summary>
  4843. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4844. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4845. private int UpdateUpdatedRows(_ГЕС_5DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  4846. int result = 0;
  4847. if ((this._customerTableAdapter != null)) {
  4848. global::System.Data.DataRow[] updatedRows = dataSet.Customer.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  4849. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  4850. if (((updatedRows != null)
  4851. && (0 < updatedRows.Length))) {
  4852. result = (result + this._customerTableAdapter.Update(updatedRows));
  4853. allChangedRows.AddRange(updatedRows);
  4854. }
  4855. }
  4856. if ((this._flowersTableAdapter != null)) {
  4857. global::System.Data.DataRow[] updatedRows = dataSet.Flowers.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  4858. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  4859. if (((updatedRows != null)
  4860. && (0 < updatedRows.Length))) {
  4861. result = (result + this._flowersTableAdapter.Update(updatedRows));
  4862. allChangedRows.AddRange(updatedRows);
  4863. }
  4864. }
  4865. if ((this._postavTableAdapter != null)) {
  4866. global::System.Data.DataRow[] updatedRows = dataSet.Postav.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  4867. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  4868. if (((updatedRows != null)
  4869. && (0 < updatedRows.Length))) {
  4870. result = (result + this._postavTableAdapter.Update(updatedRows));
  4871. allChangedRows.AddRange(updatedRows);
  4872. }
  4873. }
  4874. if ((this._contractsTableAdapter != null)) {
  4875. global::System.Data.DataRow[] updatedRows = dataSet.Contracts.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  4876. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  4877. if (((updatedRows != null)
  4878. && (0 < updatedRows.Length))) {
  4879. result = (result + this._contractsTableAdapter.Update(updatedRows));
  4880. allChangedRows.AddRange(updatedRows);
  4881. }
  4882. }
  4883. if ((this._ordersTableAdapter != null)) {
  4884. global::System.Data.DataRow[] updatedRows = dataSet.Orders.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  4885. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  4886. if (((updatedRows != null)
  4887. && (0 < updatedRows.Length))) {
  4888. result = (result + this._ordersTableAdapter.Update(updatedRows));
  4889. allChangedRows.AddRange(updatedRows);
  4890. }
  4891. }
  4892. if ((this._postav_FlowersTableAdapter != null)) {
  4893. global::System.Data.DataRow[] updatedRows = dataSet.Postav_Flowers.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  4894. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  4895. if (((updatedRows != null)
  4896. && (0 < updatedRows.Length))) {
  4897. result = (result + this._postav_FlowersTableAdapter.Update(updatedRows));
  4898. allChangedRows.AddRange(updatedRows);
  4899. }
  4900. }
  4901. return result;
  4902. }
  4903. /// <summary>
  4904. ///Insert rows in top-down order.
  4905. ///</summary>
  4906. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4907. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4908. private int UpdateInsertedRows(_ГЕС_5DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  4909. int result = 0;
  4910. if ((this._customerTableAdapter != null)) {
  4911. global::System.Data.DataRow[] addedRows = dataSet.Customer.Select(null, null, global::System.Data.DataViewRowState.Added);
  4912. if (((addedRows != null)
  4913. && (0 < addedRows.Length))) {
  4914. result = (result + this._customerTableAdapter.Update(addedRows));
  4915. allAddedRows.AddRange(addedRows);
  4916. }
  4917. }
  4918. if ((this._flowersTableAdapter != null)) {
  4919. global::System.Data.DataRow[] addedRows = dataSet.Flowers.Select(null, null, global::System.Data.DataViewRowState.Added);
  4920. if (((addedRows != null)
  4921. && (0 < addedRows.Length))) {
  4922. result = (result + this._flowersTableAdapter.Update(addedRows));
  4923. allAddedRows.AddRange(addedRows);
  4924. }
  4925. }
  4926. if ((this._postavTableAdapter != null)) {
  4927. global::System.Data.DataRow[] addedRows = dataSet.Postav.Select(null, null, global::System.Data.DataViewRowState.Added);
  4928. if (((addedRows != null)
  4929. && (0 < addedRows.Length))) {
  4930. result = (result + this._postavTableAdapter.Update(addedRows));
  4931. allAddedRows.AddRange(addedRows);
  4932. }
  4933. }
  4934. if ((this._contractsTableAdapter != null)) {
  4935. global::System.Data.DataRow[] addedRows = dataSet.Contracts.Select(null, null, global::System.Data.DataViewRowState.Added);
  4936. if (((addedRows != null)
  4937. && (0 < addedRows.Length))) {
  4938. result = (result + this._contractsTableAdapter.Update(addedRows));
  4939. allAddedRows.AddRange(addedRows);
  4940. }
  4941. }
  4942. if ((this._ordersTableAdapter != null)) {
  4943. global::System.Data.DataRow[] addedRows = dataSet.Orders.Select(null, null, global::System.Data.DataViewRowState.Added);
  4944. if (((addedRows != null)
  4945. && (0 < addedRows.Length))) {
  4946. result = (result + this._ordersTableAdapter.Update(addedRows));
  4947. allAddedRows.AddRange(addedRows);
  4948. }
  4949. }
  4950. if ((this._postav_FlowersTableAdapter != null)) {
  4951. global::System.Data.DataRow[] addedRows = dataSet.Postav_Flowers.Select(null, null, global::System.Data.DataViewRowState.Added);
  4952. if (((addedRows != null)
  4953. && (0 < addedRows.Length))) {
  4954. result = (result + this._postav_FlowersTableAdapter.Update(addedRows));
  4955. allAddedRows.AddRange(addedRows);
  4956. }
  4957. }
  4958. return result;
  4959. }
  4960. /// <summary>
  4961. ///Delete rows in bottom-up order.
  4962. ///</summary>
  4963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4965. private int UpdateDeletedRows(_ГЕС_5DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  4966. int result = 0;
  4967. if ((this._postav_FlowersTableAdapter != null)) {
  4968. global::System.Data.DataRow[] deletedRows = dataSet.Postav_Flowers.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  4969. if (((deletedRows != null)
  4970. && (0 < deletedRows.Length))) {
  4971. result = (result + this._postav_FlowersTableAdapter.Update(deletedRows));
  4972. allChangedRows.AddRange(deletedRows);
  4973. }
  4974. }
  4975. if ((this._ordersTableAdapter != null)) {
  4976. global::System.Data.DataRow[] deletedRows = dataSet.Orders.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  4977. if (((deletedRows != null)
  4978. && (0 < deletedRows.Length))) {
  4979. result = (result + this._ordersTableAdapter.Update(deletedRows));
  4980. allChangedRows.AddRange(deletedRows);
  4981. }
  4982. }
  4983. if ((this._contractsTableAdapter != null)) {
  4984. global::System.Data.DataRow[] deletedRows = dataSet.Contracts.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  4985. if (((deletedRows != null)
  4986. && (0 < deletedRows.Length))) {
  4987. result = (result + this._contractsTableAdapter.Update(deletedRows));
  4988. allChangedRows.AddRange(deletedRows);
  4989. }
  4990. }
  4991. if ((this._postavTableAdapter != null)) {
  4992. global::System.Data.DataRow[] deletedRows = dataSet.Postav.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  4993. if (((deletedRows != null)
  4994. && (0 < deletedRows.Length))) {
  4995. result = (result + this._postavTableAdapter.Update(deletedRows));
  4996. allChangedRows.AddRange(deletedRows);
  4997. }
  4998. }
  4999. if ((this._flowersTableAdapter != null)) {
  5000. global::System.Data.DataRow[] deletedRows = dataSet.Flowers.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  5001. if (((deletedRows != null)
  5002. && (0 < deletedRows.Length))) {
  5003. result = (result + this._flowersTableAdapter.Update(deletedRows));
  5004. allChangedRows.AddRange(deletedRows);
  5005. }
  5006. }
  5007. if ((this._customerTableAdapter != null)) {
  5008. global::System.Data.DataRow[] deletedRows = dataSet.Customer.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  5009. if (((deletedRows != null)
  5010. && (0 < deletedRows.Length))) {
  5011. result = (result + this._customerTableAdapter.Update(deletedRows));
  5012. allChangedRows.AddRange(deletedRows);
  5013. }
  5014. }
  5015. return result;
  5016. }
  5017. /// <summary>
  5018. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  5019. ///</summary>
  5020. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5021. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5022. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  5023. if (((updatedRows == null)
  5024. || (updatedRows.Length < 1))) {
  5025. return updatedRows;
  5026. }
  5027. if (((allAddedRows == null)
  5028. || (allAddedRows.Count < 1))) {
  5029. return updatedRows;
  5030. }
  5031. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  5032. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  5033. global::System.Data.DataRow row = updatedRows[i];
  5034. if ((allAddedRows.Contains(row) == false)) {
  5035. realUpdatedRows.Add(row);
  5036. }
  5037. }
  5038. return realUpdatedRows.ToArray();
  5039. }
  5040. /// <summary>
  5041. ///Update all changes to the dataset.
  5042. ///</summary>
  5043. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5044. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5045. public virtual int UpdateAll(_ГЕС_5DataSet dataSet) {
  5046. if ((dataSet == null)) {
  5047. throw new global::System.ArgumentNullException("dataSet");
  5048. }
  5049. if ((dataSet.HasChanges() == false)) {
  5050. return 0;
  5051. }
  5052. if (((this._contractsTableAdapter != null)
  5053. && (this.MatchTableAdapterConnection(this._contractsTableAdapter.Connection) == false))) {
  5054. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  5055. "r, должны использовать одинаковую строку подключения.");
  5056. }
  5057. if (((this._customerTableAdapter != null)
  5058. && (this.MatchTableAdapterConnection(this._customerTableAdapter.Connection) == false))) {
  5059. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  5060. "r, должны использовать одинаковую строку подключения.");
  5061. }
  5062. if (((this._flowersTableAdapter != null)
  5063. && (this.MatchTableAdapterConnection(this._flowersTableAdapter.Connection) == false))) {
  5064. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  5065. "r, должны использовать одинаковую строку подключения.");
  5066. }
  5067. if (((this._ordersTableAdapter != null)
  5068. && (this.MatchTableAdapterConnection(this._ordersTableAdapter.Connection) == false))) {
  5069. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  5070. "r, должны использовать одинаковую строку подключения.");
  5071. }
  5072. if (((this._postavTableAdapter != null)
  5073. && (this.MatchTableAdapterConnection(this._postavTableAdapter.Connection) == false))) {
  5074. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  5075. "r, должны использовать одинаковую строку подключения.");
  5076. }
  5077. if (((this._postav_FlowersTableAdapter != null)
  5078. && (this.MatchTableAdapterConnection(this._postav_FlowersTableAdapter.Connection) == false))) {
  5079. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  5080. "r, должны использовать одинаковую строку подключения.");
  5081. }
  5082. global::System.Data.IDbConnection workConnection = this.Connection;
  5083. if ((workConnection == null)) {
  5084. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  5085. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  5086. }
  5087. bool workConnOpened = false;
  5088. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  5089. == global::System.Data.ConnectionState.Broken)) {
  5090. workConnection.Close();
  5091. }
  5092. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  5093. workConnection.Open();
  5094. workConnOpened = true;
  5095. }
  5096. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  5097. if ((workTransaction == null)) {
  5098. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  5099. "и или текущее состояние не позволяет начать транзакцию.");
  5100. }
  5101. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  5102. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  5103. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  5104. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  5105. int result = 0;
  5106. global::System.Data.DataSet backupDataSet = null;
  5107. if (this.BackupDataSetBeforeUpdate) {
  5108. backupDataSet = new global::System.Data.DataSet();
  5109. backupDataSet.Merge(dataSet);
  5110. }
  5111. try {
  5112. // ---- Prepare for update -----------
  5113. //
  5114. if ((this._contractsTableAdapter != null)) {
  5115. revertConnections.Add(this._contractsTableAdapter, this._contractsTableAdapter.Connection);
  5116. this._contractsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  5117. this._contractsTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  5118. if (this._contractsTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  5119. this._contractsTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  5120. adaptersWithAcceptChangesDuringUpdate.Add(this._contractsTableAdapter.Adapter);
  5121. }
  5122. }
  5123. if ((this._customerTableAdapter != null)) {
  5124. revertConnections.Add(this._customerTableAdapter, this._customerTableAdapter.Connection);
  5125. this._customerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  5126. this._customerTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  5127. if (this._customerTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  5128. this._customerTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  5129. adaptersWithAcceptChangesDuringUpdate.Add(this._customerTableAdapter.Adapter);
  5130. }
  5131. }
  5132. if ((this._flowersTableAdapter != null)) {
  5133. revertConnections.Add(this._flowersTableAdapter, this._flowersTableAdapter.Connection);
  5134. this._flowersTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  5135. this._flowersTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  5136. if (this._flowersTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  5137. this._flowersTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  5138. adaptersWithAcceptChangesDuringUpdate.Add(this._flowersTableAdapter.Adapter);
  5139. }
  5140. }
  5141. if ((this._ordersTableAdapter != null)) {
  5142. revertConnections.Add(this._ordersTableAdapter, this._ordersTableAdapter.Connection);
  5143. this._ordersTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  5144. this._ordersTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  5145. if (this._ordersTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  5146. this._ordersTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  5147. adaptersWithAcceptChangesDuringUpdate.Add(this._ordersTableAdapter.Adapter);
  5148. }
  5149. }
  5150. if ((this._postavTableAdapter != null)) {
  5151. revertConnections.Add(this._postavTableAdapter, this._postavTableAdapter.Connection);
  5152. this._postavTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  5153. this._postavTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  5154. if (this._postavTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  5155. this._postavTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  5156. adaptersWithAcceptChangesDuringUpdate.Add(this._postavTableAdapter.Adapter);
  5157. }
  5158. }
  5159. if ((this._postav_FlowersTableAdapter != null)) {
  5160. revertConnections.Add(this._postav_FlowersTableAdapter, this._postav_FlowersTableAdapter.Connection);
  5161. this._postav_FlowersTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  5162. this._postav_FlowersTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  5163. if (this._postav_FlowersTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  5164. this._postav_FlowersTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  5165. adaptersWithAcceptChangesDuringUpdate.Add(this._postav_FlowersTableAdapter.Adapter);
  5166. }
  5167. }
  5168. //
  5169. //---- Perform updates -----------
  5170. //
  5171. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  5172. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  5173. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  5174. }
  5175. else {
  5176. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  5177. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  5178. }
  5179. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  5180. //
  5181. //---- Commit updates -----------
  5182. //
  5183. workTransaction.Commit();
  5184. if ((0 < allAddedRows.Count)) {
  5185. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  5186. allAddedRows.CopyTo(rows);
  5187. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  5188. global::System.Data.DataRow row = rows[i];
  5189. row.AcceptChanges();
  5190. }
  5191. }
  5192. if ((0 < allChangedRows.Count)) {
  5193. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  5194. allChangedRows.CopyTo(rows);
  5195. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  5196. global::System.Data.DataRow row = rows[i];
  5197. row.AcceptChanges();
  5198. }
  5199. }
  5200. }
  5201. catch (global::System.Exception ex) {
  5202. workTransaction.Rollback();
  5203. // ---- Restore the dataset -----------
  5204. if (this.BackupDataSetBeforeUpdate) {
  5205. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  5206. dataSet.Clear();
  5207. dataSet.Merge(backupDataSet);
  5208. }
  5209. else {
  5210. if ((0 < allAddedRows.Count)) {
  5211. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  5212. allAddedRows.CopyTo(rows);
  5213. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  5214. global::System.Data.DataRow row = rows[i];
  5215. row.AcceptChanges();
  5216. row.SetAdded();
  5217. }
  5218. }
  5219. }
  5220. throw ex;
  5221. }
  5222. finally {
  5223. if (workConnOpened) {
  5224. workConnection.Close();
  5225. }
  5226. if ((this._contractsTableAdapter != null)) {
  5227. this._contractsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._contractsTableAdapter]));
  5228. this._contractsTableAdapter.Transaction = null;
  5229. }
  5230. if ((this._customerTableAdapter != null)) {
  5231. this._customerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._customerTableAdapter]));
  5232. this._customerTableAdapter.Transaction = null;
  5233. }
  5234. if ((this._flowersTableAdapter != null)) {
  5235. this._flowersTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._flowersTableAdapter]));
  5236. this._flowersTableAdapter.Transaction = null;
  5237. }
  5238. if ((this._ordersTableAdapter != null)) {
  5239. this._ordersTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._ordersTableAdapter]));
  5240. this._ordersTableAdapter.Transaction = null;
  5241. }
  5242. if ((this._postavTableAdapter != null)) {
  5243. this._postavTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._postavTableAdapter]));
  5244. this._postavTableAdapter.Transaction = null;
  5245. }
  5246. if ((this._postav_FlowersTableAdapter != null)) {
  5247. this._postav_FlowersTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._postav_FlowersTableAdapter]));
  5248. this._postav_FlowersTableAdapter.Transaction = null;
  5249. }
  5250. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  5251. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  5252. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  5253. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  5254. global::System.Data.Common.DataAdapter adapter = adapters[i];
  5255. adapter.AcceptChangesDuringUpdate = true;
  5256. }
  5257. }
  5258. }
  5259. return result;
  5260. }
  5261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5262. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5263. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  5264. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  5265. }
  5266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5268. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  5269. if ((this._connection != null)) {
  5270. return true;
  5271. }
  5272. if (((this.Connection == null)
  5273. || (inputConnection == null))) {
  5274. return true;
  5275. }
  5276. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  5277. return true;
  5278. }
  5279. return false;
  5280. }
  5281. /// <summary>
  5282. ///Update Order Option
  5283. ///</summary>
  5284. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5285. public enum UpdateOrderOption {
  5286. InsertUpdateDelete = 0,
  5287. UpdateInsertDelete = 1,
  5288. }
  5289. /// <summary>
  5290. ///Used to sort self-referenced table's rows
  5291. ///</summary>
  5292. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5293. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  5294. private global::System.Data.DataRelation _relation;
  5295. private int _childFirst;
  5296. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5297. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5298. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  5299. this._relation = relation;
  5300. if (childFirst) {
  5301. this._childFirst = -1;
  5302. }
  5303. else {
  5304. this._childFirst = 1;
  5305. }
  5306. }
  5307. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5308. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5309. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  5310. global::System.Diagnostics.Debug.Assert((row != null));
  5311. global::System.Data.DataRow root = row;
  5312. distance = 0;
  5313. 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>();
  5314. traversedRows[row] = row;
  5315. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  5316. for (
  5317. ; ((parent != null)
  5318. && (traversedRows.ContainsKey(parent) == false));
  5319. ) {
  5320. distance = (distance + 1);
  5321. root = parent;
  5322. traversedRows[parent] = parent;
  5323. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  5324. }
  5325. if ((distance == 0)) {
  5326. traversedRows.Clear();
  5327. traversedRows[row] = row;
  5328. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  5329. for (
  5330. ; ((parent != null)
  5331. && (traversedRows.ContainsKey(parent) == false));
  5332. ) {
  5333. distance = (distance + 1);
  5334. root = parent;
  5335. traversedRows[parent] = parent;
  5336. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  5337. }
  5338. }
  5339. return root;
  5340. }
  5341. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5342. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5343. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  5344. if (object.ReferenceEquals(row1, row2)) {
  5345. return 0;
  5346. }
  5347. if ((row1 == null)) {
  5348. return -1;
  5349. }
  5350. if ((row2 == null)) {
  5351. return 1;
  5352. }
  5353. int distance1 = 0;
  5354. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  5355. int distance2 = 0;
  5356. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  5357. if (object.ReferenceEquals(root1, root2)) {
  5358. return (this._childFirst * distance1.CompareTo(distance2));
  5359. }
  5360. else {
  5361. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  5362. && (root2.Table != null)));
  5363. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  5364. return -1;
  5365. }
  5366. else {
  5367. return 1;
  5368. }
  5369. }
  5370. }
  5371. }
  5372. }
  5373. }
  5374. #pragma warning restore 1591