fab2021DataSet.Designer.cs 382 KB

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