dbFabrika2024DataSet.Designer.cs 468 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace Фабрика {
  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("dbFabrika2024DataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class dbFabrika2024DataSet : global::System.Data.DataSet {
  22. private CvetaDataTable tableCveta;
  23. private FurnituraDataTable tableFurnitura;
  24. private IzdelieDataTable tableIzdelie;
  25. private OrdersDataTable tableOrders;
  26. private RoleDataTable tableRole;
  27. private TkaniDataTable tableTkani;
  28. private UsersDataTable tableUsers;
  29. private global::System.Data.DataRelation relationFK_Orders_Furnitura;
  30. private global::System.Data.DataRelation relationFK_Orders_Izdelie;
  31. private global::System.Data.DataRelation relationFK_Orders_Tkani;
  32. private global::System.Data.DataRelation relationFK_Orders_Users;
  33. private global::System.Data.DataRelation relationFK_Tkani_Cveta;
  34. private global::System.Data.DataRelation relationFK_Users_Role;
  35. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  36. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  37. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  38. public dbFabrika2024DataSet() {
  39. this.BeginInit();
  40. this.InitClass();
  41. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  42. base.Tables.CollectionChanged += schemaChangedHandler;
  43. base.Relations.CollectionChanged += schemaChangedHandler;
  44. this.EndInit();
  45. }
  46. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  47. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  48. protected dbFabrika2024DataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  49. base(info, context, false) {
  50. if ((this.IsBinarySerialized(info, context) == true)) {
  51. this.InitVars(false);
  52. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  53. this.Tables.CollectionChanged += schemaChangedHandler1;
  54. this.Relations.CollectionChanged += schemaChangedHandler1;
  55. return;
  56. }
  57. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  58. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  59. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  60. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  61. if ((ds.Tables["Cveta"] != null)) {
  62. base.Tables.Add(new CvetaDataTable(ds.Tables["Cveta"]));
  63. }
  64. if ((ds.Tables["Furnitura"] != null)) {
  65. base.Tables.Add(new FurnituraDataTable(ds.Tables["Furnitura"]));
  66. }
  67. if ((ds.Tables["Izdelie"] != null)) {
  68. base.Tables.Add(new IzdelieDataTable(ds.Tables["Izdelie"]));
  69. }
  70. if ((ds.Tables["Orders"] != null)) {
  71. base.Tables.Add(new OrdersDataTable(ds.Tables["Orders"]));
  72. }
  73. if ((ds.Tables["Role"] != null)) {
  74. base.Tables.Add(new RoleDataTable(ds.Tables["Role"]));
  75. }
  76. if ((ds.Tables["Tkani"] != null)) {
  77. base.Tables.Add(new TkaniDataTable(ds.Tables["Tkani"]));
  78. }
  79. if ((ds.Tables["Users"] != null)) {
  80. base.Tables.Add(new UsersDataTable(ds.Tables["Users"]));
  81. }
  82. this.DataSetName = ds.DataSetName;
  83. this.Prefix = ds.Prefix;
  84. this.Namespace = ds.Namespace;
  85. this.Locale = ds.Locale;
  86. this.CaseSensitive = ds.CaseSensitive;
  87. this.EnforceConstraints = ds.EnforceConstraints;
  88. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  89. this.InitVars();
  90. }
  91. else {
  92. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  93. }
  94. this.GetSerializationData(info, context);
  95. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  96. base.Tables.CollectionChanged += schemaChangedHandler;
  97. this.Relations.CollectionChanged += schemaChangedHandler;
  98. }
  99. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  100. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  101. [global::System.ComponentModel.Browsable(false)]
  102. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  103. public CvetaDataTable Cveta {
  104. get {
  105. return this.tableCveta;
  106. }
  107. }
  108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  110. [global::System.ComponentModel.Browsable(false)]
  111. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  112. public FurnituraDataTable Furnitura {
  113. get {
  114. return this.tableFurnitura;
  115. }
  116. }
  117. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  118. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  119. [global::System.ComponentModel.Browsable(false)]
  120. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  121. public IzdelieDataTable Izdelie {
  122. get {
  123. return this.tableIzdelie;
  124. }
  125. }
  126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  128. [global::System.ComponentModel.Browsable(false)]
  129. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  130. public OrdersDataTable Orders {
  131. get {
  132. return this.tableOrders;
  133. }
  134. }
  135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  136. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  137. [global::System.ComponentModel.Browsable(false)]
  138. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  139. public RoleDataTable Role {
  140. get {
  141. return this.tableRole;
  142. }
  143. }
  144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  146. [global::System.ComponentModel.Browsable(false)]
  147. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  148. public TkaniDataTable Tkani {
  149. get {
  150. return this.tableTkani;
  151. }
  152. }
  153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  154. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  155. [global::System.ComponentModel.Browsable(false)]
  156. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  157. public UsersDataTable Users {
  158. get {
  159. return this.tableUsers;
  160. }
  161. }
  162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  163. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  164. [global::System.ComponentModel.BrowsableAttribute(true)]
  165. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  166. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  167. get {
  168. return this._schemaSerializationMode;
  169. }
  170. set {
  171. this._schemaSerializationMode = value;
  172. }
  173. }
  174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  175. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  176. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  177. public new global::System.Data.DataTableCollection Tables {
  178. get {
  179. return base.Tables;
  180. }
  181. }
  182. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  183. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  184. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  185. public new global::System.Data.DataRelationCollection Relations {
  186. get {
  187. return base.Relations;
  188. }
  189. }
  190. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  191. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  192. protected override void InitializeDerivedDataSet() {
  193. this.BeginInit();
  194. this.InitClass();
  195. this.EndInit();
  196. }
  197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  198. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  199. public override global::System.Data.DataSet Clone() {
  200. dbFabrika2024DataSet cln = ((dbFabrika2024DataSet)(base.Clone()));
  201. cln.InitVars();
  202. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  203. return cln;
  204. }
  205. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  206. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  207. protected override bool ShouldSerializeTables() {
  208. return false;
  209. }
  210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  212. protected override bool ShouldSerializeRelations() {
  213. return false;
  214. }
  215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  216. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  217. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  218. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  219. this.Reset();
  220. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  221. ds.ReadXml(reader);
  222. if ((ds.Tables["Cveta"] != null)) {
  223. base.Tables.Add(new CvetaDataTable(ds.Tables["Cveta"]));
  224. }
  225. if ((ds.Tables["Furnitura"] != null)) {
  226. base.Tables.Add(new FurnituraDataTable(ds.Tables["Furnitura"]));
  227. }
  228. if ((ds.Tables["Izdelie"] != null)) {
  229. base.Tables.Add(new IzdelieDataTable(ds.Tables["Izdelie"]));
  230. }
  231. if ((ds.Tables["Orders"] != null)) {
  232. base.Tables.Add(new OrdersDataTable(ds.Tables["Orders"]));
  233. }
  234. if ((ds.Tables["Role"] != null)) {
  235. base.Tables.Add(new RoleDataTable(ds.Tables["Role"]));
  236. }
  237. if ((ds.Tables["Tkani"] != null)) {
  238. base.Tables.Add(new TkaniDataTable(ds.Tables["Tkani"]));
  239. }
  240. if ((ds.Tables["Users"] != null)) {
  241. base.Tables.Add(new UsersDataTable(ds.Tables["Users"]));
  242. }
  243. this.DataSetName = ds.DataSetName;
  244. this.Prefix = ds.Prefix;
  245. this.Namespace = ds.Namespace;
  246. this.Locale = ds.Locale;
  247. this.CaseSensitive = ds.CaseSensitive;
  248. this.EnforceConstraints = ds.EnforceConstraints;
  249. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  250. this.InitVars();
  251. }
  252. else {
  253. this.ReadXml(reader);
  254. this.InitVars();
  255. }
  256. }
  257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  258. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  259. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  260. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  261. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  262. stream.Position = 0;
  263. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  264. }
  265. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  266. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  267. internal void InitVars() {
  268. this.InitVars(true);
  269. }
  270. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  271. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  272. internal void InitVars(bool initTable) {
  273. this.tableCveta = ((CvetaDataTable)(base.Tables["Cveta"]));
  274. if ((initTable == true)) {
  275. if ((this.tableCveta != null)) {
  276. this.tableCveta.InitVars();
  277. }
  278. }
  279. this.tableFurnitura = ((FurnituraDataTable)(base.Tables["Furnitura"]));
  280. if ((initTable == true)) {
  281. if ((this.tableFurnitura != null)) {
  282. this.tableFurnitura.InitVars();
  283. }
  284. }
  285. this.tableIzdelie = ((IzdelieDataTable)(base.Tables["Izdelie"]));
  286. if ((initTable == true)) {
  287. if ((this.tableIzdelie != null)) {
  288. this.tableIzdelie.InitVars();
  289. }
  290. }
  291. this.tableOrders = ((OrdersDataTable)(base.Tables["Orders"]));
  292. if ((initTable == true)) {
  293. if ((this.tableOrders != null)) {
  294. this.tableOrders.InitVars();
  295. }
  296. }
  297. this.tableRole = ((RoleDataTable)(base.Tables["Role"]));
  298. if ((initTable == true)) {
  299. if ((this.tableRole != null)) {
  300. this.tableRole.InitVars();
  301. }
  302. }
  303. this.tableTkani = ((TkaniDataTable)(base.Tables["Tkani"]));
  304. if ((initTable == true)) {
  305. if ((this.tableTkani != null)) {
  306. this.tableTkani.InitVars();
  307. }
  308. }
  309. this.tableUsers = ((UsersDataTable)(base.Tables["Users"]));
  310. if ((initTable == true)) {
  311. if ((this.tableUsers != null)) {
  312. this.tableUsers.InitVars();
  313. }
  314. }
  315. this.relationFK_Orders_Furnitura = this.Relations["FK_Orders_Furnitura"];
  316. this.relationFK_Orders_Izdelie = this.Relations["FK_Orders_Izdelie"];
  317. this.relationFK_Orders_Tkani = this.Relations["FK_Orders_Tkani"];
  318. this.relationFK_Orders_Users = this.Relations["FK_Orders_Users"];
  319. this.relationFK_Tkani_Cveta = this.Relations["FK_Tkani_Cveta"];
  320. this.relationFK_Users_Role = this.Relations["FK_Users_Role"];
  321. }
  322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  323. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  324. private void InitClass() {
  325. this.DataSetName = "dbFabrika2024DataSet";
  326. this.Prefix = "";
  327. this.Namespace = "http://tempuri.org/dbFabrika2024DataSet.xsd";
  328. this.EnforceConstraints = true;
  329. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  330. this.tableCveta = new CvetaDataTable();
  331. base.Tables.Add(this.tableCveta);
  332. this.tableFurnitura = new FurnituraDataTable();
  333. base.Tables.Add(this.tableFurnitura);
  334. this.tableIzdelie = new IzdelieDataTable();
  335. base.Tables.Add(this.tableIzdelie);
  336. this.tableOrders = new OrdersDataTable();
  337. base.Tables.Add(this.tableOrders);
  338. this.tableRole = new RoleDataTable();
  339. base.Tables.Add(this.tableRole);
  340. this.tableTkani = new TkaniDataTable();
  341. base.Tables.Add(this.tableTkani);
  342. this.tableUsers = new UsersDataTable();
  343. base.Tables.Add(this.tableUsers);
  344. this.relationFK_Orders_Furnitura = new global::System.Data.DataRelation("FK_Orders_Furnitura", new global::System.Data.DataColumn[] {
  345. this.tableFurnitura.idfurColumn}, new global::System.Data.DataColumn[] {
  346. this.tableOrders.id_furniturColumn}, false);
  347. this.Relations.Add(this.relationFK_Orders_Furnitura);
  348. this.relationFK_Orders_Izdelie = new global::System.Data.DataRelation("FK_Orders_Izdelie", new global::System.Data.DataColumn[] {
  349. this.tableIzdelie.id_izdelieColumn}, new global::System.Data.DataColumn[] {
  350. this.tableOrders.id_izdelieColumn}, false);
  351. this.Relations.Add(this.relationFK_Orders_Izdelie);
  352. this.relationFK_Orders_Tkani = new global::System.Data.DataRelation("FK_Orders_Tkani", new global::System.Data.DataColumn[] {
  353. this.tableTkani.Id_TkaniColumn}, new global::System.Data.DataColumn[] {
  354. this.tableOrders.id_tkaniColumn}, false);
  355. this.Relations.Add(this.relationFK_Orders_Tkani);
  356. this.relationFK_Orders_Users = new global::System.Data.DataRelation("FK_Orders_Users", new global::System.Data.DataColumn[] {
  357. this.tableUsers.Id_userColumn}, new global::System.Data.DataColumn[] {
  358. this.tableOrders.id_managerColumn}, false);
  359. this.Relations.Add(this.relationFK_Orders_Users);
  360. this.relationFK_Tkani_Cveta = new global::System.Data.DataRelation("FK_Tkani_Cveta", new global::System.Data.DataColumn[] {
  361. this.tableCveta.id_cvetColumn}, new global::System.Data.DataColumn[] {
  362. this.tableTkani.id_cvetColumn}, false);
  363. this.Relations.Add(this.relationFK_Tkani_Cveta);
  364. this.relationFK_Users_Role = new global::System.Data.DataRelation("FK_Users_Role", new global::System.Data.DataColumn[] {
  365. this.tableRole.id_roleColumn}, new global::System.Data.DataColumn[] {
  366. this.tableUsers.id_roleColumn}, false);
  367. this.Relations.Add(this.relationFK_Users_Role);
  368. }
  369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  371. private bool ShouldSerializeCveta() {
  372. return false;
  373. }
  374. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  375. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  376. private bool ShouldSerializeFurnitura() {
  377. return false;
  378. }
  379. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  380. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  381. private bool ShouldSerializeIzdelie() {
  382. return false;
  383. }
  384. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  385. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  386. private bool ShouldSerializeOrders() {
  387. return false;
  388. }
  389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  390. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  391. private bool ShouldSerializeRole() {
  392. return false;
  393. }
  394. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  395. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  396. private bool ShouldSerializeTkani() {
  397. return false;
  398. }
  399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  401. private bool ShouldSerializeUsers() {
  402. return false;
  403. }
  404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  406. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  407. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  408. this.InitVars();
  409. }
  410. }
  411. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  412. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  413. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  414. dbFabrika2024DataSet ds = new dbFabrika2024DataSet();
  415. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  416. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  417. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  418. any.Namespace = ds.Namespace;
  419. sequence.Items.Add(any);
  420. type.Particle = sequence;
  421. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  422. if (xs.Contains(dsSchema.TargetNamespace)) {
  423. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  424. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  425. try {
  426. global::System.Xml.Schema.XmlSchema schema = null;
  427. dsSchema.Write(s1);
  428. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  429. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  430. s2.SetLength(0);
  431. schema.Write(s2);
  432. if ((s1.Length == s2.Length)) {
  433. s1.Position = 0;
  434. s2.Position = 0;
  435. for (; ((s1.Position != s1.Length)
  436. && (s1.ReadByte() == s2.ReadByte())); ) {
  437. ;
  438. }
  439. if ((s1.Position == s1.Length)) {
  440. return type;
  441. }
  442. }
  443. }
  444. }
  445. finally {
  446. if ((s1 != null)) {
  447. s1.Close();
  448. }
  449. if ((s2 != null)) {
  450. s2.Close();
  451. }
  452. }
  453. }
  454. xs.Add(dsSchema);
  455. return type;
  456. }
  457. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  458. public delegate void CvetaRowChangeEventHandler(object sender, CvetaRowChangeEvent e);
  459. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  460. public delegate void FurnituraRowChangeEventHandler(object sender, FurnituraRowChangeEvent e);
  461. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  462. public delegate void IzdelieRowChangeEventHandler(object sender, IzdelieRowChangeEvent e);
  463. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  464. public delegate void OrdersRowChangeEventHandler(object sender, OrdersRowChangeEvent e);
  465. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  466. public delegate void RoleRowChangeEventHandler(object sender, RoleRowChangeEvent e);
  467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  468. public delegate void TkaniRowChangeEventHandler(object sender, TkaniRowChangeEvent e);
  469. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  470. public delegate void UsersRowChangeEventHandler(object sender, UsersRowChangeEvent e);
  471. /// <summary>
  472. ///Represents the strongly named DataTable class.
  473. ///</summary>
  474. [global::System.Serializable()]
  475. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  476. public partial class CvetaDataTable : global::System.Data.TypedTableBase<CvetaRow> {
  477. private global::System.Data.DataColumn columnid_cvet;
  478. private global::System.Data.DataColumn columnName_cvet;
  479. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  480. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  481. public CvetaDataTable() {
  482. this.TableName = "Cveta";
  483. this.BeginInit();
  484. this.InitClass();
  485. this.EndInit();
  486. }
  487. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  488. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  489. internal CvetaDataTable(global::System.Data.DataTable table) {
  490. this.TableName = table.TableName;
  491. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  492. this.CaseSensitive = table.CaseSensitive;
  493. }
  494. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  495. this.Locale = table.Locale;
  496. }
  497. if ((table.Namespace != table.DataSet.Namespace)) {
  498. this.Namespace = table.Namespace;
  499. }
  500. this.Prefix = table.Prefix;
  501. this.MinimumCapacity = table.MinimumCapacity;
  502. }
  503. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  504. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  505. protected CvetaDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  506. base(info, context) {
  507. this.InitVars();
  508. }
  509. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  510. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  511. public global::System.Data.DataColumn id_cvetColumn {
  512. get {
  513. return this.columnid_cvet;
  514. }
  515. }
  516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  517. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  518. public global::System.Data.DataColumn Name_cvetColumn {
  519. get {
  520. return this.columnName_cvet;
  521. }
  522. }
  523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  524. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  525. [global::System.ComponentModel.Browsable(false)]
  526. public int Count {
  527. get {
  528. return this.Rows.Count;
  529. }
  530. }
  531. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  532. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  533. public CvetaRow this[int index] {
  534. get {
  535. return ((CvetaRow)(this.Rows[index]));
  536. }
  537. }
  538. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  539. public event CvetaRowChangeEventHandler CvetaRowChanging;
  540. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  541. public event CvetaRowChangeEventHandler CvetaRowChanged;
  542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  543. public event CvetaRowChangeEventHandler CvetaRowDeleting;
  544. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  545. public event CvetaRowChangeEventHandler CvetaRowDeleted;
  546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  548. public void AddCvetaRow(CvetaRow row) {
  549. this.Rows.Add(row);
  550. }
  551. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  552. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  553. public CvetaRow AddCvetaRow(string Name_cvet) {
  554. CvetaRow rowCvetaRow = ((CvetaRow)(this.NewRow()));
  555. object[] columnValuesArray = new object[] {
  556. null,
  557. Name_cvet};
  558. rowCvetaRow.ItemArray = columnValuesArray;
  559. this.Rows.Add(rowCvetaRow);
  560. return rowCvetaRow;
  561. }
  562. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  563. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  564. public CvetaRow FindByid_cvet(int id_cvet) {
  565. return ((CvetaRow)(this.Rows.Find(new object[] {
  566. id_cvet})));
  567. }
  568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  570. public override global::System.Data.DataTable Clone() {
  571. CvetaDataTable cln = ((CvetaDataTable)(base.Clone()));
  572. cln.InitVars();
  573. return cln;
  574. }
  575. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  576. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  577. protected override global::System.Data.DataTable CreateInstance() {
  578. return new CvetaDataTable();
  579. }
  580. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  581. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  582. internal void InitVars() {
  583. this.columnid_cvet = base.Columns["id_cvet"];
  584. this.columnName_cvet = base.Columns["Name_cvet"];
  585. }
  586. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  587. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  588. private void InitClass() {
  589. this.columnid_cvet = new global::System.Data.DataColumn("id_cvet", typeof(int), null, global::System.Data.MappingType.Element);
  590. base.Columns.Add(this.columnid_cvet);
  591. this.columnName_cvet = new global::System.Data.DataColumn("Name_cvet", typeof(string), null, global::System.Data.MappingType.Element);
  592. base.Columns.Add(this.columnName_cvet);
  593. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  594. this.columnid_cvet}, true));
  595. this.columnid_cvet.AutoIncrement = true;
  596. this.columnid_cvet.AutoIncrementSeed = -1;
  597. this.columnid_cvet.AutoIncrementStep = -1;
  598. this.columnid_cvet.AllowDBNull = false;
  599. this.columnid_cvet.ReadOnly = true;
  600. this.columnid_cvet.Unique = true;
  601. this.columnName_cvet.MaxLength = 2147483647;
  602. }
  603. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  604. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  605. public CvetaRow NewCvetaRow() {
  606. return ((CvetaRow)(this.NewRow()));
  607. }
  608. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  609. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  610. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  611. return new CvetaRow(builder);
  612. }
  613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  614. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  615. protected override global::System.Type GetRowType() {
  616. return typeof(CvetaRow);
  617. }
  618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  619. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  620. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  621. base.OnRowChanged(e);
  622. if ((this.CvetaRowChanged != null)) {
  623. this.CvetaRowChanged(this, new CvetaRowChangeEvent(((CvetaRow)(e.Row)), e.Action));
  624. }
  625. }
  626. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  627. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  628. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  629. base.OnRowChanging(e);
  630. if ((this.CvetaRowChanging != null)) {
  631. this.CvetaRowChanging(this, new CvetaRowChangeEvent(((CvetaRow)(e.Row)), e.Action));
  632. }
  633. }
  634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  636. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  637. base.OnRowDeleted(e);
  638. if ((this.CvetaRowDeleted != null)) {
  639. this.CvetaRowDeleted(this, new CvetaRowChangeEvent(((CvetaRow)(e.Row)), e.Action));
  640. }
  641. }
  642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  644. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  645. base.OnRowDeleting(e);
  646. if ((this.CvetaRowDeleting != null)) {
  647. this.CvetaRowDeleting(this, new CvetaRowChangeEvent(((CvetaRow)(e.Row)), e.Action));
  648. }
  649. }
  650. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  651. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  652. public void RemoveCvetaRow(CvetaRow row) {
  653. this.Rows.Remove(row);
  654. }
  655. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  656. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.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. dbFabrika2024DataSet ds = new dbFabrika2024DataSet();
  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 = "CvetaDataTable";
  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 FurnituraDataTable : global::System.Data.TypedTableBase<FurnituraRow> {
  724. private global::System.Data.DataColumn columnidfur;
  725. private global::System.Data.DataColumn columnnamefur;
  726. private global::System.Data.DataColumn columnphoto;
  727. private global::System.Data.DataColumn columncountfur;
  728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  729. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  730. public FurnituraDataTable() {
  731. this.TableName = "Furnitura";
  732. this.BeginInit();
  733. this.InitClass();
  734. this.EndInit();
  735. }
  736. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  737. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  738. internal FurnituraDataTable(global::System.Data.DataTable table) {
  739. this.TableName = table.TableName;
  740. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  741. this.CaseSensitive = table.CaseSensitive;
  742. }
  743. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  744. this.Locale = table.Locale;
  745. }
  746. if ((table.Namespace != table.DataSet.Namespace)) {
  747. this.Namespace = table.Namespace;
  748. }
  749. this.Prefix = table.Prefix;
  750. this.MinimumCapacity = table.MinimumCapacity;
  751. }
  752. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  753. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  754. protected FurnituraDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  755. base(info, context) {
  756. this.InitVars();
  757. }
  758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  760. public global::System.Data.DataColumn idfurColumn {
  761. get {
  762. return this.columnidfur;
  763. }
  764. }
  765. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  766. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  767. public global::System.Data.DataColumn namefurColumn {
  768. get {
  769. return this.columnnamefur;
  770. }
  771. }
  772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  773. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  774. public global::System.Data.DataColumn photoColumn {
  775. get {
  776. return this.columnphoto;
  777. }
  778. }
  779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  781. public global::System.Data.DataColumn countfurColumn {
  782. get {
  783. return this.columncountfur;
  784. }
  785. }
  786. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  787. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  788. [global::System.ComponentModel.Browsable(false)]
  789. public int Count {
  790. get {
  791. return this.Rows.Count;
  792. }
  793. }
  794. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  795. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  796. public FurnituraRow this[int index] {
  797. get {
  798. return ((FurnituraRow)(this.Rows[index]));
  799. }
  800. }
  801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  802. public event FurnituraRowChangeEventHandler FurnituraRowChanging;
  803. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  804. public event FurnituraRowChangeEventHandler FurnituraRowChanged;
  805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  806. public event FurnituraRowChangeEventHandler FurnituraRowDeleting;
  807. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  808. public event FurnituraRowChangeEventHandler FurnituraRowDeleted;
  809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  810. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  811. public void AddFurnituraRow(FurnituraRow row) {
  812. this.Rows.Add(row);
  813. }
  814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  816. public FurnituraRow AddFurnituraRow(string namefur, byte[] photo, int countfur) {
  817. FurnituraRow rowFurnituraRow = ((FurnituraRow)(this.NewRow()));
  818. object[] columnValuesArray = new object[] {
  819. null,
  820. namefur,
  821. photo,
  822. countfur};
  823. rowFurnituraRow.ItemArray = columnValuesArray;
  824. this.Rows.Add(rowFurnituraRow);
  825. return rowFurnituraRow;
  826. }
  827. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  828. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  829. public FurnituraRow FindByidfur(int idfur) {
  830. return ((FurnituraRow)(this.Rows.Find(new object[] {
  831. idfur})));
  832. }
  833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  835. public override global::System.Data.DataTable Clone() {
  836. FurnituraDataTable cln = ((FurnituraDataTable)(base.Clone()));
  837. cln.InitVars();
  838. return cln;
  839. }
  840. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  841. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  842. protected override global::System.Data.DataTable CreateInstance() {
  843. return new FurnituraDataTable();
  844. }
  845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  846. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  847. internal void InitVars() {
  848. this.columnidfur = base.Columns["idfur"];
  849. this.columnnamefur = base.Columns["namefur"];
  850. this.columnphoto = base.Columns["photo"];
  851. this.columncountfur = base.Columns["countfur"];
  852. }
  853. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  854. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  855. private void InitClass() {
  856. this.columnidfur = new global::System.Data.DataColumn("idfur", typeof(int), null, global::System.Data.MappingType.Element);
  857. base.Columns.Add(this.columnidfur);
  858. this.columnnamefur = new global::System.Data.DataColumn("namefur", typeof(string), null, global::System.Data.MappingType.Element);
  859. base.Columns.Add(this.columnnamefur);
  860. this.columnphoto = new global::System.Data.DataColumn("photo", typeof(byte[]), null, global::System.Data.MappingType.Element);
  861. base.Columns.Add(this.columnphoto);
  862. this.columncountfur = new global::System.Data.DataColumn("countfur", typeof(int), null, global::System.Data.MappingType.Element);
  863. base.Columns.Add(this.columncountfur);
  864. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  865. this.columnidfur}, true));
  866. this.columnidfur.AutoIncrement = true;
  867. this.columnidfur.AutoIncrementSeed = -1;
  868. this.columnidfur.AutoIncrementStep = -1;
  869. this.columnidfur.AllowDBNull = false;
  870. this.columnidfur.ReadOnly = true;
  871. this.columnidfur.Unique = true;
  872. this.columnnamefur.MaxLength = 50;
  873. }
  874. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  875. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  876. public FurnituraRow NewFurnituraRow() {
  877. return ((FurnituraRow)(this.NewRow()));
  878. }
  879. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  880. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  881. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  882. return new FurnituraRow(builder);
  883. }
  884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  886. protected override global::System.Type GetRowType() {
  887. return typeof(FurnituraRow);
  888. }
  889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  890. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  891. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  892. base.OnRowChanged(e);
  893. if ((this.FurnituraRowChanged != null)) {
  894. this.FurnituraRowChanged(this, new FurnituraRowChangeEvent(((FurnituraRow)(e.Row)), e.Action));
  895. }
  896. }
  897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  898. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  899. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  900. base.OnRowChanging(e);
  901. if ((this.FurnituraRowChanging != null)) {
  902. this.FurnituraRowChanging(this, new FurnituraRowChangeEvent(((FurnituraRow)(e.Row)), e.Action));
  903. }
  904. }
  905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  906. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  907. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  908. base.OnRowDeleted(e);
  909. if ((this.FurnituraRowDeleted != null)) {
  910. this.FurnituraRowDeleted(this, new FurnituraRowChangeEvent(((FurnituraRow)(e.Row)), e.Action));
  911. }
  912. }
  913. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  914. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  915. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  916. base.OnRowDeleting(e);
  917. if ((this.FurnituraRowDeleting != null)) {
  918. this.FurnituraRowDeleting(this, new FurnituraRowChangeEvent(((FurnituraRow)(e.Row)), e.Action));
  919. }
  920. }
  921. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  922. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  923. public void RemoveFurnituraRow(FurnituraRow row) {
  924. this.Rows.Remove(row);
  925. }
  926. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  927. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  928. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  929. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  930. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  931. dbFabrika2024DataSet ds = new dbFabrika2024DataSet();
  932. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  933. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  934. any1.MinOccurs = new decimal(0);
  935. any1.MaxOccurs = decimal.MaxValue;
  936. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  937. sequence.Items.Add(any1);
  938. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  939. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  940. any2.MinOccurs = new decimal(1);
  941. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  942. sequence.Items.Add(any2);
  943. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  944. attribute1.Name = "namespace";
  945. attribute1.FixedValue = ds.Namespace;
  946. type.Attributes.Add(attribute1);
  947. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  948. attribute2.Name = "tableTypeName";
  949. attribute2.FixedValue = "FurnituraDataTable";
  950. type.Attributes.Add(attribute2);
  951. type.Particle = sequence;
  952. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  953. if (xs.Contains(dsSchema.TargetNamespace)) {
  954. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  955. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  956. try {
  957. global::System.Xml.Schema.XmlSchema schema = null;
  958. dsSchema.Write(s1);
  959. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  960. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  961. s2.SetLength(0);
  962. schema.Write(s2);
  963. if ((s1.Length == s2.Length)) {
  964. s1.Position = 0;
  965. s2.Position = 0;
  966. for (; ((s1.Position != s1.Length)
  967. && (s1.ReadByte() == s2.ReadByte())); ) {
  968. ;
  969. }
  970. if ((s1.Position == s1.Length)) {
  971. return type;
  972. }
  973. }
  974. }
  975. }
  976. finally {
  977. if ((s1 != null)) {
  978. s1.Close();
  979. }
  980. if ((s2 != null)) {
  981. s2.Close();
  982. }
  983. }
  984. }
  985. xs.Add(dsSchema);
  986. return type;
  987. }
  988. }
  989. /// <summary>
  990. ///Represents the strongly named DataTable class.
  991. ///</summary>
  992. [global::System.Serializable()]
  993. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  994. public partial class IzdelieDataTable : global::System.Data.TypedTableBase<IzdelieRow> {
  995. private global::System.Data.DataColumn columnid_izdelie;
  996. private global::System.Data.DataColumn columnName_izd;
  997. private global::System.Data.DataColumn columnlength;
  998. private global::System.Data.DataColumn columnwidth;
  999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1001. public IzdelieDataTable() {
  1002. this.TableName = "Izdelie";
  1003. this.BeginInit();
  1004. this.InitClass();
  1005. this.EndInit();
  1006. }
  1007. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1008. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1009. internal IzdelieDataTable(global::System.Data.DataTable table) {
  1010. this.TableName = table.TableName;
  1011. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1012. this.CaseSensitive = table.CaseSensitive;
  1013. }
  1014. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1015. this.Locale = table.Locale;
  1016. }
  1017. if ((table.Namespace != table.DataSet.Namespace)) {
  1018. this.Namespace = table.Namespace;
  1019. }
  1020. this.Prefix = table.Prefix;
  1021. this.MinimumCapacity = table.MinimumCapacity;
  1022. }
  1023. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1024. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1025. protected IzdelieDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1026. base(info, context) {
  1027. this.InitVars();
  1028. }
  1029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1031. public global::System.Data.DataColumn id_izdelieColumn {
  1032. get {
  1033. return this.columnid_izdelie;
  1034. }
  1035. }
  1036. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1037. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1038. public global::System.Data.DataColumn Name_izdColumn {
  1039. get {
  1040. return this.columnName_izd;
  1041. }
  1042. }
  1043. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1044. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1045. public global::System.Data.DataColumn lengthColumn {
  1046. get {
  1047. return this.columnlength;
  1048. }
  1049. }
  1050. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1052. public global::System.Data.DataColumn widthColumn {
  1053. get {
  1054. return this.columnwidth;
  1055. }
  1056. }
  1057. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1058. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1059. [global::System.ComponentModel.Browsable(false)]
  1060. public int Count {
  1061. get {
  1062. return this.Rows.Count;
  1063. }
  1064. }
  1065. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1066. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1067. public IzdelieRow this[int index] {
  1068. get {
  1069. return ((IzdelieRow)(this.Rows[index]));
  1070. }
  1071. }
  1072. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1073. public event IzdelieRowChangeEventHandler IzdelieRowChanging;
  1074. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1075. public event IzdelieRowChangeEventHandler IzdelieRowChanged;
  1076. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1077. public event IzdelieRowChangeEventHandler IzdelieRowDeleting;
  1078. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1079. public event IzdelieRowChangeEventHandler IzdelieRowDeleted;
  1080. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1081. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1082. public void AddIzdelieRow(IzdelieRow row) {
  1083. this.Rows.Add(row);
  1084. }
  1085. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1086. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1087. public IzdelieRow AddIzdelieRow(string Name_izd, int length, int width) {
  1088. IzdelieRow rowIzdelieRow = ((IzdelieRow)(this.NewRow()));
  1089. object[] columnValuesArray = new object[] {
  1090. null,
  1091. Name_izd,
  1092. length,
  1093. width};
  1094. rowIzdelieRow.ItemArray = columnValuesArray;
  1095. this.Rows.Add(rowIzdelieRow);
  1096. return rowIzdelieRow;
  1097. }
  1098. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1099. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1100. public IzdelieRow FindByid_izdelie(int id_izdelie) {
  1101. return ((IzdelieRow)(this.Rows.Find(new object[] {
  1102. id_izdelie})));
  1103. }
  1104. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1105. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1106. public override global::System.Data.DataTable Clone() {
  1107. IzdelieDataTable cln = ((IzdelieDataTable)(base.Clone()));
  1108. cln.InitVars();
  1109. return cln;
  1110. }
  1111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1113. protected override global::System.Data.DataTable CreateInstance() {
  1114. return new IzdelieDataTable();
  1115. }
  1116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1118. internal void InitVars() {
  1119. this.columnid_izdelie = base.Columns["id_izdelie"];
  1120. this.columnName_izd = base.Columns["Name_izd"];
  1121. this.columnlength = base.Columns["length"];
  1122. this.columnwidth = base.Columns["width"];
  1123. }
  1124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1125. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1126. private void InitClass() {
  1127. this.columnid_izdelie = new global::System.Data.DataColumn("id_izdelie", typeof(int), null, global::System.Data.MappingType.Element);
  1128. base.Columns.Add(this.columnid_izdelie);
  1129. this.columnName_izd = new global::System.Data.DataColumn("Name_izd", typeof(string), null, global::System.Data.MappingType.Element);
  1130. base.Columns.Add(this.columnName_izd);
  1131. this.columnlength = new global::System.Data.DataColumn("length", typeof(int), null, global::System.Data.MappingType.Element);
  1132. base.Columns.Add(this.columnlength);
  1133. this.columnwidth = new global::System.Data.DataColumn("width", typeof(int), null, global::System.Data.MappingType.Element);
  1134. base.Columns.Add(this.columnwidth);
  1135. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1136. this.columnid_izdelie}, true));
  1137. this.columnid_izdelie.AutoIncrement = true;
  1138. this.columnid_izdelie.AutoIncrementSeed = -1;
  1139. this.columnid_izdelie.AutoIncrementStep = -1;
  1140. this.columnid_izdelie.AllowDBNull = false;
  1141. this.columnid_izdelie.ReadOnly = true;
  1142. this.columnid_izdelie.Unique = true;
  1143. this.columnName_izd.MaxLength = 50;
  1144. }
  1145. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1146. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1147. public IzdelieRow NewIzdelieRow() {
  1148. return ((IzdelieRow)(this.NewRow()));
  1149. }
  1150. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1151. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1152. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1153. return new IzdelieRow(builder);
  1154. }
  1155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1156. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1157. protected override global::System.Type GetRowType() {
  1158. return typeof(IzdelieRow);
  1159. }
  1160. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1161. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1162. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1163. base.OnRowChanged(e);
  1164. if ((this.IzdelieRowChanged != null)) {
  1165. this.IzdelieRowChanged(this, new IzdelieRowChangeEvent(((IzdelieRow)(e.Row)), e.Action));
  1166. }
  1167. }
  1168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1169. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1170. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1171. base.OnRowChanging(e);
  1172. if ((this.IzdelieRowChanging != null)) {
  1173. this.IzdelieRowChanging(this, new IzdelieRowChangeEvent(((IzdelieRow)(e.Row)), e.Action));
  1174. }
  1175. }
  1176. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1177. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1178. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1179. base.OnRowDeleted(e);
  1180. if ((this.IzdelieRowDeleted != null)) {
  1181. this.IzdelieRowDeleted(this, new IzdelieRowChangeEvent(((IzdelieRow)(e.Row)), e.Action));
  1182. }
  1183. }
  1184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1186. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1187. base.OnRowDeleting(e);
  1188. if ((this.IzdelieRowDeleting != null)) {
  1189. this.IzdelieRowDeleting(this, new IzdelieRowChangeEvent(((IzdelieRow)(e.Row)), e.Action));
  1190. }
  1191. }
  1192. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1193. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1194. public void RemoveIzdelieRow(IzdelieRow row) {
  1195. this.Rows.Remove(row);
  1196. }
  1197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1198. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1199. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1200. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1201. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1202. dbFabrika2024DataSet ds = new dbFabrika2024DataSet();
  1203. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1204. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1205. any1.MinOccurs = new decimal(0);
  1206. any1.MaxOccurs = decimal.MaxValue;
  1207. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1208. sequence.Items.Add(any1);
  1209. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1210. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1211. any2.MinOccurs = new decimal(1);
  1212. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1213. sequence.Items.Add(any2);
  1214. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1215. attribute1.Name = "namespace";
  1216. attribute1.FixedValue = ds.Namespace;
  1217. type.Attributes.Add(attribute1);
  1218. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1219. attribute2.Name = "tableTypeName";
  1220. attribute2.FixedValue = "IzdelieDataTable";
  1221. type.Attributes.Add(attribute2);
  1222. type.Particle = sequence;
  1223. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1224. if (xs.Contains(dsSchema.TargetNamespace)) {
  1225. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1226. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1227. try {
  1228. global::System.Xml.Schema.XmlSchema schema = null;
  1229. dsSchema.Write(s1);
  1230. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1231. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1232. s2.SetLength(0);
  1233. schema.Write(s2);
  1234. if ((s1.Length == s2.Length)) {
  1235. s1.Position = 0;
  1236. s2.Position = 0;
  1237. for (; ((s1.Position != s1.Length)
  1238. && (s1.ReadByte() == s2.ReadByte())); ) {
  1239. ;
  1240. }
  1241. if ((s1.Position == s1.Length)) {
  1242. return type;
  1243. }
  1244. }
  1245. }
  1246. }
  1247. finally {
  1248. if ((s1 != null)) {
  1249. s1.Close();
  1250. }
  1251. if ((s2 != null)) {
  1252. s2.Close();
  1253. }
  1254. }
  1255. }
  1256. xs.Add(dsSchema);
  1257. return type;
  1258. }
  1259. }
  1260. /// <summary>
  1261. ///Represents the strongly named DataTable class.
  1262. ///</summary>
  1263. [global::System.Serializable()]
  1264. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1265. public partial class OrdersDataTable : global::System.Data.TypedTableBase<OrdersRow> {
  1266. private global::System.Data.DataColumn columnid_order;
  1267. private global::System.Data.DataColumn columnid_izdelie;
  1268. private global::System.Data.DataColumn columnid_zakaz;
  1269. private global::System.Data.DataColumn columnid_manager;
  1270. private global::System.Data.DataColumn columnid_tkani;
  1271. private global::System.Data.DataColumn columnid_furnitur;
  1272. private global::System.Data.DataColumn columnCountFurnit;
  1273. private global::System.Data.DataColumn columnCountIzdel;
  1274. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1275. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1276. public OrdersDataTable() {
  1277. this.TableName = "Orders";
  1278. this.BeginInit();
  1279. this.InitClass();
  1280. this.EndInit();
  1281. }
  1282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1284. internal OrdersDataTable(global::System.Data.DataTable table) {
  1285. this.TableName = table.TableName;
  1286. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1287. this.CaseSensitive = table.CaseSensitive;
  1288. }
  1289. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1290. this.Locale = table.Locale;
  1291. }
  1292. if ((table.Namespace != table.DataSet.Namespace)) {
  1293. this.Namespace = table.Namespace;
  1294. }
  1295. this.Prefix = table.Prefix;
  1296. this.MinimumCapacity = table.MinimumCapacity;
  1297. }
  1298. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1299. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1300. protected OrdersDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1301. base(info, context) {
  1302. this.InitVars();
  1303. }
  1304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1306. public global::System.Data.DataColumn id_orderColumn {
  1307. get {
  1308. return this.columnid_order;
  1309. }
  1310. }
  1311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1312. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1313. public global::System.Data.DataColumn id_izdelieColumn {
  1314. get {
  1315. return this.columnid_izdelie;
  1316. }
  1317. }
  1318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1319. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1320. public global::System.Data.DataColumn id_zakazColumn {
  1321. get {
  1322. return this.columnid_zakaz;
  1323. }
  1324. }
  1325. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1326. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1327. public global::System.Data.DataColumn id_managerColumn {
  1328. get {
  1329. return this.columnid_manager;
  1330. }
  1331. }
  1332. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1333. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1334. public global::System.Data.DataColumn id_tkaniColumn {
  1335. get {
  1336. return this.columnid_tkani;
  1337. }
  1338. }
  1339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1341. public global::System.Data.DataColumn id_furniturColumn {
  1342. get {
  1343. return this.columnid_furnitur;
  1344. }
  1345. }
  1346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1347. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1348. public global::System.Data.DataColumn CountFurnitColumn {
  1349. get {
  1350. return this.columnCountFurnit;
  1351. }
  1352. }
  1353. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1354. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1355. public global::System.Data.DataColumn CountIzdelColumn {
  1356. get {
  1357. return this.columnCountIzdel;
  1358. }
  1359. }
  1360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1361. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1362. [global::System.ComponentModel.Browsable(false)]
  1363. public int Count {
  1364. get {
  1365. return this.Rows.Count;
  1366. }
  1367. }
  1368. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1369. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1370. public OrdersRow this[int index] {
  1371. get {
  1372. return ((OrdersRow)(this.Rows[index]));
  1373. }
  1374. }
  1375. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1376. public event OrdersRowChangeEventHandler OrdersRowChanging;
  1377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1378. public event OrdersRowChangeEventHandler OrdersRowChanged;
  1379. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1380. public event OrdersRowChangeEventHandler OrdersRowDeleting;
  1381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1382. public event OrdersRowChangeEventHandler OrdersRowDeleted;
  1383. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1384. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1385. public void AddOrdersRow(OrdersRow row) {
  1386. this.Rows.Add(row);
  1387. }
  1388. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1389. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1390. public OrdersRow AddOrdersRow(IzdelieRow parentIzdelieRowByFK_Orders_Izdelie, int id_zakaz, UsersRow parentUsersRowByFK_Orders_Users, TkaniRow parentTkaniRowByFK_Orders_Tkani, FurnituraRow parentFurnituraRowByFK_Orders_Furnitura, int CountFurnit, int CountIzdel) {
  1391. OrdersRow rowOrdersRow = ((OrdersRow)(this.NewRow()));
  1392. object[] columnValuesArray = new object[] {
  1393. null,
  1394. null,
  1395. id_zakaz,
  1396. null,
  1397. null,
  1398. null,
  1399. CountFurnit,
  1400. CountIzdel};
  1401. if ((parentIzdelieRowByFK_Orders_Izdelie != null)) {
  1402. columnValuesArray[1] = parentIzdelieRowByFK_Orders_Izdelie[0];
  1403. }
  1404. if ((parentUsersRowByFK_Orders_Users != null)) {
  1405. columnValuesArray[3] = parentUsersRowByFK_Orders_Users[0];
  1406. }
  1407. if ((parentTkaniRowByFK_Orders_Tkani != null)) {
  1408. columnValuesArray[4] = parentTkaniRowByFK_Orders_Tkani[0];
  1409. }
  1410. if ((parentFurnituraRowByFK_Orders_Furnitura != null)) {
  1411. columnValuesArray[5] = parentFurnituraRowByFK_Orders_Furnitura[0];
  1412. }
  1413. rowOrdersRow.ItemArray = columnValuesArray;
  1414. this.Rows.Add(rowOrdersRow);
  1415. return rowOrdersRow;
  1416. }
  1417. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1418. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1419. public OrdersRow FindByid_order(int id_order) {
  1420. return ((OrdersRow)(this.Rows.Find(new object[] {
  1421. id_order})));
  1422. }
  1423. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1424. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1425. public override global::System.Data.DataTable Clone() {
  1426. OrdersDataTable cln = ((OrdersDataTable)(base.Clone()));
  1427. cln.InitVars();
  1428. return cln;
  1429. }
  1430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1431. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1432. protected override global::System.Data.DataTable CreateInstance() {
  1433. return new OrdersDataTable();
  1434. }
  1435. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1436. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1437. internal void InitVars() {
  1438. this.columnid_order = base.Columns["id_order"];
  1439. this.columnid_izdelie = base.Columns["id_izdelie"];
  1440. this.columnid_zakaz = base.Columns["id_zakaz"];
  1441. this.columnid_manager = base.Columns["id_manager"];
  1442. this.columnid_tkani = base.Columns["id_tkani"];
  1443. this.columnid_furnitur = base.Columns["id_furnitur"];
  1444. this.columnCountFurnit = base.Columns["CountFurnit"];
  1445. this.columnCountIzdel = base.Columns["CountIzdel"];
  1446. }
  1447. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1448. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1449. private void InitClass() {
  1450. this.columnid_order = new global::System.Data.DataColumn("id_order", typeof(int), null, global::System.Data.MappingType.Element);
  1451. base.Columns.Add(this.columnid_order);
  1452. this.columnid_izdelie = new global::System.Data.DataColumn("id_izdelie", typeof(int), null, global::System.Data.MappingType.Element);
  1453. base.Columns.Add(this.columnid_izdelie);
  1454. this.columnid_zakaz = new global::System.Data.DataColumn("id_zakaz", typeof(int), null, global::System.Data.MappingType.Element);
  1455. base.Columns.Add(this.columnid_zakaz);
  1456. this.columnid_manager = new global::System.Data.DataColumn("id_manager", typeof(int), null, global::System.Data.MappingType.Element);
  1457. base.Columns.Add(this.columnid_manager);
  1458. this.columnid_tkani = new global::System.Data.DataColumn("id_tkani", typeof(int), null, global::System.Data.MappingType.Element);
  1459. base.Columns.Add(this.columnid_tkani);
  1460. this.columnid_furnitur = new global::System.Data.DataColumn("id_furnitur", typeof(int), null, global::System.Data.MappingType.Element);
  1461. base.Columns.Add(this.columnid_furnitur);
  1462. this.columnCountFurnit = new global::System.Data.DataColumn("CountFurnit", typeof(int), null, global::System.Data.MappingType.Element);
  1463. base.Columns.Add(this.columnCountFurnit);
  1464. this.columnCountIzdel = new global::System.Data.DataColumn("CountIzdel", typeof(int), null, global::System.Data.MappingType.Element);
  1465. base.Columns.Add(this.columnCountIzdel);
  1466. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1467. this.columnid_order}, true));
  1468. this.columnid_order.AutoIncrement = true;
  1469. this.columnid_order.AutoIncrementSeed = -1;
  1470. this.columnid_order.AutoIncrementStep = -1;
  1471. this.columnid_order.AllowDBNull = false;
  1472. this.columnid_order.ReadOnly = true;
  1473. this.columnid_order.Unique = true;
  1474. }
  1475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1477. public OrdersRow NewOrdersRow() {
  1478. return ((OrdersRow)(this.NewRow()));
  1479. }
  1480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1482. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1483. return new OrdersRow(builder);
  1484. }
  1485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1486. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1487. protected override global::System.Type GetRowType() {
  1488. return typeof(OrdersRow);
  1489. }
  1490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1492. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1493. base.OnRowChanged(e);
  1494. if ((this.OrdersRowChanged != null)) {
  1495. this.OrdersRowChanged(this, new OrdersRowChangeEvent(((OrdersRow)(e.Row)), e.Action));
  1496. }
  1497. }
  1498. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1499. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1500. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1501. base.OnRowChanging(e);
  1502. if ((this.OrdersRowChanging != null)) {
  1503. this.OrdersRowChanging(this, new OrdersRowChangeEvent(((OrdersRow)(e.Row)), e.Action));
  1504. }
  1505. }
  1506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1508. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1509. base.OnRowDeleted(e);
  1510. if ((this.OrdersRowDeleted != null)) {
  1511. this.OrdersRowDeleted(this, new OrdersRowChangeEvent(((OrdersRow)(e.Row)), e.Action));
  1512. }
  1513. }
  1514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1515. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1516. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1517. base.OnRowDeleting(e);
  1518. if ((this.OrdersRowDeleting != null)) {
  1519. this.OrdersRowDeleting(this, new OrdersRowChangeEvent(((OrdersRow)(e.Row)), e.Action));
  1520. }
  1521. }
  1522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1524. public void RemoveOrdersRow(OrdersRow row) {
  1525. this.Rows.Remove(row);
  1526. }
  1527. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1528. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1529. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1530. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1531. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1532. dbFabrika2024DataSet ds = new dbFabrika2024DataSet();
  1533. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1534. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1535. any1.MinOccurs = new decimal(0);
  1536. any1.MaxOccurs = decimal.MaxValue;
  1537. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1538. sequence.Items.Add(any1);
  1539. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1540. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1541. any2.MinOccurs = new decimal(1);
  1542. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1543. sequence.Items.Add(any2);
  1544. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1545. attribute1.Name = "namespace";
  1546. attribute1.FixedValue = ds.Namespace;
  1547. type.Attributes.Add(attribute1);
  1548. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1549. attribute2.Name = "tableTypeName";
  1550. attribute2.FixedValue = "OrdersDataTable";
  1551. type.Attributes.Add(attribute2);
  1552. type.Particle = sequence;
  1553. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1554. if (xs.Contains(dsSchema.TargetNamespace)) {
  1555. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1556. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1557. try {
  1558. global::System.Xml.Schema.XmlSchema schema = null;
  1559. dsSchema.Write(s1);
  1560. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1561. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1562. s2.SetLength(0);
  1563. schema.Write(s2);
  1564. if ((s1.Length == s2.Length)) {
  1565. s1.Position = 0;
  1566. s2.Position = 0;
  1567. for (; ((s1.Position != s1.Length)
  1568. && (s1.ReadByte() == s2.ReadByte())); ) {
  1569. ;
  1570. }
  1571. if ((s1.Position == s1.Length)) {
  1572. return type;
  1573. }
  1574. }
  1575. }
  1576. }
  1577. finally {
  1578. if ((s1 != null)) {
  1579. s1.Close();
  1580. }
  1581. if ((s2 != null)) {
  1582. s2.Close();
  1583. }
  1584. }
  1585. }
  1586. xs.Add(dsSchema);
  1587. return type;
  1588. }
  1589. }
  1590. /// <summary>
  1591. ///Represents the strongly named DataTable class.
  1592. ///</summary>
  1593. [global::System.Serializable()]
  1594. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1595. public partial class RoleDataTable : global::System.Data.TypedTableBase<RoleRow> {
  1596. private global::System.Data.DataColumn columnid_role;
  1597. private global::System.Data.DataColumn columnName_Role;
  1598. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1599. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1600. public RoleDataTable() {
  1601. this.TableName = "Role";
  1602. this.BeginInit();
  1603. this.InitClass();
  1604. this.EndInit();
  1605. }
  1606. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1607. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1608. internal RoleDataTable(global::System.Data.DataTable table) {
  1609. this.TableName = table.TableName;
  1610. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1611. this.CaseSensitive = table.CaseSensitive;
  1612. }
  1613. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1614. this.Locale = table.Locale;
  1615. }
  1616. if ((table.Namespace != table.DataSet.Namespace)) {
  1617. this.Namespace = table.Namespace;
  1618. }
  1619. this.Prefix = table.Prefix;
  1620. this.MinimumCapacity = table.MinimumCapacity;
  1621. }
  1622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1623. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1624. protected RoleDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1625. base(info, context) {
  1626. this.InitVars();
  1627. }
  1628. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1630. public global::System.Data.DataColumn id_roleColumn {
  1631. get {
  1632. return this.columnid_role;
  1633. }
  1634. }
  1635. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1636. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1637. public global::System.Data.DataColumn Name_RoleColumn {
  1638. get {
  1639. return this.columnName_Role;
  1640. }
  1641. }
  1642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1644. [global::System.ComponentModel.Browsable(false)]
  1645. public int Count {
  1646. get {
  1647. return this.Rows.Count;
  1648. }
  1649. }
  1650. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1651. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1652. public RoleRow this[int index] {
  1653. get {
  1654. return ((RoleRow)(this.Rows[index]));
  1655. }
  1656. }
  1657. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1658. public event RoleRowChangeEventHandler RoleRowChanging;
  1659. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1660. public event RoleRowChangeEventHandler RoleRowChanged;
  1661. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1662. public event RoleRowChangeEventHandler RoleRowDeleting;
  1663. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1664. public event RoleRowChangeEventHandler RoleRowDeleted;
  1665. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1666. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1667. public void AddRoleRow(RoleRow row) {
  1668. this.Rows.Add(row);
  1669. }
  1670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1671. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1672. public RoleRow AddRoleRow(string Name_Role) {
  1673. RoleRow rowRoleRow = ((RoleRow)(this.NewRow()));
  1674. object[] columnValuesArray = new object[] {
  1675. null,
  1676. Name_Role};
  1677. rowRoleRow.ItemArray = columnValuesArray;
  1678. this.Rows.Add(rowRoleRow);
  1679. return rowRoleRow;
  1680. }
  1681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1682. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1683. public RoleRow FindByid_role(int id_role) {
  1684. return ((RoleRow)(this.Rows.Find(new object[] {
  1685. id_role})));
  1686. }
  1687. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1688. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1689. public override global::System.Data.DataTable Clone() {
  1690. RoleDataTable cln = ((RoleDataTable)(base.Clone()));
  1691. cln.InitVars();
  1692. return cln;
  1693. }
  1694. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1695. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1696. protected override global::System.Data.DataTable CreateInstance() {
  1697. return new RoleDataTable();
  1698. }
  1699. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1700. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1701. internal void InitVars() {
  1702. this.columnid_role = base.Columns["id_role"];
  1703. this.columnName_Role = base.Columns["Name_Role"];
  1704. }
  1705. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1706. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1707. private void InitClass() {
  1708. this.columnid_role = new global::System.Data.DataColumn("id_role", typeof(int), null, global::System.Data.MappingType.Element);
  1709. base.Columns.Add(this.columnid_role);
  1710. this.columnName_Role = new global::System.Data.DataColumn("Name_Role", typeof(string), null, global::System.Data.MappingType.Element);
  1711. base.Columns.Add(this.columnName_Role);
  1712. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1713. this.columnid_role}, true));
  1714. this.columnid_role.AutoIncrement = true;
  1715. this.columnid_role.AutoIncrementSeed = -1;
  1716. this.columnid_role.AutoIncrementStep = -1;
  1717. this.columnid_role.AllowDBNull = false;
  1718. this.columnid_role.ReadOnly = true;
  1719. this.columnid_role.Unique = true;
  1720. this.columnName_Role.MaxLength = 50;
  1721. }
  1722. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1723. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1724. public RoleRow NewRoleRow() {
  1725. return ((RoleRow)(this.NewRow()));
  1726. }
  1727. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1728. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1729. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1730. return new RoleRow(builder);
  1731. }
  1732. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1733. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1734. protected override global::System.Type GetRowType() {
  1735. return typeof(RoleRow);
  1736. }
  1737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1738. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1739. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1740. base.OnRowChanged(e);
  1741. if ((this.RoleRowChanged != null)) {
  1742. this.RoleRowChanged(this, new RoleRowChangeEvent(((RoleRow)(e.Row)), e.Action));
  1743. }
  1744. }
  1745. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1746. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1747. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1748. base.OnRowChanging(e);
  1749. if ((this.RoleRowChanging != null)) {
  1750. this.RoleRowChanging(this, new RoleRowChangeEvent(((RoleRow)(e.Row)), e.Action));
  1751. }
  1752. }
  1753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1755. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1756. base.OnRowDeleted(e);
  1757. if ((this.RoleRowDeleted != null)) {
  1758. this.RoleRowDeleted(this, new RoleRowChangeEvent(((RoleRow)(e.Row)), e.Action));
  1759. }
  1760. }
  1761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1763. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1764. base.OnRowDeleting(e);
  1765. if ((this.RoleRowDeleting != null)) {
  1766. this.RoleRowDeleting(this, new RoleRowChangeEvent(((RoleRow)(e.Row)), e.Action));
  1767. }
  1768. }
  1769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1770. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1771. public void RemoveRoleRow(RoleRow row) {
  1772. this.Rows.Remove(row);
  1773. }
  1774. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1775. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1776. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1777. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1778. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1779. dbFabrika2024DataSet ds = new dbFabrika2024DataSet();
  1780. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1781. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1782. any1.MinOccurs = new decimal(0);
  1783. any1.MaxOccurs = decimal.MaxValue;
  1784. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1785. sequence.Items.Add(any1);
  1786. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1787. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1788. any2.MinOccurs = new decimal(1);
  1789. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1790. sequence.Items.Add(any2);
  1791. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1792. attribute1.Name = "namespace";
  1793. attribute1.FixedValue = ds.Namespace;
  1794. type.Attributes.Add(attribute1);
  1795. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1796. attribute2.Name = "tableTypeName";
  1797. attribute2.FixedValue = "RoleDataTable";
  1798. type.Attributes.Add(attribute2);
  1799. type.Particle = sequence;
  1800. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1801. if (xs.Contains(dsSchema.TargetNamespace)) {
  1802. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1803. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1804. try {
  1805. global::System.Xml.Schema.XmlSchema schema = null;
  1806. dsSchema.Write(s1);
  1807. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1808. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1809. s2.SetLength(0);
  1810. schema.Write(s2);
  1811. if ((s1.Length == s2.Length)) {
  1812. s1.Position = 0;
  1813. s2.Position = 0;
  1814. for (; ((s1.Position != s1.Length)
  1815. && (s1.ReadByte() == s2.ReadByte())); ) {
  1816. ;
  1817. }
  1818. if ((s1.Position == s1.Length)) {
  1819. return type;
  1820. }
  1821. }
  1822. }
  1823. }
  1824. finally {
  1825. if ((s1 != null)) {
  1826. s1.Close();
  1827. }
  1828. if ((s2 != null)) {
  1829. s2.Close();
  1830. }
  1831. }
  1832. }
  1833. xs.Add(dsSchema);
  1834. return type;
  1835. }
  1836. }
  1837. /// <summary>
  1838. ///Represents the strongly named DataTable class.
  1839. ///</summary>
  1840. [global::System.Serializable()]
  1841. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1842. public partial class TkaniDataTable : global::System.Data.TypedTableBase<TkaniRow> {
  1843. private global::System.Data.DataColumn columnId_Tkani;
  1844. private global::System.Data.DataColumn columnNazvanie;
  1845. private global::System.Data.DataColumn columnid_cvet;
  1846. private global::System.Data.DataColumn columnShirina;
  1847. private global::System.Data.DataColumn columnDlina;
  1848. private global::System.Data.DataColumn columnPrimechanie;
  1849. private global::System.Data.DataColumn columnPhoto;
  1850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1851. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1852. public TkaniDataTable() {
  1853. this.TableName = "Tkani";
  1854. this.BeginInit();
  1855. this.InitClass();
  1856. this.EndInit();
  1857. }
  1858. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1859. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1860. internal TkaniDataTable(global::System.Data.DataTable table) {
  1861. this.TableName = table.TableName;
  1862. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1863. this.CaseSensitive = table.CaseSensitive;
  1864. }
  1865. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1866. this.Locale = table.Locale;
  1867. }
  1868. if ((table.Namespace != table.DataSet.Namespace)) {
  1869. this.Namespace = table.Namespace;
  1870. }
  1871. this.Prefix = table.Prefix;
  1872. this.MinimumCapacity = table.MinimumCapacity;
  1873. }
  1874. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1875. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1876. protected TkaniDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1877. base(info, context) {
  1878. this.InitVars();
  1879. }
  1880. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1881. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1882. public global::System.Data.DataColumn Id_TkaniColumn {
  1883. get {
  1884. return this.columnId_Tkani;
  1885. }
  1886. }
  1887. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1888. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1889. public global::System.Data.DataColumn NazvanieColumn {
  1890. get {
  1891. return this.columnNazvanie;
  1892. }
  1893. }
  1894. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1895. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1896. public global::System.Data.DataColumn id_cvetColumn {
  1897. get {
  1898. return this.columnid_cvet;
  1899. }
  1900. }
  1901. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1902. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1903. public global::System.Data.DataColumn ShirinaColumn {
  1904. get {
  1905. return this.columnShirina;
  1906. }
  1907. }
  1908. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1909. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1910. public global::System.Data.DataColumn DlinaColumn {
  1911. get {
  1912. return this.columnDlina;
  1913. }
  1914. }
  1915. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1916. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1917. public global::System.Data.DataColumn PrimechanieColumn {
  1918. get {
  1919. return this.columnPrimechanie;
  1920. }
  1921. }
  1922. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1923. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1924. public global::System.Data.DataColumn PhotoColumn {
  1925. get {
  1926. return this.columnPhoto;
  1927. }
  1928. }
  1929. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1930. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1931. [global::System.ComponentModel.Browsable(false)]
  1932. public int Count {
  1933. get {
  1934. return this.Rows.Count;
  1935. }
  1936. }
  1937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1938. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1939. public TkaniRow this[int index] {
  1940. get {
  1941. return ((TkaniRow)(this.Rows[index]));
  1942. }
  1943. }
  1944. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1945. public event TkaniRowChangeEventHandler TkaniRowChanging;
  1946. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1947. public event TkaniRowChangeEventHandler TkaniRowChanged;
  1948. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1949. public event TkaniRowChangeEventHandler TkaniRowDeleting;
  1950. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1951. public event TkaniRowChangeEventHandler TkaniRowDeleted;
  1952. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1953. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1954. public void AddTkaniRow(TkaniRow row) {
  1955. this.Rows.Add(row);
  1956. }
  1957. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1958. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1959. public TkaniRow AddTkaniRow(string Nazvanie, CvetaRow parentCvetaRowByFK_Tkani_Cveta, int Shirina, int Dlina, string Primechanie, byte[] Photo) {
  1960. TkaniRow rowTkaniRow = ((TkaniRow)(this.NewRow()));
  1961. object[] columnValuesArray = new object[] {
  1962. null,
  1963. Nazvanie,
  1964. null,
  1965. Shirina,
  1966. Dlina,
  1967. Primechanie,
  1968. Photo};
  1969. if ((parentCvetaRowByFK_Tkani_Cveta != null)) {
  1970. columnValuesArray[2] = parentCvetaRowByFK_Tkani_Cveta[0];
  1971. }
  1972. rowTkaniRow.ItemArray = columnValuesArray;
  1973. this.Rows.Add(rowTkaniRow);
  1974. return rowTkaniRow;
  1975. }
  1976. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1977. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1978. public TkaniRow FindById_Tkani(int Id_Tkani) {
  1979. return ((TkaniRow)(this.Rows.Find(new object[] {
  1980. Id_Tkani})));
  1981. }
  1982. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1983. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1984. public override global::System.Data.DataTable Clone() {
  1985. TkaniDataTable cln = ((TkaniDataTable)(base.Clone()));
  1986. cln.InitVars();
  1987. return cln;
  1988. }
  1989. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1990. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1991. protected override global::System.Data.DataTable CreateInstance() {
  1992. return new TkaniDataTable();
  1993. }
  1994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1995. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1996. internal void InitVars() {
  1997. this.columnId_Tkani = base.Columns["Id_Tkani"];
  1998. this.columnNazvanie = base.Columns["Nazvanie"];
  1999. this.columnid_cvet = base.Columns["id_cvet"];
  2000. this.columnShirina = base.Columns["Shirina"];
  2001. this.columnDlina = base.Columns["Dlina"];
  2002. this.columnPrimechanie = base.Columns["Primechanie"];
  2003. this.columnPhoto = base.Columns["Photo"];
  2004. }
  2005. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2006. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2007. private void InitClass() {
  2008. this.columnId_Tkani = new global::System.Data.DataColumn("Id_Tkani", typeof(int), null, global::System.Data.MappingType.Element);
  2009. base.Columns.Add(this.columnId_Tkani);
  2010. this.columnNazvanie = new global::System.Data.DataColumn("Nazvanie", typeof(string), null, global::System.Data.MappingType.Element);
  2011. base.Columns.Add(this.columnNazvanie);
  2012. this.columnid_cvet = new global::System.Data.DataColumn("id_cvet", typeof(int), null, global::System.Data.MappingType.Element);
  2013. base.Columns.Add(this.columnid_cvet);
  2014. this.columnShirina = new global::System.Data.DataColumn("Shirina", typeof(int), null, global::System.Data.MappingType.Element);
  2015. base.Columns.Add(this.columnShirina);
  2016. this.columnDlina = new global::System.Data.DataColumn("Dlina", typeof(int), null, global::System.Data.MappingType.Element);
  2017. base.Columns.Add(this.columnDlina);
  2018. this.columnPrimechanie = new global::System.Data.DataColumn("Primechanie", typeof(string), null, global::System.Data.MappingType.Element);
  2019. base.Columns.Add(this.columnPrimechanie);
  2020. this.columnPhoto = new global::System.Data.DataColumn("Photo", typeof(byte[]), null, global::System.Data.MappingType.Element);
  2021. base.Columns.Add(this.columnPhoto);
  2022. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2023. this.columnId_Tkani}, true));
  2024. this.columnId_Tkani.AutoIncrement = true;
  2025. this.columnId_Tkani.AutoIncrementSeed = -1;
  2026. this.columnId_Tkani.AutoIncrementStep = -1;
  2027. this.columnId_Tkani.AllowDBNull = false;
  2028. this.columnId_Tkani.ReadOnly = true;
  2029. this.columnId_Tkani.Unique = true;
  2030. this.columnNazvanie.AllowDBNull = false;
  2031. this.columnNazvanie.MaxLength = 2147483647;
  2032. this.columnid_cvet.AllowDBNull = false;
  2033. this.columnPrimechanie.MaxLength = 2147483647;
  2034. }
  2035. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2036. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2037. public TkaniRow NewTkaniRow() {
  2038. return ((TkaniRow)(this.NewRow()));
  2039. }
  2040. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2041. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2042. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2043. return new TkaniRow(builder);
  2044. }
  2045. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2046. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2047. protected override global::System.Type GetRowType() {
  2048. return typeof(TkaniRow);
  2049. }
  2050. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2052. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2053. base.OnRowChanged(e);
  2054. if ((this.TkaniRowChanged != null)) {
  2055. this.TkaniRowChanged(this, new TkaniRowChangeEvent(((TkaniRow)(e.Row)), e.Action));
  2056. }
  2057. }
  2058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2059. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2060. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2061. base.OnRowChanging(e);
  2062. if ((this.TkaniRowChanging != null)) {
  2063. this.TkaniRowChanging(this, new TkaniRowChangeEvent(((TkaniRow)(e.Row)), e.Action));
  2064. }
  2065. }
  2066. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2067. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2068. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2069. base.OnRowDeleted(e);
  2070. if ((this.TkaniRowDeleted != null)) {
  2071. this.TkaniRowDeleted(this, new TkaniRowChangeEvent(((TkaniRow)(e.Row)), e.Action));
  2072. }
  2073. }
  2074. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2075. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2076. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2077. base.OnRowDeleting(e);
  2078. if ((this.TkaniRowDeleting != null)) {
  2079. this.TkaniRowDeleting(this, new TkaniRowChangeEvent(((TkaniRow)(e.Row)), e.Action));
  2080. }
  2081. }
  2082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2084. public void RemoveTkaniRow(TkaniRow row) {
  2085. this.Rows.Remove(row);
  2086. }
  2087. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2088. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2089. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2090. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2091. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2092. dbFabrika2024DataSet ds = new dbFabrika2024DataSet();
  2093. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2094. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2095. any1.MinOccurs = new decimal(0);
  2096. any1.MaxOccurs = decimal.MaxValue;
  2097. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2098. sequence.Items.Add(any1);
  2099. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2100. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2101. any2.MinOccurs = new decimal(1);
  2102. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2103. sequence.Items.Add(any2);
  2104. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2105. attribute1.Name = "namespace";
  2106. attribute1.FixedValue = ds.Namespace;
  2107. type.Attributes.Add(attribute1);
  2108. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2109. attribute2.Name = "tableTypeName";
  2110. attribute2.FixedValue = "TkaniDataTable";
  2111. type.Attributes.Add(attribute2);
  2112. type.Particle = sequence;
  2113. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2114. if (xs.Contains(dsSchema.TargetNamespace)) {
  2115. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2116. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2117. try {
  2118. global::System.Xml.Schema.XmlSchema schema = null;
  2119. dsSchema.Write(s1);
  2120. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2121. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2122. s2.SetLength(0);
  2123. schema.Write(s2);
  2124. if ((s1.Length == s2.Length)) {
  2125. s1.Position = 0;
  2126. s2.Position = 0;
  2127. for (; ((s1.Position != s1.Length)
  2128. && (s1.ReadByte() == s2.ReadByte())); ) {
  2129. ;
  2130. }
  2131. if ((s1.Position == s1.Length)) {
  2132. return type;
  2133. }
  2134. }
  2135. }
  2136. }
  2137. finally {
  2138. if ((s1 != null)) {
  2139. s1.Close();
  2140. }
  2141. if ((s2 != null)) {
  2142. s2.Close();
  2143. }
  2144. }
  2145. }
  2146. xs.Add(dsSchema);
  2147. return type;
  2148. }
  2149. }
  2150. /// <summary>
  2151. ///Represents the strongly named DataTable class.
  2152. ///</summary>
  2153. [global::System.Serializable()]
  2154. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2155. public partial class UsersDataTable : global::System.Data.TypedTableBase<UsersRow> {
  2156. private global::System.Data.DataColumn columnId_user;
  2157. private global::System.Data.DataColumn columnlogin;
  2158. private global::System.Data.DataColumn columnPassw;
  2159. private global::System.Data.DataColumn columnid_role;
  2160. private global::System.Data.DataColumn columnSurname;
  2161. private global::System.Data.DataColumn columnName;
  2162. private global::System.Data.DataColumn columnOtch;
  2163. private global::System.Data.DataColumn columnPhone;
  2164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2165. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2166. public UsersDataTable() {
  2167. this.TableName = "Users";
  2168. this.BeginInit();
  2169. this.InitClass();
  2170. this.EndInit();
  2171. }
  2172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2174. internal UsersDataTable(global::System.Data.DataTable table) {
  2175. this.TableName = table.TableName;
  2176. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2177. this.CaseSensitive = table.CaseSensitive;
  2178. }
  2179. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2180. this.Locale = table.Locale;
  2181. }
  2182. if ((table.Namespace != table.DataSet.Namespace)) {
  2183. this.Namespace = table.Namespace;
  2184. }
  2185. this.Prefix = table.Prefix;
  2186. this.MinimumCapacity = table.MinimumCapacity;
  2187. }
  2188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2190. protected UsersDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2191. base(info, context) {
  2192. this.InitVars();
  2193. }
  2194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2196. public global::System.Data.DataColumn Id_userColumn {
  2197. get {
  2198. return this.columnId_user;
  2199. }
  2200. }
  2201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2203. public global::System.Data.DataColumn loginColumn {
  2204. get {
  2205. return this.columnlogin;
  2206. }
  2207. }
  2208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2209. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2210. public global::System.Data.DataColumn PasswColumn {
  2211. get {
  2212. return this.columnPassw;
  2213. }
  2214. }
  2215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2216. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2217. public global::System.Data.DataColumn id_roleColumn {
  2218. get {
  2219. return this.columnid_role;
  2220. }
  2221. }
  2222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2224. public global::System.Data.DataColumn SurnameColumn {
  2225. get {
  2226. return this.columnSurname;
  2227. }
  2228. }
  2229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2230. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2231. public global::System.Data.DataColumn NameColumn {
  2232. get {
  2233. return this.columnName;
  2234. }
  2235. }
  2236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2237. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2238. public global::System.Data.DataColumn OtchColumn {
  2239. get {
  2240. return this.columnOtch;
  2241. }
  2242. }
  2243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2245. public global::System.Data.DataColumn PhoneColumn {
  2246. get {
  2247. return this.columnPhone;
  2248. }
  2249. }
  2250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2252. [global::System.ComponentModel.Browsable(false)]
  2253. public int Count {
  2254. get {
  2255. return this.Rows.Count;
  2256. }
  2257. }
  2258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2260. public UsersRow this[int index] {
  2261. get {
  2262. return ((UsersRow)(this.Rows[index]));
  2263. }
  2264. }
  2265. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2266. public event UsersRowChangeEventHandler UsersRowChanging;
  2267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2268. public event UsersRowChangeEventHandler UsersRowChanged;
  2269. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2270. public event UsersRowChangeEventHandler UsersRowDeleting;
  2271. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2272. public event UsersRowChangeEventHandler UsersRowDeleted;
  2273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2274. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2275. public void AddUsersRow(UsersRow row) {
  2276. this.Rows.Add(row);
  2277. }
  2278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2279. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2280. public UsersRow AddUsersRow(string login, string Passw, RoleRow parentRoleRowByFK_Users_Role, string Surname, string Name, string Otch, string Phone) {
  2281. UsersRow rowUsersRow = ((UsersRow)(this.NewRow()));
  2282. object[] columnValuesArray = new object[] {
  2283. null,
  2284. login,
  2285. Passw,
  2286. null,
  2287. Surname,
  2288. Name,
  2289. Otch,
  2290. Phone};
  2291. if ((parentRoleRowByFK_Users_Role != null)) {
  2292. columnValuesArray[3] = parentRoleRowByFK_Users_Role[0];
  2293. }
  2294. rowUsersRow.ItemArray = columnValuesArray;
  2295. this.Rows.Add(rowUsersRow);
  2296. return rowUsersRow;
  2297. }
  2298. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2299. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2300. public UsersRow FindById_user(int Id_user) {
  2301. return ((UsersRow)(this.Rows.Find(new object[] {
  2302. Id_user})));
  2303. }
  2304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2306. public override global::System.Data.DataTable Clone() {
  2307. UsersDataTable cln = ((UsersDataTable)(base.Clone()));
  2308. cln.InitVars();
  2309. return cln;
  2310. }
  2311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2312. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2313. protected override global::System.Data.DataTable CreateInstance() {
  2314. return new UsersDataTable();
  2315. }
  2316. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2317. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2318. internal void InitVars() {
  2319. this.columnId_user = base.Columns["Id_user"];
  2320. this.columnlogin = base.Columns["login"];
  2321. this.columnPassw = base.Columns["Passw"];
  2322. this.columnid_role = base.Columns["id_role"];
  2323. this.columnSurname = base.Columns["Surname"];
  2324. this.columnName = base.Columns["Name"];
  2325. this.columnOtch = base.Columns["Otch"];
  2326. this.columnPhone = base.Columns["Phone"];
  2327. }
  2328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2329. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2330. private void InitClass() {
  2331. this.columnId_user = new global::System.Data.DataColumn("Id_user", typeof(int), null, global::System.Data.MappingType.Element);
  2332. base.Columns.Add(this.columnId_user);
  2333. this.columnlogin = new global::System.Data.DataColumn("login", typeof(string), null, global::System.Data.MappingType.Element);
  2334. base.Columns.Add(this.columnlogin);
  2335. this.columnPassw = new global::System.Data.DataColumn("Passw", typeof(string), null, global::System.Data.MappingType.Element);
  2336. base.Columns.Add(this.columnPassw);
  2337. this.columnid_role = new global::System.Data.DataColumn("id_role", typeof(int), null, global::System.Data.MappingType.Element);
  2338. base.Columns.Add(this.columnid_role);
  2339. this.columnSurname = new global::System.Data.DataColumn("Surname", typeof(string), null, global::System.Data.MappingType.Element);
  2340. base.Columns.Add(this.columnSurname);
  2341. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  2342. base.Columns.Add(this.columnName);
  2343. this.columnOtch = new global::System.Data.DataColumn("Otch", typeof(string), null, global::System.Data.MappingType.Element);
  2344. base.Columns.Add(this.columnOtch);
  2345. this.columnPhone = new global::System.Data.DataColumn("Phone", typeof(string), null, global::System.Data.MappingType.Element);
  2346. base.Columns.Add(this.columnPhone);
  2347. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2348. this.columnId_user}, true));
  2349. this.columnId_user.AutoIncrement = true;
  2350. this.columnId_user.AutoIncrementSeed = -1;
  2351. this.columnId_user.AutoIncrementStep = -1;
  2352. this.columnId_user.AllowDBNull = false;
  2353. this.columnId_user.ReadOnly = true;
  2354. this.columnId_user.Unique = true;
  2355. this.columnlogin.MaxLength = 50;
  2356. this.columnPassw.MaxLength = 50;
  2357. this.columnSurname.MaxLength = 50;
  2358. this.columnName.MaxLength = 50;
  2359. this.columnOtch.MaxLength = 50;
  2360. this.columnPhone.MaxLength = 50;
  2361. }
  2362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2363. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2364. public UsersRow NewUsersRow() {
  2365. return ((UsersRow)(this.NewRow()));
  2366. }
  2367. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2368. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2369. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2370. return new UsersRow(builder);
  2371. }
  2372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2374. protected override global::System.Type GetRowType() {
  2375. return typeof(UsersRow);
  2376. }
  2377. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2378. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2379. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2380. base.OnRowChanged(e);
  2381. if ((this.UsersRowChanged != null)) {
  2382. this.UsersRowChanged(this, new UsersRowChangeEvent(((UsersRow)(e.Row)), e.Action));
  2383. }
  2384. }
  2385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2386. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2387. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2388. base.OnRowChanging(e);
  2389. if ((this.UsersRowChanging != null)) {
  2390. this.UsersRowChanging(this, new UsersRowChangeEvent(((UsersRow)(e.Row)), e.Action));
  2391. }
  2392. }
  2393. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2394. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2395. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2396. base.OnRowDeleted(e);
  2397. if ((this.UsersRowDeleted != null)) {
  2398. this.UsersRowDeleted(this, new UsersRowChangeEvent(((UsersRow)(e.Row)), e.Action));
  2399. }
  2400. }
  2401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2402. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2403. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2404. base.OnRowDeleting(e);
  2405. if ((this.UsersRowDeleting != null)) {
  2406. this.UsersRowDeleting(this, new UsersRowChangeEvent(((UsersRow)(e.Row)), e.Action));
  2407. }
  2408. }
  2409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2411. public void RemoveUsersRow(UsersRow row) {
  2412. this.Rows.Remove(row);
  2413. }
  2414. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2415. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2416. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2417. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2418. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2419. dbFabrika2024DataSet ds = new dbFabrika2024DataSet();
  2420. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2421. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2422. any1.MinOccurs = new decimal(0);
  2423. any1.MaxOccurs = decimal.MaxValue;
  2424. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2425. sequence.Items.Add(any1);
  2426. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2427. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2428. any2.MinOccurs = new decimal(1);
  2429. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2430. sequence.Items.Add(any2);
  2431. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2432. attribute1.Name = "namespace";
  2433. attribute1.FixedValue = ds.Namespace;
  2434. type.Attributes.Add(attribute1);
  2435. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2436. attribute2.Name = "tableTypeName";
  2437. attribute2.FixedValue = "UsersDataTable";
  2438. type.Attributes.Add(attribute2);
  2439. type.Particle = sequence;
  2440. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2441. if (xs.Contains(dsSchema.TargetNamespace)) {
  2442. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2443. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2444. try {
  2445. global::System.Xml.Schema.XmlSchema schema = null;
  2446. dsSchema.Write(s1);
  2447. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2448. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2449. s2.SetLength(0);
  2450. schema.Write(s2);
  2451. if ((s1.Length == s2.Length)) {
  2452. s1.Position = 0;
  2453. s2.Position = 0;
  2454. for (; ((s1.Position != s1.Length)
  2455. && (s1.ReadByte() == s2.ReadByte())); ) {
  2456. ;
  2457. }
  2458. if ((s1.Position == s1.Length)) {
  2459. return type;
  2460. }
  2461. }
  2462. }
  2463. }
  2464. finally {
  2465. if ((s1 != null)) {
  2466. s1.Close();
  2467. }
  2468. if ((s2 != null)) {
  2469. s2.Close();
  2470. }
  2471. }
  2472. }
  2473. xs.Add(dsSchema);
  2474. return type;
  2475. }
  2476. }
  2477. /// <summary>
  2478. ///Represents strongly named DataRow class.
  2479. ///</summary>
  2480. public partial class CvetaRow : global::System.Data.DataRow {
  2481. private CvetaDataTable tableCveta;
  2482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2484. internal CvetaRow(global::System.Data.DataRowBuilder rb) :
  2485. base(rb) {
  2486. this.tableCveta = ((CvetaDataTable)(this.Table));
  2487. }
  2488. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2489. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2490. public int id_cvet {
  2491. get {
  2492. return ((int)(this[this.tableCveta.id_cvetColumn]));
  2493. }
  2494. set {
  2495. this[this.tableCveta.id_cvetColumn] = value;
  2496. }
  2497. }
  2498. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2499. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2500. public string Name_cvet {
  2501. get {
  2502. try {
  2503. return ((string)(this[this.tableCveta.Name_cvetColumn]));
  2504. }
  2505. catch (global::System.InvalidCastException e) {
  2506. throw new global::System.Data.StrongTypingException("Значение для столбца \'Name_cvet\' в таблице \'Cveta\' равно DBNull.", e);
  2507. }
  2508. }
  2509. set {
  2510. this[this.tableCveta.Name_cvetColumn] = value;
  2511. }
  2512. }
  2513. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2514. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2515. public bool IsName_cvetNull() {
  2516. return this.IsNull(this.tableCveta.Name_cvetColumn);
  2517. }
  2518. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2519. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2520. public void SetName_cvetNull() {
  2521. this[this.tableCveta.Name_cvetColumn] = global::System.Convert.DBNull;
  2522. }
  2523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2524. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2525. public TkaniRow[] GetTkaniRows() {
  2526. if ((this.Table.ChildRelations["FK_Tkani_Cveta"] == null)) {
  2527. return new TkaniRow[0];
  2528. }
  2529. else {
  2530. return ((TkaniRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Tkani_Cveta"])));
  2531. }
  2532. }
  2533. }
  2534. /// <summary>
  2535. ///Represents strongly named DataRow class.
  2536. ///</summary>
  2537. public partial class FurnituraRow : global::System.Data.DataRow {
  2538. private FurnituraDataTable tableFurnitura;
  2539. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2540. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2541. internal FurnituraRow(global::System.Data.DataRowBuilder rb) :
  2542. base(rb) {
  2543. this.tableFurnitura = ((FurnituraDataTable)(this.Table));
  2544. }
  2545. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2546. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2547. public int idfur {
  2548. get {
  2549. return ((int)(this[this.tableFurnitura.idfurColumn]));
  2550. }
  2551. set {
  2552. this[this.tableFurnitura.idfurColumn] = value;
  2553. }
  2554. }
  2555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2556. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2557. public string namefur {
  2558. get {
  2559. try {
  2560. return ((string)(this[this.tableFurnitura.namefurColumn]));
  2561. }
  2562. catch (global::System.InvalidCastException e) {
  2563. throw new global::System.Data.StrongTypingException("Значение для столбца \'namefur\' в таблице \'Furnitura\' равно DBNull.", e);
  2564. }
  2565. }
  2566. set {
  2567. this[this.tableFurnitura.namefurColumn] = value;
  2568. }
  2569. }
  2570. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2571. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2572. public byte[] photo {
  2573. get {
  2574. try {
  2575. return ((byte[])(this[this.tableFurnitura.photoColumn]));
  2576. }
  2577. catch (global::System.InvalidCastException e) {
  2578. throw new global::System.Data.StrongTypingException("Значение для столбца \'photo\' в таблице \'Furnitura\' равно DBNull.", e);
  2579. }
  2580. }
  2581. set {
  2582. this[this.tableFurnitura.photoColumn] = value;
  2583. }
  2584. }
  2585. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2586. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2587. public int countfur {
  2588. get {
  2589. try {
  2590. return ((int)(this[this.tableFurnitura.countfurColumn]));
  2591. }
  2592. catch (global::System.InvalidCastException e) {
  2593. throw new global::System.Data.StrongTypingException("Значение для столбца \'countfur\' в таблице \'Furnitura\' равно DBNull.", e);
  2594. }
  2595. }
  2596. set {
  2597. this[this.tableFurnitura.countfurColumn] = value;
  2598. }
  2599. }
  2600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2601. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2602. public bool IsnamefurNull() {
  2603. return this.IsNull(this.tableFurnitura.namefurColumn);
  2604. }
  2605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2607. public void SetnamefurNull() {
  2608. this[this.tableFurnitura.namefurColumn] = global::System.Convert.DBNull;
  2609. }
  2610. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2611. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2612. public bool IsphotoNull() {
  2613. return this.IsNull(this.tableFurnitura.photoColumn);
  2614. }
  2615. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2616. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2617. public void SetphotoNull() {
  2618. this[this.tableFurnitura.photoColumn] = global::System.Convert.DBNull;
  2619. }
  2620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2621. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2622. public bool IscountfurNull() {
  2623. return this.IsNull(this.tableFurnitura.countfurColumn);
  2624. }
  2625. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2626. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2627. public void SetcountfurNull() {
  2628. this[this.tableFurnitura.countfurColumn] = global::System.Convert.DBNull;
  2629. }
  2630. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2631. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2632. public OrdersRow[] GetOrdersRows() {
  2633. if ((this.Table.ChildRelations["FK_Orders_Furnitura"] == null)) {
  2634. return new OrdersRow[0];
  2635. }
  2636. else {
  2637. return ((OrdersRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Orders_Furnitura"])));
  2638. }
  2639. }
  2640. }
  2641. /// <summary>
  2642. ///Represents strongly named DataRow class.
  2643. ///</summary>
  2644. public partial class IzdelieRow : global::System.Data.DataRow {
  2645. private IzdelieDataTable tableIzdelie;
  2646. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2647. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2648. internal IzdelieRow(global::System.Data.DataRowBuilder rb) :
  2649. base(rb) {
  2650. this.tableIzdelie = ((IzdelieDataTable)(this.Table));
  2651. }
  2652. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2653. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2654. public int id_izdelie {
  2655. get {
  2656. return ((int)(this[this.tableIzdelie.id_izdelieColumn]));
  2657. }
  2658. set {
  2659. this[this.tableIzdelie.id_izdelieColumn] = value;
  2660. }
  2661. }
  2662. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2663. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2664. public string Name_izd {
  2665. get {
  2666. try {
  2667. return ((string)(this[this.tableIzdelie.Name_izdColumn]));
  2668. }
  2669. catch (global::System.InvalidCastException e) {
  2670. throw new global::System.Data.StrongTypingException("Значение для столбца \'Name_izd\' в таблице \'Izdelie\' равно DBNull.", e);
  2671. }
  2672. }
  2673. set {
  2674. this[this.tableIzdelie.Name_izdColumn] = value;
  2675. }
  2676. }
  2677. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2678. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2679. public int length {
  2680. get {
  2681. try {
  2682. return ((int)(this[this.tableIzdelie.lengthColumn]));
  2683. }
  2684. catch (global::System.InvalidCastException e) {
  2685. throw new global::System.Data.StrongTypingException("Значение для столбца \'length\' в таблице \'Izdelie\' равно DBNull.", e);
  2686. }
  2687. }
  2688. set {
  2689. this[this.tableIzdelie.lengthColumn] = value;
  2690. }
  2691. }
  2692. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2693. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2694. public int width {
  2695. get {
  2696. try {
  2697. return ((int)(this[this.tableIzdelie.widthColumn]));
  2698. }
  2699. catch (global::System.InvalidCastException e) {
  2700. throw new global::System.Data.StrongTypingException("Значение для столбца \'width\' в таблице \'Izdelie\' равно DBNull.", e);
  2701. }
  2702. }
  2703. set {
  2704. this[this.tableIzdelie.widthColumn] = value;
  2705. }
  2706. }
  2707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2709. public bool IsName_izdNull() {
  2710. return this.IsNull(this.tableIzdelie.Name_izdColumn);
  2711. }
  2712. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2713. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2714. public void SetName_izdNull() {
  2715. this[this.tableIzdelie.Name_izdColumn] = global::System.Convert.DBNull;
  2716. }
  2717. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2718. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2719. public bool IslengthNull() {
  2720. return this.IsNull(this.tableIzdelie.lengthColumn);
  2721. }
  2722. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2723. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2724. public void SetlengthNull() {
  2725. this[this.tableIzdelie.lengthColumn] = global::System.Convert.DBNull;
  2726. }
  2727. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2728. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2729. public bool IswidthNull() {
  2730. return this.IsNull(this.tableIzdelie.widthColumn);
  2731. }
  2732. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2733. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2734. public void SetwidthNull() {
  2735. this[this.tableIzdelie.widthColumn] = global::System.Convert.DBNull;
  2736. }
  2737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2738. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2739. public OrdersRow[] GetOrdersRows() {
  2740. if ((this.Table.ChildRelations["FK_Orders_Izdelie"] == null)) {
  2741. return new OrdersRow[0];
  2742. }
  2743. else {
  2744. return ((OrdersRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Orders_Izdelie"])));
  2745. }
  2746. }
  2747. }
  2748. /// <summary>
  2749. ///Represents strongly named DataRow class.
  2750. ///</summary>
  2751. public partial class OrdersRow : global::System.Data.DataRow {
  2752. private OrdersDataTable tableOrders;
  2753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2755. internal OrdersRow(global::System.Data.DataRowBuilder rb) :
  2756. base(rb) {
  2757. this.tableOrders = ((OrdersDataTable)(this.Table));
  2758. }
  2759. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2760. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2761. public int id_order {
  2762. get {
  2763. return ((int)(this[this.tableOrders.id_orderColumn]));
  2764. }
  2765. set {
  2766. this[this.tableOrders.id_orderColumn] = value;
  2767. }
  2768. }
  2769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2770. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2771. public int id_izdelie {
  2772. get {
  2773. try {
  2774. return ((int)(this[this.tableOrders.id_izdelieColumn]));
  2775. }
  2776. catch (global::System.InvalidCastException e) {
  2777. throw new global::System.Data.StrongTypingException("Значение для столбца \'id_izdelie\' в таблице \'Orders\' равно DBNull.", e);
  2778. }
  2779. }
  2780. set {
  2781. this[this.tableOrders.id_izdelieColumn] = value;
  2782. }
  2783. }
  2784. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2785. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2786. public int id_zakaz {
  2787. get {
  2788. try {
  2789. return ((int)(this[this.tableOrders.id_zakazColumn]));
  2790. }
  2791. catch (global::System.InvalidCastException e) {
  2792. throw new global::System.Data.StrongTypingException("Значение для столбца \'id_zakaz\' в таблице \'Orders\' равно DBNull.", e);
  2793. }
  2794. }
  2795. set {
  2796. this[this.tableOrders.id_zakazColumn] = value;
  2797. }
  2798. }
  2799. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2800. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2801. public int id_manager {
  2802. get {
  2803. try {
  2804. return ((int)(this[this.tableOrders.id_managerColumn]));
  2805. }
  2806. catch (global::System.InvalidCastException e) {
  2807. throw new global::System.Data.StrongTypingException("Значение для столбца \'id_manager\' в таблице \'Orders\' равно DBNull.", e);
  2808. }
  2809. }
  2810. set {
  2811. this[this.tableOrders.id_managerColumn] = value;
  2812. }
  2813. }
  2814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2816. public int id_tkani {
  2817. get {
  2818. try {
  2819. return ((int)(this[this.tableOrders.id_tkaniColumn]));
  2820. }
  2821. catch (global::System.InvalidCastException e) {
  2822. throw new global::System.Data.StrongTypingException("Значение для столбца \'id_tkani\' в таблице \'Orders\' равно DBNull.", e);
  2823. }
  2824. }
  2825. set {
  2826. this[this.tableOrders.id_tkaniColumn] = value;
  2827. }
  2828. }
  2829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2830. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2831. public int id_furnitur {
  2832. get {
  2833. try {
  2834. return ((int)(this[this.tableOrders.id_furniturColumn]));
  2835. }
  2836. catch (global::System.InvalidCastException e) {
  2837. throw new global::System.Data.StrongTypingException("Значение для столбца \'id_furnitur\' в таблице \'Orders\' равно DBNull.", e);
  2838. }
  2839. }
  2840. set {
  2841. this[this.tableOrders.id_furniturColumn] = value;
  2842. }
  2843. }
  2844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2845. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2846. public int CountFurnit {
  2847. get {
  2848. try {
  2849. return ((int)(this[this.tableOrders.CountFurnitColumn]));
  2850. }
  2851. catch (global::System.InvalidCastException e) {
  2852. throw new global::System.Data.StrongTypingException("Значение для столбца \'CountFurnit\' в таблице \'Orders\' равно DBNull.", e);
  2853. }
  2854. }
  2855. set {
  2856. this[this.tableOrders.CountFurnitColumn] = value;
  2857. }
  2858. }
  2859. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2860. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2861. public int CountIzdel {
  2862. get {
  2863. try {
  2864. return ((int)(this[this.tableOrders.CountIzdelColumn]));
  2865. }
  2866. catch (global::System.InvalidCastException e) {
  2867. throw new global::System.Data.StrongTypingException("Значение для столбца \'CountIzdel\' в таблице \'Orders\' равно DBNull.", e);
  2868. }
  2869. }
  2870. set {
  2871. this[this.tableOrders.CountIzdelColumn] = value;
  2872. }
  2873. }
  2874. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2875. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2876. public FurnituraRow FurnituraRow {
  2877. get {
  2878. return ((FurnituraRow)(this.GetParentRow(this.Table.ParentRelations["FK_Orders_Furnitura"])));
  2879. }
  2880. set {
  2881. this.SetParentRow(value, this.Table.ParentRelations["FK_Orders_Furnitura"]);
  2882. }
  2883. }
  2884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2886. public IzdelieRow IzdelieRow {
  2887. get {
  2888. return ((IzdelieRow)(this.GetParentRow(this.Table.ParentRelations["FK_Orders_Izdelie"])));
  2889. }
  2890. set {
  2891. this.SetParentRow(value, this.Table.ParentRelations["FK_Orders_Izdelie"]);
  2892. }
  2893. }
  2894. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2895. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2896. public TkaniRow TkaniRow {
  2897. get {
  2898. return ((TkaniRow)(this.GetParentRow(this.Table.ParentRelations["FK_Orders_Tkani"])));
  2899. }
  2900. set {
  2901. this.SetParentRow(value, this.Table.ParentRelations["FK_Orders_Tkani"]);
  2902. }
  2903. }
  2904. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2905. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2906. public UsersRow UsersRow {
  2907. get {
  2908. return ((UsersRow)(this.GetParentRow(this.Table.ParentRelations["FK_Orders_Users"])));
  2909. }
  2910. set {
  2911. this.SetParentRow(value, this.Table.ParentRelations["FK_Orders_Users"]);
  2912. }
  2913. }
  2914. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2915. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2916. public bool Isid_izdelieNull() {
  2917. return this.IsNull(this.tableOrders.id_izdelieColumn);
  2918. }
  2919. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2920. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2921. public void Setid_izdelieNull() {
  2922. this[this.tableOrders.id_izdelieColumn] = global::System.Convert.DBNull;
  2923. }
  2924. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2925. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2926. public bool Isid_zakazNull() {
  2927. return this.IsNull(this.tableOrders.id_zakazColumn);
  2928. }
  2929. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2930. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2931. public void Setid_zakazNull() {
  2932. this[this.tableOrders.id_zakazColumn] = global::System.Convert.DBNull;
  2933. }
  2934. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2935. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2936. public bool Isid_managerNull() {
  2937. return this.IsNull(this.tableOrders.id_managerColumn);
  2938. }
  2939. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2940. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2941. public void Setid_managerNull() {
  2942. this[this.tableOrders.id_managerColumn] = global::System.Convert.DBNull;
  2943. }
  2944. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2945. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2946. public bool Isid_tkaniNull() {
  2947. return this.IsNull(this.tableOrders.id_tkaniColumn);
  2948. }
  2949. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2950. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2951. public void Setid_tkaniNull() {
  2952. this[this.tableOrders.id_tkaniColumn] = global::System.Convert.DBNull;
  2953. }
  2954. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2955. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2956. public bool Isid_furniturNull() {
  2957. return this.IsNull(this.tableOrders.id_furniturColumn);
  2958. }
  2959. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2960. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2961. public void Setid_furniturNull() {
  2962. this[this.tableOrders.id_furniturColumn] = global::System.Convert.DBNull;
  2963. }
  2964. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2965. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2966. public bool IsCountFurnitNull() {
  2967. return this.IsNull(this.tableOrders.CountFurnitColumn);
  2968. }
  2969. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2970. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2971. public void SetCountFurnitNull() {
  2972. this[this.tableOrders.CountFurnitColumn] = global::System.Convert.DBNull;
  2973. }
  2974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2975. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2976. public bool IsCountIzdelNull() {
  2977. return this.IsNull(this.tableOrders.CountIzdelColumn);
  2978. }
  2979. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2980. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2981. public void SetCountIzdelNull() {
  2982. this[this.tableOrders.CountIzdelColumn] = global::System.Convert.DBNull;
  2983. }
  2984. }
  2985. /// <summary>
  2986. ///Represents strongly named DataRow class.
  2987. ///</summary>
  2988. public partial class RoleRow : global::System.Data.DataRow {
  2989. private RoleDataTable tableRole;
  2990. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2991. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2992. internal RoleRow(global::System.Data.DataRowBuilder rb) :
  2993. base(rb) {
  2994. this.tableRole = ((RoleDataTable)(this.Table));
  2995. }
  2996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2997. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2998. public int id_role {
  2999. get {
  3000. return ((int)(this[this.tableRole.id_roleColumn]));
  3001. }
  3002. set {
  3003. this[this.tableRole.id_roleColumn] = value;
  3004. }
  3005. }
  3006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3008. public string Name_Role {
  3009. get {
  3010. try {
  3011. return ((string)(this[this.tableRole.Name_RoleColumn]));
  3012. }
  3013. catch (global::System.InvalidCastException e) {
  3014. throw new global::System.Data.StrongTypingException("Значение для столбца \'Name_Role\' в таблице \'Role\' равно DBNull.", e);
  3015. }
  3016. }
  3017. set {
  3018. this[this.tableRole.Name_RoleColumn] = value;
  3019. }
  3020. }
  3021. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3022. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3023. public bool IsName_RoleNull() {
  3024. return this.IsNull(this.tableRole.Name_RoleColumn);
  3025. }
  3026. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3027. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3028. public void SetName_RoleNull() {
  3029. this[this.tableRole.Name_RoleColumn] = global::System.Convert.DBNull;
  3030. }
  3031. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3032. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3033. public UsersRow[] GetUsersRows() {
  3034. if ((this.Table.ChildRelations["FK_Users_Role"] == null)) {
  3035. return new UsersRow[0];
  3036. }
  3037. else {
  3038. return ((UsersRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Users_Role"])));
  3039. }
  3040. }
  3041. }
  3042. /// <summary>
  3043. ///Represents strongly named DataRow class.
  3044. ///</summary>
  3045. public partial class TkaniRow : global::System.Data.DataRow {
  3046. private TkaniDataTable tableTkani;
  3047. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3048. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3049. internal TkaniRow(global::System.Data.DataRowBuilder rb) :
  3050. base(rb) {
  3051. this.tableTkani = ((TkaniDataTable)(this.Table));
  3052. }
  3053. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3054. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3055. public int Id_Tkani {
  3056. get {
  3057. return ((int)(this[this.tableTkani.Id_TkaniColumn]));
  3058. }
  3059. set {
  3060. this[this.tableTkani.Id_TkaniColumn] = value;
  3061. }
  3062. }
  3063. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3064. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3065. public string Nazvanie {
  3066. get {
  3067. return ((string)(this[this.tableTkani.NazvanieColumn]));
  3068. }
  3069. set {
  3070. this[this.tableTkani.NazvanieColumn] = value;
  3071. }
  3072. }
  3073. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3074. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3075. public int id_cvet {
  3076. get {
  3077. return ((int)(this[this.tableTkani.id_cvetColumn]));
  3078. }
  3079. set {
  3080. this[this.tableTkani.id_cvetColumn] = value;
  3081. }
  3082. }
  3083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3085. public int Shirina {
  3086. get {
  3087. try {
  3088. return ((int)(this[this.tableTkani.ShirinaColumn]));
  3089. }
  3090. catch (global::System.InvalidCastException e) {
  3091. throw new global::System.Data.StrongTypingException("Значение для столбца \'Shirina\' в таблице \'Tkani\' равно DBNull.", e);
  3092. }
  3093. }
  3094. set {
  3095. this[this.tableTkani.ShirinaColumn] = value;
  3096. }
  3097. }
  3098. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3099. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3100. public int Dlina {
  3101. get {
  3102. try {
  3103. return ((int)(this[this.tableTkani.DlinaColumn]));
  3104. }
  3105. catch (global::System.InvalidCastException e) {
  3106. throw new global::System.Data.StrongTypingException("Значение для столбца \'Dlina\' в таблице \'Tkani\' равно DBNull.", e);
  3107. }
  3108. }
  3109. set {
  3110. this[this.tableTkani.DlinaColumn] = value;
  3111. }
  3112. }
  3113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3114. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3115. public string Primechanie {
  3116. get {
  3117. try {
  3118. return ((string)(this[this.tableTkani.PrimechanieColumn]));
  3119. }
  3120. catch (global::System.InvalidCastException e) {
  3121. throw new global::System.Data.StrongTypingException("Значение для столбца \'Primechanie\' в таблице \'Tkani\' равно DBNull.", e);
  3122. }
  3123. }
  3124. set {
  3125. this[this.tableTkani.PrimechanieColumn] = value;
  3126. }
  3127. }
  3128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3129. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3130. public byte[] Photo {
  3131. get {
  3132. try {
  3133. return ((byte[])(this[this.tableTkani.PhotoColumn]));
  3134. }
  3135. catch (global::System.InvalidCastException e) {
  3136. throw new global::System.Data.StrongTypingException("Значение для столбца \'Photo\' в таблице \'Tkani\' равно DBNull.", e);
  3137. }
  3138. }
  3139. set {
  3140. this[this.tableTkani.PhotoColumn] = value;
  3141. }
  3142. }
  3143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3144. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3145. public CvetaRow CvetaRow {
  3146. get {
  3147. return ((CvetaRow)(this.GetParentRow(this.Table.ParentRelations["FK_Tkani_Cveta"])));
  3148. }
  3149. set {
  3150. this.SetParentRow(value, this.Table.ParentRelations["FK_Tkani_Cveta"]);
  3151. }
  3152. }
  3153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3154. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3155. public bool IsShirinaNull() {
  3156. return this.IsNull(this.tableTkani.ShirinaColumn);
  3157. }
  3158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3159. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3160. public void SetShirinaNull() {
  3161. this[this.tableTkani.ShirinaColumn] = global::System.Convert.DBNull;
  3162. }
  3163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3164. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3165. public bool IsDlinaNull() {
  3166. return this.IsNull(this.tableTkani.DlinaColumn);
  3167. }
  3168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3169. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3170. public void SetDlinaNull() {
  3171. this[this.tableTkani.DlinaColumn] = global::System.Convert.DBNull;
  3172. }
  3173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3175. public bool IsPrimechanieNull() {
  3176. return this.IsNull(this.tableTkani.PrimechanieColumn);
  3177. }
  3178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3180. public void SetPrimechanieNull() {
  3181. this[this.tableTkani.PrimechanieColumn] = global::System.Convert.DBNull;
  3182. }
  3183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3185. public bool IsPhotoNull() {
  3186. return this.IsNull(this.tableTkani.PhotoColumn);
  3187. }
  3188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3190. public void SetPhotoNull() {
  3191. this[this.tableTkani.PhotoColumn] = global::System.Convert.DBNull;
  3192. }
  3193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3194. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3195. public OrdersRow[] GetOrdersRows() {
  3196. if ((this.Table.ChildRelations["FK_Orders_Tkani"] == null)) {
  3197. return new OrdersRow[0];
  3198. }
  3199. else {
  3200. return ((OrdersRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Orders_Tkani"])));
  3201. }
  3202. }
  3203. }
  3204. /// <summary>
  3205. ///Represents strongly named DataRow class.
  3206. ///</summary>
  3207. public partial class UsersRow : global::System.Data.DataRow {
  3208. private UsersDataTable tableUsers;
  3209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3210. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3211. internal UsersRow(global::System.Data.DataRowBuilder rb) :
  3212. base(rb) {
  3213. this.tableUsers = ((UsersDataTable)(this.Table));
  3214. }
  3215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3216. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3217. public int Id_user {
  3218. get {
  3219. return ((int)(this[this.tableUsers.Id_userColumn]));
  3220. }
  3221. set {
  3222. this[this.tableUsers.Id_userColumn] = value;
  3223. }
  3224. }
  3225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3227. public string login {
  3228. get {
  3229. try {
  3230. return ((string)(this[this.tableUsers.loginColumn]));
  3231. }
  3232. catch (global::System.InvalidCastException e) {
  3233. throw new global::System.Data.StrongTypingException("Значение для столбца \'login\' в таблице \'Users\' равно DBNull.", e);
  3234. }
  3235. }
  3236. set {
  3237. this[this.tableUsers.loginColumn] = value;
  3238. }
  3239. }
  3240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3241. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3242. public string Passw {
  3243. get {
  3244. try {
  3245. return ((string)(this[this.tableUsers.PasswColumn]));
  3246. }
  3247. catch (global::System.InvalidCastException e) {
  3248. throw new global::System.Data.StrongTypingException("Значение для столбца \'Passw\' в таблице \'Users\' равно DBNull.", e);
  3249. }
  3250. }
  3251. set {
  3252. this[this.tableUsers.PasswColumn] = value;
  3253. }
  3254. }
  3255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3256. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3257. public int id_role {
  3258. get {
  3259. try {
  3260. return ((int)(this[this.tableUsers.id_roleColumn]));
  3261. }
  3262. catch (global::System.InvalidCastException e) {
  3263. throw new global::System.Data.StrongTypingException("Значение для столбца \'id_role\' в таблице \'Users\' равно DBNull.", e);
  3264. }
  3265. }
  3266. set {
  3267. this[this.tableUsers.id_roleColumn] = value;
  3268. }
  3269. }
  3270. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3271. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3272. public string Surname {
  3273. get {
  3274. try {
  3275. return ((string)(this[this.tableUsers.SurnameColumn]));
  3276. }
  3277. catch (global::System.InvalidCastException e) {
  3278. throw new global::System.Data.StrongTypingException("Значение для столбца \'Surname\' в таблице \'Users\' равно DBNull.", e);
  3279. }
  3280. }
  3281. set {
  3282. this[this.tableUsers.SurnameColumn] = value;
  3283. }
  3284. }
  3285. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3286. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3287. public string Name {
  3288. get {
  3289. try {
  3290. return ((string)(this[this.tableUsers.NameColumn]));
  3291. }
  3292. catch (global::System.InvalidCastException e) {
  3293. throw new global::System.Data.StrongTypingException("Значение для столбца \'Name\' в таблице \'Users\' равно DBNull.", e);
  3294. }
  3295. }
  3296. set {
  3297. this[this.tableUsers.NameColumn] = value;
  3298. }
  3299. }
  3300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3301. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3302. public string Otch {
  3303. get {
  3304. try {
  3305. return ((string)(this[this.tableUsers.OtchColumn]));
  3306. }
  3307. catch (global::System.InvalidCastException e) {
  3308. throw new global::System.Data.StrongTypingException("Значение для столбца \'Otch\' в таблице \'Users\' равно DBNull.", e);
  3309. }
  3310. }
  3311. set {
  3312. this[this.tableUsers.OtchColumn] = value;
  3313. }
  3314. }
  3315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3316. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3317. public string Phone {
  3318. get {
  3319. try {
  3320. return ((string)(this[this.tableUsers.PhoneColumn]));
  3321. }
  3322. catch (global::System.InvalidCastException e) {
  3323. throw new global::System.Data.StrongTypingException("Значение для столбца \'Phone\' в таблице \'Users\' равно DBNull.", e);
  3324. }
  3325. }
  3326. set {
  3327. this[this.tableUsers.PhoneColumn] = value;
  3328. }
  3329. }
  3330. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3331. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3332. public RoleRow RoleRow {
  3333. get {
  3334. return ((RoleRow)(this.GetParentRow(this.Table.ParentRelations["FK_Users_Role"])));
  3335. }
  3336. set {
  3337. this.SetParentRow(value, this.Table.ParentRelations["FK_Users_Role"]);
  3338. }
  3339. }
  3340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3341. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3342. public bool IsloginNull() {
  3343. return this.IsNull(this.tableUsers.loginColumn);
  3344. }
  3345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3346. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3347. public void SetloginNull() {
  3348. this[this.tableUsers.loginColumn] = global::System.Convert.DBNull;
  3349. }
  3350. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3351. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3352. public bool IsPasswNull() {
  3353. return this.IsNull(this.tableUsers.PasswColumn);
  3354. }
  3355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3357. public void SetPasswNull() {
  3358. this[this.tableUsers.PasswColumn] = global::System.Convert.DBNull;
  3359. }
  3360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3361. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3362. public bool Isid_roleNull() {
  3363. return this.IsNull(this.tableUsers.id_roleColumn);
  3364. }
  3365. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3366. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3367. public void Setid_roleNull() {
  3368. this[this.tableUsers.id_roleColumn] = global::System.Convert.DBNull;
  3369. }
  3370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3371. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3372. public bool IsSurnameNull() {
  3373. return this.IsNull(this.tableUsers.SurnameColumn);
  3374. }
  3375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3377. public void SetSurnameNull() {
  3378. this[this.tableUsers.SurnameColumn] = global::System.Convert.DBNull;
  3379. }
  3380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3382. public bool IsNameNull() {
  3383. return this.IsNull(this.tableUsers.NameColumn);
  3384. }
  3385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3386. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3387. public void SetNameNull() {
  3388. this[this.tableUsers.NameColumn] = global::System.Convert.DBNull;
  3389. }
  3390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3392. public bool IsOtchNull() {
  3393. return this.IsNull(this.tableUsers.OtchColumn);
  3394. }
  3395. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3396. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3397. public void SetOtchNull() {
  3398. this[this.tableUsers.OtchColumn] = global::System.Convert.DBNull;
  3399. }
  3400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3402. public bool IsPhoneNull() {
  3403. return this.IsNull(this.tableUsers.PhoneColumn);
  3404. }
  3405. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3406. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3407. public void SetPhoneNull() {
  3408. this[this.tableUsers.PhoneColumn] = global::System.Convert.DBNull;
  3409. }
  3410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3411. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3412. public OrdersRow[] GetOrdersRows() {
  3413. if ((this.Table.ChildRelations["FK_Orders_Users"] == null)) {
  3414. return new OrdersRow[0];
  3415. }
  3416. else {
  3417. return ((OrdersRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Orders_Users"])));
  3418. }
  3419. }
  3420. }
  3421. /// <summary>
  3422. ///Row event argument class
  3423. ///</summary>
  3424. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3425. public class CvetaRowChangeEvent : global::System.EventArgs {
  3426. private CvetaRow eventRow;
  3427. private global::System.Data.DataRowAction eventAction;
  3428. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3429. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3430. public CvetaRowChangeEvent(CvetaRow row, global::System.Data.DataRowAction action) {
  3431. this.eventRow = row;
  3432. this.eventAction = action;
  3433. }
  3434. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3435. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3436. public CvetaRow Row {
  3437. get {
  3438. return this.eventRow;
  3439. }
  3440. }
  3441. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3442. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3443. public global::System.Data.DataRowAction Action {
  3444. get {
  3445. return this.eventAction;
  3446. }
  3447. }
  3448. }
  3449. /// <summary>
  3450. ///Row event argument class
  3451. ///</summary>
  3452. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3453. public class FurnituraRowChangeEvent : global::System.EventArgs {
  3454. private FurnituraRow eventRow;
  3455. private global::System.Data.DataRowAction eventAction;
  3456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3457. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3458. public FurnituraRowChangeEvent(FurnituraRow row, global::System.Data.DataRowAction action) {
  3459. this.eventRow = row;
  3460. this.eventAction = action;
  3461. }
  3462. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3463. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3464. public FurnituraRow Row {
  3465. get {
  3466. return this.eventRow;
  3467. }
  3468. }
  3469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3470. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3471. public global::System.Data.DataRowAction Action {
  3472. get {
  3473. return this.eventAction;
  3474. }
  3475. }
  3476. }
  3477. /// <summary>
  3478. ///Row event argument class
  3479. ///</summary>
  3480. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3481. public class IzdelieRowChangeEvent : global::System.EventArgs {
  3482. private IzdelieRow eventRow;
  3483. private global::System.Data.DataRowAction eventAction;
  3484. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3485. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3486. public IzdelieRowChangeEvent(IzdelieRow row, global::System.Data.DataRowAction action) {
  3487. this.eventRow = row;
  3488. this.eventAction = action;
  3489. }
  3490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3492. public IzdelieRow Row {
  3493. get {
  3494. return this.eventRow;
  3495. }
  3496. }
  3497. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3498. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3499. public global::System.Data.DataRowAction Action {
  3500. get {
  3501. return this.eventAction;
  3502. }
  3503. }
  3504. }
  3505. /// <summary>
  3506. ///Row event argument class
  3507. ///</summary>
  3508. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3509. public class OrdersRowChangeEvent : global::System.EventArgs {
  3510. private OrdersRow eventRow;
  3511. private global::System.Data.DataRowAction eventAction;
  3512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3513. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3514. public OrdersRowChangeEvent(OrdersRow row, global::System.Data.DataRowAction action) {
  3515. this.eventRow = row;
  3516. this.eventAction = action;
  3517. }
  3518. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3519. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3520. public OrdersRow Row {
  3521. get {
  3522. return this.eventRow;
  3523. }
  3524. }
  3525. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3526. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3527. public global::System.Data.DataRowAction Action {
  3528. get {
  3529. return this.eventAction;
  3530. }
  3531. }
  3532. }
  3533. /// <summary>
  3534. ///Row event argument class
  3535. ///</summary>
  3536. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3537. public class RoleRowChangeEvent : global::System.EventArgs {
  3538. private RoleRow eventRow;
  3539. private global::System.Data.DataRowAction eventAction;
  3540. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3541. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3542. public RoleRowChangeEvent(RoleRow row, global::System.Data.DataRowAction action) {
  3543. this.eventRow = row;
  3544. this.eventAction = action;
  3545. }
  3546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3548. public RoleRow Row {
  3549. get {
  3550. return this.eventRow;
  3551. }
  3552. }
  3553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3555. public global::System.Data.DataRowAction Action {
  3556. get {
  3557. return this.eventAction;
  3558. }
  3559. }
  3560. }
  3561. /// <summary>
  3562. ///Row event argument class
  3563. ///</summary>
  3564. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3565. public class TkaniRowChangeEvent : global::System.EventArgs {
  3566. private TkaniRow eventRow;
  3567. private global::System.Data.DataRowAction eventAction;
  3568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3570. public TkaniRowChangeEvent(TkaniRow row, global::System.Data.DataRowAction action) {
  3571. this.eventRow = row;
  3572. this.eventAction = action;
  3573. }
  3574. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3575. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3576. public TkaniRow Row {
  3577. get {
  3578. return this.eventRow;
  3579. }
  3580. }
  3581. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3582. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3583. public global::System.Data.DataRowAction Action {
  3584. get {
  3585. return this.eventAction;
  3586. }
  3587. }
  3588. }
  3589. /// <summary>
  3590. ///Row event argument class
  3591. ///</summary>
  3592. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3593. public class UsersRowChangeEvent : global::System.EventArgs {
  3594. private UsersRow eventRow;
  3595. private global::System.Data.DataRowAction eventAction;
  3596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3597. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3598. public UsersRowChangeEvent(UsersRow row, global::System.Data.DataRowAction action) {
  3599. this.eventRow = row;
  3600. this.eventAction = action;
  3601. }
  3602. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3603. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3604. public UsersRow Row {
  3605. get {
  3606. return this.eventRow;
  3607. }
  3608. }
  3609. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3610. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3611. public global::System.Data.DataRowAction Action {
  3612. get {
  3613. return this.eventAction;
  3614. }
  3615. }
  3616. }
  3617. }
  3618. }
  3619. namespace Фабрика.dbFabrika2024DataSetTableAdapters {
  3620. /// <summary>
  3621. ///Represents the connection and commands used to retrieve and save data.
  3622. ///</summary>
  3623. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3624. [global::System.ComponentModel.ToolboxItem(true)]
  3625. [global::System.ComponentModel.DataObjectAttribute(true)]
  3626. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  3627. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3628. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3629. public partial class CvetaTableAdapter : global::System.ComponentModel.Component {
  3630. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  3631. private global::System.Data.SqlClient.SqlConnection _connection;
  3632. private global::System.Data.SqlClient.SqlTransaction _transaction;
  3633. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  3634. private bool _clearBeforeFill;
  3635. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3636. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3637. public CvetaTableAdapter() {
  3638. this.ClearBeforeFill = true;
  3639. }
  3640. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3641. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3642. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  3643. get {
  3644. if ((this._adapter == null)) {
  3645. this.InitAdapter();
  3646. }
  3647. return this._adapter;
  3648. }
  3649. }
  3650. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3651. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3652. internal global::System.Data.SqlClient.SqlConnection Connection {
  3653. get {
  3654. if ((this._connection == null)) {
  3655. this.InitConnection();
  3656. }
  3657. return this._connection;
  3658. }
  3659. set {
  3660. this._connection = value;
  3661. if ((this.Adapter.InsertCommand != null)) {
  3662. this.Adapter.InsertCommand.Connection = value;
  3663. }
  3664. if ((this.Adapter.DeleteCommand != null)) {
  3665. this.Adapter.DeleteCommand.Connection = value;
  3666. }
  3667. if ((this.Adapter.UpdateCommand != null)) {
  3668. this.Adapter.UpdateCommand.Connection = value;
  3669. }
  3670. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3671. if ((this.CommandCollection[i] != null)) {
  3672. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  3673. }
  3674. }
  3675. }
  3676. }
  3677. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3678. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3679. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  3680. get {
  3681. return this._transaction;
  3682. }
  3683. set {
  3684. this._transaction = value;
  3685. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3686. this.CommandCollection[i].Transaction = this._transaction;
  3687. }
  3688. if (((this.Adapter != null)
  3689. && (this.Adapter.DeleteCommand != null))) {
  3690. this.Adapter.DeleteCommand.Transaction = this._transaction;
  3691. }
  3692. if (((this.Adapter != null)
  3693. && (this.Adapter.InsertCommand != null))) {
  3694. this.Adapter.InsertCommand.Transaction = this._transaction;
  3695. }
  3696. if (((this.Adapter != null)
  3697. && (this.Adapter.UpdateCommand != null))) {
  3698. this.Adapter.UpdateCommand.Transaction = this._transaction;
  3699. }
  3700. }
  3701. }
  3702. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3703. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3704. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  3705. get {
  3706. if ((this._commandCollection == null)) {
  3707. this.InitCommandCollection();
  3708. }
  3709. return this._commandCollection;
  3710. }
  3711. }
  3712. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3713. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3714. public bool ClearBeforeFill {
  3715. get {
  3716. return this._clearBeforeFill;
  3717. }
  3718. set {
  3719. this._clearBeforeFill = value;
  3720. }
  3721. }
  3722. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3723. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3724. private void InitAdapter() {
  3725. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  3726. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  3727. tableMapping.SourceTable = "Table";
  3728. tableMapping.DataSetTable = "Cveta";
  3729. tableMapping.ColumnMappings.Add("id_cvet", "id_cvet");
  3730. tableMapping.ColumnMappings.Add("Name_cvet", "Name_cvet");
  3731. this._adapter.TableMappings.Add(tableMapping);
  3732. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  3733. this._adapter.DeleteCommand.Connection = this.Connection;
  3734. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Cveta] WHERE (([id_cvet] = @Original_id_cvet))";
  3735. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  3736. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_cvet", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_cvet", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3737. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  3738. this._adapter.InsertCommand.Connection = this.Connection;
  3739. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Cveta] ([Name_cvet]) VALUES (@Name_cvet);\r\nSELECT id_cvet, Nam" +
  3740. "e_cvet FROM Cveta WHERE (id_cvet = SCOPE_IDENTITY())";
  3741. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  3742. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name_cvet", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name_cvet", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3743. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  3744. this._adapter.UpdateCommand.Connection = this.Connection;
  3745. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Cveta] SET [Name_cvet] = @Name_cvet WHERE (([id_cvet] = @Original_i" +
  3746. "d_cvet));\r\nSELECT id_cvet, Name_cvet FROM Cveta WHERE (id_cvet = @id_cvet)";
  3747. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  3748. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name_cvet", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name_cvet", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3749. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_cvet", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_cvet", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3750. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_cvet", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "id_cvet", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3751. }
  3752. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3753. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3754. private void InitConnection() {
  3755. this._connection = new global::System.Data.SqlClient.SqlConnection();
  3756. this._connection.ConnectionString = global::Фабрика.Properties.Settings.Default.dbFabrika2024ConnectionString;
  3757. }
  3758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3760. private void InitCommandCollection() {
  3761. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  3762. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  3763. this._commandCollection[0].Connection = this.Connection;
  3764. this._commandCollection[0].CommandText = "SELECT id_cvet, Name_cvet FROM dbo.Cveta";
  3765. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  3766. }
  3767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3768. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3769. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3770. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  3771. public virtual int Fill(dbFabrika2024DataSet.CvetaDataTable dataTable) {
  3772. this.Adapter.SelectCommand = this.CommandCollection[0];
  3773. if ((this.ClearBeforeFill == true)) {
  3774. dataTable.Clear();
  3775. }
  3776. int returnValue = this.Adapter.Fill(dataTable);
  3777. return returnValue;
  3778. }
  3779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3781. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3782. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  3783. public virtual dbFabrika2024DataSet.CvetaDataTable GetData() {
  3784. this.Adapter.SelectCommand = this.CommandCollection[0];
  3785. dbFabrika2024DataSet.CvetaDataTable dataTable = new dbFabrika2024DataSet.CvetaDataTable();
  3786. this.Adapter.Fill(dataTable);
  3787. return dataTable;
  3788. }
  3789. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3790. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3791. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3792. public virtual int Update(dbFabrika2024DataSet.CvetaDataTable dataTable) {
  3793. return this.Adapter.Update(dataTable);
  3794. }
  3795. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3796. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3797. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3798. public virtual int Update(dbFabrika2024DataSet dataSet) {
  3799. return this.Adapter.Update(dataSet, "Cveta");
  3800. }
  3801. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3802. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3803. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3804. public virtual int Update(global::System.Data.DataRow dataRow) {
  3805. return this.Adapter.Update(new global::System.Data.DataRow[] {
  3806. dataRow});
  3807. }
  3808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3810. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3811. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  3812. return this.Adapter.Update(dataRows);
  3813. }
  3814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3816. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3817. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  3818. public virtual int Delete(int Original_id_cvet) {
  3819. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id_cvet));
  3820. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  3821. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3822. != global::System.Data.ConnectionState.Open)) {
  3823. this.Adapter.DeleteCommand.Connection.Open();
  3824. }
  3825. try {
  3826. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  3827. return returnValue;
  3828. }
  3829. finally {
  3830. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3831. this.Adapter.DeleteCommand.Connection.Close();
  3832. }
  3833. }
  3834. }
  3835. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3836. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3837. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3838. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  3839. public virtual int Insert(string Name_cvet) {
  3840. if ((Name_cvet == null)) {
  3841. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  3842. }
  3843. else {
  3844. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Name_cvet));
  3845. }
  3846. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  3847. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3848. != global::System.Data.ConnectionState.Open)) {
  3849. this.Adapter.InsertCommand.Connection.Open();
  3850. }
  3851. try {
  3852. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  3853. return returnValue;
  3854. }
  3855. finally {
  3856. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3857. this.Adapter.InsertCommand.Connection.Close();
  3858. }
  3859. }
  3860. }
  3861. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3862. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3863. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3864. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3865. public virtual int Update(string Name_cvet, int Original_id_cvet, int id_cvet) {
  3866. if ((Name_cvet == null)) {
  3867. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  3868. }
  3869. else {
  3870. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Name_cvet));
  3871. }
  3872. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_id_cvet));
  3873. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(id_cvet));
  3874. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  3875. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3876. != global::System.Data.ConnectionState.Open)) {
  3877. this.Adapter.UpdateCommand.Connection.Open();
  3878. }
  3879. try {
  3880. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  3881. return returnValue;
  3882. }
  3883. finally {
  3884. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3885. this.Adapter.UpdateCommand.Connection.Close();
  3886. }
  3887. }
  3888. }
  3889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3890. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3891. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3892. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3893. public virtual int Update(string Name_cvet, int Original_id_cvet) {
  3894. return this.Update(Name_cvet, Original_id_cvet, Original_id_cvet);
  3895. }
  3896. }
  3897. /// <summary>
  3898. ///Represents the connection and commands used to retrieve and save data.
  3899. ///</summary>
  3900. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3901. [global::System.ComponentModel.ToolboxItem(true)]
  3902. [global::System.ComponentModel.DataObjectAttribute(true)]
  3903. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  3904. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3905. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3906. public partial class FurnituraTableAdapter : global::System.ComponentModel.Component {
  3907. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  3908. private global::System.Data.SqlClient.SqlConnection _connection;
  3909. private global::System.Data.SqlClient.SqlTransaction _transaction;
  3910. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  3911. private bool _clearBeforeFill;
  3912. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3913. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3914. public FurnituraTableAdapter() {
  3915. this.ClearBeforeFill = true;
  3916. }
  3917. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3918. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3919. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  3920. get {
  3921. if ((this._adapter == null)) {
  3922. this.InitAdapter();
  3923. }
  3924. return this._adapter;
  3925. }
  3926. }
  3927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3928. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3929. internal global::System.Data.SqlClient.SqlConnection Connection {
  3930. get {
  3931. if ((this._connection == null)) {
  3932. this.InitConnection();
  3933. }
  3934. return this._connection;
  3935. }
  3936. set {
  3937. this._connection = value;
  3938. if ((this.Adapter.InsertCommand != null)) {
  3939. this.Adapter.InsertCommand.Connection = value;
  3940. }
  3941. if ((this.Adapter.DeleteCommand != null)) {
  3942. this.Adapter.DeleteCommand.Connection = value;
  3943. }
  3944. if ((this.Adapter.UpdateCommand != null)) {
  3945. this.Adapter.UpdateCommand.Connection = value;
  3946. }
  3947. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3948. if ((this.CommandCollection[i] != null)) {
  3949. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  3950. }
  3951. }
  3952. }
  3953. }
  3954. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3955. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3956. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  3957. get {
  3958. return this._transaction;
  3959. }
  3960. set {
  3961. this._transaction = value;
  3962. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3963. this.CommandCollection[i].Transaction = this._transaction;
  3964. }
  3965. if (((this.Adapter != null)
  3966. && (this.Adapter.DeleteCommand != null))) {
  3967. this.Adapter.DeleteCommand.Transaction = this._transaction;
  3968. }
  3969. if (((this.Adapter != null)
  3970. && (this.Adapter.InsertCommand != null))) {
  3971. this.Adapter.InsertCommand.Transaction = this._transaction;
  3972. }
  3973. if (((this.Adapter != null)
  3974. && (this.Adapter.UpdateCommand != null))) {
  3975. this.Adapter.UpdateCommand.Transaction = this._transaction;
  3976. }
  3977. }
  3978. }
  3979. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3980. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3981. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  3982. get {
  3983. if ((this._commandCollection == null)) {
  3984. this.InitCommandCollection();
  3985. }
  3986. return this._commandCollection;
  3987. }
  3988. }
  3989. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3990. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3991. public bool ClearBeforeFill {
  3992. get {
  3993. return this._clearBeforeFill;
  3994. }
  3995. set {
  3996. this._clearBeforeFill = value;
  3997. }
  3998. }
  3999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4001. private void InitAdapter() {
  4002. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4003. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4004. tableMapping.SourceTable = "Table";
  4005. tableMapping.DataSetTable = "Furnitura";
  4006. tableMapping.ColumnMappings.Add("idfur", "idfur");
  4007. tableMapping.ColumnMappings.Add("namefur", "namefur");
  4008. tableMapping.ColumnMappings.Add("photo", "photo");
  4009. tableMapping.ColumnMappings.Add("countfur", "countfur");
  4010. this._adapter.TableMappings.Add(tableMapping);
  4011. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4012. this._adapter.DeleteCommand.Connection = this.Connection;
  4013. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Furnitura] WHERE (([idfur] = @Original_idfur) AND ((@IsNull_na" +
  4014. "mefur = 1 AND [namefur] IS NULL) OR ([namefur] = @Original_namefur)) AND ((@IsNu" +
  4015. "ll_countfur = 1 AND [countfur] IS NULL) OR ([countfur] = @Original_countfur)))";
  4016. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4017. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idfur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idfur", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4018. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_namefur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "namefur", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4019. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_namefur", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "namefur", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4020. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_countfur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "countfur", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4021. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_countfur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "countfur", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4022. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4023. this._adapter.InsertCommand.Connection = this.Connection;
  4024. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Furnitura] ([namefur], [photo], [countfur]) VALUES (@namefur, " +
  4025. "@photo, @countfur);\r\nSELECT idfur, namefur, photo, countfur FROM Furnitura WHERE" +
  4026. " (idfur = SCOPE_IDENTITY())";
  4027. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4028. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@namefur", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "namefur", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4029. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@photo", global::System.Data.SqlDbType.Image, 0, global::System.Data.ParameterDirection.Input, 0, 0, "photo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4030. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@countfur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "countfur", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4031. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  4032. this._adapter.UpdateCommand.Connection = this.Connection;
  4033. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Furnitura] SET [namefur] = @namefur, [photo] = @photo, [countfur] = @countfur WHERE (([idfur] = @Original_idfur) AND ((@IsNull_namefur = 1 AND [namefur] IS NULL) OR ([namefur] = @Original_namefur)) AND ((@IsNull_countfur = 1 AND [countfur] IS NULL) OR ([countfur] = @Original_countfur)));
  4034. SELECT idfur, namefur, photo, countfur FROM Furnitura WHERE (idfur = @idfur)";
  4035. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4036. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@namefur", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "namefur", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4037. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@photo", global::System.Data.SqlDbType.Image, 0, global::System.Data.ParameterDirection.Input, 0, 0, "photo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4038. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@countfur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "countfur", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4039. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idfur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idfur", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4040. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_namefur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "namefur", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4041. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_namefur", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "namefur", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4042. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_countfur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "countfur", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4043. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_countfur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "countfur", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4044. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idfur", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idfur", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4045. }
  4046. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4047. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4048. private void InitConnection() {
  4049. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4050. this._connection.ConnectionString = global::Фабрика.Properties.Settings.Default.dbFabrika2024ConnectionString;
  4051. }
  4052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4053. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4054. private void InitCommandCollection() {
  4055. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4056. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4057. this._commandCollection[0].Connection = this.Connection;
  4058. this._commandCollection[0].CommandText = "SELECT idfur, namefur, photo, countfur FROM dbo.Furnitura";
  4059. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4060. }
  4061. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4062. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4063. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4064. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4065. public virtual int Fill(dbFabrika2024DataSet.FurnituraDataTable dataTable) {
  4066. this.Adapter.SelectCommand = this.CommandCollection[0];
  4067. if ((this.ClearBeforeFill == true)) {
  4068. dataTable.Clear();
  4069. }
  4070. int returnValue = this.Adapter.Fill(dataTable);
  4071. return returnValue;
  4072. }
  4073. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4074. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4075. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4076. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4077. public virtual dbFabrika2024DataSet.FurnituraDataTable GetData() {
  4078. this.Adapter.SelectCommand = this.CommandCollection[0];
  4079. dbFabrika2024DataSet.FurnituraDataTable dataTable = new dbFabrika2024DataSet.FurnituraDataTable();
  4080. this.Adapter.Fill(dataTable);
  4081. return dataTable;
  4082. }
  4083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4085. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4086. public virtual int Update(dbFabrika2024DataSet.FurnituraDataTable dataTable) {
  4087. return this.Adapter.Update(dataTable);
  4088. }
  4089. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4090. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4091. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4092. public virtual int Update(dbFabrika2024DataSet dataSet) {
  4093. return this.Adapter.Update(dataSet, "Furnitura");
  4094. }
  4095. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4096. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4097. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4098. public virtual int Update(global::System.Data.DataRow dataRow) {
  4099. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4100. dataRow});
  4101. }
  4102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4103. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4104. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4105. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  4106. return this.Adapter.Update(dataRows);
  4107. }
  4108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4110. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4111. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  4112. public virtual int Delete(int Original_idfur, string Original_namefur, global::System.Nullable<int> Original_countfur) {
  4113. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idfur));
  4114. if ((Original_namefur == null)) {
  4115. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  4116. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  4117. }
  4118. else {
  4119. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  4120. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_namefur));
  4121. }
  4122. if ((Original_countfur.HasValue == true)) {
  4123. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  4124. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_countfur.Value));
  4125. }
  4126. else {
  4127. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  4128. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  4129. }
  4130. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  4131. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4132. != global::System.Data.ConnectionState.Open)) {
  4133. this.Adapter.DeleteCommand.Connection.Open();
  4134. }
  4135. try {
  4136. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  4137. return returnValue;
  4138. }
  4139. finally {
  4140. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4141. this.Adapter.DeleteCommand.Connection.Close();
  4142. }
  4143. }
  4144. }
  4145. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4146. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4147. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4148. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  4149. public virtual int Insert(string namefur, byte[] photo, global::System.Nullable<int> countfur) {
  4150. if ((namefur == null)) {
  4151. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  4152. }
  4153. else {
  4154. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(namefur));
  4155. }
  4156. if ((photo == null)) {
  4157. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  4158. }
  4159. else {
  4160. this.Adapter.InsertCommand.Parameters[1].Value = ((byte[])(photo));
  4161. }
  4162. if ((countfur.HasValue == true)) {
  4163. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(countfur.Value));
  4164. }
  4165. else {
  4166. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  4167. }
  4168. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  4169. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4170. != global::System.Data.ConnectionState.Open)) {
  4171. this.Adapter.InsertCommand.Connection.Open();
  4172. }
  4173. try {
  4174. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  4175. return returnValue;
  4176. }
  4177. finally {
  4178. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4179. this.Adapter.InsertCommand.Connection.Close();
  4180. }
  4181. }
  4182. }
  4183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4185. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4186. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4187. public virtual int Update(string namefur, byte[] photo, global::System.Nullable<int> countfur, int Original_idfur, string Original_namefur, global::System.Nullable<int> Original_countfur, int idfur) {
  4188. if ((namefur == null)) {
  4189. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  4190. }
  4191. else {
  4192. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(namefur));
  4193. }
  4194. if ((photo == null)) {
  4195. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  4196. }
  4197. else {
  4198. this.Adapter.UpdateCommand.Parameters[1].Value = ((byte[])(photo));
  4199. }
  4200. if ((countfur.HasValue == true)) {
  4201. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(countfur.Value));
  4202. }
  4203. else {
  4204. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  4205. }
  4206. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_idfur));
  4207. if ((Original_namefur == null)) {
  4208. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  4209. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  4210. }
  4211. else {
  4212. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  4213. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_namefur));
  4214. }
  4215. if ((Original_countfur.HasValue == true)) {
  4216. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  4217. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_countfur.Value));
  4218. }
  4219. else {
  4220. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  4221. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  4222. }
  4223. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(idfur));
  4224. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  4225. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4226. != global::System.Data.ConnectionState.Open)) {
  4227. this.Adapter.UpdateCommand.Connection.Open();
  4228. }
  4229. try {
  4230. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  4231. return returnValue;
  4232. }
  4233. finally {
  4234. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4235. this.Adapter.UpdateCommand.Connection.Close();
  4236. }
  4237. }
  4238. }
  4239. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4240. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4241. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4242. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4243. public virtual int Update(string namefur, byte[] photo, global::System.Nullable<int> countfur, int Original_idfur, string Original_namefur, global::System.Nullable<int> Original_countfur) {
  4244. return this.Update(namefur, photo, countfur, Original_idfur, Original_namefur, Original_countfur, Original_idfur);
  4245. }
  4246. }
  4247. /// <summary>
  4248. ///Represents the connection and commands used to retrieve and save data.
  4249. ///</summary>
  4250. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4251. [global::System.ComponentModel.ToolboxItem(true)]
  4252. [global::System.ComponentModel.DataObjectAttribute(true)]
  4253. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4254. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4255. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4256. public partial class IzdelieTableAdapter : global::System.ComponentModel.Component {
  4257. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4258. private global::System.Data.SqlClient.SqlConnection _connection;
  4259. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4260. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4261. private bool _clearBeforeFill;
  4262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4263. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4264. public IzdelieTableAdapter() {
  4265. this.ClearBeforeFill = true;
  4266. }
  4267. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4268. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4269. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4270. get {
  4271. if ((this._adapter == null)) {
  4272. this.InitAdapter();
  4273. }
  4274. return this._adapter;
  4275. }
  4276. }
  4277. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4278. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4279. internal global::System.Data.SqlClient.SqlConnection Connection {
  4280. get {
  4281. if ((this._connection == null)) {
  4282. this.InitConnection();
  4283. }
  4284. return this._connection;
  4285. }
  4286. set {
  4287. this._connection = value;
  4288. if ((this.Adapter.InsertCommand != null)) {
  4289. this.Adapter.InsertCommand.Connection = value;
  4290. }
  4291. if ((this.Adapter.DeleteCommand != null)) {
  4292. this.Adapter.DeleteCommand.Connection = value;
  4293. }
  4294. if ((this.Adapter.UpdateCommand != null)) {
  4295. this.Adapter.UpdateCommand.Connection = value;
  4296. }
  4297. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4298. if ((this.CommandCollection[i] != null)) {
  4299. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4300. }
  4301. }
  4302. }
  4303. }
  4304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4306. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4307. get {
  4308. return this._transaction;
  4309. }
  4310. set {
  4311. this._transaction = value;
  4312. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4313. this.CommandCollection[i].Transaction = this._transaction;
  4314. }
  4315. if (((this.Adapter != null)
  4316. && (this.Adapter.DeleteCommand != null))) {
  4317. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4318. }
  4319. if (((this.Adapter != null)
  4320. && (this.Adapter.InsertCommand != null))) {
  4321. this.Adapter.InsertCommand.Transaction = this._transaction;
  4322. }
  4323. if (((this.Adapter != null)
  4324. && (this.Adapter.UpdateCommand != null))) {
  4325. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4326. }
  4327. }
  4328. }
  4329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4331. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4332. get {
  4333. if ((this._commandCollection == null)) {
  4334. this.InitCommandCollection();
  4335. }
  4336. return this._commandCollection;
  4337. }
  4338. }
  4339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4341. public bool ClearBeforeFill {
  4342. get {
  4343. return this._clearBeforeFill;
  4344. }
  4345. set {
  4346. this._clearBeforeFill = value;
  4347. }
  4348. }
  4349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4351. private void InitAdapter() {
  4352. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4353. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4354. tableMapping.SourceTable = "Table";
  4355. tableMapping.DataSetTable = "Izdelie";
  4356. tableMapping.ColumnMappings.Add("id_izdelie", "id_izdelie");
  4357. tableMapping.ColumnMappings.Add("Name_izd", "Name_izd");
  4358. tableMapping.ColumnMappings.Add("length", "length");
  4359. tableMapping.ColumnMappings.Add("width", "width");
  4360. this._adapter.TableMappings.Add(tableMapping);
  4361. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4362. this._adapter.DeleteCommand.Connection = this.Connection;
  4363. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Izdelie] WHERE (([id_izdelie] = @Original_id_izdelie) AND ((@IsNull_Name_izd = 1 AND [Name_izd] IS NULL) OR ([Name_izd] = @Original_Name_izd)) AND ((@IsNull_length = 1 AND [length] IS NULL) OR ([length] = @Original_length)) AND ((@IsNull_width = 1 AND [width] IS NULL) OR ([width] = @Original_width)))";
  4364. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4365. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_izdelie", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_izdelie", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4366. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Name_izd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name_izd", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4367. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name_izd", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name_izd", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4368. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_length", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "length", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4369. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_length", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "length", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4370. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_width", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "width", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4371. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_width", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "width", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4372. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4373. this._adapter.InsertCommand.Connection = this.Connection;
  4374. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Izdelie] ([Name_izd], [length], [width]) VALUES (@Name_izd, @l" +
  4375. "ength, @width);\r\nSELECT id_izdelie, Name_izd, length, width FROM Izdelie WHERE (" +
  4376. "id_izdelie = SCOPE_IDENTITY())";
  4377. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4378. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name_izd", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name_izd", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4379. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@length", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "length", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4380. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@width", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "width", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4381. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  4382. this._adapter.UpdateCommand.Connection = this.Connection;
  4383. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Izdelie] SET [Name_izd] = @Name_izd, [length] = @length, [width] = @width WHERE (([id_izdelie] = @Original_id_izdelie) AND ((@IsNull_Name_izd = 1 AND [Name_izd] IS NULL) OR ([Name_izd] = @Original_Name_izd)) AND ((@IsNull_length = 1 AND [length] IS NULL) OR ([length] = @Original_length)) AND ((@IsNull_width = 1 AND [width] IS NULL) OR ([width] = @Original_width)));
  4384. SELECT id_izdelie, Name_izd, length, width FROM Izdelie WHERE (id_izdelie = @id_izdelie)";
  4385. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4386. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name_izd", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name_izd", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4387. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@length", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "length", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4388. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@width", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "width", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4389. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_izdelie", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_izdelie", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4390. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Name_izd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name_izd", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4391. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name_izd", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name_izd", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4392. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_length", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "length", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4393. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_length", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "length", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4394. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_width", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "width", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4395. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_width", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "width", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4396. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_izdelie", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "id_izdelie", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4397. }
  4398. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4399. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4400. private void InitConnection() {
  4401. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4402. this._connection.ConnectionString = global::Фабрика.Properties.Settings.Default.dbFabrika2024ConnectionString;
  4403. }
  4404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4406. private void InitCommandCollection() {
  4407. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4408. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4409. this._commandCollection[0].Connection = this.Connection;
  4410. this._commandCollection[0].CommandText = "SELECT id_izdelie, Name_izd, length, width FROM dbo.Izdelie";
  4411. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4412. }
  4413. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4414. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4415. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4416. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4417. public virtual int Fill(dbFabrika2024DataSet.IzdelieDataTable dataTable) {
  4418. this.Adapter.SelectCommand = this.CommandCollection[0];
  4419. if ((this.ClearBeforeFill == true)) {
  4420. dataTable.Clear();
  4421. }
  4422. int returnValue = this.Adapter.Fill(dataTable);
  4423. return returnValue;
  4424. }
  4425. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4426. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4427. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4428. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4429. public virtual dbFabrika2024DataSet.IzdelieDataTable GetData() {
  4430. this.Adapter.SelectCommand = this.CommandCollection[0];
  4431. dbFabrika2024DataSet.IzdelieDataTable dataTable = new dbFabrika2024DataSet.IzdelieDataTable();
  4432. this.Adapter.Fill(dataTable);
  4433. return dataTable;
  4434. }
  4435. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4436. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4437. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4438. public virtual int Update(dbFabrika2024DataSet.IzdelieDataTable dataTable) {
  4439. return this.Adapter.Update(dataTable);
  4440. }
  4441. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4442. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4443. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4444. public virtual int Update(dbFabrika2024DataSet dataSet) {
  4445. return this.Adapter.Update(dataSet, "Izdelie");
  4446. }
  4447. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4448. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4449. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4450. public virtual int Update(global::System.Data.DataRow dataRow) {
  4451. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4452. dataRow});
  4453. }
  4454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4455. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4456. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4457. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  4458. return this.Adapter.Update(dataRows);
  4459. }
  4460. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4461. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4462. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4463. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  4464. public virtual int Delete(int Original_id_izdelie, string Original_Name_izd, global::System.Nullable<int> Original_length, global::System.Nullable<int> Original_width) {
  4465. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id_izdelie));
  4466. if ((Original_Name_izd == null)) {
  4467. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  4468. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  4469. }
  4470. else {
  4471. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  4472. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Name_izd));
  4473. }
  4474. if ((Original_length.HasValue == true)) {
  4475. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  4476. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_length.Value));
  4477. }
  4478. else {
  4479. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  4480. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  4481. }
  4482. if ((Original_width.HasValue == true)) {
  4483. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  4484. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_width.Value));
  4485. }
  4486. else {
  4487. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  4488. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  4489. }
  4490. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  4491. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4492. != global::System.Data.ConnectionState.Open)) {
  4493. this.Adapter.DeleteCommand.Connection.Open();
  4494. }
  4495. try {
  4496. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  4497. return returnValue;
  4498. }
  4499. finally {
  4500. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4501. this.Adapter.DeleteCommand.Connection.Close();
  4502. }
  4503. }
  4504. }
  4505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4507. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4508. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  4509. public virtual int Insert(string Name_izd, global::System.Nullable<int> length, global::System.Nullable<int> width) {
  4510. if ((Name_izd == null)) {
  4511. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  4512. }
  4513. else {
  4514. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Name_izd));
  4515. }
  4516. if ((length.HasValue == true)) {
  4517. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(length.Value));
  4518. }
  4519. else {
  4520. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  4521. }
  4522. if ((width.HasValue == true)) {
  4523. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(width.Value));
  4524. }
  4525. else {
  4526. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  4527. }
  4528. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  4529. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4530. != global::System.Data.ConnectionState.Open)) {
  4531. this.Adapter.InsertCommand.Connection.Open();
  4532. }
  4533. try {
  4534. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  4535. return returnValue;
  4536. }
  4537. finally {
  4538. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4539. this.Adapter.InsertCommand.Connection.Close();
  4540. }
  4541. }
  4542. }
  4543. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4544. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4545. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4546. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4547. public virtual int Update(string Name_izd, global::System.Nullable<int> length, global::System.Nullable<int> width, int Original_id_izdelie, string Original_Name_izd, global::System.Nullable<int> Original_length, global::System.Nullable<int> Original_width, int id_izdelie) {
  4548. if ((Name_izd == null)) {
  4549. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  4550. }
  4551. else {
  4552. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Name_izd));
  4553. }
  4554. if ((length.HasValue == true)) {
  4555. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(length.Value));
  4556. }
  4557. else {
  4558. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  4559. }
  4560. if ((width.HasValue == true)) {
  4561. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(width.Value));
  4562. }
  4563. else {
  4564. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  4565. }
  4566. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_id_izdelie));
  4567. if ((Original_Name_izd == null)) {
  4568. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  4569. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  4570. }
  4571. else {
  4572. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  4573. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Name_izd));
  4574. }
  4575. if ((Original_length.HasValue == true)) {
  4576. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  4577. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_length.Value));
  4578. }
  4579. else {
  4580. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  4581. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  4582. }
  4583. if ((Original_width.HasValue == true)) {
  4584. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  4585. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_width.Value));
  4586. }
  4587. else {
  4588. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  4589. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  4590. }
  4591. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(id_izdelie));
  4592. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  4593. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4594. != global::System.Data.ConnectionState.Open)) {
  4595. this.Adapter.UpdateCommand.Connection.Open();
  4596. }
  4597. try {
  4598. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  4599. return returnValue;
  4600. }
  4601. finally {
  4602. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4603. this.Adapter.UpdateCommand.Connection.Close();
  4604. }
  4605. }
  4606. }
  4607. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4608. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4609. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4610. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4611. public virtual int Update(string Name_izd, global::System.Nullable<int> length, global::System.Nullable<int> width, int Original_id_izdelie, string Original_Name_izd, global::System.Nullable<int> Original_length, global::System.Nullable<int> Original_width) {
  4612. return this.Update(Name_izd, length, width, Original_id_izdelie, Original_Name_izd, Original_length, Original_width, Original_id_izdelie);
  4613. }
  4614. }
  4615. /// <summary>
  4616. ///Represents the connection and commands used to retrieve and save data.
  4617. ///</summary>
  4618. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4619. [global::System.ComponentModel.ToolboxItem(true)]
  4620. [global::System.ComponentModel.DataObjectAttribute(true)]
  4621. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4622. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4623. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4624. public partial class OrdersTableAdapter : global::System.ComponentModel.Component {
  4625. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4626. private global::System.Data.SqlClient.SqlConnection _connection;
  4627. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4628. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4629. private bool _clearBeforeFill;
  4630. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4631. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4632. public OrdersTableAdapter() {
  4633. this.ClearBeforeFill = true;
  4634. }
  4635. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4636. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4637. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4638. get {
  4639. if ((this._adapter == null)) {
  4640. this.InitAdapter();
  4641. }
  4642. return this._adapter;
  4643. }
  4644. }
  4645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4646. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4647. internal global::System.Data.SqlClient.SqlConnection Connection {
  4648. get {
  4649. if ((this._connection == null)) {
  4650. this.InitConnection();
  4651. }
  4652. return this._connection;
  4653. }
  4654. set {
  4655. this._connection = value;
  4656. if ((this.Adapter.InsertCommand != null)) {
  4657. this.Adapter.InsertCommand.Connection = value;
  4658. }
  4659. if ((this.Adapter.DeleteCommand != null)) {
  4660. this.Adapter.DeleteCommand.Connection = value;
  4661. }
  4662. if ((this.Adapter.UpdateCommand != null)) {
  4663. this.Adapter.UpdateCommand.Connection = value;
  4664. }
  4665. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4666. if ((this.CommandCollection[i] != null)) {
  4667. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4668. }
  4669. }
  4670. }
  4671. }
  4672. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4674. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4675. get {
  4676. return this._transaction;
  4677. }
  4678. set {
  4679. this._transaction = value;
  4680. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4681. this.CommandCollection[i].Transaction = this._transaction;
  4682. }
  4683. if (((this.Adapter != null)
  4684. && (this.Adapter.DeleteCommand != null))) {
  4685. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4686. }
  4687. if (((this.Adapter != null)
  4688. && (this.Adapter.InsertCommand != null))) {
  4689. this.Adapter.InsertCommand.Transaction = this._transaction;
  4690. }
  4691. if (((this.Adapter != null)
  4692. && (this.Adapter.UpdateCommand != null))) {
  4693. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4694. }
  4695. }
  4696. }
  4697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4698. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4699. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4700. get {
  4701. if ((this._commandCollection == null)) {
  4702. this.InitCommandCollection();
  4703. }
  4704. return this._commandCollection;
  4705. }
  4706. }
  4707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4709. public bool ClearBeforeFill {
  4710. get {
  4711. return this._clearBeforeFill;
  4712. }
  4713. set {
  4714. this._clearBeforeFill = value;
  4715. }
  4716. }
  4717. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4718. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4719. private void InitAdapter() {
  4720. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4721. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4722. tableMapping.SourceTable = "Table";
  4723. tableMapping.DataSetTable = "Orders";
  4724. tableMapping.ColumnMappings.Add("id_order", "id_order");
  4725. tableMapping.ColumnMappings.Add("id_izdelie", "id_izdelie");
  4726. tableMapping.ColumnMappings.Add("id_zakaz", "id_zakaz");
  4727. tableMapping.ColumnMappings.Add("id_manager", "id_manager");
  4728. tableMapping.ColumnMappings.Add("id_tkani", "id_tkani");
  4729. tableMapping.ColumnMappings.Add("id_furnitur", "id_furnitur");
  4730. tableMapping.ColumnMappings.Add("CountFurnit", "CountFurnit");
  4731. tableMapping.ColumnMappings.Add("CountIzdel", "CountIzdel");
  4732. this._adapter.TableMappings.Add(tableMapping);
  4733. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4734. this._adapter.DeleteCommand.Connection = this.Connection;
  4735. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Orders] WHERE (([id_order] = @Original_id_order) AND ((@IsNull_id_izdelie = 1 AND [id_izdelie] IS NULL) OR ([id_izdelie] = @Original_id_izdelie)) AND ((@IsNull_id_zakaz = 1 AND [id_zakaz] IS NULL) OR ([id_zakaz] = @Original_id_zakaz)) AND ((@IsNull_id_manager = 1 AND [id_manager] IS NULL) OR ([id_manager] = @Original_id_manager)) AND ((@IsNull_id_tkani = 1 AND [id_tkani] IS NULL) OR ([id_tkani] = @Original_id_tkani)) AND ((@IsNull_id_furnitur = 1 AND [id_furnitur] IS NULL) OR ([id_furnitur] = @Original_id_furnitur)) AND ((@IsNull_CountFurnit = 1 AND [CountFurnit] IS NULL) OR ([CountFurnit] = @Original_CountFurnit)) AND ((@IsNull_CountIzdel = 1 AND [CountIzdel] IS NULL) OR ([CountIzdel] = @Original_CountIzdel)))";
  4736. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4737. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_order", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_order", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4738. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_id_izdelie", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_izdelie", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4739. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_izdelie", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_izdelie", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4740. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_id_zakaz", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_zakaz", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4741. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_zakaz", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_zakaz", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4742. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_id_manager", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_manager", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4743. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_manager", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_manager", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4744. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_id_tkani", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_tkani", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4745. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_tkani", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_tkani", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4746. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_id_furnitur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_furnitur", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4747. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_furnitur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_furnitur", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4748. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CountFurnit", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountFurnit", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4749. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CountFurnit", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountFurnit", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4750. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CountIzdel", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountIzdel", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4751. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CountIzdel", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountIzdel", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4752. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4753. this._adapter.InsertCommand.Connection = this.Connection;
  4754. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Orders] ([id_izdelie], [id_zakaz], [id_manager], [id_tkani], [id_furnitur], [CountFurnit], [CountIzdel]) VALUES (@id_izdelie, @id_zakaz, @id_manager, @id_tkani, @id_furnitur, @CountFurnit, @CountIzdel);
  4755. SELECT id_order, id_izdelie, id_zakaz, id_manager, id_tkani, id_furnitur, CountFurnit, CountIzdel FROM Orders WHERE (id_order = SCOPE_IDENTITY())";
  4756. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4757. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_izdelie", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_izdelie", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4758. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_zakaz", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_zakaz", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4759. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_manager", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_manager", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4760. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_tkani", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_tkani", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4761. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_furnitur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_furnitur", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4762. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CountFurnit", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountFurnit", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4763. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CountIzdel", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountIzdel", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4764. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  4765. this._adapter.UpdateCommand.Connection = this.Connection;
  4766. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Orders] SET [id_izdelie] = @id_izdelie, [id_zakaz] = @id_zakaz, [id_manager] = @id_manager, [id_tkani] = @id_tkani, [id_furnitur] = @id_furnitur, [CountFurnit] = @CountFurnit, [CountIzdel] = @CountIzdel WHERE (([id_order] = @Original_id_order) AND ((@IsNull_id_izdelie = 1 AND [id_izdelie] IS NULL) OR ([id_izdelie] = @Original_id_izdelie)) AND ((@IsNull_id_zakaz = 1 AND [id_zakaz] IS NULL) OR ([id_zakaz] = @Original_id_zakaz)) AND ((@IsNull_id_manager = 1 AND [id_manager] IS NULL) OR ([id_manager] = @Original_id_manager)) AND ((@IsNull_id_tkani = 1 AND [id_tkani] IS NULL) OR ([id_tkani] = @Original_id_tkani)) AND ((@IsNull_id_furnitur = 1 AND [id_furnitur] IS NULL) OR ([id_furnitur] = @Original_id_furnitur)) AND ((@IsNull_CountFurnit = 1 AND [CountFurnit] IS NULL) OR ([CountFurnit] = @Original_CountFurnit)) AND ((@IsNull_CountIzdel = 1 AND [CountIzdel] IS NULL) OR ([CountIzdel] = @Original_CountIzdel)));
  4767. SELECT id_order, id_izdelie, id_zakaz, id_manager, id_tkani, id_furnitur, CountFurnit, CountIzdel FROM Orders WHERE (id_order = @id_order)";
  4768. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4769. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_izdelie", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_izdelie", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4770. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_zakaz", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_zakaz", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4771. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_manager", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_manager", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4772. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_tkani", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_tkani", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4773. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_furnitur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_furnitur", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4774. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CountFurnit", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountFurnit", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4775. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CountIzdel", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountIzdel", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4776. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_order", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_order", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4777. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_id_izdelie", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_izdelie", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4778. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_izdelie", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_izdelie", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4779. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_id_zakaz", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_zakaz", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4780. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_zakaz", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_zakaz", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4781. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_id_manager", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_manager", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4782. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_manager", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_manager", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4783. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_id_tkani", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_tkani", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4784. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_tkani", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_tkani", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4785. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_id_furnitur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_furnitur", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4786. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_furnitur", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_furnitur", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4787. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CountFurnit", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountFurnit", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4788. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CountFurnit", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountFurnit", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4789. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CountIzdel", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountIzdel", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4790. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CountIzdel", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountIzdel", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4791. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_order", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "id_order", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4792. }
  4793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4794. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4795. private void InitConnection() {
  4796. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4797. this._connection.ConnectionString = global::Фабрика.Properties.Settings.Default.dbFabrika2024ConnectionString;
  4798. }
  4799. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4800. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4801. private void InitCommandCollection() {
  4802. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4803. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4804. this._commandCollection[0].Connection = this.Connection;
  4805. this._commandCollection[0].CommandText = "SELECT id_order, id_izdelie, id_zakaz, id_manager, id_tkani, id_furnitur, CountFu" +
  4806. "rnit, CountIzdel FROM dbo.Orders";
  4807. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4808. }
  4809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4810. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4811. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4812. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4813. public virtual int Fill(dbFabrika2024DataSet.OrdersDataTable dataTable) {
  4814. this.Adapter.SelectCommand = this.CommandCollection[0];
  4815. if ((this.ClearBeforeFill == true)) {
  4816. dataTable.Clear();
  4817. }
  4818. int returnValue = this.Adapter.Fill(dataTable);
  4819. return returnValue;
  4820. }
  4821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4822. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4823. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4824. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4825. public virtual dbFabrika2024DataSet.OrdersDataTable GetData() {
  4826. this.Adapter.SelectCommand = this.CommandCollection[0];
  4827. dbFabrika2024DataSet.OrdersDataTable dataTable = new dbFabrika2024DataSet.OrdersDataTable();
  4828. this.Adapter.Fill(dataTable);
  4829. return dataTable;
  4830. }
  4831. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4832. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4833. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4834. public virtual int Update(dbFabrika2024DataSet.OrdersDataTable dataTable) {
  4835. return this.Adapter.Update(dataTable);
  4836. }
  4837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4839. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4840. public virtual int Update(dbFabrika2024DataSet dataSet) {
  4841. return this.Adapter.Update(dataSet, "Orders");
  4842. }
  4843. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4844. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4845. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4846. public virtual int Update(global::System.Data.DataRow dataRow) {
  4847. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4848. dataRow});
  4849. }
  4850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4851. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4852. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4853. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  4854. return this.Adapter.Update(dataRows);
  4855. }
  4856. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4857. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4858. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4859. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  4860. public virtual int Delete(int Original_id_order, global::System.Nullable<int> Original_id_izdelie, global::System.Nullable<int> Original_id_zakaz, global::System.Nullable<int> Original_id_manager, global::System.Nullable<int> Original_id_tkani, global::System.Nullable<int> Original_id_furnitur, global::System.Nullable<int> Original_CountFurnit, global::System.Nullable<int> Original_CountIzdel) {
  4861. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id_order));
  4862. if ((Original_id_izdelie.HasValue == true)) {
  4863. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  4864. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_id_izdelie.Value));
  4865. }
  4866. else {
  4867. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  4868. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  4869. }
  4870. if ((Original_id_zakaz.HasValue == true)) {
  4871. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  4872. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_id_zakaz.Value));
  4873. }
  4874. else {
  4875. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  4876. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  4877. }
  4878. if ((Original_id_manager.HasValue == true)) {
  4879. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  4880. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_id_manager.Value));
  4881. }
  4882. else {
  4883. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  4884. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  4885. }
  4886. if ((Original_id_tkani.HasValue == true)) {
  4887. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  4888. this.Adapter.DeleteCommand.Parameters[8].Value = ((int)(Original_id_tkani.Value));
  4889. }
  4890. else {
  4891. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  4892. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  4893. }
  4894. if ((Original_id_furnitur.HasValue == true)) {
  4895. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  4896. this.Adapter.DeleteCommand.Parameters[10].Value = ((int)(Original_id_furnitur.Value));
  4897. }
  4898. else {
  4899. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  4900. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  4901. }
  4902. if ((Original_CountFurnit.HasValue == true)) {
  4903. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  4904. this.Adapter.DeleteCommand.Parameters[12].Value = ((int)(Original_CountFurnit.Value));
  4905. }
  4906. else {
  4907. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  4908. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  4909. }
  4910. if ((Original_CountIzdel.HasValue == true)) {
  4911. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
  4912. this.Adapter.DeleteCommand.Parameters[14].Value = ((int)(Original_CountIzdel.Value));
  4913. }
  4914. else {
  4915. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
  4916. this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
  4917. }
  4918. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  4919. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4920. != global::System.Data.ConnectionState.Open)) {
  4921. this.Adapter.DeleteCommand.Connection.Open();
  4922. }
  4923. try {
  4924. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  4925. return returnValue;
  4926. }
  4927. finally {
  4928. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4929. this.Adapter.DeleteCommand.Connection.Close();
  4930. }
  4931. }
  4932. }
  4933. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4934. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4935. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4936. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  4937. public virtual int Insert(global::System.Nullable<int> id_izdelie, global::System.Nullable<int> id_zakaz, global::System.Nullable<int> id_manager, global::System.Nullable<int> id_tkani, global::System.Nullable<int> id_furnitur, global::System.Nullable<int> CountFurnit, global::System.Nullable<int> CountIzdel) {
  4938. if ((id_izdelie.HasValue == true)) {
  4939. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(id_izdelie.Value));
  4940. }
  4941. else {
  4942. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  4943. }
  4944. if ((id_zakaz.HasValue == true)) {
  4945. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(id_zakaz.Value));
  4946. }
  4947. else {
  4948. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  4949. }
  4950. if ((id_manager.HasValue == true)) {
  4951. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(id_manager.Value));
  4952. }
  4953. else {
  4954. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  4955. }
  4956. if ((id_tkani.HasValue == true)) {
  4957. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(id_tkani.Value));
  4958. }
  4959. else {
  4960. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  4961. }
  4962. if ((id_furnitur.HasValue == true)) {
  4963. this.Adapter.InsertCommand.Parameters[4].Value = ((int)(id_furnitur.Value));
  4964. }
  4965. else {
  4966. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  4967. }
  4968. if ((CountFurnit.HasValue == true)) {
  4969. this.Adapter.InsertCommand.Parameters[5].Value = ((int)(CountFurnit.Value));
  4970. }
  4971. else {
  4972. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  4973. }
  4974. if ((CountIzdel.HasValue == true)) {
  4975. this.Adapter.InsertCommand.Parameters[6].Value = ((int)(CountIzdel.Value));
  4976. }
  4977. else {
  4978. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  4979. }
  4980. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  4981. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4982. != global::System.Data.ConnectionState.Open)) {
  4983. this.Adapter.InsertCommand.Connection.Open();
  4984. }
  4985. try {
  4986. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  4987. return returnValue;
  4988. }
  4989. finally {
  4990. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4991. this.Adapter.InsertCommand.Connection.Close();
  4992. }
  4993. }
  4994. }
  4995. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4996. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4997. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4998. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4999. public virtual int Update(
  5000. global::System.Nullable<int> id_izdelie,
  5001. global::System.Nullable<int> id_zakaz,
  5002. global::System.Nullable<int> id_manager,
  5003. global::System.Nullable<int> id_tkani,
  5004. global::System.Nullable<int> id_furnitur,
  5005. global::System.Nullable<int> CountFurnit,
  5006. global::System.Nullable<int> CountIzdel,
  5007. int Original_id_order,
  5008. global::System.Nullable<int> Original_id_izdelie,
  5009. global::System.Nullable<int> Original_id_zakaz,
  5010. global::System.Nullable<int> Original_id_manager,
  5011. global::System.Nullable<int> Original_id_tkani,
  5012. global::System.Nullable<int> Original_id_furnitur,
  5013. global::System.Nullable<int> Original_CountFurnit,
  5014. global::System.Nullable<int> Original_CountIzdel,
  5015. int id_order) {
  5016. if ((id_izdelie.HasValue == true)) {
  5017. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(id_izdelie.Value));
  5018. }
  5019. else {
  5020. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  5021. }
  5022. if ((id_zakaz.HasValue == true)) {
  5023. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(id_zakaz.Value));
  5024. }
  5025. else {
  5026. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  5027. }
  5028. if ((id_manager.HasValue == true)) {
  5029. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(id_manager.Value));
  5030. }
  5031. else {
  5032. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  5033. }
  5034. if ((id_tkani.HasValue == true)) {
  5035. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(id_tkani.Value));
  5036. }
  5037. else {
  5038. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  5039. }
  5040. if ((id_furnitur.HasValue == true)) {
  5041. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(id_furnitur.Value));
  5042. }
  5043. else {
  5044. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  5045. }
  5046. if ((CountFurnit.HasValue == true)) {
  5047. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(CountFurnit.Value));
  5048. }
  5049. else {
  5050. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  5051. }
  5052. if ((CountIzdel.HasValue == true)) {
  5053. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(CountIzdel.Value));
  5054. }
  5055. else {
  5056. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  5057. }
  5058. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_id_order));
  5059. if ((Original_id_izdelie.HasValue == true)) {
  5060. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  5061. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_id_izdelie.Value));
  5062. }
  5063. else {
  5064. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  5065. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  5066. }
  5067. if ((Original_id_zakaz.HasValue == true)) {
  5068. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  5069. this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(Original_id_zakaz.Value));
  5070. }
  5071. else {
  5072. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  5073. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  5074. }
  5075. if ((Original_id_manager.HasValue == true)) {
  5076. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  5077. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Original_id_manager.Value));
  5078. }
  5079. else {
  5080. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  5081. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  5082. }
  5083. if ((Original_id_tkani.HasValue == true)) {
  5084. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
  5085. this.Adapter.UpdateCommand.Parameters[15].Value = ((int)(Original_id_tkani.Value));
  5086. }
  5087. else {
  5088. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
  5089. this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
  5090. }
  5091. if ((Original_id_furnitur.HasValue == true)) {
  5092. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
  5093. this.Adapter.UpdateCommand.Parameters[17].Value = ((int)(Original_id_furnitur.Value));
  5094. }
  5095. else {
  5096. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
  5097. this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
  5098. }
  5099. if ((Original_CountFurnit.HasValue == true)) {
  5100. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
  5101. this.Adapter.UpdateCommand.Parameters[19].Value = ((int)(Original_CountFurnit.Value));
  5102. }
  5103. else {
  5104. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
  5105. this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
  5106. }
  5107. if ((Original_CountIzdel.HasValue == true)) {
  5108. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
  5109. this.Adapter.UpdateCommand.Parameters[21].Value = ((int)(Original_CountIzdel.Value));
  5110. }
  5111. else {
  5112. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
  5113. this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
  5114. }
  5115. this.Adapter.UpdateCommand.Parameters[22].Value = ((int)(id_order));
  5116. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5117. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5118. != global::System.Data.ConnectionState.Open)) {
  5119. this.Adapter.UpdateCommand.Connection.Open();
  5120. }
  5121. try {
  5122. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5123. return returnValue;
  5124. }
  5125. finally {
  5126. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5127. this.Adapter.UpdateCommand.Connection.Close();
  5128. }
  5129. }
  5130. }
  5131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5132. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5133. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5134. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5135. public virtual int Update(global::System.Nullable<int> id_izdelie, global::System.Nullable<int> id_zakaz, global::System.Nullable<int> id_manager, global::System.Nullable<int> id_tkani, global::System.Nullable<int> id_furnitur, global::System.Nullable<int> CountFurnit, global::System.Nullable<int> CountIzdel, int Original_id_order, global::System.Nullable<int> Original_id_izdelie, global::System.Nullable<int> Original_id_zakaz, global::System.Nullable<int> Original_id_manager, global::System.Nullable<int> Original_id_tkani, global::System.Nullable<int> Original_id_furnitur, global::System.Nullable<int> Original_CountFurnit, global::System.Nullable<int> Original_CountIzdel) {
  5136. return this.Update(id_izdelie, id_zakaz, id_manager, id_tkani, id_furnitur, CountFurnit, CountIzdel, Original_id_order, Original_id_izdelie, Original_id_zakaz, Original_id_manager, Original_id_tkani, Original_id_furnitur, Original_CountFurnit, Original_CountIzdel, Original_id_order);
  5137. }
  5138. }
  5139. /// <summary>
  5140. ///Represents the connection and commands used to retrieve and save data.
  5141. ///</summary>
  5142. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5143. [global::System.ComponentModel.ToolboxItem(true)]
  5144. [global::System.ComponentModel.DataObjectAttribute(true)]
  5145. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5146. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5147. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5148. public partial class RoleTableAdapter : global::System.ComponentModel.Component {
  5149. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5150. private global::System.Data.SqlClient.SqlConnection _connection;
  5151. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5152. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5153. private bool _clearBeforeFill;
  5154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5155. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5156. public RoleTableAdapter() {
  5157. this.ClearBeforeFill = true;
  5158. }
  5159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5160. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5161. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5162. get {
  5163. if ((this._adapter == null)) {
  5164. this.InitAdapter();
  5165. }
  5166. return this._adapter;
  5167. }
  5168. }
  5169. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5170. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5171. internal global::System.Data.SqlClient.SqlConnection Connection {
  5172. get {
  5173. if ((this._connection == null)) {
  5174. this.InitConnection();
  5175. }
  5176. return this._connection;
  5177. }
  5178. set {
  5179. this._connection = value;
  5180. if ((this.Adapter.InsertCommand != null)) {
  5181. this.Adapter.InsertCommand.Connection = value;
  5182. }
  5183. if ((this.Adapter.DeleteCommand != null)) {
  5184. this.Adapter.DeleteCommand.Connection = value;
  5185. }
  5186. if ((this.Adapter.UpdateCommand != null)) {
  5187. this.Adapter.UpdateCommand.Connection = value;
  5188. }
  5189. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5190. if ((this.CommandCollection[i] != null)) {
  5191. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5192. }
  5193. }
  5194. }
  5195. }
  5196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5197. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5198. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5199. get {
  5200. return this._transaction;
  5201. }
  5202. set {
  5203. this._transaction = value;
  5204. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5205. this.CommandCollection[i].Transaction = this._transaction;
  5206. }
  5207. if (((this.Adapter != null)
  5208. && (this.Adapter.DeleteCommand != null))) {
  5209. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5210. }
  5211. if (((this.Adapter != null)
  5212. && (this.Adapter.InsertCommand != null))) {
  5213. this.Adapter.InsertCommand.Transaction = this._transaction;
  5214. }
  5215. if (((this.Adapter != null)
  5216. && (this.Adapter.UpdateCommand != null))) {
  5217. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5218. }
  5219. }
  5220. }
  5221. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5222. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5223. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5224. get {
  5225. if ((this._commandCollection == null)) {
  5226. this.InitCommandCollection();
  5227. }
  5228. return this._commandCollection;
  5229. }
  5230. }
  5231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5233. public bool ClearBeforeFill {
  5234. get {
  5235. return this._clearBeforeFill;
  5236. }
  5237. set {
  5238. this._clearBeforeFill = value;
  5239. }
  5240. }
  5241. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5242. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5243. private void InitAdapter() {
  5244. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5245. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5246. tableMapping.SourceTable = "Table";
  5247. tableMapping.DataSetTable = "Role";
  5248. tableMapping.ColumnMappings.Add("id_role", "id_role");
  5249. tableMapping.ColumnMappings.Add("Name_Role", "Name_Role");
  5250. this._adapter.TableMappings.Add(tableMapping);
  5251. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5252. this._adapter.DeleteCommand.Connection = this.Connection;
  5253. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Role] WHERE (([id_role] = @Original_id_role) AND ((@IsNull_Nam" +
  5254. "e_Role = 1 AND [Name_Role] IS NULL) OR ([Name_Role] = @Original_Name_Role)))";
  5255. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5256. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_role", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_role", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5257. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Name_Role", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name_Role", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5258. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name_Role", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name_Role", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5259. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5260. this._adapter.InsertCommand.Connection = this.Connection;
  5261. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Role] ([Name_Role]) VALUES (@Name_Role);\r\nSELECT id_role, Name" +
  5262. "_Role FROM Role WHERE (id_role = SCOPE_IDENTITY())";
  5263. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5264. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name_Role", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name_Role", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5265. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5266. this._adapter.UpdateCommand.Connection = this.Connection;
  5267. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Role] SET [Name_Role] = @Name_Role WHERE (([id_role] = @Original_id" +
  5268. "_role) AND ((@IsNull_Name_Role = 1 AND [Name_Role] IS NULL) OR ([Name_Role] = @O" +
  5269. "riginal_Name_Role)));\r\nSELECT id_role, Name_Role FROM Role WHERE (id_role = @id_" +
  5270. "role)";
  5271. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5272. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name_Role", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name_Role", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5273. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_role", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_role", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5274. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Name_Role", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name_Role", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5275. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name_Role", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name_Role", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5276. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_role", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "id_role", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5277. }
  5278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5279. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5280. private void InitConnection() {
  5281. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5282. this._connection.ConnectionString = global::Фабрика.Properties.Settings.Default.dbFabrika2024ConnectionString;
  5283. }
  5284. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5285. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5286. private void InitCommandCollection() {
  5287. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5288. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5289. this._commandCollection[0].Connection = this.Connection;
  5290. this._commandCollection[0].CommandText = "SELECT id_role, Name_Role FROM dbo.Role";
  5291. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5292. }
  5293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5294. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5295. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5296. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5297. public virtual int Fill(dbFabrika2024DataSet.RoleDataTable dataTable) {
  5298. this.Adapter.SelectCommand = this.CommandCollection[0];
  5299. if ((this.ClearBeforeFill == true)) {
  5300. dataTable.Clear();
  5301. }
  5302. int returnValue = this.Adapter.Fill(dataTable);
  5303. return returnValue;
  5304. }
  5305. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5306. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5307. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5308. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5309. public virtual dbFabrika2024DataSet.RoleDataTable GetData() {
  5310. this.Adapter.SelectCommand = this.CommandCollection[0];
  5311. dbFabrika2024DataSet.RoleDataTable dataTable = new dbFabrika2024DataSet.RoleDataTable();
  5312. this.Adapter.Fill(dataTable);
  5313. return dataTable;
  5314. }
  5315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5316. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5317. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5318. public virtual int Update(dbFabrika2024DataSet.RoleDataTable dataTable) {
  5319. return this.Adapter.Update(dataTable);
  5320. }
  5321. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5322. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5323. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5324. public virtual int Update(dbFabrika2024DataSet dataSet) {
  5325. return this.Adapter.Update(dataSet, "Role");
  5326. }
  5327. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5328. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5329. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5330. public virtual int Update(global::System.Data.DataRow dataRow) {
  5331. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5332. dataRow});
  5333. }
  5334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5336. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5337. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5338. return this.Adapter.Update(dataRows);
  5339. }
  5340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5341. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5342. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5343. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5344. public virtual int Delete(int Original_id_role, string Original_Name_Role) {
  5345. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id_role));
  5346. if ((Original_Name_Role == null)) {
  5347. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  5348. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  5349. }
  5350. else {
  5351. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  5352. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Name_Role));
  5353. }
  5354. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5355. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5356. != global::System.Data.ConnectionState.Open)) {
  5357. this.Adapter.DeleteCommand.Connection.Open();
  5358. }
  5359. try {
  5360. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5361. return returnValue;
  5362. }
  5363. finally {
  5364. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5365. this.Adapter.DeleteCommand.Connection.Close();
  5366. }
  5367. }
  5368. }
  5369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5371. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5372. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5373. public virtual int Insert(string Name_Role) {
  5374. if ((Name_Role == null)) {
  5375. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  5376. }
  5377. else {
  5378. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Name_Role));
  5379. }
  5380. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5381. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5382. != global::System.Data.ConnectionState.Open)) {
  5383. this.Adapter.InsertCommand.Connection.Open();
  5384. }
  5385. try {
  5386. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5387. return returnValue;
  5388. }
  5389. finally {
  5390. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5391. this.Adapter.InsertCommand.Connection.Close();
  5392. }
  5393. }
  5394. }
  5395. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5396. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5397. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5398. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5399. public virtual int Update(string Name_Role, int Original_id_role, string Original_Name_Role, int id_role) {
  5400. if ((Name_Role == null)) {
  5401. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  5402. }
  5403. else {
  5404. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Name_Role));
  5405. }
  5406. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_id_role));
  5407. if ((Original_Name_Role == null)) {
  5408. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  5409. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  5410. }
  5411. else {
  5412. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  5413. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Name_Role));
  5414. }
  5415. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(id_role));
  5416. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5417. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5418. != global::System.Data.ConnectionState.Open)) {
  5419. this.Adapter.UpdateCommand.Connection.Open();
  5420. }
  5421. try {
  5422. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5423. return returnValue;
  5424. }
  5425. finally {
  5426. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5427. this.Adapter.UpdateCommand.Connection.Close();
  5428. }
  5429. }
  5430. }
  5431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5433. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5434. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5435. public virtual int Update(string Name_Role, int Original_id_role, string Original_Name_Role) {
  5436. return this.Update(Name_Role, Original_id_role, Original_Name_Role, Original_id_role);
  5437. }
  5438. }
  5439. /// <summary>
  5440. ///Represents the connection and commands used to retrieve and save data.
  5441. ///</summary>
  5442. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5443. [global::System.ComponentModel.ToolboxItem(true)]
  5444. [global::System.ComponentModel.DataObjectAttribute(true)]
  5445. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5446. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5447. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5448. public partial class TkaniTableAdapter : global::System.ComponentModel.Component {
  5449. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5450. private global::System.Data.SqlClient.SqlConnection _connection;
  5451. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5452. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5453. private bool _clearBeforeFill;
  5454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5455. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5456. public TkaniTableAdapter() {
  5457. this.ClearBeforeFill = true;
  5458. }
  5459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5460. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5461. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5462. get {
  5463. if ((this._adapter == null)) {
  5464. this.InitAdapter();
  5465. }
  5466. return this._adapter;
  5467. }
  5468. }
  5469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5470. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5471. internal global::System.Data.SqlClient.SqlConnection Connection {
  5472. get {
  5473. if ((this._connection == null)) {
  5474. this.InitConnection();
  5475. }
  5476. return this._connection;
  5477. }
  5478. set {
  5479. this._connection = value;
  5480. if ((this.Adapter.InsertCommand != null)) {
  5481. this.Adapter.InsertCommand.Connection = value;
  5482. }
  5483. if ((this.Adapter.DeleteCommand != null)) {
  5484. this.Adapter.DeleteCommand.Connection = value;
  5485. }
  5486. if ((this.Adapter.UpdateCommand != null)) {
  5487. this.Adapter.UpdateCommand.Connection = value;
  5488. }
  5489. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5490. if ((this.CommandCollection[i] != null)) {
  5491. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5492. }
  5493. }
  5494. }
  5495. }
  5496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5497. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5498. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5499. get {
  5500. return this._transaction;
  5501. }
  5502. set {
  5503. this._transaction = value;
  5504. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5505. this.CommandCollection[i].Transaction = this._transaction;
  5506. }
  5507. if (((this.Adapter != null)
  5508. && (this.Adapter.DeleteCommand != null))) {
  5509. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5510. }
  5511. if (((this.Adapter != null)
  5512. && (this.Adapter.InsertCommand != null))) {
  5513. this.Adapter.InsertCommand.Transaction = this._transaction;
  5514. }
  5515. if (((this.Adapter != null)
  5516. && (this.Adapter.UpdateCommand != null))) {
  5517. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5518. }
  5519. }
  5520. }
  5521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5523. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5524. get {
  5525. if ((this._commandCollection == null)) {
  5526. this.InitCommandCollection();
  5527. }
  5528. return this._commandCollection;
  5529. }
  5530. }
  5531. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5532. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5533. public bool ClearBeforeFill {
  5534. get {
  5535. return this._clearBeforeFill;
  5536. }
  5537. set {
  5538. this._clearBeforeFill = value;
  5539. }
  5540. }
  5541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5543. private void InitAdapter() {
  5544. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5545. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5546. tableMapping.SourceTable = "Table";
  5547. tableMapping.DataSetTable = "Tkani";
  5548. tableMapping.ColumnMappings.Add("Id_Tkani", "Id_Tkani");
  5549. tableMapping.ColumnMappings.Add("Nazvanie", "Nazvanie");
  5550. tableMapping.ColumnMappings.Add("id_cvet", "id_cvet");
  5551. tableMapping.ColumnMappings.Add("Shirina", "Shirina");
  5552. tableMapping.ColumnMappings.Add("Dlina", "Dlina");
  5553. tableMapping.ColumnMappings.Add("Primechanie", "Primechanie");
  5554. tableMapping.ColumnMappings.Add("Photo", "Photo");
  5555. this._adapter.TableMappings.Add(tableMapping);
  5556. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5557. this._adapter.DeleteCommand.Connection = this.Connection;
  5558. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Tkani] WHERE (([Id_Tkani] = @Original_Id_Tkani) AND ([id_cvet] = @Original_id_cvet) AND ((@IsNull_Shirina = 1 AND [Shirina] IS NULL) OR ([Shirina] = @Original_Shirina)) AND ((@IsNull_Dlina = 1 AND [Dlina] IS NULL) OR ([Dlina] = @Original_Dlina)))";
  5559. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5560. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Id_Tkani", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Id_Tkani", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5561. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_cvet", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_cvet", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5562. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Shirina", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Shirina", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5563. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Shirina", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Shirina", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5564. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Dlina", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Dlina", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5565. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Dlina", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Dlina", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5566. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5567. this._adapter.InsertCommand.Connection = this.Connection;
  5568. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Tkani] ([Nazvanie], [id_cvet], [Shirina], [Dlina], [Primechanie], [Photo]) VALUES (@Nazvanie, @id_cvet, @Shirina, @Dlina, @Primechanie, @Photo);
  5569. SELECT Id_Tkani, Nazvanie, id_cvet, Shirina, Dlina, Primechanie, Photo FROM Tkani WHERE (Id_Tkani = SCOPE_IDENTITY())";
  5570. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5571. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Nazvanie", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nazvanie", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5572. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_cvet", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_cvet", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5573. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Shirina", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Shirina", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5574. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Dlina", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Dlina", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5575. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Primechanie", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Primechanie", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5576. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Photo", global::System.Data.SqlDbType.Image, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Photo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5577. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5578. this._adapter.UpdateCommand.Connection = this.Connection;
  5579. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Tkani] SET [Nazvanie] = @Nazvanie, [id_cvet] = @id_cvet, [Shirina] = @Shirina, [Dlina] = @Dlina, [Primechanie] = @Primechanie, [Photo] = @Photo WHERE (([Id_Tkani] = @Original_Id_Tkani) AND ([id_cvet] = @Original_id_cvet) AND ((@IsNull_Shirina = 1 AND [Shirina] IS NULL) OR ([Shirina] = @Original_Shirina)) AND ((@IsNull_Dlina = 1 AND [Dlina] IS NULL) OR ([Dlina] = @Original_Dlina)));
  5580. SELECT Id_Tkani, Nazvanie, id_cvet, Shirina, Dlina, Primechanie, Photo FROM Tkani WHERE (Id_Tkani = @Id_Tkani)";
  5581. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5582. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Nazvanie", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nazvanie", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5583. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_cvet", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_cvet", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5584. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Shirina", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Shirina", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5585. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Dlina", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Dlina", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5586. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Primechanie", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Primechanie", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5587. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Photo", global::System.Data.SqlDbType.Image, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Photo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5588. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Id_Tkani", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Id_Tkani", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5589. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_cvet", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_cvet", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5590. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Shirina", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Shirina", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5591. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Shirina", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Shirina", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5592. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Dlina", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Dlina", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5593. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Dlina", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Dlina", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5594. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Id_Tkani", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "Id_Tkani", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5595. }
  5596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5597. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5598. private void InitConnection() {
  5599. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5600. this._connection.ConnectionString = global::Фабрика.Properties.Settings.Default.dbFabrika2024ConnectionString;
  5601. }
  5602. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5603. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5604. private void InitCommandCollection() {
  5605. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5606. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5607. this._commandCollection[0].Connection = this.Connection;
  5608. this._commandCollection[0].CommandText = "SELECT Id_Tkani, Nazvanie, id_cvet, Shirina, Dlina, Primechanie, Photo FROM dbo.T" +
  5609. "kani";
  5610. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5611. }
  5612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5614. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5615. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5616. public virtual int Fill(dbFabrika2024DataSet.TkaniDataTable dataTable) {
  5617. this.Adapter.SelectCommand = this.CommandCollection[0];
  5618. if ((this.ClearBeforeFill == true)) {
  5619. dataTable.Clear();
  5620. }
  5621. int returnValue = this.Adapter.Fill(dataTable);
  5622. return returnValue;
  5623. }
  5624. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5625. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5626. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5627. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5628. public virtual dbFabrika2024DataSet.TkaniDataTable GetData() {
  5629. this.Adapter.SelectCommand = this.CommandCollection[0];
  5630. dbFabrika2024DataSet.TkaniDataTable dataTable = new dbFabrika2024DataSet.TkaniDataTable();
  5631. this.Adapter.Fill(dataTable);
  5632. return dataTable;
  5633. }
  5634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5636. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5637. public virtual int Update(dbFabrika2024DataSet.TkaniDataTable dataTable) {
  5638. return this.Adapter.Update(dataTable);
  5639. }
  5640. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5641. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5642. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5643. public virtual int Update(dbFabrika2024DataSet dataSet) {
  5644. return this.Adapter.Update(dataSet, "Tkani");
  5645. }
  5646. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5647. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5648. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5649. public virtual int Update(global::System.Data.DataRow dataRow) {
  5650. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5651. dataRow});
  5652. }
  5653. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5654. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5655. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5656. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5657. return this.Adapter.Update(dataRows);
  5658. }
  5659. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5660. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5661. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5662. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5663. public virtual int Delete(int Original_Id_Tkani, int Original_id_cvet, global::System.Nullable<int> Original_Shirina, global::System.Nullable<int> Original_Dlina) {
  5664. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_Id_Tkani));
  5665. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_id_cvet));
  5666. if ((Original_Shirina.HasValue == true)) {
  5667. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
  5668. this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_Shirina.Value));
  5669. }
  5670. else {
  5671. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
  5672. this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
  5673. }
  5674. if ((Original_Dlina.HasValue == true)) {
  5675. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
  5676. this.Adapter.DeleteCommand.Parameters[5].Value = ((int)(Original_Dlina.Value));
  5677. }
  5678. else {
  5679. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
  5680. this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
  5681. }
  5682. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5683. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5684. != global::System.Data.ConnectionState.Open)) {
  5685. this.Adapter.DeleteCommand.Connection.Open();
  5686. }
  5687. try {
  5688. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5689. return returnValue;
  5690. }
  5691. finally {
  5692. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5693. this.Adapter.DeleteCommand.Connection.Close();
  5694. }
  5695. }
  5696. }
  5697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5698. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5699. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5700. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5701. public virtual int Insert(string Nazvanie, int id_cvet, global::System.Nullable<int> Shirina, global::System.Nullable<int> Dlina, string Primechanie, byte[] Photo) {
  5702. if ((Nazvanie == null)) {
  5703. throw new global::System.ArgumentNullException("Nazvanie");
  5704. }
  5705. else {
  5706. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Nazvanie));
  5707. }
  5708. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(id_cvet));
  5709. if ((Shirina.HasValue == true)) {
  5710. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Shirina.Value));
  5711. }
  5712. else {
  5713. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  5714. }
  5715. if ((Dlina.HasValue == true)) {
  5716. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(Dlina.Value));
  5717. }
  5718. else {
  5719. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  5720. }
  5721. if ((Primechanie == null)) {
  5722. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  5723. }
  5724. else {
  5725. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Primechanie));
  5726. }
  5727. if ((Photo == null)) {
  5728. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  5729. }
  5730. else {
  5731. this.Adapter.InsertCommand.Parameters[5].Value = ((byte[])(Photo));
  5732. }
  5733. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5734. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5735. != global::System.Data.ConnectionState.Open)) {
  5736. this.Adapter.InsertCommand.Connection.Open();
  5737. }
  5738. try {
  5739. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5740. return returnValue;
  5741. }
  5742. finally {
  5743. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5744. this.Adapter.InsertCommand.Connection.Close();
  5745. }
  5746. }
  5747. }
  5748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5750. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5751. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5752. public virtual int Update(string Nazvanie, int id_cvet, global::System.Nullable<int> Shirina, global::System.Nullable<int> Dlina, string Primechanie, byte[] Photo, int Original_Id_Tkani, int Original_id_cvet, global::System.Nullable<int> Original_Shirina, global::System.Nullable<int> Original_Dlina, int Id_Tkani) {
  5753. if ((Nazvanie == null)) {
  5754. throw new global::System.ArgumentNullException("Nazvanie");
  5755. }
  5756. else {
  5757. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Nazvanie));
  5758. }
  5759. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(id_cvet));
  5760. if ((Shirina.HasValue == true)) {
  5761. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Shirina.Value));
  5762. }
  5763. else {
  5764. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  5765. }
  5766. if ((Dlina.HasValue == true)) {
  5767. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Dlina.Value));
  5768. }
  5769. else {
  5770. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  5771. }
  5772. if ((Primechanie == null)) {
  5773. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  5774. }
  5775. else {
  5776. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Primechanie));
  5777. }
  5778. if ((Photo == null)) {
  5779. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  5780. }
  5781. else {
  5782. this.Adapter.UpdateCommand.Parameters[5].Value = ((byte[])(Photo));
  5783. }
  5784. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_Id_Tkani));
  5785. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_id_cvet));
  5786. if ((Original_Shirina.HasValue == true)) {
  5787. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  5788. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_Shirina.Value));
  5789. }
  5790. else {
  5791. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  5792. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  5793. }
  5794. if ((Original_Dlina.HasValue == true)) {
  5795. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  5796. this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(Original_Dlina.Value));
  5797. }
  5798. else {
  5799. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  5800. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  5801. }
  5802. this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(Id_Tkani));
  5803. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5804. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5805. != global::System.Data.ConnectionState.Open)) {
  5806. this.Adapter.UpdateCommand.Connection.Open();
  5807. }
  5808. try {
  5809. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5810. return returnValue;
  5811. }
  5812. finally {
  5813. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5814. this.Adapter.UpdateCommand.Connection.Close();
  5815. }
  5816. }
  5817. }
  5818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5819. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5820. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5821. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5822. public virtual int Update(string Nazvanie, int id_cvet, global::System.Nullable<int> Shirina, global::System.Nullable<int> Dlina, string Primechanie, byte[] Photo, int Original_Id_Tkani, int Original_id_cvet, global::System.Nullable<int> Original_Shirina, global::System.Nullable<int> Original_Dlina) {
  5823. return this.Update(Nazvanie, id_cvet, Shirina, Dlina, Primechanie, Photo, Original_Id_Tkani, Original_id_cvet, Original_Shirina, Original_Dlina, Original_Id_Tkani);
  5824. }
  5825. }
  5826. /// <summary>
  5827. ///Represents the connection and commands used to retrieve and save data.
  5828. ///</summary>
  5829. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5830. [global::System.ComponentModel.ToolboxItem(true)]
  5831. [global::System.ComponentModel.DataObjectAttribute(true)]
  5832. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5833. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5834. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5835. public partial class UsersTableAdapter : global::System.ComponentModel.Component {
  5836. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5837. private global::System.Data.SqlClient.SqlConnection _connection;
  5838. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5839. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5840. private bool _clearBeforeFill;
  5841. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5842. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5843. public UsersTableAdapter() {
  5844. this.ClearBeforeFill = true;
  5845. }
  5846. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5847. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5848. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5849. get {
  5850. if ((this._adapter == null)) {
  5851. this.InitAdapter();
  5852. }
  5853. return this._adapter;
  5854. }
  5855. }
  5856. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5857. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5858. internal global::System.Data.SqlClient.SqlConnection Connection {
  5859. get {
  5860. if ((this._connection == null)) {
  5861. this.InitConnection();
  5862. }
  5863. return this._connection;
  5864. }
  5865. set {
  5866. this._connection = value;
  5867. if ((this.Adapter.InsertCommand != null)) {
  5868. this.Adapter.InsertCommand.Connection = value;
  5869. }
  5870. if ((this.Adapter.DeleteCommand != null)) {
  5871. this.Adapter.DeleteCommand.Connection = value;
  5872. }
  5873. if ((this.Adapter.UpdateCommand != null)) {
  5874. this.Adapter.UpdateCommand.Connection = value;
  5875. }
  5876. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5877. if ((this.CommandCollection[i] != null)) {
  5878. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5879. }
  5880. }
  5881. }
  5882. }
  5883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5884. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5885. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5886. get {
  5887. return this._transaction;
  5888. }
  5889. set {
  5890. this._transaction = value;
  5891. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5892. this.CommandCollection[i].Transaction = this._transaction;
  5893. }
  5894. if (((this.Adapter != null)
  5895. && (this.Adapter.DeleteCommand != null))) {
  5896. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5897. }
  5898. if (((this.Adapter != null)
  5899. && (this.Adapter.InsertCommand != null))) {
  5900. this.Adapter.InsertCommand.Transaction = this._transaction;
  5901. }
  5902. if (((this.Adapter != null)
  5903. && (this.Adapter.UpdateCommand != null))) {
  5904. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5905. }
  5906. }
  5907. }
  5908. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5909. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5910. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5911. get {
  5912. if ((this._commandCollection == null)) {
  5913. this.InitCommandCollection();
  5914. }
  5915. return this._commandCollection;
  5916. }
  5917. }
  5918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5919. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5920. public bool ClearBeforeFill {
  5921. get {
  5922. return this._clearBeforeFill;
  5923. }
  5924. set {
  5925. this._clearBeforeFill = value;
  5926. }
  5927. }
  5928. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5929. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5930. private void InitAdapter() {
  5931. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5932. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5933. tableMapping.SourceTable = "Table";
  5934. tableMapping.DataSetTable = "Users";
  5935. tableMapping.ColumnMappings.Add("Id_user", "Id_user");
  5936. tableMapping.ColumnMappings.Add("login", "login");
  5937. tableMapping.ColumnMappings.Add("Passw", "Passw");
  5938. tableMapping.ColumnMappings.Add("id_role", "id_role");
  5939. tableMapping.ColumnMappings.Add("Surname", "Surname");
  5940. tableMapping.ColumnMappings.Add("Name", "Name");
  5941. tableMapping.ColumnMappings.Add("Otch", "Otch");
  5942. tableMapping.ColumnMappings.Add("Phone", "Phone");
  5943. this._adapter.TableMappings.Add(tableMapping);
  5944. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5945. this._adapter.DeleteCommand.Connection = this.Connection;
  5946. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Users] WHERE (([Id_user] = @Original_Id_user) AND ((@IsNull_login = 1 AND [login] IS NULL) OR ([login] = @Original_login)) AND ((@IsNull_Passw = 1 AND [Passw] IS NULL) OR ([Passw] = @Original_Passw)) AND ((@IsNull_id_role = 1 AND [id_role] IS NULL) OR ([id_role] = @Original_id_role)) AND ((@IsNull_Surname = 1 AND [Surname] IS NULL) OR ([Surname] = @Original_Surname)) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)) AND ((@IsNull_Otch = 1 AND [Otch] IS NULL) OR ([Otch] = @Original_Otch)) AND ((@IsNull_Phone = 1 AND [Phone] IS NULL) OR ([Phone] = @Original_Phone)))";
  5947. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5948. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Id_user", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Id_user", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5949. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_login", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "login", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5950. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_login", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "login", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5951. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Passw", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Passw", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5952. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Passw", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Passw", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5953. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_id_role", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_role", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5954. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_role", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_role", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5955. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Surname", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Surname", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5956. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Surname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Surname", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5957. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5958. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5959. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Otch", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Otch", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5960. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Otch", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Otch", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5961. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Phone", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5962. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Phone", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5963. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5964. this._adapter.InsertCommand.Connection = this.Connection;
  5965. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Users] ([login], [Passw], [id_role], [Surname], [Name], [Otch], [Phone]) VALUES (@login, @Passw, @id_role, @Surname, @Name, @Otch, @Phone);
  5966. SELECT Id_user, login, Passw, id_role, Surname, Name, Otch, Phone FROM Users WHERE (Id_user = SCOPE_IDENTITY())";
  5967. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5968. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@login", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "login", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5969. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Passw", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Passw", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5970. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_role", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_role", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5971. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Surname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Surname", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5972. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5973. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Otch", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Otch", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5974. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Phone", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5975. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5976. this._adapter.UpdateCommand.Connection = this.Connection;
  5977. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Users] SET [login] = @login, [Passw] = @Passw, [id_role] = @id_role, [Surname] = @Surname, [Name] = @Name, [Otch] = @Otch, [Phone] = @Phone WHERE (([Id_user] = @Original_Id_user) AND ((@IsNull_login = 1 AND [login] IS NULL) OR ([login] = @Original_login)) AND ((@IsNull_Passw = 1 AND [Passw] IS NULL) OR ([Passw] = @Original_Passw)) AND ((@IsNull_id_role = 1 AND [id_role] IS NULL) OR ([id_role] = @Original_id_role)) AND ((@IsNull_Surname = 1 AND [Surname] IS NULL) OR ([Surname] = @Original_Surname)) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)) AND ((@IsNull_Otch = 1 AND [Otch] IS NULL) OR ([Otch] = @Original_Otch)) AND ((@IsNull_Phone = 1 AND [Phone] IS NULL) OR ([Phone] = @Original_Phone)));
  5978. SELECT Id_user, login, Passw, id_role, Surname, Name, Otch, Phone FROM Users WHERE (Id_user = @Id_user)";
  5979. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5980. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@login", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "login", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5981. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Passw", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Passw", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5982. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_role", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_role", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5983. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Surname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Surname", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5984. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5985. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Otch", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Otch", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5986. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Phone", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5987. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Id_user", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Id_user", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5988. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_login", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "login", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5989. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_login", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "login", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5990. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Passw", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Passw", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5991. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Passw", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Passw", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5992. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_id_role", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_role", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5993. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_role", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_role", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5994. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Surname", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Surname", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5995. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Surname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Surname", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5996. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5997. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5998. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Otch", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Otch", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5999. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Otch", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Otch", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6000. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Phone", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6001. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Phone", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6002. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Id_user", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "Id_user", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6003. }
  6004. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6005. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6006. private void InitConnection() {
  6007. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6008. this._connection.ConnectionString = global::Фабрика.Properties.Settings.Default.dbFabrika2024ConnectionString;
  6009. }
  6010. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6011. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6012. private void InitCommandCollection() {
  6013. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6014. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6015. this._commandCollection[0].Connection = this.Connection;
  6016. this._commandCollection[0].CommandText = "SELECT Id_user, login, Passw, id_role, Surname, Name, Otch, Phone FROM dbo.Users";
  6017. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6018. }
  6019. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6020. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6021. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6022. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6023. public virtual int Fill(dbFabrika2024DataSet.UsersDataTable dataTable) {
  6024. this.Adapter.SelectCommand = this.CommandCollection[0];
  6025. if ((this.ClearBeforeFill == true)) {
  6026. dataTable.Clear();
  6027. }
  6028. int returnValue = this.Adapter.Fill(dataTable);
  6029. return returnValue;
  6030. }
  6031. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6032. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6033. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6034. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6035. public virtual dbFabrika2024DataSet.UsersDataTable GetData() {
  6036. this.Adapter.SelectCommand = this.CommandCollection[0];
  6037. dbFabrika2024DataSet.UsersDataTable dataTable = new dbFabrika2024DataSet.UsersDataTable();
  6038. this.Adapter.Fill(dataTable);
  6039. return dataTable;
  6040. }
  6041. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6042. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6043. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6044. public virtual int Update(dbFabrika2024DataSet.UsersDataTable dataTable) {
  6045. return this.Adapter.Update(dataTable);
  6046. }
  6047. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6048. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6049. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6050. public virtual int Update(dbFabrika2024DataSet dataSet) {
  6051. return this.Adapter.Update(dataSet, "Users");
  6052. }
  6053. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6054. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6055. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6056. public virtual int Update(global::System.Data.DataRow dataRow) {
  6057. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6058. dataRow});
  6059. }
  6060. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6061. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6062. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6063. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6064. return this.Adapter.Update(dataRows);
  6065. }
  6066. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6067. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6068. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6069. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6070. public virtual int Delete(int Original_Id_user, string Original_login, string Original_Passw, global::System.Nullable<int> Original_id_role, string Original_Surname, string Original_Name, string Original_Otch, string Original_Phone) {
  6071. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_Id_user));
  6072. if ((Original_login == null)) {
  6073. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  6074. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  6075. }
  6076. else {
  6077. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  6078. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_login));
  6079. }
  6080. if ((Original_Passw == null)) {
  6081. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  6082. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  6083. }
  6084. else {
  6085. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  6086. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Passw));
  6087. }
  6088. if ((Original_id_role.HasValue == true)) {
  6089. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  6090. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_id_role.Value));
  6091. }
  6092. else {
  6093. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  6094. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  6095. }
  6096. if ((Original_Surname == null)) {
  6097. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  6098. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  6099. }
  6100. else {
  6101. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  6102. this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Surname));
  6103. }
  6104. if ((Original_Name == null)) {
  6105. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  6106. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  6107. }
  6108. else {
  6109. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  6110. this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_Name));
  6111. }
  6112. if ((Original_Otch == null)) {
  6113. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  6114. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  6115. }
  6116. else {
  6117. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  6118. this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_Otch));
  6119. }
  6120. if ((Original_Phone == null)) {
  6121. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
  6122. this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
  6123. }
  6124. else {
  6125. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
  6126. this.Adapter.DeleteCommand.Parameters[14].Value = ((string)(Original_Phone));
  6127. }
  6128. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6129. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6130. != global::System.Data.ConnectionState.Open)) {
  6131. this.Adapter.DeleteCommand.Connection.Open();
  6132. }
  6133. try {
  6134. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6135. return returnValue;
  6136. }
  6137. finally {
  6138. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6139. this.Adapter.DeleteCommand.Connection.Close();
  6140. }
  6141. }
  6142. }
  6143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6144. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6145. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6146. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6147. public virtual int Insert(string login, string Passw, global::System.Nullable<int> id_role, string Surname, string Name, string Otch, string Phone) {
  6148. if ((login == null)) {
  6149. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  6150. }
  6151. else {
  6152. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(login));
  6153. }
  6154. if ((Passw == null)) {
  6155. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  6156. }
  6157. else {
  6158. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Passw));
  6159. }
  6160. if ((id_role.HasValue == true)) {
  6161. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(id_role.Value));
  6162. }
  6163. else {
  6164. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  6165. }
  6166. if ((Surname == null)) {
  6167. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  6168. }
  6169. else {
  6170. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Surname));
  6171. }
  6172. if ((Name == null)) {
  6173. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  6174. }
  6175. else {
  6176. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Name));
  6177. }
  6178. if ((Otch == null)) {
  6179. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  6180. }
  6181. else {
  6182. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Otch));
  6183. }
  6184. if ((Phone == null)) {
  6185. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  6186. }
  6187. else {
  6188. this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Phone));
  6189. }
  6190. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6191. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6192. != global::System.Data.ConnectionState.Open)) {
  6193. this.Adapter.InsertCommand.Connection.Open();
  6194. }
  6195. try {
  6196. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6197. return returnValue;
  6198. }
  6199. finally {
  6200. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6201. this.Adapter.InsertCommand.Connection.Close();
  6202. }
  6203. }
  6204. }
  6205. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6206. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6207. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6208. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6209. public virtual int Update(
  6210. string login,
  6211. string Passw,
  6212. global::System.Nullable<int> id_role,
  6213. string Surname,
  6214. string Name,
  6215. string Otch,
  6216. string Phone,
  6217. int Original_Id_user,
  6218. string Original_login,
  6219. string Original_Passw,
  6220. global::System.Nullable<int> Original_id_role,
  6221. string Original_Surname,
  6222. string Original_Name,
  6223. string Original_Otch,
  6224. string Original_Phone,
  6225. int Id_user) {
  6226. if ((login == null)) {
  6227. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  6228. }
  6229. else {
  6230. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(login));
  6231. }
  6232. if ((Passw == null)) {
  6233. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  6234. }
  6235. else {
  6236. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Passw));
  6237. }
  6238. if ((id_role.HasValue == true)) {
  6239. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(id_role.Value));
  6240. }
  6241. else {
  6242. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  6243. }
  6244. if ((Surname == null)) {
  6245. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  6246. }
  6247. else {
  6248. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Surname));
  6249. }
  6250. if ((Name == null)) {
  6251. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  6252. }
  6253. else {
  6254. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Name));
  6255. }
  6256. if ((Otch == null)) {
  6257. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  6258. }
  6259. else {
  6260. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Otch));
  6261. }
  6262. if ((Phone == null)) {
  6263. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  6264. }
  6265. else {
  6266. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Phone));
  6267. }
  6268. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_Id_user));
  6269. if ((Original_login == null)) {
  6270. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  6271. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  6272. }
  6273. else {
  6274. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  6275. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_login));
  6276. }
  6277. if ((Original_Passw == null)) {
  6278. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  6279. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  6280. }
  6281. else {
  6282. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  6283. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_Passw));
  6284. }
  6285. if ((Original_id_role.HasValue == true)) {
  6286. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  6287. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Original_id_role.Value));
  6288. }
  6289. else {
  6290. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  6291. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  6292. }
  6293. if ((Original_Surname == null)) {
  6294. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
  6295. this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
  6296. }
  6297. else {
  6298. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
  6299. this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_Surname));
  6300. }
  6301. if ((Original_Name == null)) {
  6302. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
  6303. this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
  6304. }
  6305. else {
  6306. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
  6307. this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_Name));
  6308. }
  6309. if ((Original_Otch == null)) {
  6310. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
  6311. this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
  6312. }
  6313. else {
  6314. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
  6315. this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_Otch));
  6316. }
  6317. if ((Original_Phone == null)) {
  6318. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
  6319. this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
  6320. }
  6321. else {
  6322. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
  6323. this.Adapter.UpdateCommand.Parameters[21].Value = ((string)(Original_Phone));
  6324. }
  6325. this.Adapter.UpdateCommand.Parameters[22].Value = ((int)(Id_user));
  6326. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6327. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6328. != global::System.Data.ConnectionState.Open)) {
  6329. this.Adapter.UpdateCommand.Connection.Open();
  6330. }
  6331. try {
  6332. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6333. return returnValue;
  6334. }
  6335. finally {
  6336. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6337. this.Adapter.UpdateCommand.Connection.Close();
  6338. }
  6339. }
  6340. }
  6341. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6342. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6343. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6344. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6345. public virtual int Update(string login, string Passw, global::System.Nullable<int> id_role, string Surname, string Name, string Otch, string Phone, int Original_Id_user, string Original_login, string Original_Passw, global::System.Nullable<int> Original_id_role, string Original_Surname, string Original_Name, string Original_Otch, string Original_Phone) {
  6346. return this.Update(login, Passw, id_role, Surname, Name, Otch, Phone, Original_Id_user, Original_login, Original_Passw, Original_id_role, Original_Surname, Original_Name, Original_Otch, Original_Phone, Original_Id_user);
  6347. }
  6348. }
  6349. /// <summary>
  6350. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  6351. ///</summary>
  6352. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6353. [global::System.ComponentModel.ToolboxItem(true)]
  6354. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  6355. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6356. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  6357. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  6358. private UpdateOrderOption _updateOrder;
  6359. private CvetaTableAdapter _cvetaTableAdapter;
  6360. private FurnituraTableAdapter _furnituraTableAdapter;
  6361. private IzdelieTableAdapter _izdelieTableAdapter;
  6362. private OrdersTableAdapter _ordersTableAdapter;
  6363. private RoleTableAdapter _roleTableAdapter;
  6364. private TkaniTableAdapter _tkaniTableAdapter;
  6365. private UsersTableAdapter _usersTableAdapter;
  6366. private bool _backupDataSetBeforeUpdate;
  6367. private global::System.Data.IDbConnection _connection;
  6368. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6369. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6370. public UpdateOrderOption UpdateOrder {
  6371. get {
  6372. return this._updateOrder;
  6373. }
  6374. set {
  6375. this._updateOrder = value;
  6376. }
  6377. }
  6378. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6379. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6380. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6381. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6382. "a", "System.Drawing.Design.UITypeEditor")]
  6383. public CvetaTableAdapter CvetaTableAdapter {
  6384. get {
  6385. return this._cvetaTableAdapter;
  6386. }
  6387. set {
  6388. this._cvetaTableAdapter = value;
  6389. }
  6390. }
  6391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6392. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6393. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6394. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6395. "a", "System.Drawing.Design.UITypeEditor")]
  6396. public FurnituraTableAdapter FurnituraTableAdapter {
  6397. get {
  6398. return this._furnituraTableAdapter;
  6399. }
  6400. set {
  6401. this._furnituraTableAdapter = value;
  6402. }
  6403. }
  6404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6406. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6407. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6408. "a", "System.Drawing.Design.UITypeEditor")]
  6409. public IzdelieTableAdapter IzdelieTableAdapter {
  6410. get {
  6411. return this._izdelieTableAdapter;
  6412. }
  6413. set {
  6414. this._izdelieTableAdapter = value;
  6415. }
  6416. }
  6417. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6418. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6419. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6420. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6421. "a", "System.Drawing.Design.UITypeEditor")]
  6422. public OrdersTableAdapter OrdersTableAdapter {
  6423. get {
  6424. return this._ordersTableAdapter;
  6425. }
  6426. set {
  6427. this._ordersTableAdapter = value;
  6428. }
  6429. }
  6430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6431. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6432. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6433. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6434. "a", "System.Drawing.Design.UITypeEditor")]
  6435. public RoleTableAdapter RoleTableAdapter {
  6436. get {
  6437. return this._roleTableAdapter;
  6438. }
  6439. set {
  6440. this._roleTableAdapter = value;
  6441. }
  6442. }
  6443. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6444. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6445. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6446. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6447. "a", "System.Drawing.Design.UITypeEditor")]
  6448. public TkaniTableAdapter TkaniTableAdapter {
  6449. get {
  6450. return this._tkaniTableAdapter;
  6451. }
  6452. set {
  6453. this._tkaniTableAdapter = value;
  6454. }
  6455. }
  6456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6457. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6458. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6459. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6460. "a", "System.Drawing.Design.UITypeEditor")]
  6461. public UsersTableAdapter UsersTableAdapter {
  6462. get {
  6463. return this._usersTableAdapter;
  6464. }
  6465. set {
  6466. this._usersTableAdapter = value;
  6467. }
  6468. }
  6469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6470. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6471. public bool BackupDataSetBeforeUpdate {
  6472. get {
  6473. return this._backupDataSetBeforeUpdate;
  6474. }
  6475. set {
  6476. this._backupDataSetBeforeUpdate = value;
  6477. }
  6478. }
  6479. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6480. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6481. [global::System.ComponentModel.Browsable(false)]
  6482. public global::System.Data.IDbConnection Connection {
  6483. get {
  6484. if ((this._connection != null)) {
  6485. return this._connection;
  6486. }
  6487. if (((this._cvetaTableAdapter != null)
  6488. && (this._cvetaTableAdapter.Connection != null))) {
  6489. return this._cvetaTableAdapter.Connection;
  6490. }
  6491. if (((this._furnituraTableAdapter != null)
  6492. && (this._furnituraTableAdapter.Connection != null))) {
  6493. return this._furnituraTableAdapter.Connection;
  6494. }
  6495. if (((this._izdelieTableAdapter != null)
  6496. && (this._izdelieTableAdapter.Connection != null))) {
  6497. return this._izdelieTableAdapter.Connection;
  6498. }
  6499. if (((this._ordersTableAdapter != null)
  6500. && (this._ordersTableAdapter.Connection != null))) {
  6501. return this._ordersTableAdapter.Connection;
  6502. }
  6503. if (((this._roleTableAdapter != null)
  6504. && (this._roleTableAdapter.Connection != null))) {
  6505. return this._roleTableAdapter.Connection;
  6506. }
  6507. if (((this._tkaniTableAdapter != null)
  6508. && (this._tkaniTableAdapter.Connection != null))) {
  6509. return this._tkaniTableAdapter.Connection;
  6510. }
  6511. if (((this._usersTableAdapter != null)
  6512. && (this._usersTableAdapter.Connection != null))) {
  6513. return this._usersTableAdapter.Connection;
  6514. }
  6515. return null;
  6516. }
  6517. set {
  6518. this._connection = value;
  6519. }
  6520. }
  6521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6523. [global::System.ComponentModel.Browsable(false)]
  6524. public int TableAdapterInstanceCount {
  6525. get {
  6526. int count = 0;
  6527. if ((this._cvetaTableAdapter != null)) {
  6528. count = (count + 1);
  6529. }
  6530. if ((this._furnituraTableAdapter != null)) {
  6531. count = (count + 1);
  6532. }
  6533. if ((this._izdelieTableAdapter != null)) {
  6534. count = (count + 1);
  6535. }
  6536. if ((this._ordersTableAdapter != null)) {
  6537. count = (count + 1);
  6538. }
  6539. if ((this._roleTableAdapter != null)) {
  6540. count = (count + 1);
  6541. }
  6542. if ((this._tkaniTableAdapter != null)) {
  6543. count = (count + 1);
  6544. }
  6545. if ((this._usersTableAdapter != null)) {
  6546. count = (count + 1);
  6547. }
  6548. return count;
  6549. }
  6550. }
  6551. /// <summary>
  6552. ///Update rows in top-down order.
  6553. ///</summary>
  6554. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6555. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6556. private int UpdateUpdatedRows(dbFabrika2024DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  6557. int result = 0;
  6558. if ((this._cvetaTableAdapter != null)) {
  6559. global::System.Data.DataRow[] updatedRows = dataSet.Cveta.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6560. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6561. if (((updatedRows != null)
  6562. && (0 < updatedRows.Length))) {
  6563. result = (result + this._cvetaTableAdapter.Update(updatedRows));
  6564. allChangedRows.AddRange(updatedRows);
  6565. }
  6566. }
  6567. if ((this._roleTableAdapter != null)) {
  6568. global::System.Data.DataRow[] updatedRows = dataSet.Role.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6569. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6570. if (((updatedRows != null)
  6571. && (0 < updatedRows.Length))) {
  6572. result = (result + this._roleTableAdapter.Update(updatedRows));
  6573. allChangedRows.AddRange(updatedRows);
  6574. }
  6575. }
  6576. if ((this._furnituraTableAdapter != null)) {
  6577. global::System.Data.DataRow[] updatedRows = dataSet.Furnitura.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6578. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6579. if (((updatedRows != null)
  6580. && (0 < updatedRows.Length))) {
  6581. result = (result + this._furnituraTableAdapter.Update(updatedRows));
  6582. allChangedRows.AddRange(updatedRows);
  6583. }
  6584. }
  6585. if ((this._izdelieTableAdapter != null)) {
  6586. global::System.Data.DataRow[] updatedRows = dataSet.Izdelie.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6587. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6588. if (((updatedRows != null)
  6589. && (0 < updatedRows.Length))) {
  6590. result = (result + this._izdelieTableAdapter.Update(updatedRows));
  6591. allChangedRows.AddRange(updatedRows);
  6592. }
  6593. }
  6594. if ((this._tkaniTableAdapter != null)) {
  6595. global::System.Data.DataRow[] updatedRows = dataSet.Tkani.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6596. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6597. if (((updatedRows != null)
  6598. && (0 < updatedRows.Length))) {
  6599. result = (result + this._tkaniTableAdapter.Update(updatedRows));
  6600. allChangedRows.AddRange(updatedRows);
  6601. }
  6602. }
  6603. if ((this._usersTableAdapter != null)) {
  6604. global::System.Data.DataRow[] updatedRows = dataSet.Users.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6605. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6606. if (((updatedRows != null)
  6607. && (0 < updatedRows.Length))) {
  6608. result = (result + this._usersTableAdapter.Update(updatedRows));
  6609. allChangedRows.AddRange(updatedRows);
  6610. }
  6611. }
  6612. if ((this._ordersTableAdapter != null)) {
  6613. global::System.Data.DataRow[] updatedRows = dataSet.Orders.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6614. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6615. if (((updatedRows != null)
  6616. && (0 < updatedRows.Length))) {
  6617. result = (result + this._ordersTableAdapter.Update(updatedRows));
  6618. allChangedRows.AddRange(updatedRows);
  6619. }
  6620. }
  6621. return result;
  6622. }
  6623. /// <summary>
  6624. ///Insert rows in top-down order.
  6625. ///</summary>
  6626. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6627. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6628. private int UpdateInsertedRows(dbFabrika2024DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  6629. int result = 0;
  6630. if ((this._cvetaTableAdapter != null)) {
  6631. global::System.Data.DataRow[] addedRows = dataSet.Cveta.Select(null, null, global::System.Data.DataViewRowState.Added);
  6632. if (((addedRows != null)
  6633. && (0 < addedRows.Length))) {
  6634. result = (result + this._cvetaTableAdapter.Update(addedRows));
  6635. allAddedRows.AddRange(addedRows);
  6636. }
  6637. }
  6638. if ((this._roleTableAdapter != null)) {
  6639. global::System.Data.DataRow[] addedRows = dataSet.Role.Select(null, null, global::System.Data.DataViewRowState.Added);
  6640. if (((addedRows != null)
  6641. && (0 < addedRows.Length))) {
  6642. result = (result + this._roleTableAdapter.Update(addedRows));
  6643. allAddedRows.AddRange(addedRows);
  6644. }
  6645. }
  6646. if ((this._furnituraTableAdapter != null)) {
  6647. global::System.Data.DataRow[] addedRows = dataSet.Furnitura.Select(null, null, global::System.Data.DataViewRowState.Added);
  6648. if (((addedRows != null)
  6649. && (0 < addedRows.Length))) {
  6650. result = (result + this._furnituraTableAdapter.Update(addedRows));
  6651. allAddedRows.AddRange(addedRows);
  6652. }
  6653. }
  6654. if ((this._izdelieTableAdapter != null)) {
  6655. global::System.Data.DataRow[] addedRows = dataSet.Izdelie.Select(null, null, global::System.Data.DataViewRowState.Added);
  6656. if (((addedRows != null)
  6657. && (0 < addedRows.Length))) {
  6658. result = (result + this._izdelieTableAdapter.Update(addedRows));
  6659. allAddedRows.AddRange(addedRows);
  6660. }
  6661. }
  6662. if ((this._tkaniTableAdapter != null)) {
  6663. global::System.Data.DataRow[] addedRows = dataSet.Tkani.Select(null, null, global::System.Data.DataViewRowState.Added);
  6664. if (((addedRows != null)
  6665. && (0 < addedRows.Length))) {
  6666. result = (result + this._tkaniTableAdapter.Update(addedRows));
  6667. allAddedRows.AddRange(addedRows);
  6668. }
  6669. }
  6670. if ((this._usersTableAdapter != null)) {
  6671. global::System.Data.DataRow[] addedRows = dataSet.Users.Select(null, null, global::System.Data.DataViewRowState.Added);
  6672. if (((addedRows != null)
  6673. && (0 < addedRows.Length))) {
  6674. result = (result + this._usersTableAdapter.Update(addedRows));
  6675. allAddedRows.AddRange(addedRows);
  6676. }
  6677. }
  6678. if ((this._ordersTableAdapter != null)) {
  6679. global::System.Data.DataRow[] addedRows = dataSet.Orders.Select(null, null, global::System.Data.DataViewRowState.Added);
  6680. if (((addedRows != null)
  6681. && (0 < addedRows.Length))) {
  6682. result = (result + this._ordersTableAdapter.Update(addedRows));
  6683. allAddedRows.AddRange(addedRows);
  6684. }
  6685. }
  6686. return result;
  6687. }
  6688. /// <summary>
  6689. ///Delete rows in bottom-up order.
  6690. ///</summary>
  6691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6692. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6693. private int UpdateDeletedRows(dbFabrika2024DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  6694. int result = 0;
  6695. if ((this._ordersTableAdapter != null)) {
  6696. global::System.Data.DataRow[] deletedRows = dataSet.Orders.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6697. if (((deletedRows != null)
  6698. && (0 < deletedRows.Length))) {
  6699. result = (result + this._ordersTableAdapter.Update(deletedRows));
  6700. allChangedRows.AddRange(deletedRows);
  6701. }
  6702. }
  6703. if ((this._usersTableAdapter != null)) {
  6704. global::System.Data.DataRow[] deletedRows = dataSet.Users.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6705. if (((deletedRows != null)
  6706. && (0 < deletedRows.Length))) {
  6707. result = (result + this._usersTableAdapter.Update(deletedRows));
  6708. allChangedRows.AddRange(deletedRows);
  6709. }
  6710. }
  6711. if ((this._tkaniTableAdapter != null)) {
  6712. global::System.Data.DataRow[] deletedRows = dataSet.Tkani.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6713. if (((deletedRows != null)
  6714. && (0 < deletedRows.Length))) {
  6715. result = (result + this._tkaniTableAdapter.Update(deletedRows));
  6716. allChangedRows.AddRange(deletedRows);
  6717. }
  6718. }
  6719. if ((this._izdelieTableAdapter != null)) {
  6720. global::System.Data.DataRow[] deletedRows = dataSet.Izdelie.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6721. if (((deletedRows != null)
  6722. && (0 < deletedRows.Length))) {
  6723. result = (result + this._izdelieTableAdapter.Update(deletedRows));
  6724. allChangedRows.AddRange(deletedRows);
  6725. }
  6726. }
  6727. if ((this._furnituraTableAdapter != null)) {
  6728. global::System.Data.DataRow[] deletedRows = dataSet.Furnitura.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6729. if (((deletedRows != null)
  6730. && (0 < deletedRows.Length))) {
  6731. result = (result + this._furnituraTableAdapter.Update(deletedRows));
  6732. allChangedRows.AddRange(deletedRows);
  6733. }
  6734. }
  6735. if ((this._roleTableAdapter != null)) {
  6736. global::System.Data.DataRow[] deletedRows = dataSet.Role.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6737. if (((deletedRows != null)
  6738. && (0 < deletedRows.Length))) {
  6739. result = (result + this._roleTableAdapter.Update(deletedRows));
  6740. allChangedRows.AddRange(deletedRows);
  6741. }
  6742. }
  6743. if ((this._cvetaTableAdapter != null)) {
  6744. global::System.Data.DataRow[] deletedRows = dataSet.Cveta.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6745. if (((deletedRows != null)
  6746. && (0 < deletedRows.Length))) {
  6747. result = (result + this._cvetaTableAdapter.Update(deletedRows));
  6748. allChangedRows.AddRange(deletedRows);
  6749. }
  6750. }
  6751. return result;
  6752. }
  6753. /// <summary>
  6754. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  6755. ///</summary>
  6756. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6757. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6758. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  6759. if (((updatedRows == null)
  6760. || (updatedRows.Length < 1))) {
  6761. return updatedRows;
  6762. }
  6763. if (((allAddedRows == null)
  6764. || (allAddedRows.Count < 1))) {
  6765. return updatedRows;
  6766. }
  6767. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  6768. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  6769. global::System.Data.DataRow row = updatedRows[i];
  6770. if ((allAddedRows.Contains(row) == false)) {
  6771. realUpdatedRows.Add(row);
  6772. }
  6773. }
  6774. return realUpdatedRows.ToArray();
  6775. }
  6776. /// <summary>
  6777. ///Update all changes to the dataset.
  6778. ///</summary>
  6779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6781. public virtual int UpdateAll(dbFabrika2024DataSet dataSet) {
  6782. if ((dataSet == null)) {
  6783. throw new global::System.ArgumentNullException("dataSet");
  6784. }
  6785. if ((dataSet.HasChanges() == false)) {
  6786. return 0;
  6787. }
  6788. if (((this._cvetaTableAdapter != null)
  6789. && (this.MatchTableAdapterConnection(this._cvetaTableAdapter.Connection) == false))) {
  6790. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  6791. "r, должны использовать одинаковую строку подключения.");
  6792. }
  6793. if (((this._furnituraTableAdapter != null)
  6794. && (this.MatchTableAdapterConnection(this._furnituraTableAdapter.Connection) == false))) {
  6795. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  6796. "r, должны использовать одинаковую строку подключения.");
  6797. }
  6798. if (((this._izdelieTableAdapter != null)
  6799. && (this.MatchTableAdapterConnection(this._izdelieTableAdapter.Connection) == false))) {
  6800. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  6801. "r, должны использовать одинаковую строку подключения.");
  6802. }
  6803. if (((this._ordersTableAdapter != null)
  6804. && (this.MatchTableAdapterConnection(this._ordersTableAdapter.Connection) == false))) {
  6805. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  6806. "r, должны использовать одинаковую строку подключения.");
  6807. }
  6808. if (((this._roleTableAdapter != null)
  6809. && (this.MatchTableAdapterConnection(this._roleTableAdapter.Connection) == false))) {
  6810. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  6811. "r, должны использовать одинаковую строку подключения.");
  6812. }
  6813. if (((this._tkaniTableAdapter != null)
  6814. && (this.MatchTableAdapterConnection(this._tkaniTableAdapter.Connection) == false))) {
  6815. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  6816. "r, должны использовать одинаковую строку подключения.");
  6817. }
  6818. if (((this._usersTableAdapter != null)
  6819. && (this.MatchTableAdapterConnection(this._usersTableAdapter.Connection) == false))) {
  6820. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  6821. "r, должны использовать одинаковую строку подключения.");
  6822. }
  6823. global::System.Data.IDbConnection workConnection = this.Connection;
  6824. if ((workConnection == null)) {
  6825. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  6826. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  6827. }
  6828. bool workConnOpened = false;
  6829. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  6830. == global::System.Data.ConnectionState.Broken)) {
  6831. workConnection.Close();
  6832. }
  6833. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  6834. workConnection.Open();
  6835. workConnOpened = true;
  6836. }
  6837. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  6838. if ((workTransaction == null)) {
  6839. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  6840. "и или текущее состояние не позволяет начать транзакцию.");
  6841. }
  6842. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  6843. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  6844. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  6845. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  6846. int result = 0;
  6847. global::System.Data.DataSet backupDataSet = null;
  6848. if (this.BackupDataSetBeforeUpdate) {
  6849. backupDataSet = new global::System.Data.DataSet();
  6850. backupDataSet.Merge(dataSet);
  6851. }
  6852. try {
  6853. // ---- Prepare for update -----------
  6854. //
  6855. if ((this._cvetaTableAdapter != null)) {
  6856. revertConnections.Add(this._cvetaTableAdapter, this._cvetaTableAdapter.Connection);
  6857. this._cvetaTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  6858. this._cvetaTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  6859. if (this._cvetaTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  6860. this._cvetaTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  6861. adaptersWithAcceptChangesDuringUpdate.Add(this._cvetaTableAdapter.Adapter);
  6862. }
  6863. }
  6864. if ((this._furnituraTableAdapter != null)) {
  6865. revertConnections.Add(this._furnituraTableAdapter, this._furnituraTableAdapter.Connection);
  6866. this._furnituraTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  6867. this._furnituraTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  6868. if (this._furnituraTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  6869. this._furnituraTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  6870. adaptersWithAcceptChangesDuringUpdate.Add(this._furnituraTableAdapter.Adapter);
  6871. }
  6872. }
  6873. if ((this._izdelieTableAdapter != null)) {
  6874. revertConnections.Add(this._izdelieTableAdapter, this._izdelieTableAdapter.Connection);
  6875. this._izdelieTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  6876. this._izdelieTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  6877. if (this._izdelieTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  6878. this._izdelieTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  6879. adaptersWithAcceptChangesDuringUpdate.Add(this._izdelieTableAdapter.Adapter);
  6880. }
  6881. }
  6882. if ((this._ordersTableAdapter != null)) {
  6883. revertConnections.Add(this._ordersTableAdapter, this._ordersTableAdapter.Connection);
  6884. this._ordersTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  6885. this._ordersTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  6886. if (this._ordersTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  6887. this._ordersTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  6888. adaptersWithAcceptChangesDuringUpdate.Add(this._ordersTableAdapter.Adapter);
  6889. }
  6890. }
  6891. if ((this._roleTableAdapter != null)) {
  6892. revertConnections.Add(this._roleTableAdapter, this._roleTableAdapter.Connection);
  6893. this._roleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  6894. this._roleTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  6895. if (this._roleTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  6896. this._roleTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  6897. adaptersWithAcceptChangesDuringUpdate.Add(this._roleTableAdapter.Adapter);
  6898. }
  6899. }
  6900. if ((this._tkaniTableAdapter != null)) {
  6901. revertConnections.Add(this._tkaniTableAdapter, this._tkaniTableAdapter.Connection);
  6902. this._tkaniTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  6903. this._tkaniTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  6904. if (this._tkaniTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  6905. this._tkaniTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  6906. adaptersWithAcceptChangesDuringUpdate.Add(this._tkaniTableAdapter.Adapter);
  6907. }
  6908. }
  6909. if ((this._usersTableAdapter != null)) {
  6910. revertConnections.Add(this._usersTableAdapter, this._usersTableAdapter.Connection);
  6911. this._usersTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  6912. this._usersTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  6913. if (this._usersTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  6914. this._usersTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  6915. adaptersWithAcceptChangesDuringUpdate.Add(this._usersTableAdapter.Adapter);
  6916. }
  6917. }
  6918. //
  6919. //---- Perform updates -----------
  6920. //
  6921. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  6922. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  6923. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  6924. }
  6925. else {
  6926. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  6927. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  6928. }
  6929. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  6930. //
  6931. //---- Commit updates -----------
  6932. //
  6933. workTransaction.Commit();
  6934. if ((0 < allAddedRows.Count)) {
  6935. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  6936. allAddedRows.CopyTo(rows);
  6937. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  6938. global::System.Data.DataRow row = rows[i];
  6939. row.AcceptChanges();
  6940. }
  6941. }
  6942. if ((0 < allChangedRows.Count)) {
  6943. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  6944. allChangedRows.CopyTo(rows);
  6945. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  6946. global::System.Data.DataRow row = rows[i];
  6947. row.AcceptChanges();
  6948. }
  6949. }
  6950. }
  6951. catch (global::System.Exception ex) {
  6952. workTransaction.Rollback();
  6953. // ---- Restore the dataset -----------
  6954. if (this.BackupDataSetBeforeUpdate) {
  6955. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  6956. dataSet.Clear();
  6957. dataSet.Merge(backupDataSet);
  6958. }
  6959. else {
  6960. if ((0 < allAddedRows.Count)) {
  6961. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  6962. allAddedRows.CopyTo(rows);
  6963. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  6964. global::System.Data.DataRow row = rows[i];
  6965. row.AcceptChanges();
  6966. row.SetAdded();
  6967. }
  6968. }
  6969. }
  6970. throw ex;
  6971. }
  6972. finally {
  6973. if (workConnOpened) {
  6974. workConnection.Close();
  6975. }
  6976. if ((this._cvetaTableAdapter != null)) {
  6977. this._cvetaTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._cvetaTableAdapter]));
  6978. this._cvetaTableAdapter.Transaction = null;
  6979. }
  6980. if ((this._furnituraTableAdapter != null)) {
  6981. this._furnituraTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._furnituraTableAdapter]));
  6982. this._furnituraTableAdapter.Transaction = null;
  6983. }
  6984. if ((this._izdelieTableAdapter != null)) {
  6985. this._izdelieTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._izdelieTableAdapter]));
  6986. this._izdelieTableAdapter.Transaction = null;
  6987. }
  6988. if ((this._ordersTableAdapter != null)) {
  6989. this._ordersTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._ordersTableAdapter]));
  6990. this._ordersTableAdapter.Transaction = null;
  6991. }
  6992. if ((this._roleTableAdapter != null)) {
  6993. this._roleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._roleTableAdapter]));
  6994. this._roleTableAdapter.Transaction = null;
  6995. }
  6996. if ((this._tkaniTableAdapter != null)) {
  6997. this._tkaniTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tkaniTableAdapter]));
  6998. this._tkaniTableAdapter.Transaction = null;
  6999. }
  7000. if ((this._usersTableAdapter != null)) {
  7001. this._usersTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._usersTableAdapter]));
  7002. this._usersTableAdapter.Transaction = null;
  7003. }
  7004. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  7005. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  7006. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  7007. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  7008. global::System.Data.Common.DataAdapter adapter = adapters[i];
  7009. adapter.AcceptChangesDuringUpdate = true;
  7010. }
  7011. }
  7012. }
  7013. return result;
  7014. }
  7015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7016. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7017. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  7018. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  7019. }
  7020. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7021. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7022. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  7023. if ((this._connection != null)) {
  7024. return true;
  7025. }
  7026. if (((this.Connection == null)
  7027. || (inputConnection == null))) {
  7028. return true;
  7029. }
  7030. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  7031. return true;
  7032. }
  7033. return false;
  7034. }
  7035. /// <summary>
  7036. ///Update Order Option
  7037. ///</summary>
  7038. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7039. public enum UpdateOrderOption {
  7040. InsertUpdateDelete = 0,
  7041. UpdateInsertDelete = 1,
  7042. }
  7043. /// <summary>
  7044. ///Used to sort self-referenced table's rows
  7045. ///</summary>
  7046. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7047. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  7048. private global::System.Data.DataRelation _relation;
  7049. private int _childFirst;
  7050. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7052. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  7053. this._relation = relation;
  7054. if (childFirst) {
  7055. this._childFirst = -1;
  7056. }
  7057. else {
  7058. this._childFirst = 1;
  7059. }
  7060. }
  7061. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7062. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7063. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  7064. global::System.Diagnostics.Debug.Assert((row != null));
  7065. global::System.Data.DataRow root = row;
  7066. distance = 0;
  7067. 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>();
  7068. traversedRows[row] = row;
  7069. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  7070. for (
  7071. ; ((parent != null)
  7072. && (traversedRows.ContainsKey(parent) == false));
  7073. ) {
  7074. distance = (distance + 1);
  7075. root = parent;
  7076. traversedRows[parent] = parent;
  7077. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  7078. }
  7079. if ((distance == 0)) {
  7080. traversedRows.Clear();
  7081. traversedRows[row] = row;
  7082. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  7083. for (
  7084. ; ((parent != null)
  7085. && (traversedRows.ContainsKey(parent) == false));
  7086. ) {
  7087. distance = (distance + 1);
  7088. root = parent;
  7089. traversedRows[parent] = parent;
  7090. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  7091. }
  7092. }
  7093. return root;
  7094. }
  7095. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7096. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7097. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  7098. if (object.ReferenceEquals(row1, row2)) {
  7099. return 0;
  7100. }
  7101. if ((row1 == null)) {
  7102. return -1;
  7103. }
  7104. if ((row2 == null)) {
  7105. return 1;
  7106. }
  7107. int distance1 = 0;
  7108. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  7109. int distance2 = 0;
  7110. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  7111. if (object.ReferenceEquals(root1, root2)) {
  7112. return (this._childFirst * distance1.CompareTo(distance2));
  7113. }
  7114. else {
  7115. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  7116. && (root2.Table != null)));
  7117. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  7118. return -1;
  7119. }
  7120. else {
  7121. return 1;
  7122. }
  7123. }
  7124. }
  7125. }
  7126. }
  7127. }
  7128. #pragma warning restore 1591