FabrikaLDADataSet.Designer.cs 481 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987
  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("FabrikaLDADataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class FabrikaLDADataSet : global::System.Data.DataSet {
  22. private ClothDataTable tableCloth;
  23. private ColorsDataTable tableColors;
  24. private FurnituraDataTable tableFurnitura;
  25. private OrdersDataTable tableOrders;
  26. private ProductsDataTable tableProducts;
  27. private RolesDataTable tableRoles;
  28. private UsersDataTable tableUsers;
  29. private global::System.Data.DataRelation relationFK_Cloth_Colors;
  30. private global::System.Data.DataRelation relationFK_Orders_Cloth;
  31. private global::System.Data.DataRelation relationFK_Orders_Furnitura;
  32. private global::System.Data.DataRelation relationFK_Orders_Products;
  33. private global::System.Data.DataRelation relationFK_Orders_Users_Client;
  34. private global::System.Data.DataRelation relationFK_Orders_Users_Manager;
  35. private global::System.Data.DataRelation relationFK_Users_Roles;
  36. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  37. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  38. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  39. public FabrikaLDADataSet() {
  40. this.BeginInit();
  41. this.InitClass();
  42. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  43. base.Tables.CollectionChanged += schemaChangedHandler;
  44. base.Relations.CollectionChanged += schemaChangedHandler;
  45. this.EndInit();
  46. }
  47. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  48. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  49. protected FabrikaLDADataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  50. base(info, context, false) {
  51. if ((this.IsBinarySerialized(info, context) == true)) {
  52. this.InitVars(false);
  53. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  54. this.Tables.CollectionChanged += schemaChangedHandler1;
  55. this.Relations.CollectionChanged += schemaChangedHandler1;
  56. return;
  57. }
  58. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  59. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  60. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  61. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  62. if ((ds.Tables["Cloth"] != null)) {
  63. base.Tables.Add(new ClothDataTable(ds.Tables["Cloth"]));
  64. }
  65. if ((ds.Tables["Colors"] != null)) {
  66. base.Tables.Add(new ColorsDataTable(ds.Tables["Colors"]));
  67. }
  68. if ((ds.Tables["Furnitura"] != null)) {
  69. base.Tables.Add(new FurnituraDataTable(ds.Tables["Furnitura"]));
  70. }
  71. if ((ds.Tables["Orders"] != null)) {
  72. base.Tables.Add(new OrdersDataTable(ds.Tables["Orders"]));
  73. }
  74. if ((ds.Tables["Products"] != null)) {
  75. base.Tables.Add(new ProductsDataTable(ds.Tables["Products"]));
  76. }
  77. if ((ds.Tables["Roles"] != null)) {
  78. base.Tables.Add(new RolesDataTable(ds.Tables["Roles"]));
  79. }
  80. if ((ds.Tables["Users"] != null)) {
  81. base.Tables.Add(new UsersDataTable(ds.Tables["Users"]));
  82. }
  83. this.DataSetName = ds.DataSetName;
  84. this.Prefix = ds.Prefix;
  85. this.Namespace = ds.Namespace;
  86. this.Locale = ds.Locale;
  87. this.CaseSensitive = ds.CaseSensitive;
  88. this.EnforceConstraints = ds.EnforceConstraints;
  89. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  90. this.InitVars();
  91. }
  92. else {
  93. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  94. }
  95. this.GetSerializationData(info, context);
  96. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  97. base.Tables.CollectionChanged += schemaChangedHandler;
  98. this.Relations.CollectionChanged += schemaChangedHandler;
  99. }
  100. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  101. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  102. [global::System.ComponentModel.Browsable(false)]
  103. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  104. public ClothDataTable Cloth {
  105. get {
  106. return this.tableCloth;
  107. }
  108. }
  109. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  110. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  111. [global::System.ComponentModel.Browsable(false)]
  112. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  113. public ColorsDataTable Colors {
  114. get {
  115. return this.tableColors;
  116. }
  117. }
  118. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  119. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  120. [global::System.ComponentModel.Browsable(false)]
  121. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  122. public FurnituraDataTable Furnitura {
  123. get {
  124. return this.tableFurnitura;
  125. }
  126. }
  127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  128. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  129. [global::System.ComponentModel.Browsable(false)]
  130. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  131. public OrdersDataTable Orders {
  132. get {
  133. return this.tableOrders;
  134. }
  135. }
  136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  137. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  138. [global::System.ComponentModel.Browsable(false)]
  139. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  140. public ProductsDataTable Products {
  141. get {
  142. return this.tableProducts;
  143. }
  144. }
  145. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  146. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  147. [global::System.ComponentModel.Browsable(false)]
  148. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  149. public RolesDataTable Roles {
  150. get {
  151. return this.tableRoles;
  152. }
  153. }
  154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  155. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  156. [global::System.ComponentModel.Browsable(false)]
  157. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  158. public UsersDataTable Users {
  159. get {
  160. return this.tableUsers;
  161. }
  162. }
  163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  164. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  165. [global::System.ComponentModel.BrowsableAttribute(true)]
  166. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  167. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  168. get {
  169. return this._schemaSerializationMode;
  170. }
  171. set {
  172. this._schemaSerializationMode = value;
  173. }
  174. }
  175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  176. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  177. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  178. public new global::System.Data.DataTableCollection Tables {
  179. get {
  180. return base.Tables;
  181. }
  182. }
  183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  185. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  186. public new global::System.Data.DataRelationCollection Relations {
  187. get {
  188. return base.Relations;
  189. }
  190. }
  191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  192. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  193. protected override void InitializeDerivedDataSet() {
  194. this.BeginInit();
  195. this.InitClass();
  196. this.EndInit();
  197. }
  198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  199. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  200. public override global::System.Data.DataSet Clone() {
  201. FabrikaLDADataSet cln = ((FabrikaLDADataSet)(base.Clone()));
  202. cln.InitVars();
  203. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  204. return cln;
  205. }
  206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  207. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  208. protected override bool ShouldSerializeTables() {
  209. return false;
  210. }
  211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  213. protected override bool ShouldSerializeRelations() {
  214. return false;
  215. }
  216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  218. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  219. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  220. this.Reset();
  221. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  222. ds.ReadXml(reader);
  223. if ((ds.Tables["Cloth"] != null)) {
  224. base.Tables.Add(new ClothDataTable(ds.Tables["Cloth"]));
  225. }
  226. if ((ds.Tables["Colors"] != null)) {
  227. base.Tables.Add(new ColorsDataTable(ds.Tables["Colors"]));
  228. }
  229. if ((ds.Tables["Furnitura"] != null)) {
  230. base.Tables.Add(new FurnituraDataTable(ds.Tables["Furnitura"]));
  231. }
  232. if ((ds.Tables["Orders"] != null)) {
  233. base.Tables.Add(new OrdersDataTable(ds.Tables["Orders"]));
  234. }
  235. if ((ds.Tables["Products"] != null)) {
  236. base.Tables.Add(new ProductsDataTable(ds.Tables["Products"]));
  237. }
  238. if ((ds.Tables["Roles"] != null)) {
  239. base.Tables.Add(new RolesDataTable(ds.Tables["Roles"]));
  240. }
  241. if ((ds.Tables["Users"] != null)) {
  242. base.Tables.Add(new UsersDataTable(ds.Tables["Users"]));
  243. }
  244. this.DataSetName = ds.DataSetName;
  245. this.Prefix = ds.Prefix;
  246. this.Namespace = ds.Namespace;
  247. this.Locale = ds.Locale;
  248. this.CaseSensitive = ds.CaseSensitive;
  249. this.EnforceConstraints = ds.EnforceConstraints;
  250. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  251. this.InitVars();
  252. }
  253. else {
  254. this.ReadXml(reader);
  255. this.InitVars();
  256. }
  257. }
  258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  260. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  261. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  262. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  263. stream.Position = 0;
  264. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  265. }
  266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  268. internal void InitVars() {
  269. this.InitVars(true);
  270. }
  271. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  272. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  273. internal void InitVars(bool initTable) {
  274. this.tableCloth = ((ClothDataTable)(base.Tables["Cloth"]));
  275. if ((initTable == true)) {
  276. if ((this.tableCloth != null)) {
  277. this.tableCloth.InitVars();
  278. }
  279. }
  280. this.tableColors = ((ColorsDataTable)(base.Tables["Colors"]));
  281. if ((initTable == true)) {
  282. if ((this.tableColors != null)) {
  283. this.tableColors.InitVars();
  284. }
  285. }
  286. this.tableFurnitura = ((FurnituraDataTable)(base.Tables["Furnitura"]));
  287. if ((initTable == true)) {
  288. if ((this.tableFurnitura != null)) {
  289. this.tableFurnitura.InitVars();
  290. }
  291. }
  292. this.tableOrders = ((OrdersDataTable)(base.Tables["Orders"]));
  293. if ((initTable == true)) {
  294. if ((this.tableOrders != null)) {
  295. this.tableOrders.InitVars();
  296. }
  297. }
  298. this.tableProducts = ((ProductsDataTable)(base.Tables["Products"]));
  299. if ((initTable == true)) {
  300. if ((this.tableProducts != null)) {
  301. this.tableProducts.InitVars();
  302. }
  303. }
  304. this.tableRoles = ((RolesDataTable)(base.Tables["Roles"]));
  305. if ((initTable == true)) {
  306. if ((this.tableRoles != null)) {
  307. this.tableRoles.InitVars();
  308. }
  309. }
  310. this.tableUsers = ((UsersDataTable)(base.Tables["Users"]));
  311. if ((initTable == true)) {
  312. if ((this.tableUsers != null)) {
  313. this.tableUsers.InitVars();
  314. }
  315. }
  316. this.relationFK_Cloth_Colors = this.Relations["FK_Cloth_Colors"];
  317. this.relationFK_Orders_Cloth = this.Relations["FK_Orders_Cloth"];
  318. this.relationFK_Orders_Furnitura = this.Relations["FK_Orders_Furnitura"];
  319. this.relationFK_Orders_Products = this.Relations["FK_Orders_Products"];
  320. this.relationFK_Orders_Users_Client = this.Relations["FK_Orders_Users_Client"];
  321. this.relationFK_Orders_Users_Manager = this.Relations["FK_Orders_Users_Manager"];
  322. this.relationFK_Users_Roles = this.Relations["FK_Users_Roles"];
  323. }
  324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  326. private void InitClass() {
  327. this.DataSetName = "FabrikaLDADataSet";
  328. this.Prefix = "";
  329. this.Namespace = "http://tempuri.org/FabrikaLDADataSet.xsd";
  330. this.EnforceConstraints = true;
  331. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  332. this.tableCloth = new ClothDataTable();
  333. base.Tables.Add(this.tableCloth);
  334. this.tableColors = new ColorsDataTable();
  335. base.Tables.Add(this.tableColors);
  336. this.tableFurnitura = new FurnituraDataTable();
  337. base.Tables.Add(this.tableFurnitura);
  338. this.tableOrders = new OrdersDataTable();
  339. base.Tables.Add(this.tableOrders);
  340. this.tableProducts = new ProductsDataTable();
  341. base.Tables.Add(this.tableProducts);
  342. this.tableRoles = new RolesDataTable();
  343. base.Tables.Add(this.tableRoles);
  344. this.tableUsers = new UsersDataTable();
  345. base.Tables.Add(this.tableUsers);
  346. this.relationFK_Cloth_Colors = new global::System.Data.DataRelation("FK_Cloth_Colors", new global::System.Data.DataColumn[] {
  347. this.tableColors.IdColorColumn}, new global::System.Data.DataColumn[] {
  348. this.tableCloth.IdColorColumn}, false);
  349. this.Relations.Add(this.relationFK_Cloth_Colors);
  350. this.relationFK_Orders_Cloth = new global::System.Data.DataRelation("FK_Orders_Cloth", new global::System.Data.DataColumn[] {
  351. this.tableCloth.IdClothColumn}, new global::System.Data.DataColumn[] {
  352. this.tableOrders.IdClothColumn}, false);
  353. this.Relations.Add(this.relationFK_Orders_Cloth);
  354. this.relationFK_Orders_Furnitura = new global::System.Data.DataRelation("FK_Orders_Furnitura", new global::System.Data.DataColumn[] {
  355. this.tableFurnitura.idfurColumn}, new global::System.Data.DataColumn[] {
  356. this.tableOrders.IdFurColumn}, false);
  357. this.Relations.Add(this.relationFK_Orders_Furnitura);
  358. this.relationFK_Orders_Products = new global::System.Data.DataRelation("FK_Orders_Products", new global::System.Data.DataColumn[] {
  359. this.tableProducts.IdProductColumn}, new global::System.Data.DataColumn[] {
  360. this.tableOrders.IdProductColumn}, false);
  361. this.Relations.Add(this.relationFK_Orders_Products);
  362. this.relationFK_Orders_Users_Client = new global::System.Data.DataRelation("FK_Orders_Users_Client", new global::System.Data.DataColumn[] {
  363. this.tableUsers.IdUserColumn}, new global::System.Data.DataColumn[] {
  364. this.tableOrders.IdClientColumn}, false);
  365. this.Relations.Add(this.relationFK_Orders_Users_Client);
  366. this.relationFK_Orders_Users_Manager = new global::System.Data.DataRelation("FK_Orders_Users_Manager", new global::System.Data.DataColumn[] {
  367. this.tableUsers.IdUserColumn}, new global::System.Data.DataColumn[] {
  368. this.tableOrders.IdManagerColumn}, false);
  369. this.Relations.Add(this.relationFK_Orders_Users_Manager);
  370. this.relationFK_Users_Roles = new global::System.Data.DataRelation("FK_Users_Roles", new global::System.Data.DataColumn[] {
  371. this.tableRoles.IdRoleColumn}, new global::System.Data.DataColumn[] {
  372. this.tableUsers.RoleColumn}, false);
  373. this.Relations.Add(this.relationFK_Users_Roles);
  374. }
  375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  377. private bool ShouldSerializeCloth() {
  378. return false;
  379. }
  380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  382. private bool ShouldSerializeColors() {
  383. return false;
  384. }
  385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  386. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  387. private bool ShouldSerializeFurnitura() {
  388. return false;
  389. }
  390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  392. private bool ShouldSerializeOrders() {
  393. return false;
  394. }
  395. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  396. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  397. private bool ShouldSerializeProducts() {
  398. return false;
  399. }
  400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  402. private bool ShouldSerializeRoles() {
  403. return false;
  404. }
  405. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  406. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  407. private bool ShouldSerializeUsers() {
  408. return false;
  409. }
  410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  411. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  412. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  413. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  414. this.InitVars();
  415. }
  416. }
  417. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  418. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  419. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  420. FabrikaLDADataSet ds = new FabrikaLDADataSet();
  421. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  422. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  423. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  424. any.Namespace = ds.Namespace;
  425. sequence.Items.Add(any);
  426. type.Particle = sequence;
  427. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  428. if (xs.Contains(dsSchema.TargetNamespace)) {
  429. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  430. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  431. try {
  432. global::System.Xml.Schema.XmlSchema schema = null;
  433. dsSchema.Write(s1);
  434. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  435. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  436. s2.SetLength(0);
  437. schema.Write(s2);
  438. if ((s1.Length == s2.Length)) {
  439. s1.Position = 0;
  440. s2.Position = 0;
  441. for (; ((s1.Position != s1.Length)
  442. && (s1.ReadByte() == s2.ReadByte())); ) {
  443. ;
  444. }
  445. if ((s1.Position == s1.Length)) {
  446. return type;
  447. }
  448. }
  449. }
  450. }
  451. finally {
  452. if ((s1 != null)) {
  453. s1.Close();
  454. }
  455. if ((s2 != null)) {
  456. s2.Close();
  457. }
  458. }
  459. }
  460. xs.Add(dsSchema);
  461. return type;
  462. }
  463. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  464. public delegate void ClothRowChangeEventHandler(object sender, ClothRowChangeEvent e);
  465. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  466. public delegate void ColorsRowChangeEventHandler(object sender, ColorsRowChangeEvent e);
  467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  468. public delegate void FurnituraRowChangeEventHandler(object sender, FurnituraRowChangeEvent e);
  469. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  470. public delegate void OrdersRowChangeEventHandler(object sender, OrdersRowChangeEvent e);
  471. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  472. public delegate void ProductsRowChangeEventHandler(object sender, ProductsRowChangeEvent e);
  473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  474. public delegate void RolesRowChangeEventHandler(object sender, RolesRowChangeEvent e);
  475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  476. public delegate void UsersRowChangeEventHandler(object sender, UsersRowChangeEvent e);
  477. /// <summary>
  478. ///Represents the strongly named DataTable class.
  479. ///</summary>
  480. [global::System.Serializable()]
  481. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  482. public partial class ClothDataTable : global::System.Data.TypedTableBase<ClothRow> {
  483. private global::System.Data.DataColumn columnIdCloth;
  484. private global::System.Data.DataColumn columnTitle;
  485. private global::System.Data.DataColumn columnIdColor;
  486. private global::System.Data.DataColumn columnWeight;
  487. private global::System.Data.DataColumn columnHeight;
  488. private global::System.Data.DataColumn columnNote;
  489. private global::System.Data.DataColumn columnPhoto;
  490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  492. public ClothDataTable() {
  493. this.TableName = "Cloth";
  494. this.BeginInit();
  495. this.InitClass();
  496. this.EndInit();
  497. }
  498. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  499. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  500. internal ClothDataTable(global::System.Data.DataTable table) {
  501. this.TableName = table.TableName;
  502. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  503. this.CaseSensitive = table.CaseSensitive;
  504. }
  505. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  506. this.Locale = table.Locale;
  507. }
  508. if ((table.Namespace != table.DataSet.Namespace)) {
  509. this.Namespace = table.Namespace;
  510. }
  511. this.Prefix = table.Prefix;
  512. this.MinimumCapacity = table.MinimumCapacity;
  513. }
  514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  515. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  516. protected ClothDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  517. base(info, context) {
  518. this.InitVars();
  519. }
  520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  521. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  522. public global::System.Data.DataColumn IdClothColumn {
  523. get {
  524. return this.columnIdCloth;
  525. }
  526. }
  527. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  528. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  529. public global::System.Data.DataColumn TitleColumn {
  530. get {
  531. return this.columnTitle;
  532. }
  533. }
  534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  535. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  536. public global::System.Data.DataColumn IdColorColumn {
  537. get {
  538. return this.columnIdColor;
  539. }
  540. }
  541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  543. public global::System.Data.DataColumn WeightColumn {
  544. get {
  545. return this.columnWeight;
  546. }
  547. }
  548. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  549. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  550. public global::System.Data.DataColumn HeightColumn {
  551. get {
  552. return this.columnHeight;
  553. }
  554. }
  555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  556. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  557. public global::System.Data.DataColumn NoteColumn {
  558. get {
  559. return this.columnNote;
  560. }
  561. }
  562. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  563. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  564. public global::System.Data.DataColumn PhotoColumn {
  565. get {
  566. return this.columnPhoto;
  567. }
  568. }
  569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  570. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  571. [global::System.ComponentModel.Browsable(false)]
  572. public int Count {
  573. get {
  574. return this.Rows.Count;
  575. }
  576. }
  577. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  578. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  579. public ClothRow this[int index] {
  580. get {
  581. return ((ClothRow)(this.Rows[index]));
  582. }
  583. }
  584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  585. public event ClothRowChangeEventHandler ClothRowChanging;
  586. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  587. public event ClothRowChangeEventHandler ClothRowChanged;
  588. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  589. public event ClothRowChangeEventHandler ClothRowDeleting;
  590. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  591. public event ClothRowChangeEventHandler ClothRowDeleted;
  592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  594. public void AddClothRow(ClothRow row) {
  595. this.Rows.Add(row);
  596. }
  597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  598. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  599. public ClothRow AddClothRow(string Title, ColorsRow parentColorsRowByFK_Cloth_Colors, int Weight, int Height, string Note, string Photo) {
  600. ClothRow rowClothRow = ((ClothRow)(this.NewRow()));
  601. object[] columnValuesArray = new object[] {
  602. null,
  603. Title,
  604. null,
  605. Weight,
  606. Height,
  607. Note,
  608. Photo};
  609. if ((parentColorsRowByFK_Cloth_Colors != null)) {
  610. columnValuesArray[2] = parentColorsRowByFK_Cloth_Colors[0];
  611. }
  612. rowClothRow.ItemArray = columnValuesArray;
  613. this.Rows.Add(rowClothRow);
  614. return rowClothRow;
  615. }
  616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  617. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  618. public ClothRow FindByIdCloth(int IdCloth) {
  619. return ((ClothRow)(this.Rows.Find(new object[] {
  620. IdCloth})));
  621. }
  622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  623. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  624. public override global::System.Data.DataTable Clone() {
  625. ClothDataTable cln = ((ClothDataTable)(base.Clone()));
  626. cln.InitVars();
  627. return cln;
  628. }
  629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  631. protected override global::System.Data.DataTable CreateInstance() {
  632. return new ClothDataTable();
  633. }
  634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  636. internal void InitVars() {
  637. this.columnIdCloth = base.Columns["IdCloth"];
  638. this.columnTitle = base.Columns["Title"];
  639. this.columnIdColor = base.Columns["IdColor"];
  640. this.columnWeight = base.Columns["Weight"];
  641. this.columnHeight = base.Columns["Height"];
  642. this.columnNote = base.Columns["Note"];
  643. this.columnPhoto = base.Columns["Photo"];
  644. }
  645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  646. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  647. private void InitClass() {
  648. this.columnIdCloth = new global::System.Data.DataColumn("IdCloth", typeof(int), null, global::System.Data.MappingType.Element);
  649. base.Columns.Add(this.columnIdCloth);
  650. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  651. base.Columns.Add(this.columnTitle);
  652. this.columnIdColor = new global::System.Data.DataColumn("IdColor", typeof(int), null, global::System.Data.MappingType.Element);
  653. base.Columns.Add(this.columnIdColor);
  654. this.columnWeight = new global::System.Data.DataColumn("Weight", typeof(int), null, global::System.Data.MappingType.Element);
  655. base.Columns.Add(this.columnWeight);
  656. this.columnHeight = new global::System.Data.DataColumn("Height", typeof(int), null, global::System.Data.MappingType.Element);
  657. base.Columns.Add(this.columnHeight);
  658. this.columnNote = new global::System.Data.DataColumn("Note", typeof(string), null, global::System.Data.MappingType.Element);
  659. base.Columns.Add(this.columnNote);
  660. this.columnPhoto = new global::System.Data.DataColumn("Photo", typeof(string), null, global::System.Data.MappingType.Element);
  661. base.Columns.Add(this.columnPhoto);
  662. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  663. this.columnIdCloth}, true));
  664. this.columnIdCloth.AutoIncrement = true;
  665. this.columnIdCloth.AutoIncrementSeed = -1;
  666. this.columnIdCloth.AutoIncrementStep = -1;
  667. this.columnIdCloth.AllowDBNull = false;
  668. this.columnIdCloth.ReadOnly = true;
  669. this.columnIdCloth.Unique = true;
  670. this.columnTitle.MaxLength = 50;
  671. this.columnNote.MaxLength = 50;
  672. this.columnPhoto.MaxLength = 50;
  673. }
  674. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  675. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  676. public ClothRow NewClothRow() {
  677. return ((ClothRow)(this.NewRow()));
  678. }
  679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  680. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  681. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  682. return new ClothRow(builder);
  683. }
  684. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  685. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  686. protected override global::System.Type GetRowType() {
  687. return typeof(ClothRow);
  688. }
  689. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  690. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  691. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  692. base.OnRowChanged(e);
  693. if ((this.ClothRowChanged != null)) {
  694. this.ClothRowChanged(this, new ClothRowChangeEvent(((ClothRow)(e.Row)), e.Action));
  695. }
  696. }
  697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  698. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  699. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  700. base.OnRowChanging(e);
  701. if ((this.ClothRowChanging != null)) {
  702. this.ClothRowChanging(this, new ClothRowChangeEvent(((ClothRow)(e.Row)), e.Action));
  703. }
  704. }
  705. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  706. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  707. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  708. base.OnRowDeleted(e);
  709. if ((this.ClothRowDeleted != null)) {
  710. this.ClothRowDeleted(this, new ClothRowChangeEvent(((ClothRow)(e.Row)), e.Action));
  711. }
  712. }
  713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  715. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  716. base.OnRowDeleting(e);
  717. if ((this.ClothRowDeleting != null)) {
  718. this.ClothRowDeleting(this, new ClothRowChangeEvent(((ClothRow)(e.Row)), e.Action));
  719. }
  720. }
  721. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  722. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  723. public void RemoveClothRow(ClothRow row) {
  724. this.Rows.Remove(row);
  725. }
  726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  728. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  729. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  730. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  731. FabrikaLDADataSet ds = new FabrikaLDADataSet();
  732. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  733. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  734. any1.MinOccurs = new decimal(0);
  735. any1.MaxOccurs = decimal.MaxValue;
  736. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  737. sequence.Items.Add(any1);
  738. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  739. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  740. any2.MinOccurs = new decimal(1);
  741. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  742. sequence.Items.Add(any2);
  743. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  744. attribute1.Name = "namespace";
  745. attribute1.FixedValue = ds.Namespace;
  746. type.Attributes.Add(attribute1);
  747. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  748. attribute2.Name = "tableTypeName";
  749. attribute2.FixedValue = "ClothDataTable";
  750. type.Attributes.Add(attribute2);
  751. type.Particle = sequence;
  752. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  753. if (xs.Contains(dsSchema.TargetNamespace)) {
  754. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  755. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  756. try {
  757. global::System.Xml.Schema.XmlSchema schema = null;
  758. dsSchema.Write(s1);
  759. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  760. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  761. s2.SetLength(0);
  762. schema.Write(s2);
  763. if ((s1.Length == s2.Length)) {
  764. s1.Position = 0;
  765. s2.Position = 0;
  766. for (; ((s1.Position != s1.Length)
  767. && (s1.ReadByte() == s2.ReadByte())); ) {
  768. ;
  769. }
  770. if ((s1.Position == s1.Length)) {
  771. return type;
  772. }
  773. }
  774. }
  775. }
  776. finally {
  777. if ((s1 != null)) {
  778. s1.Close();
  779. }
  780. if ((s2 != null)) {
  781. s2.Close();
  782. }
  783. }
  784. }
  785. xs.Add(dsSchema);
  786. return type;
  787. }
  788. }
  789. /// <summary>
  790. ///Represents the strongly named DataTable class.
  791. ///</summary>
  792. [global::System.Serializable()]
  793. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  794. public partial class ColorsDataTable : global::System.Data.TypedTableBase<ColorsRow> {
  795. private global::System.Data.DataColumn columnIdColor;
  796. private global::System.Data.DataColumn columnTitle;
  797. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  798. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  799. public ColorsDataTable() {
  800. this.TableName = "Colors";
  801. this.BeginInit();
  802. this.InitClass();
  803. this.EndInit();
  804. }
  805. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  806. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  807. internal ColorsDataTable(global::System.Data.DataTable table) {
  808. this.TableName = table.TableName;
  809. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  810. this.CaseSensitive = table.CaseSensitive;
  811. }
  812. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  813. this.Locale = table.Locale;
  814. }
  815. if ((table.Namespace != table.DataSet.Namespace)) {
  816. this.Namespace = table.Namespace;
  817. }
  818. this.Prefix = table.Prefix;
  819. this.MinimumCapacity = table.MinimumCapacity;
  820. }
  821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  822. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  823. protected ColorsDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  824. base(info, context) {
  825. this.InitVars();
  826. }
  827. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  828. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  829. public global::System.Data.DataColumn IdColorColumn {
  830. get {
  831. return this.columnIdColor;
  832. }
  833. }
  834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  835. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  836. public global::System.Data.DataColumn TitleColumn {
  837. get {
  838. return this.columnTitle;
  839. }
  840. }
  841. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  842. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  843. [global::System.ComponentModel.Browsable(false)]
  844. public int Count {
  845. get {
  846. return this.Rows.Count;
  847. }
  848. }
  849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  850. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  851. public ColorsRow this[int index] {
  852. get {
  853. return ((ColorsRow)(this.Rows[index]));
  854. }
  855. }
  856. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  857. public event ColorsRowChangeEventHandler ColorsRowChanging;
  858. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  859. public event ColorsRowChangeEventHandler ColorsRowChanged;
  860. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  861. public event ColorsRowChangeEventHandler ColorsRowDeleting;
  862. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  863. public event ColorsRowChangeEventHandler ColorsRowDeleted;
  864. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  865. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  866. public void AddColorsRow(ColorsRow row) {
  867. this.Rows.Add(row);
  868. }
  869. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  870. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  871. public ColorsRow AddColorsRow(string Title) {
  872. ColorsRow rowColorsRow = ((ColorsRow)(this.NewRow()));
  873. object[] columnValuesArray = new object[] {
  874. null,
  875. Title};
  876. rowColorsRow.ItemArray = columnValuesArray;
  877. this.Rows.Add(rowColorsRow);
  878. return rowColorsRow;
  879. }
  880. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  881. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  882. public ColorsRow FindByIdColor(int IdColor) {
  883. return ((ColorsRow)(this.Rows.Find(new object[] {
  884. IdColor})));
  885. }
  886. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  887. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  888. public override global::System.Data.DataTable Clone() {
  889. ColorsDataTable cln = ((ColorsDataTable)(base.Clone()));
  890. cln.InitVars();
  891. return cln;
  892. }
  893. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  894. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  895. protected override global::System.Data.DataTable CreateInstance() {
  896. return new ColorsDataTable();
  897. }
  898. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  899. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  900. internal void InitVars() {
  901. this.columnIdColor = base.Columns["IdColor"];
  902. this.columnTitle = base.Columns["Title"];
  903. }
  904. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  905. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  906. private void InitClass() {
  907. this.columnIdColor = new global::System.Data.DataColumn("IdColor", typeof(int), null, global::System.Data.MappingType.Element);
  908. base.Columns.Add(this.columnIdColor);
  909. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  910. base.Columns.Add(this.columnTitle);
  911. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  912. this.columnIdColor}, true));
  913. this.columnIdColor.AutoIncrement = true;
  914. this.columnIdColor.AutoIncrementSeed = -1;
  915. this.columnIdColor.AutoIncrementStep = -1;
  916. this.columnIdColor.AllowDBNull = false;
  917. this.columnIdColor.ReadOnly = true;
  918. this.columnIdColor.Unique = true;
  919. this.columnTitle.MaxLength = 50;
  920. }
  921. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  922. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  923. public ColorsRow NewColorsRow() {
  924. return ((ColorsRow)(this.NewRow()));
  925. }
  926. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  927. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  928. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  929. return new ColorsRow(builder);
  930. }
  931. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  932. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  933. protected override global::System.Type GetRowType() {
  934. return typeof(ColorsRow);
  935. }
  936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  937. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  938. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  939. base.OnRowChanged(e);
  940. if ((this.ColorsRowChanged != null)) {
  941. this.ColorsRowChanged(this, new ColorsRowChangeEvent(((ColorsRow)(e.Row)), e.Action));
  942. }
  943. }
  944. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  945. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  946. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  947. base.OnRowChanging(e);
  948. if ((this.ColorsRowChanging != null)) {
  949. this.ColorsRowChanging(this, new ColorsRowChangeEvent(((ColorsRow)(e.Row)), e.Action));
  950. }
  951. }
  952. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  953. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  954. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  955. base.OnRowDeleted(e);
  956. if ((this.ColorsRowDeleted != null)) {
  957. this.ColorsRowDeleted(this, new ColorsRowChangeEvent(((ColorsRow)(e.Row)), e.Action));
  958. }
  959. }
  960. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  961. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  962. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  963. base.OnRowDeleting(e);
  964. if ((this.ColorsRowDeleting != null)) {
  965. this.ColorsRowDeleting(this, new ColorsRowChangeEvent(((ColorsRow)(e.Row)), e.Action));
  966. }
  967. }
  968. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  969. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  970. public void RemoveColorsRow(ColorsRow row) {
  971. this.Rows.Remove(row);
  972. }
  973. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  974. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  975. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  976. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  977. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  978. FabrikaLDADataSet ds = new FabrikaLDADataSet();
  979. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  980. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  981. any1.MinOccurs = new decimal(0);
  982. any1.MaxOccurs = decimal.MaxValue;
  983. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  984. sequence.Items.Add(any1);
  985. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  986. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  987. any2.MinOccurs = new decimal(1);
  988. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  989. sequence.Items.Add(any2);
  990. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  991. attribute1.Name = "namespace";
  992. attribute1.FixedValue = ds.Namespace;
  993. type.Attributes.Add(attribute1);
  994. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  995. attribute2.Name = "tableTypeName";
  996. attribute2.FixedValue = "ColorsDataTable";
  997. type.Attributes.Add(attribute2);
  998. type.Particle = sequence;
  999. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1000. if (xs.Contains(dsSchema.TargetNamespace)) {
  1001. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1002. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1003. try {
  1004. global::System.Xml.Schema.XmlSchema schema = null;
  1005. dsSchema.Write(s1);
  1006. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1007. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1008. s2.SetLength(0);
  1009. schema.Write(s2);
  1010. if ((s1.Length == s2.Length)) {
  1011. s1.Position = 0;
  1012. s2.Position = 0;
  1013. for (; ((s1.Position != s1.Length)
  1014. && (s1.ReadByte() == s2.ReadByte())); ) {
  1015. ;
  1016. }
  1017. if ((s1.Position == s1.Length)) {
  1018. return type;
  1019. }
  1020. }
  1021. }
  1022. }
  1023. finally {
  1024. if ((s1 != null)) {
  1025. s1.Close();
  1026. }
  1027. if ((s2 != null)) {
  1028. s2.Close();
  1029. }
  1030. }
  1031. }
  1032. xs.Add(dsSchema);
  1033. return type;
  1034. }
  1035. }
  1036. /// <summary>
  1037. ///Represents the strongly named DataTable class.
  1038. ///</summary>
  1039. [global::System.Serializable()]
  1040. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1041. public partial class FurnituraDataTable : global::System.Data.TypedTableBase<FurnituraRow> {
  1042. private global::System.Data.DataColumn columnidfur;
  1043. private global::System.Data.DataColumn columnnamefur;
  1044. private global::System.Data.DataColumn columnphoto;
  1045. private global::System.Data.DataColumn columncountfur;
  1046. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1047. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1048. public FurnituraDataTable() {
  1049. this.TableName = "Furnitura";
  1050. this.BeginInit();
  1051. this.InitClass();
  1052. this.EndInit();
  1053. }
  1054. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1055. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1056. internal FurnituraDataTable(global::System.Data.DataTable table) {
  1057. this.TableName = table.TableName;
  1058. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1059. this.CaseSensitive = table.CaseSensitive;
  1060. }
  1061. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1062. this.Locale = table.Locale;
  1063. }
  1064. if ((table.Namespace != table.DataSet.Namespace)) {
  1065. this.Namespace = table.Namespace;
  1066. }
  1067. this.Prefix = table.Prefix;
  1068. this.MinimumCapacity = table.MinimumCapacity;
  1069. }
  1070. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1071. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1072. protected FurnituraDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1073. base(info, context) {
  1074. this.InitVars();
  1075. }
  1076. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1077. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1078. public global::System.Data.DataColumn idfurColumn {
  1079. get {
  1080. return this.columnidfur;
  1081. }
  1082. }
  1083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1085. public global::System.Data.DataColumn namefurColumn {
  1086. get {
  1087. return this.columnnamefur;
  1088. }
  1089. }
  1090. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1091. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1092. public global::System.Data.DataColumn photoColumn {
  1093. get {
  1094. return this.columnphoto;
  1095. }
  1096. }
  1097. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1098. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1099. public global::System.Data.DataColumn countfurColumn {
  1100. get {
  1101. return this.columncountfur;
  1102. }
  1103. }
  1104. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1105. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1106. [global::System.ComponentModel.Browsable(false)]
  1107. public int Count {
  1108. get {
  1109. return this.Rows.Count;
  1110. }
  1111. }
  1112. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1113. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1114. public FurnituraRow this[int index] {
  1115. get {
  1116. return ((FurnituraRow)(this.Rows[index]));
  1117. }
  1118. }
  1119. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1120. public event FurnituraRowChangeEventHandler FurnituraRowChanging;
  1121. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1122. public event FurnituraRowChangeEventHandler FurnituraRowChanged;
  1123. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1124. public event FurnituraRowChangeEventHandler FurnituraRowDeleting;
  1125. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1126. public event FurnituraRowChangeEventHandler FurnituraRowDeleted;
  1127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1128. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1129. public void AddFurnituraRow(FurnituraRow row) {
  1130. this.Rows.Add(row);
  1131. }
  1132. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1133. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1134. public FurnituraRow AddFurnituraRow(string namefur, string photo, int countfur) {
  1135. FurnituraRow rowFurnituraRow = ((FurnituraRow)(this.NewRow()));
  1136. object[] columnValuesArray = new object[] {
  1137. null,
  1138. namefur,
  1139. photo,
  1140. countfur};
  1141. rowFurnituraRow.ItemArray = columnValuesArray;
  1142. this.Rows.Add(rowFurnituraRow);
  1143. return rowFurnituraRow;
  1144. }
  1145. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1146. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1147. public FurnituraRow FindByidfur(int idfur) {
  1148. return ((FurnituraRow)(this.Rows.Find(new object[] {
  1149. idfur})));
  1150. }
  1151. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1152. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1153. public override global::System.Data.DataTable Clone() {
  1154. FurnituraDataTable cln = ((FurnituraDataTable)(base.Clone()));
  1155. cln.InitVars();
  1156. return cln;
  1157. }
  1158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1159. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1160. protected override global::System.Data.DataTable CreateInstance() {
  1161. return new FurnituraDataTable();
  1162. }
  1163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1164. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1165. internal void InitVars() {
  1166. this.columnidfur = base.Columns["idfur"];
  1167. this.columnnamefur = base.Columns["namefur"];
  1168. this.columnphoto = base.Columns["photo"];
  1169. this.columncountfur = base.Columns["countfur"];
  1170. }
  1171. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1172. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1173. private void InitClass() {
  1174. this.columnidfur = new global::System.Data.DataColumn("idfur", typeof(int), null, global::System.Data.MappingType.Element);
  1175. base.Columns.Add(this.columnidfur);
  1176. this.columnnamefur = new global::System.Data.DataColumn("namefur", typeof(string), null, global::System.Data.MappingType.Element);
  1177. base.Columns.Add(this.columnnamefur);
  1178. this.columnphoto = new global::System.Data.DataColumn("photo", typeof(string), null, global::System.Data.MappingType.Element);
  1179. base.Columns.Add(this.columnphoto);
  1180. this.columncountfur = new global::System.Data.DataColumn("countfur", typeof(int), null, global::System.Data.MappingType.Element);
  1181. base.Columns.Add(this.columncountfur);
  1182. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1183. this.columnidfur}, true));
  1184. this.columnidfur.AutoIncrement = true;
  1185. this.columnidfur.AutoIncrementSeed = -1;
  1186. this.columnidfur.AutoIncrementStep = -1;
  1187. this.columnidfur.AllowDBNull = false;
  1188. this.columnidfur.ReadOnly = true;
  1189. this.columnidfur.Unique = true;
  1190. this.columnnamefur.MaxLength = 50;
  1191. this.columnphoto.MaxLength = 50;
  1192. }
  1193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1194. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1195. public FurnituraRow NewFurnituraRow() {
  1196. return ((FurnituraRow)(this.NewRow()));
  1197. }
  1198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1199. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1200. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1201. return new FurnituraRow(builder);
  1202. }
  1203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1204. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1205. protected override global::System.Type GetRowType() {
  1206. return typeof(FurnituraRow);
  1207. }
  1208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1209. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1210. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1211. base.OnRowChanged(e);
  1212. if ((this.FurnituraRowChanged != null)) {
  1213. this.FurnituraRowChanged(this, new FurnituraRowChangeEvent(((FurnituraRow)(e.Row)), e.Action));
  1214. }
  1215. }
  1216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1218. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1219. base.OnRowChanging(e);
  1220. if ((this.FurnituraRowChanging != null)) {
  1221. this.FurnituraRowChanging(this, new FurnituraRowChangeEvent(((FurnituraRow)(e.Row)), e.Action));
  1222. }
  1223. }
  1224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1225. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1226. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1227. base.OnRowDeleted(e);
  1228. if ((this.FurnituraRowDeleted != null)) {
  1229. this.FurnituraRowDeleted(this, new FurnituraRowChangeEvent(((FurnituraRow)(e.Row)), e.Action));
  1230. }
  1231. }
  1232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1233. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1234. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1235. base.OnRowDeleting(e);
  1236. if ((this.FurnituraRowDeleting != null)) {
  1237. this.FurnituraRowDeleting(this, new FurnituraRowChangeEvent(((FurnituraRow)(e.Row)), e.Action));
  1238. }
  1239. }
  1240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1241. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1242. public void RemoveFurnituraRow(FurnituraRow row) {
  1243. this.Rows.Remove(row);
  1244. }
  1245. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1246. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1247. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1248. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1249. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1250. FabrikaLDADataSet ds = new FabrikaLDADataSet();
  1251. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1252. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1253. any1.MinOccurs = new decimal(0);
  1254. any1.MaxOccurs = decimal.MaxValue;
  1255. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1256. sequence.Items.Add(any1);
  1257. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1258. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1259. any2.MinOccurs = new decimal(1);
  1260. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1261. sequence.Items.Add(any2);
  1262. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1263. attribute1.Name = "namespace";
  1264. attribute1.FixedValue = ds.Namespace;
  1265. type.Attributes.Add(attribute1);
  1266. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1267. attribute2.Name = "tableTypeName";
  1268. attribute2.FixedValue = "FurnituraDataTable";
  1269. type.Attributes.Add(attribute2);
  1270. type.Particle = sequence;
  1271. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1272. if (xs.Contains(dsSchema.TargetNamespace)) {
  1273. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1274. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1275. try {
  1276. global::System.Xml.Schema.XmlSchema schema = null;
  1277. dsSchema.Write(s1);
  1278. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1279. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1280. s2.SetLength(0);
  1281. schema.Write(s2);
  1282. if ((s1.Length == s2.Length)) {
  1283. s1.Position = 0;
  1284. s2.Position = 0;
  1285. for (; ((s1.Position != s1.Length)
  1286. && (s1.ReadByte() == s2.ReadByte())); ) {
  1287. ;
  1288. }
  1289. if ((s1.Position == s1.Length)) {
  1290. return type;
  1291. }
  1292. }
  1293. }
  1294. }
  1295. finally {
  1296. if ((s1 != null)) {
  1297. s1.Close();
  1298. }
  1299. if ((s2 != null)) {
  1300. s2.Close();
  1301. }
  1302. }
  1303. }
  1304. xs.Add(dsSchema);
  1305. return type;
  1306. }
  1307. }
  1308. /// <summary>
  1309. ///Represents the strongly named DataTable class.
  1310. ///</summary>
  1311. [global::System.Serializable()]
  1312. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1313. public partial class OrdersDataTable : global::System.Data.TypedTableBase<OrdersRow> {
  1314. private global::System.Data.DataColumn columnIdOrder;
  1315. private global::System.Data.DataColumn columnIdProduct;
  1316. private global::System.Data.DataColumn columnIdClient;
  1317. private global::System.Data.DataColumn columnIdManager;
  1318. private global::System.Data.DataColumn columnIdCloth;
  1319. private global::System.Data.DataColumn columnIdFur;
  1320. private global::System.Data.DataColumn columnCountFurnitura;
  1321. private global::System.Data.DataColumn columnCountProduct;
  1322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1323. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1324. public OrdersDataTable() {
  1325. this.TableName = "Orders";
  1326. this.BeginInit();
  1327. this.InitClass();
  1328. this.EndInit();
  1329. }
  1330. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1331. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1332. internal OrdersDataTable(global::System.Data.DataTable table) {
  1333. this.TableName = table.TableName;
  1334. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1335. this.CaseSensitive = table.CaseSensitive;
  1336. }
  1337. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1338. this.Locale = table.Locale;
  1339. }
  1340. if ((table.Namespace != table.DataSet.Namespace)) {
  1341. this.Namespace = table.Namespace;
  1342. }
  1343. this.Prefix = table.Prefix;
  1344. this.MinimumCapacity = table.MinimumCapacity;
  1345. }
  1346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1347. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1348. protected OrdersDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1349. base(info, context) {
  1350. this.InitVars();
  1351. }
  1352. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1353. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1354. public global::System.Data.DataColumn IdOrderColumn {
  1355. get {
  1356. return this.columnIdOrder;
  1357. }
  1358. }
  1359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1360. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1361. public global::System.Data.DataColumn IdProductColumn {
  1362. get {
  1363. return this.columnIdProduct;
  1364. }
  1365. }
  1366. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1367. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1368. public global::System.Data.DataColumn IdClientColumn {
  1369. get {
  1370. return this.columnIdClient;
  1371. }
  1372. }
  1373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1374. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1375. public global::System.Data.DataColumn IdManagerColumn {
  1376. get {
  1377. return this.columnIdManager;
  1378. }
  1379. }
  1380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1382. public global::System.Data.DataColumn IdClothColumn {
  1383. get {
  1384. return this.columnIdCloth;
  1385. }
  1386. }
  1387. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1388. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1389. public global::System.Data.DataColumn IdFurColumn {
  1390. get {
  1391. return this.columnIdFur;
  1392. }
  1393. }
  1394. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1395. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1396. public global::System.Data.DataColumn CountFurnituraColumn {
  1397. get {
  1398. return this.columnCountFurnitura;
  1399. }
  1400. }
  1401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1402. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1403. public global::System.Data.DataColumn CountProductColumn {
  1404. get {
  1405. return this.columnCountProduct;
  1406. }
  1407. }
  1408. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1409. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1410. [global::System.ComponentModel.Browsable(false)]
  1411. public int Count {
  1412. get {
  1413. return this.Rows.Count;
  1414. }
  1415. }
  1416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1418. public OrdersRow this[int index] {
  1419. get {
  1420. return ((OrdersRow)(this.Rows[index]));
  1421. }
  1422. }
  1423. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1424. public event OrdersRowChangeEventHandler OrdersRowChanging;
  1425. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1426. public event OrdersRowChangeEventHandler OrdersRowChanged;
  1427. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1428. public event OrdersRowChangeEventHandler OrdersRowDeleting;
  1429. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1430. public event OrdersRowChangeEventHandler OrdersRowDeleted;
  1431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1433. public void AddOrdersRow(OrdersRow row) {
  1434. this.Rows.Add(row);
  1435. }
  1436. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1437. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1438. public OrdersRow AddOrdersRow(ProductsRow parentProductsRowByFK_Orders_Products, UsersRow parentUsersRowByFK_Orders_Users_Client, UsersRow parentUsersRowByFK_Orders_Users_Manager, ClothRow parentClothRowByFK_Orders_Cloth, FurnituraRow parentFurnituraRowByFK_Orders_Furnitura, int CountFurnitura, int CountProduct) {
  1439. OrdersRow rowOrdersRow = ((OrdersRow)(this.NewRow()));
  1440. object[] columnValuesArray = new object[] {
  1441. null,
  1442. null,
  1443. null,
  1444. null,
  1445. null,
  1446. null,
  1447. CountFurnitura,
  1448. CountProduct};
  1449. if ((parentProductsRowByFK_Orders_Products != null)) {
  1450. columnValuesArray[1] = parentProductsRowByFK_Orders_Products[0];
  1451. }
  1452. if ((parentUsersRowByFK_Orders_Users_Client != null)) {
  1453. columnValuesArray[2] = parentUsersRowByFK_Orders_Users_Client[0];
  1454. }
  1455. if ((parentUsersRowByFK_Orders_Users_Manager != null)) {
  1456. columnValuesArray[3] = parentUsersRowByFK_Orders_Users_Manager[0];
  1457. }
  1458. if ((parentClothRowByFK_Orders_Cloth != null)) {
  1459. columnValuesArray[4] = parentClothRowByFK_Orders_Cloth[0];
  1460. }
  1461. if ((parentFurnituraRowByFK_Orders_Furnitura != null)) {
  1462. columnValuesArray[5] = parentFurnituraRowByFK_Orders_Furnitura[0];
  1463. }
  1464. rowOrdersRow.ItemArray = columnValuesArray;
  1465. this.Rows.Add(rowOrdersRow);
  1466. return rowOrdersRow;
  1467. }
  1468. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1469. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1470. public OrdersRow FindByIdOrder(int IdOrder) {
  1471. return ((OrdersRow)(this.Rows.Find(new object[] {
  1472. IdOrder})));
  1473. }
  1474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1476. public override global::System.Data.DataTable Clone() {
  1477. OrdersDataTable cln = ((OrdersDataTable)(base.Clone()));
  1478. cln.InitVars();
  1479. return cln;
  1480. }
  1481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1483. protected override global::System.Data.DataTable CreateInstance() {
  1484. return new OrdersDataTable();
  1485. }
  1486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1488. internal void InitVars() {
  1489. this.columnIdOrder = base.Columns["IdOrder"];
  1490. this.columnIdProduct = base.Columns["IdProduct"];
  1491. this.columnIdClient = base.Columns["IdClient"];
  1492. this.columnIdManager = base.Columns["IdManager"];
  1493. this.columnIdCloth = base.Columns["IdCloth"];
  1494. this.columnIdFur = base.Columns["IdFur"];
  1495. this.columnCountFurnitura = base.Columns["CountFurnitura"];
  1496. this.columnCountProduct = base.Columns["CountProduct"];
  1497. }
  1498. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1499. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1500. private void InitClass() {
  1501. this.columnIdOrder = new global::System.Data.DataColumn("IdOrder", typeof(int), null, global::System.Data.MappingType.Element);
  1502. base.Columns.Add(this.columnIdOrder);
  1503. this.columnIdProduct = new global::System.Data.DataColumn("IdProduct", typeof(int), null, global::System.Data.MappingType.Element);
  1504. base.Columns.Add(this.columnIdProduct);
  1505. this.columnIdClient = new global::System.Data.DataColumn("IdClient", typeof(int), null, global::System.Data.MappingType.Element);
  1506. base.Columns.Add(this.columnIdClient);
  1507. this.columnIdManager = new global::System.Data.DataColumn("IdManager", typeof(int), null, global::System.Data.MappingType.Element);
  1508. base.Columns.Add(this.columnIdManager);
  1509. this.columnIdCloth = new global::System.Data.DataColumn("IdCloth", typeof(int), null, global::System.Data.MappingType.Element);
  1510. base.Columns.Add(this.columnIdCloth);
  1511. this.columnIdFur = new global::System.Data.DataColumn("IdFur", typeof(int), null, global::System.Data.MappingType.Element);
  1512. base.Columns.Add(this.columnIdFur);
  1513. this.columnCountFurnitura = new global::System.Data.DataColumn("CountFurnitura", typeof(int), null, global::System.Data.MappingType.Element);
  1514. base.Columns.Add(this.columnCountFurnitura);
  1515. this.columnCountProduct = new global::System.Data.DataColumn("CountProduct", typeof(int), null, global::System.Data.MappingType.Element);
  1516. base.Columns.Add(this.columnCountProduct);
  1517. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1518. this.columnIdOrder}, true));
  1519. this.columnIdOrder.AutoIncrement = true;
  1520. this.columnIdOrder.AutoIncrementSeed = -1;
  1521. this.columnIdOrder.AutoIncrementStep = -1;
  1522. this.columnIdOrder.AllowDBNull = false;
  1523. this.columnIdOrder.ReadOnly = true;
  1524. this.columnIdOrder.Unique = true;
  1525. }
  1526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1528. public OrdersRow NewOrdersRow() {
  1529. return ((OrdersRow)(this.NewRow()));
  1530. }
  1531. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1532. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1533. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1534. return new OrdersRow(builder);
  1535. }
  1536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1537. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1538. protected override global::System.Type GetRowType() {
  1539. return typeof(OrdersRow);
  1540. }
  1541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1543. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1544. base.OnRowChanged(e);
  1545. if ((this.OrdersRowChanged != null)) {
  1546. this.OrdersRowChanged(this, new OrdersRowChangeEvent(((OrdersRow)(e.Row)), e.Action));
  1547. }
  1548. }
  1549. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1550. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1551. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1552. base.OnRowChanging(e);
  1553. if ((this.OrdersRowChanging != null)) {
  1554. this.OrdersRowChanging(this, new OrdersRowChangeEvent(((OrdersRow)(e.Row)), e.Action));
  1555. }
  1556. }
  1557. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1558. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1559. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1560. base.OnRowDeleted(e);
  1561. if ((this.OrdersRowDeleted != null)) {
  1562. this.OrdersRowDeleted(this, new OrdersRowChangeEvent(((OrdersRow)(e.Row)), e.Action));
  1563. }
  1564. }
  1565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1567. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1568. base.OnRowDeleting(e);
  1569. if ((this.OrdersRowDeleting != null)) {
  1570. this.OrdersRowDeleting(this, new OrdersRowChangeEvent(((OrdersRow)(e.Row)), e.Action));
  1571. }
  1572. }
  1573. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1574. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1575. public void RemoveOrdersRow(OrdersRow row) {
  1576. this.Rows.Remove(row);
  1577. }
  1578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1580. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1581. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1582. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1583. FabrikaLDADataSet ds = new FabrikaLDADataSet();
  1584. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1585. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1586. any1.MinOccurs = new decimal(0);
  1587. any1.MaxOccurs = decimal.MaxValue;
  1588. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1589. sequence.Items.Add(any1);
  1590. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1591. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1592. any2.MinOccurs = new decimal(1);
  1593. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1594. sequence.Items.Add(any2);
  1595. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1596. attribute1.Name = "namespace";
  1597. attribute1.FixedValue = ds.Namespace;
  1598. type.Attributes.Add(attribute1);
  1599. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1600. attribute2.Name = "tableTypeName";
  1601. attribute2.FixedValue = "OrdersDataTable";
  1602. type.Attributes.Add(attribute2);
  1603. type.Particle = sequence;
  1604. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1605. if (xs.Contains(dsSchema.TargetNamespace)) {
  1606. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1607. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1608. try {
  1609. global::System.Xml.Schema.XmlSchema schema = null;
  1610. dsSchema.Write(s1);
  1611. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1612. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1613. s2.SetLength(0);
  1614. schema.Write(s2);
  1615. if ((s1.Length == s2.Length)) {
  1616. s1.Position = 0;
  1617. s2.Position = 0;
  1618. for (; ((s1.Position != s1.Length)
  1619. && (s1.ReadByte() == s2.ReadByte())); ) {
  1620. ;
  1621. }
  1622. if ((s1.Position == s1.Length)) {
  1623. return type;
  1624. }
  1625. }
  1626. }
  1627. }
  1628. finally {
  1629. if ((s1 != null)) {
  1630. s1.Close();
  1631. }
  1632. if ((s2 != null)) {
  1633. s2.Close();
  1634. }
  1635. }
  1636. }
  1637. xs.Add(dsSchema);
  1638. return type;
  1639. }
  1640. }
  1641. /// <summary>
  1642. ///Represents the strongly named DataTable class.
  1643. ///</summary>
  1644. [global::System.Serializable()]
  1645. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1646. public partial class ProductsDataTable : global::System.Data.TypedTableBase<ProductsRow> {
  1647. private global::System.Data.DataColumn columnIdProduct;
  1648. private global::System.Data.DataColumn columnTitleProduct;
  1649. private global::System.Data.DataColumn columnLenght;
  1650. private global::System.Data.DataColumn columnWidth;
  1651. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1652. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1653. public ProductsDataTable() {
  1654. this.TableName = "Products";
  1655. this.BeginInit();
  1656. this.InitClass();
  1657. this.EndInit();
  1658. }
  1659. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1660. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1661. internal ProductsDataTable(global::System.Data.DataTable table) {
  1662. this.TableName = table.TableName;
  1663. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1664. this.CaseSensitive = table.CaseSensitive;
  1665. }
  1666. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1667. this.Locale = table.Locale;
  1668. }
  1669. if ((table.Namespace != table.DataSet.Namespace)) {
  1670. this.Namespace = table.Namespace;
  1671. }
  1672. this.Prefix = table.Prefix;
  1673. this.MinimumCapacity = table.MinimumCapacity;
  1674. }
  1675. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1676. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1677. protected ProductsDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1678. base(info, context) {
  1679. this.InitVars();
  1680. }
  1681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1682. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1683. public global::System.Data.DataColumn IdProductColumn {
  1684. get {
  1685. return this.columnIdProduct;
  1686. }
  1687. }
  1688. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1689. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1690. public global::System.Data.DataColumn TitleProductColumn {
  1691. get {
  1692. return this.columnTitleProduct;
  1693. }
  1694. }
  1695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1696. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1697. public global::System.Data.DataColumn LenghtColumn {
  1698. get {
  1699. return this.columnLenght;
  1700. }
  1701. }
  1702. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1703. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1704. public global::System.Data.DataColumn WidthColumn {
  1705. get {
  1706. return this.columnWidth;
  1707. }
  1708. }
  1709. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1710. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1711. [global::System.ComponentModel.Browsable(false)]
  1712. public int Count {
  1713. get {
  1714. return this.Rows.Count;
  1715. }
  1716. }
  1717. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1718. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1719. public ProductsRow this[int index] {
  1720. get {
  1721. return ((ProductsRow)(this.Rows[index]));
  1722. }
  1723. }
  1724. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1725. public event ProductsRowChangeEventHandler ProductsRowChanging;
  1726. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1727. public event ProductsRowChangeEventHandler ProductsRowChanged;
  1728. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1729. public event ProductsRowChangeEventHandler ProductsRowDeleting;
  1730. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1731. public event ProductsRowChangeEventHandler ProductsRowDeleted;
  1732. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1733. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1734. public void AddProductsRow(ProductsRow row) {
  1735. this.Rows.Add(row);
  1736. }
  1737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1738. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1739. public ProductsRow AddProductsRow(string TitleProduct, int Lenght, int Width) {
  1740. ProductsRow rowProductsRow = ((ProductsRow)(this.NewRow()));
  1741. object[] columnValuesArray = new object[] {
  1742. null,
  1743. TitleProduct,
  1744. Lenght,
  1745. Width};
  1746. rowProductsRow.ItemArray = columnValuesArray;
  1747. this.Rows.Add(rowProductsRow);
  1748. return rowProductsRow;
  1749. }
  1750. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1751. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1752. public ProductsRow FindByIdProduct(int IdProduct) {
  1753. return ((ProductsRow)(this.Rows.Find(new object[] {
  1754. IdProduct})));
  1755. }
  1756. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1757. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1758. public override global::System.Data.DataTable Clone() {
  1759. ProductsDataTable cln = ((ProductsDataTable)(base.Clone()));
  1760. cln.InitVars();
  1761. return cln;
  1762. }
  1763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1764. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1765. protected override global::System.Data.DataTable CreateInstance() {
  1766. return new ProductsDataTable();
  1767. }
  1768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1770. internal void InitVars() {
  1771. this.columnIdProduct = base.Columns["IdProduct"];
  1772. this.columnTitleProduct = base.Columns["TitleProduct"];
  1773. this.columnLenght = base.Columns["Lenght"];
  1774. this.columnWidth = base.Columns["Width"];
  1775. }
  1776. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1777. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1778. private void InitClass() {
  1779. this.columnIdProduct = new global::System.Data.DataColumn("IdProduct", typeof(int), null, global::System.Data.MappingType.Element);
  1780. base.Columns.Add(this.columnIdProduct);
  1781. this.columnTitleProduct = new global::System.Data.DataColumn("TitleProduct", typeof(string), null, global::System.Data.MappingType.Element);
  1782. base.Columns.Add(this.columnTitleProduct);
  1783. this.columnLenght = new global::System.Data.DataColumn("Lenght", typeof(int), null, global::System.Data.MappingType.Element);
  1784. base.Columns.Add(this.columnLenght);
  1785. this.columnWidth = new global::System.Data.DataColumn("Width", typeof(int), null, global::System.Data.MappingType.Element);
  1786. base.Columns.Add(this.columnWidth);
  1787. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1788. this.columnIdProduct}, true));
  1789. this.columnIdProduct.AutoIncrement = true;
  1790. this.columnIdProduct.AutoIncrementSeed = -1;
  1791. this.columnIdProduct.AutoIncrementStep = -1;
  1792. this.columnIdProduct.AllowDBNull = false;
  1793. this.columnIdProduct.ReadOnly = true;
  1794. this.columnIdProduct.Unique = true;
  1795. this.columnTitleProduct.MaxLength = 50;
  1796. }
  1797. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1798. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1799. public ProductsRow NewProductsRow() {
  1800. return ((ProductsRow)(this.NewRow()));
  1801. }
  1802. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1803. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1804. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1805. return new ProductsRow(builder);
  1806. }
  1807. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1808. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1809. protected override global::System.Type GetRowType() {
  1810. return typeof(ProductsRow);
  1811. }
  1812. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1813. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1814. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1815. base.OnRowChanged(e);
  1816. if ((this.ProductsRowChanged != null)) {
  1817. this.ProductsRowChanged(this, new ProductsRowChangeEvent(((ProductsRow)(e.Row)), e.Action));
  1818. }
  1819. }
  1820. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1821. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1822. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1823. base.OnRowChanging(e);
  1824. if ((this.ProductsRowChanging != null)) {
  1825. this.ProductsRowChanging(this, new ProductsRowChangeEvent(((ProductsRow)(e.Row)), e.Action));
  1826. }
  1827. }
  1828. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1829. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1830. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1831. base.OnRowDeleted(e);
  1832. if ((this.ProductsRowDeleted != null)) {
  1833. this.ProductsRowDeleted(this, new ProductsRowChangeEvent(((ProductsRow)(e.Row)), e.Action));
  1834. }
  1835. }
  1836. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1837. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1838. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1839. base.OnRowDeleting(e);
  1840. if ((this.ProductsRowDeleting != null)) {
  1841. this.ProductsRowDeleting(this, new ProductsRowChangeEvent(((ProductsRow)(e.Row)), e.Action));
  1842. }
  1843. }
  1844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1845. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1846. public void RemoveProductsRow(ProductsRow row) {
  1847. this.Rows.Remove(row);
  1848. }
  1849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1850. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1851. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1852. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1853. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1854. FabrikaLDADataSet ds = new FabrikaLDADataSet();
  1855. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1856. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1857. any1.MinOccurs = new decimal(0);
  1858. any1.MaxOccurs = decimal.MaxValue;
  1859. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1860. sequence.Items.Add(any1);
  1861. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1862. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1863. any2.MinOccurs = new decimal(1);
  1864. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1865. sequence.Items.Add(any2);
  1866. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1867. attribute1.Name = "namespace";
  1868. attribute1.FixedValue = ds.Namespace;
  1869. type.Attributes.Add(attribute1);
  1870. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1871. attribute2.Name = "tableTypeName";
  1872. attribute2.FixedValue = "ProductsDataTable";
  1873. type.Attributes.Add(attribute2);
  1874. type.Particle = sequence;
  1875. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1876. if (xs.Contains(dsSchema.TargetNamespace)) {
  1877. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1878. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1879. try {
  1880. global::System.Xml.Schema.XmlSchema schema = null;
  1881. dsSchema.Write(s1);
  1882. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1883. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1884. s2.SetLength(0);
  1885. schema.Write(s2);
  1886. if ((s1.Length == s2.Length)) {
  1887. s1.Position = 0;
  1888. s2.Position = 0;
  1889. for (; ((s1.Position != s1.Length)
  1890. && (s1.ReadByte() == s2.ReadByte())); ) {
  1891. ;
  1892. }
  1893. if ((s1.Position == s1.Length)) {
  1894. return type;
  1895. }
  1896. }
  1897. }
  1898. }
  1899. finally {
  1900. if ((s1 != null)) {
  1901. s1.Close();
  1902. }
  1903. if ((s2 != null)) {
  1904. s2.Close();
  1905. }
  1906. }
  1907. }
  1908. xs.Add(dsSchema);
  1909. return type;
  1910. }
  1911. }
  1912. /// <summary>
  1913. ///Represents the strongly named DataTable class.
  1914. ///</summary>
  1915. [global::System.Serializable()]
  1916. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1917. public partial class RolesDataTable : global::System.Data.TypedTableBase<RolesRow> {
  1918. private global::System.Data.DataColumn columnIdRole;
  1919. private global::System.Data.DataColumn columnTitle;
  1920. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1921. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1922. public RolesDataTable() {
  1923. this.TableName = "Roles";
  1924. this.BeginInit();
  1925. this.InitClass();
  1926. this.EndInit();
  1927. }
  1928. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1929. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1930. internal RolesDataTable(global::System.Data.DataTable table) {
  1931. this.TableName = table.TableName;
  1932. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1933. this.CaseSensitive = table.CaseSensitive;
  1934. }
  1935. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1936. this.Locale = table.Locale;
  1937. }
  1938. if ((table.Namespace != table.DataSet.Namespace)) {
  1939. this.Namespace = table.Namespace;
  1940. }
  1941. this.Prefix = table.Prefix;
  1942. this.MinimumCapacity = table.MinimumCapacity;
  1943. }
  1944. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1945. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1946. protected RolesDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1947. base(info, context) {
  1948. this.InitVars();
  1949. }
  1950. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1951. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1952. public global::System.Data.DataColumn IdRoleColumn {
  1953. get {
  1954. return this.columnIdRole;
  1955. }
  1956. }
  1957. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1958. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1959. public global::System.Data.DataColumn TitleColumn {
  1960. get {
  1961. return this.columnTitle;
  1962. }
  1963. }
  1964. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1965. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1966. [global::System.ComponentModel.Browsable(false)]
  1967. public int Count {
  1968. get {
  1969. return this.Rows.Count;
  1970. }
  1971. }
  1972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1973. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1974. public RolesRow this[int index] {
  1975. get {
  1976. return ((RolesRow)(this.Rows[index]));
  1977. }
  1978. }
  1979. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1980. public event RolesRowChangeEventHandler RolesRowChanging;
  1981. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1982. public event RolesRowChangeEventHandler RolesRowChanged;
  1983. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1984. public event RolesRowChangeEventHandler RolesRowDeleting;
  1985. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1986. public event RolesRowChangeEventHandler RolesRowDeleted;
  1987. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1988. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1989. public void AddRolesRow(RolesRow row) {
  1990. this.Rows.Add(row);
  1991. }
  1992. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1993. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1994. public RolesRow AddRolesRow(int IdRole, string Title) {
  1995. RolesRow rowRolesRow = ((RolesRow)(this.NewRow()));
  1996. object[] columnValuesArray = new object[] {
  1997. IdRole,
  1998. Title};
  1999. rowRolesRow.ItemArray = columnValuesArray;
  2000. this.Rows.Add(rowRolesRow);
  2001. return rowRolesRow;
  2002. }
  2003. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2004. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2005. public RolesRow FindByIdRole(int IdRole) {
  2006. return ((RolesRow)(this.Rows.Find(new object[] {
  2007. IdRole})));
  2008. }
  2009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2011. public override global::System.Data.DataTable Clone() {
  2012. RolesDataTable cln = ((RolesDataTable)(base.Clone()));
  2013. cln.InitVars();
  2014. return cln;
  2015. }
  2016. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2017. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2018. protected override global::System.Data.DataTable CreateInstance() {
  2019. return new RolesDataTable();
  2020. }
  2021. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2022. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2023. internal void InitVars() {
  2024. this.columnIdRole = base.Columns["IdRole"];
  2025. this.columnTitle = base.Columns["Title"];
  2026. }
  2027. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2028. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2029. private void InitClass() {
  2030. this.columnIdRole = new global::System.Data.DataColumn("IdRole", typeof(int), null, global::System.Data.MappingType.Element);
  2031. base.Columns.Add(this.columnIdRole);
  2032. this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
  2033. base.Columns.Add(this.columnTitle);
  2034. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2035. this.columnIdRole}, true));
  2036. this.columnIdRole.AllowDBNull = false;
  2037. this.columnIdRole.Unique = true;
  2038. this.columnTitle.AllowDBNull = false;
  2039. this.columnTitle.MaxLength = 50;
  2040. }
  2041. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2042. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2043. public RolesRow NewRolesRow() {
  2044. return ((RolesRow)(this.NewRow()));
  2045. }
  2046. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2047. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2048. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2049. return new RolesRow(builder);
  2050. }
  2051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2053. protected override global::System.Type GetRowType() {
  2054. return typeof(RolesRow);
  2055. }
  2056. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2057. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2058. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2059. base.OnRowChanged(e);
  2060. if ((this.RolesRowChanged != null)) {
  2061. this.RolesRowChanged(this, new RolesRowChangeEvent(((RolesRow)(e.Row)), e.Action));
  2062. }
  2063. }
  2064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2065. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2066. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2067. base.OnRowChanging(e);
  2068. if ((this.RolesRowChanging != null)) {
  2069. this.RolesRowChanging(this, new RolesRowChangeEvent(((RolesRow)(e.Row)), e.Action));
  2070. }
  2071. }
  2072. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2073. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2074. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2075. base.OnRowDeleted(e);
  2076. if ((this.RolesRowDeleted != null)) {
  2077. this.RolesRowDeleted(this, new RolesRowChangeEvent(((RolesRow)(e.Row)), e.Action));
  2078. }
  2079. }
  2080. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2081. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2082. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2083. base.OnRowDeleting(e);
  2084. if ((this.RolesRowDeleting != null)) {
  2085. this.RolesRowDeleting(this, new RolesRowChangeEvent(((RolesRow)(e.Row)), e.Action));
  2086. }
  2087. }
  2088. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2089. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2090. public void RemoveRolesRow(RolesRow row) {
  2091. this.Rows.Remove(row);
  2092. }
  2093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2094. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2095. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2096. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2097. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2098. FabrikaLDADataSet ds = new FabrikaLDADataSet();
  2099. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2100. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2101. any1.MinOccurs = new decimal(0);
  2102. any1.MaxOccurs = decimal.MaxValue;
  2103. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2104. sequence.Items.Add(any1);
  2105. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2106. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2107. any2.MinOccurs = new decimal(1);
  2108. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2109. sequence.Items.Add(any2);
  2110. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2111. attribute1.Name = "namespace";
  2112. attribute1.FixedValue = ds.Namespace;
  2113. type.Attributes.Add(attribute1);
  2114. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2115. attribute2.Name = "tableTypeName";
  2116. attribute2.FixedValue = "RolesDataTable";
  2117. type.Attributes.Add(attribute2);
  2118. type.Particle = sequence;
  2119. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2120. if (xs.Contains(dsSchema.TargetNamespace)) {
  2121. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2122. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2123. try {
  2124. global::System.Xml.Schema.XmlSchema schema = null;
  2125. dsSchema.Write(s1);
  2126. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2127. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2128. s2.SetLength(0);
  2129. schema.Write(s2);
  2130. if ((s1.Length == s2.Length)) {
  2131. s1.Position = 0;
  2132. s2.Position = 0;
  2133. for (; ((s1.Position != s1.Length)
  2134. && (s1.ReadByte() == s2.ReadByte())); ) {
  2135. ;
  2136. }
  2137. if ((s1.Position == s1.Length)) {
  2138. return type;
  2139. }
  2140. }
  2141. }
  2142. }
  2143. finally {
  2144. if ((s1 != null)) {
  2145. s1.Close();
  2146. }
  2147. if ((s2 != null)) {
  2148. s2.Close();
  2149. }
  2150. }
  2151. }
  2152. xs.Add(dsSchema);
  2153. return type;
  2154. }
  2155. }
  2156. /// <summary>
  2157. ///Represents the strongly named DataTable class.
  2158. ///</summary>
  2159. [global::System.Serializable()]
  2160. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2161. public partial class UsersDataTable : global::System.Data.TypedTableBase<UsersRow> {
  2162. private global::System.Data.DataColumn columnIdUser;
  2163. private global::System.Data.DataColumn columnLogin;
  2164. private global::System.Data.DataColumn columnPassword;
  2165. private global::System.Data.DataColumn columnRole;
  2166. private global::System.Data.DataColumn columnFam;
  2167. private global::System.Data.DataColumn columnName;
  2168. private global::System.Data.DataColumn columnOtch;
  2169. private global::System.Data.DataColumn columnPhone;
  2170. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2171. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2172. public UsersDataTable() {
  2173. this.TableName = "Users";
  2174. this.BeginInit();
  2175. this.InitClass();
  2176. this.EndInit();
  2177. }
  2178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2180. internal UsersDataTable(global::System.Data.DataTable table) {
  2181. this.TableName = table.TableName;
  2182. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2183. this.CaseSensitive = table.CaseSensitive;
  2184. }
  2185. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2186. this.Locale = table.Locale;
  2187. }
  2188. if ((table.Namespace != table.DataSet.Namespace)) {
  2189. this.Namespace = table.Namespace;
  2190. }
  2191. this.Prefix = table.Prefix;
  2192. this.MinimumCapacity = table.MinimumCapacity;
  2193. }
  2194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2196. protected UsersDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2197. base(info, context) {
  2198. this.InitVars();
  2199. }
  2200. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2201. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2202. public global::System.Data.DataColumn IdUserColumn {
  2203. get {
  2204. return this.columnIdUser;
  2205. }
  2206. }
  2207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2208. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2209. public global::System.Data.DataColumn LoginColumn {
  2210. get {
  2211. return this.columnLogin;
  2212. }
  2213. }
  2214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2215. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2216. public global::System.Data.DataColumn PasswordColumn {
  2217. get {
  2218. return this.columnPassword;
  2219. }
  2220. }
  2221. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2222. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2223. public global::System.Data.DataColumn RoleColumn {
  2224. get {
  2225. return this.columnRole;
  2226. }
  2227. }
  2228. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2229. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2230. public global::System.Data.DataColumn FamColumn {
  2231. get {
  2232. return this.columnFam;
  2233. }
  2234. }
  2235. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2236. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2237. public global::System.Data.DataColumn NameColumn {
  2238. get {
  2239. return this.columnName;
  2240. }
  2241. }
  2242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2243. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2244. public global::System.Data.DataColumn OtchColumn {
  2245. get {
  2246. return this.columnOtch;
  2247. }
  2248. }
  2249. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2250. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2251. public global::System.Data.DataColumn PhoneColumn {
  2252. get {
  2253. return this.columnPhone;
  2254. }
  2255. }
  2256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2258. [global::System.ComponentModel.Browsable(false)]
  2259. public int Count {
  2260. get {
  2261. return this.Rows.Count;
  2262. }
  2263. }
  2264. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2265. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2266. public UsersRow this[int index] {
  2267. get {
  2268. return ((UsersRow)(this.Rows[index]));
  2269. }
  2270. }
  2271. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2272. public event UsersRowChangeEventHandler UsersRowChanging;
  2273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2274. public event UsersRowChangeEventHandler UsersRowChanged;
  2275. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2276. public event UsersRowChangeEventHandler UsersRowDeleting;
  2277. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2278. public event UsersRowChangeEventHandler UsersRowDeleted;
  2279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2280. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2281. public void AddUsersRow(UsersRow row) {
  2282. this.Rows.Add(row);
  2283. }
  2284. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2285. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2286. public UsersRow AddUsersRow(string Login, string Password, RolesRow parentRolesRowByFK_Users_Roles, string Fam, string Name, string Otch, string Phone) {
  2287. UsersRow rowUsersRow = ((UsersRow)(this.NewRow()));
  2288. object[] columnValuesArray = new object[] {
  2289. null,
  2290. Login,
  2291. Password,
  2292. null,
  2293. Fam,
  2294. Name,
  2295. Otch,
  2296. Phone};
  2297. if ((parentRolesRowByFK_Users_Roles != null)) {
  2298. columnValuesArray[3] = parentRolesRowByFK_Users_Roles[0];
  2299. }
  2300. rowUsersRow.ItemArray = columnValuesArray;
  2301. this.Rows.Add(rowUsersRow);
  2302. return rowUsersRow;
  2303. }
  2304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2306. public UsersRow FindByIdUser(int IdUser) {
  2307. return ((UsersRow)(this.Rows.Find(new object[] {
  2308. IdUser})));
  2309. }
  2310. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2311. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2312. public override global::System.Data.DataTable Clone() {
  2313. UsersDataTable cln = ((UsersDataTable)(base.Clone()));
  2314. cln.InitVars();
  2315. return cln;
  2316. }
  2317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2319. protected override global::System.Data.DataTable CreateInstance() {
  2320. return new UsersDataTable();
  2321. }
  2322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2323. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2324. internal void InitVars() {
  2325. this.columnIdUser = base.Columns["IdUser"];
  2326. this.columnLogin = base.Columns["Login"];
  2327. this.columnPassword = base.Columns["Password"];
  2328. this.columnRole = base.Columns["Role"];
  2329. this.columnFam = base.Columns["Fam"];
  2330. this.columnName = base.Columns["Name"];
  2331. this.columnOtch = base.Columns["Otch"];
  2332. this.columnPhone = base.Columns["Phone"];
  2333. }
  2334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2336. private void InitClass() {
  2337. this.columnIdUser = new global::System.Data.DataColumn("IdUser", typeof(int), null, global::System.Data.MappingType.Element);
  2338. base.Columns.Add(this.columnIdUser);
  2339. this.columnLogin = new global::System.Data.DataColumn("Login", typeof(string), null, global::System.Data.MappingType.Element);
  2340. base.Columns.Add(this.columnLogin);
  2341. this.columnPassword = new global::System.Data.DataColumn("Password", typeof(string), null, global::System.Data.MappingType.Element);
  2342. base.Columns.Add(this.columnPassword);
  2343. this.columnRole = new global::System.Data.DataColumn("Role", typeof(int), null, global::System.Data.MappingType.Element);
  2344. base.Columns.Add(this.columnRole);
  2345. this.columnFam = new global::System.Data.DataColumn("Fam", typeof(string), null, global::System.Data.MappingType.Element);
  2346. base.Columns.Add(this.columnFam);
  2347. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  2348. base.Columns.Add(this.columnName);
  2349. this.columnOtch = new global::System.Data.DataColumn("Otch", typeof(string), null, global::System.Data.MappingType.Element);
  2350. base.Columns.Add(this.columnOtch);
  2351. this.columnPhone = new global::System.Data.DataColumn("Phone", typeof(string), null, global::System.Data.MappingType.Element);
  2352. base.Columns.Add(this.columnPhone);
  2353. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2354. this.columnIdUser}, true));
  2355. this.columnIdUser.AutoIncrement = true;
  2356. this.columnIdUser.AutoIncrementSeed = -1;
  2357. this.columnIdUser.AutoIncrementStep = -1;
  2358. this.columnIdUser.AllowDBNull = false;
  2359. this.columnIdUser.ReadOnly = true;
  2360. this.columnIdUser.Unique = true;
  2361. this.columnLogin.MaxLength = 50;
  2362. this.columnPassword.MaxLength = 50;
  2363. this.columnFam.MaxLength = 50;
  2364. this.columnName.MaxLength = 50;
  2365. this.columnOtch.MaxLength = 50;
  2366. this.columnPhone.MaxLength = 20;
  2367. }
  2368. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2369. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2370. public UsersRow NewUsersRow() {
  2371. return ((UsersRow)(this.NewRow()));
  2372. }
  2373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2374. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2375. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2376. return new UsersRow(builder);
  2377. }
  2378. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2379. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2380. protected override global::System.Type GetRowType() {
  2381. return typeof(UsersRow);
  2382. }
  2383. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2384. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2385. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2386. base.OnRowChanged(e);
  2387. if ((this.UsersRowChanged != null)) {
  2388. this.UsersRowChanged(this, new UsersRowChangeEvent(((UsersRow)(e.Row)), e.Action));
  2389. }
  2390. }
  2391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2392. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2393. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2394. base.OnRowChanging(e);
  2395. if ((this.UsersRowChanging != null)) {
  2396. this.UsersRowChanging(this, new UsersRowChangeEvent(((UsersRow)(e.Row)), e.Action));
  2397. }
  2398. }
  2399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2401. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2402. base.OnRowDeleted(e);
  2403. if ((this.UsersRowDeleted != null)) {
  2404. this.UsersRowDeleted(this, new UsersRowChangeEvent(((UsersRow)(e.Row)), e.Action));
  2405. }
  2406. }
  2407. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2408. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2409. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2410. base.OnRowDeleting(e);
  2411. if ((this.UsersRowDeleting != null)) {
  2412. this.UsersRowDeleting(this, new UsersRowChangeEvent(((UsersRow)(e.Row)), e.Action));
  2413. }
  2414. }
  2415. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2416. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2417. public void RemoveUsersRow(UsersRow row) {
  2418. this.Rows.Remove(row);
  2419. }
  2420. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2421. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2422. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2423. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2424. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2425. FabrikaLDADataSet ds = new FabrikaLDADataSet();
  2426. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2427. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2428. any1.MinOccurs = new decimal(0);
  2429. any1.MaxOccurs = decimal.MaxValue;
  2430. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2431. sequence.Items.Add(any1);
  2432. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2433. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2434. any2.MinOccurs = new decimal(1);
  2435. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2436. sequence.Items.Add(any2);
  2437. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2438. attribute1.Name = "namespace";
  2439. attribute1.FixedValue = ds.Namespace;
  2440. type.Attributes.Add(attribute1);
  2441. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2442. attribute2.Name = "tableTypeName";
  2443. attribute2.FixedValue = "UsersDataTable";
  2444. type.Attributes.Add(attribute2);
  2445. type.Particle = sequence;
  2446. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2447. if (xs.Contains(dsSchema.TargetNamespace)) {
  2448. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2449. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2450. try {
  2451. global::System.Xml.Schema.XmlSchema schema = null;
  2452. dsSchema.Write(s1);
  2453. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2454. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2455. s2.SetLength(0);
  2456. schema.Write(s2);
  2457. if ((s1.Length == s2.Length)) {
  2458. s1.Position = 0;
  2459. s2.Position = 0;
  2460. for (; ((s1.Position != s1.Length)
  2461. && (s1.ReadByte() == s2.ReadByte())); ) {
  2462. ;
  2463. }
  2464. if ((s1.Position == s1.Length)) {
  2465. return type;
  2466. }
  2467. }
  2468. }
  2469. }
  2470. finally {
  2471. if ((s1 != null)) {
  2472. s1.Close();
  2473. }
  2474. if ((s2 != null)) {
  2475. s2.Close();
  2476. }
  2477. }
  2478. }
  2479. xs.Add(dsSchema);
  2480. return type;
  2481. }
  2482. }
  2483. /// <summary>
  2484. ///Represents strongly named DataRow class.
  2485. ///</summary>
  2486. public partial class ClothRow : global::System.Data.DataRow {
  2487. private ClothDataTable tableCloth;
  2488. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2489. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2490. internal ClothRow(global::System.Data.DataRowBuilder rb) :
  2491. base(rb) {
  2492. this.tableCloth = ((ClothDataTable)(this.Table));
  2493. }
  2494. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2495. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2496. public int IdCloth {
  2497. get {
  2498. return ((int)(this[this.tableCloth.IdClothColumn]));
  2499. }
  2500. set {
  2501. this[this.tableCloth.IdClothColumn] = value;
  2502. }
  2503. }
  2504. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2505. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2506. public string Title {
  2507. get {
  2508. try {
  2509. return ((string)(this[this.tableCloth.TitleColumn]));
  2510. }
  2511. catch (global::System.InvalidCastException e) {
  2512. throw new global::System.Data.StrongTypingException("The value for column \'Title\' in table \'Cloth\' is DBNull.", e);
  2513. }
  2514. }
  2515. set {
  2516. this[this.tableCloth.TitleColumn] = value;
  2517. }
  2518. }
  2519. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2520. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2521. public int IdColor {
  2522. get {
  2523. try {
  2524. return ((int)(this[this.tableCloth.IdColorColumn]));
  2525. }
  2526. catch (global::System.InvalidCastException e) {
  2527. throw new global::System.Data.StrongTypingException("The value for column \'IdColor\' in table \'Cloth\' is DBNull.", e);
  2528. }
  2529. }
  2530. set {
  2531. this[this.tableCloth.IdColorColumn] = value;
  2532. }
  2533. }
  2534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2535. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2536. public int Weight {
  2537. get {
  2538. try {
  2539. return ((int)(this[this.tableCloth.WeightColumn]));
  2540. }
  2541. catch (global::System.InvalidCastException e) {
  2542. throw new global::System.Data.StrongTypingException("The value for column \'Weight\' in table \'Cloth\' is DBNull.", e);
  2543. }
  2544. }
  2545. set {
  2546. this[this.tableCloth.WeightColumn] = value;
  2547. }
  2548. }
  2549. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2550. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2551. public int Height {
  2552. get {
  2553. try {
  2554. return ((int)(this[this.tableCloth.HeightColumn]));
  2555. }
  2556. catch (global::System.InvalidCastException e) {
  2557. throw new global::System.Data.StrongTypingException("The value for column \'Height\' in table \'Cloth\' is DBNull.", e);
  2558. }
  2559. }
  2560. set {
  2561. this[this.tableCloth.HeightColumn] = value;
  2562. }
  2563. }
  2564. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2565. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2566. public string Note {
  2567. get {
  2568. try {
  2569. return ((string)(this[this.tableCloth.NoteColumn]));
  2570. }
  2571. catch (global::System.InvalidCastException e) {
  2572. throw new global::System.Data.StrongTypingException("The value for column \'Note\' in table \'Cloth\' is DBNull.", e);
  2573. }
  2574. }
  2575. set {
  2576. this[this.tableCloth.NoteColumn] = value;
  2577. }
  2578. }
  2579. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2580. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2581. public string Photo {
  2582. get {
  2583. try {
  2584. return ((string)(this[this.tableCloth.PhotoColumn]));
  2585. }
  2586. catch (global::System.InvalidCastException e) {
  2587. throw new global::System.Data.StrongTypingException("The value for column \'Photo\' in table \'Cloth\' is DBNull.", e);
  2588. }
  2589. }
  2590. set {
  2591. this[this.tableCloth.PhotoColumn] = value;
  2592. }
  2593. }
  2594. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2595. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2596. public ColorsRow ColorsRow {
  2597. get {
  2598. return ((ColorsRow)(this.GetParentRow(this.Table.ParentRelations["FK_Cloth_Colors"])));
  2599. }
  2600. set {
  2601. this.SetParentRow(value, this.Table.ParentRelations["FK_Cloth_Colors"]);
  2602. }
  2603. }
  2604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2606. public bool IsTitleNull() {
  2607. return this.IsNull(this.tableCloth.TitleColumn);
  2608. }
  2609. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2610. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2611. public void SetTitleNull() {
  2612. this[this.tableCloth.TitleColumn] = global::System.Convert.DBNull;
  2613. }
  2614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2615. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2616. public bool IsIdColorNull() {
  2617. return this.IsNull(this.tableCloth.IdColorColumn);
  2618. }
  2619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2621. public void SetIdColorNull() {
  2622. this[this.tableCloth.IdColorColumn] = global::System.Convert.DBNull;
  2623. }
  2624. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2625. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2626. public bool IsWeightNull() {
  2627. return this.IsNull(this.tableCloth.WeightColumn);
  2628. }
  2629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2631. public void SetWeightNull() {
  2632. this[this.tableCloth.WeightColumn] = global::System.Convert.DBNull;
  2633. }
  2634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2636. public bool IsHeightNull() {
  2637. return this.IsNull(this.tableCloth.HeightColumn);
  2638. }
  2639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2641. public void SetHeightNull() {
  2642. this[this.tableCloth.HeightColumn] = global::System.Convert.DBNull;
  2643. }
  2644. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2645. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2646. public bool IsNoteNull() {
  2647. return this.IsNull(this.tableCloth.NoteColumn);
  2648. }
  2649. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2650. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2651. public void SetNoteNull() {
  2652. this[this.tableCloth.NoteColumn] = global::System.Convert.DBNull;
  2653. }
  2654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2655. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2656. public bool IsPhotoNull() {
  2657. return this.IsNull(this.tableCloth.PhotoColumn);
  2658. }
  2659. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2660. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2661. public void SetPhotoNull() {
  2662. this[this.tableCloth.PhotoColumn] = global::System.Convert.DBNull;
  2663. }
  2664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2666. public OrdersRow[] GetOrdersRows() {
  2667. if ((this.Table.ChildRelations["FK_Orders_Cloth"] == null)) {
  2668. return new OrdersRow[0];
  2669. }
  2670. else {
  2671. return ((OrdersRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Orders_Cloth"])));
  2672. }
  2673. }
  2674. }
  2675. /// <summary>
  2676. ///Represents strongly named DataRow class.
  2677. ///</summary>
  2678. public partial class ColorsRow : global::System.Data.DataRow {
  2679. private ColorsDataTable tableColors;
  2680. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2681. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2682. internal ColorsRow(global::System.Data.DataRowBuilder rb) :
  2683. base(rb) {
  2684. this.tableColors = ((ColorsDataTable)(this.Table));
  2685. }
  2686. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2687. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2688. public int IdColor {
  2689. get {
  2690. return ((int)(this[this.tableColors.IdColorColumn]));
  2691. }
  2692. set {
  2693. this[this.tableColors.IdColorColumn] = value;
  2694. }
  2695. }
  2696. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2697. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2698. public string Title {
  2699. get {
  2700. try {
  2701. return ((string)(this[this.tableColors.TitleColumn]));
  2702. }
  2703. catch (global::System.InvalidCastException e) {
  2704. throw new global::System.Data.StrongTypingException("The value for column \'Title\' in table \'Colors\' is DBNull.", e);
  2705. }
  2706. }
  2707. set {
  2708. this[this.tableColors.TitleColumn] = value;
  2709. }
  2710. }
  2711. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2712. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2713. public bool IsTitleNull() {
  2714. return this.IsNull(this.tableColors.TitleColumn);
  2715. }
  2716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2717. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2718. public void SetTitleNull() {
  2719. this[this.tableColors.TitleColumn] = global::System.Convert.DBNull;
  2720. }
  2721. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2722. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2723. public ClothRow[] GetClothRows() {
  2724. if ((this.Table.ChildRelations["FK_Cloth_Colors"] == null)) {
  2725. return new ClothRow[0];
  2726. }
  2727. else {
  2728. return ((ClothRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Cloth_Colors"])));
  2729. }
  2730. }
  2731. }
  2732. /// <summary>
  2733. ///Represents strongly named DataRow class.
  2734. ///</summary>
  2735. public partial class FurnituraRow : global::System.Data.DataRow {
  2736. private FurnituraDataTable tableFurnitura;
  2737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2738. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2739. internal FurnituraRow(global::System.Data.DataRowBuilder rb) :
  2740. base(rb) {
  2741. this.tableFurnitura = ((FurnituraDataTable)(this.Table));
  2742. }
  2743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2745. public int idfur {
  2746. get {
  2747. return ((int)(this[this.tableFurnitura.idfurColumn]));
  2748. }
  2749. set {
  2750. this[this.tableFurnitura.idfurColumn] = value;
  2751. }
  2752. }
  2753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2755. public string namefur {
  2756. get {
  2757. try {
  2758. return ((string)(this[this.tableFurnitura.namefurColumn]));
  2759. }
  2760. catch (global::System.InvalidCastException e) {
  2761. throw new global::System.Data.StrongTypingException("The value for column \'namefur\' in table \'Furnitura\' is DBNull.", e);
  2762. }
  2763. }
  2764. set {
  2765. this[this.tableFurnitura.namefurColumn] = value;
  2766. }
  2767. }
  2768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2770. public string photo {
  2771. get {
  2772. try {
  2773. return ((string)(this[this.tableFurnitura.photoColumn]));
  2774. }
  2775. catch (global::System.InvalidCastException e) {
  2776. throw new global::System.Data.StrongTypingException("The value for column \'photo\' in table \'Furnitura\' is DBNull.", e);
  2777. }
  2778. }
  2779. set {
  2780. this[this.tableFurnitura.photoColumn] = value;
  2781. }
  2782. }
  2783. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2784. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2785. public int countfur {
  2786. get {
  2787. try {
  2788. return ((int)(this[this.tableFurnitura.countfurColumn]));
  2789. }
  2790. catch (global::System.InvalidCastException e) {
  2791. throw new global::System.Data.StrongTypingException("The value for column \'countfur\' in table \'Furnitura\' is DBNull.", e);
  2792. }
  2793. }
  2794. set {
  2795. this[this.tableFurnitura.countfurColumn] = value;
  2796. }
  2797. }
  2798. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2799. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2800. public bool IsnamefurNull() {
  2801. return this.IsNull(this.tableFurnitura.namefurColumn);
  2802. }
  2803. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2804. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2805. public void SetnamefurNull() {
  2806. this[this.tableFurnitura.namefurColumn] = global::System.Convert.DBNull;
  2807. }
  2808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2810. public bool IsphotoNull() {
  2811. return this.IsNull(this.tableFurnitura.photoColumn);
  2812. }
  2813. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2814. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2815. public void SetphotoNull() {
  2816. this[this.tableFurnitura.photoColumn] = global::System.Convert.DBNull;
  2817. }
  2818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2819. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2820. public bool IscountfurNull() {
  2821. return this.IsNull(this.tableFurnitura.countfurColumn);
  2822. }
  2823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2824. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2825. public void SetcountfurNull() {
  2826. this[this.tableFurnitura.countfurColumn] = global::System.Convert.DBNull;
  2827. }
  2828. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2829. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2830. public OrdersRow[] GetOrdersRows() {
  2831. if ((this.Table.ChildRelations["FK_Orders_Furnitura"] == null)) {
  2832. return new OrdersRow[0];
  2833. }
  2834. else {
  2835. return ((OrdersRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Orders_Furnitura"])));
  2836. }
  2837. }
  2838. }
  2839. /// <summary>
  2840. ///Represents strongly named DataRow class.
  2841. ///</summary>
  2842. public partial class OrdersRow : global::System.Data.DataRow {
  2843. private OrdersDataTable tableOrders;
  2844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2845. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2846. internal OrdersRow(global::System.Data.DataRowBuilder rb) :
  2847. base(rb) {
  2848. this.tableOrders = ((OrdersDataTable)(this.Table));
  2849. }
  2850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2851. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2852. public int IdOrder {
  2853. get {
  2854. return ((int)(this[this.tableOrders.IdOrderColumn]));
  2855. }
  2856. set {
  2857. this[this.tableOrders.IdOrderColumn] = value;
  2858. }
  2859. }
  2860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2862. public int IdProduct {
  2863. get {
  2864. try {
  2865. return ((int)(this[this.tableOrders.IdProductColumn]));
  2866. }
  2867. catch (global::System.InvalidCastException e) {
  2868. throw new global::System.Data.StrongTypingException("The value for column \'IdProduct\' in table \'Orders\' is DBNull.", e);
  2869. }
  2870. }
  2871. set {
  2872. this[this.tableOrders.IdProductColumn] = value;
  2873. }
  2874. }
  2875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2876. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2877. public int IdClient {
  2878. get {
  2879. try {
  2880. return ((int)(this[this.tableOrders.IdClientColumn]));
  2881. }
  2882. catch (global::System.InvalidCastException e) {
  2883. throw new global::System.Data.StrongTypingException("The value for column \'IdClient\' in table \'Orders\' is DBNull.", e);
  2884. }
  2885. }
  2886. set {
  2887. this[this.tableOrders.IdClientColumn] = value;
  2888. }
  2889. }
  2890. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2891. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2892. public int IdManager {
  2893. get {
  2894. try {
  2895. return ((int)(this[this.tableOrders.IdManagerColumn]));
  2896. }
  2897. catch (global::System.InvalidCastException e) {
  2898. throw new global::System.Data.StrongTypingException("The value for column \'IdManager\' in table \'Orders\' is DBNull.", e);
  2899. }
  2900. }
  2901. set {
  2902. this[this.tableOrders.IdManagerColumn] = value;
  2903. }
  2904. }
  2905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2906. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2907. public int IdCloth {
  2908. get {
  2909. try {
  2910. return ((int)(this[this.tableOrders.IdClothColumn]));
  2911. }
  2912. catch (global::System.InvalidCastException e) {
  2913. throw new global::System.Data.StrongTypingException("The value for column \'IdCloth\' in table \'Orders\' is DBNull.", e);
  2914. }
  2915. }
  2916. set {
  2917. this[this.tableOrders.IdClothColumn] = value;
  2918. }
  2919. }
  2920. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2921. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2922. public int IdFur {
  2923. get {
  2924. try {
  2925. return ((int)(this[this.tableOrders.IdFurColumn]));
  2926. }
  2927. catch (global::System.InvalidCastException e) {
  2928. throw new global::System.Data.StrongTypingException("The value for column \'IdFur\' in table \'Orders\' is DBNull.", e);
  2929. }
  2930. }
  2931. set {
  2932. this[this.tableOrders.IdFurColumn] = value;
  2933. }
  2934. }
  2935. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2936. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2937. public int CountFurnitura {
  2938. get {
  2939. try {
  2940. return ((int)(this[this.tableOrders.CountFurnituraColumn]));
  2941. }
  2942. catch (global::System.InvalidCastException e) {
  2943. throw new global::System.Data.StrongTypingException("The value for column \'CountFurnitura\' in table \'Orders\' is DBNull.", e);
  2944. }
  2945. }
  2946. set {
  2947. this[this.tableOrders.CountFurnituraColumn] = value;
  2948. }
  2949. }
  2950. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2951. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2952. public int CountProduct {
  2953. get {
  2954. try {
  2955. return ((int)(this[this.tableOrders.CountProductColumn]));
  2956. }
  2957. catch (global::System.InvalidCastException e) {
  2958. throw new global::System.Data.StrongTypingException("The value for column \'CountProduct\' in table \'Orders\' is DBNull.", e);
  2959. }
  2960. }
  2961. set {
  2962. this[this.tableOrders.CountProductColumn] = value;
  2963. }
  2964. }
  2965. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2966. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2967. public ClothRow ClothRow {
  2968. get {
  2969. return ((ClothRow)(this.GetParentRow(this.Table.ParentRelations["FK_Orders_Cloth"])));
  2970. }
  2971. set {
  2972. this.SetParentRow(value, this.Table.ParentRelations["FK_Orders_Cloth"]);
  2973. }
  2974. }
  2975. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2976. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2977. public FurnituraRow FurnituraRow {
  2978. get {
  2979. return ((FurnituraRow)(this.GetParentRow(this.Table.ParentRelations["FK_Orders_Furnitura"])));
  2980. }
  2981. set {
  2982. this.SetParentRow(value, this.Table.ParentRelations["FK_Orders_Furnitura"]);
  2983. }
  2984. }
  2985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2986. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2987. public ProductsRow ProductsRow {
  2988. get {
  2989. return ((ProductsRow)(this.GetParentRow(this.Table.ParentRelations["FK_Orders_Products"])));
  2990. }
  2991. set {
  2992. this.SetParentRow(value, this.Table.ParentRelations["FK_Orders_Products"]);
  2993. }
  2994. }
  2995. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2996. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2997. public UsersRow UsersRowByFK_Orders_Users_Client {
  2998. get {
  2999. return ((UsersRow)(this.GetParentRow(this.Table.ParentRelations["FK_Orders_Users_Client"])));
  3000. }
  3001. set {
  3002. this.SetParentRow(value, this.Table.ParentRelations["FK_Orders_Users_Client"]);
  3003. }
  3004. }
  3005. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3006. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3007. public UsersRow UsersRowByFK_Orders_Users_Manager {
  3008. get {
  3009. return ((UsersRow)(this.GetParentRow(this.Table.ParentRelations["FK_Orders_Users_Manager"])));
  3010. }
  3011. set {
  3012. this.SetParentRow(value, this.Table.ParentRelations["FK_Orders_Users_Manager"]);
  3013. }
  3014. }
  3015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3016. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3017. public bool IsIdProductNull() {
  3018. return this.IsNull(this.tableOrders.IdProductColumn);
  3019. }
  3020. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3021. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3022. public void SetIdProductNull() {
  3023. this[this.tableOrders.IdProductColumn] = global::System.Convert.DBNull;
  3024. }
  3025. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3026. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3027. public bool IsIdClientNull() {
  3028. return this.IsNull(this.tableOrders.IdClientColumn);
  3029. }
  3030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3032. public void SetIdClientNull() {
  3033. this[this.tableOrders.IdClientColumn] = global::System.Convert.DBNull;
  3034. }
  3035. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3036. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3037. public bool IsIdManagerNull() {
  3038. return this.IsNull(this.tableOrders.IdManagerColumn);
  3039. }
  3040. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3041. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3042. public void SetIdManagerNull() {
  3043. this[this.tableOrders.IdManagerColumn] = global::System.Convert.DBNull;
  3044. }
  3045. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3046. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3047. public bool IsIdClothNull() {
  3048. return this.IsNull(this.tableOrders.IdClothColumn);
  3049. }
  3050. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3052. public void SetIdClothNull() {
  3053. this[this.tableOrders.IdClothColumn] = global::System.Convert.DBNull;
  3054. }
  3055. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3056. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3057. public bool IsIdFurNull() {
  3058. return this.IsNull(this.tableOrders.IdFurColumn);
  3059. }
  3060. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3061. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3062. public void SetIdFurNull() {
  3063. this[this.tableOrders.IdFurColumn] = global::System.Convert.DBNull;
  3064. }
  3065. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3066. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3067. public bool IsCountFurnituraNull() {
  3068. return this.IsNull(this.tableOrders.CountFurnituraColumn);
  3069. }
  3070. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3071. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3072. public void SetCountFurnituraNull() {
  3073. this[this.tableOrders.CountFurnituraColumn] = global::System.Convert.DBNull;
  3074. }
  3075. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3076. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3077. public bool IsCountProductNull() {
  3078. return this.IsNull(this.tableOrders.CountProductColumn);
  3079. }
  3080. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3081. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3082. public void SetCountProductNull() {
  3083. this[this.tableOrders.CountProductColumn] = global::System.Convert.DBNull;
  3084. }
  3085. }
  3086. /// <summary>
  3087. ///Represents strongly named DataRow class.
  3088. ///</summary>
  3089. public partial class ProductsRow : global::System.Data.DataRow {
  3090. private ProductsDataTable tableProducts;
  3091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3093. internal ProductsRow(global::System.Data.DataRowBuilder rb) :
  3094. base(rb) {
  3095. this.tableProducts = ((ProductsDataTable)(this.Table));
  3096. }
  3097. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3098. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3099. public int IdProduct {
  3100. get {
  3101. return ((int)(this[this.tableProducts.IdProductColumn]));
  3102. }
  3103. set {
  3104. this[this.tableProducts.IdProductColumn] = value;
  3105. }
  3106. }
  3107. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3108. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3109. public string TitleProduct {
  3110. get {
  3111. try {
  3112. return ((string)(this[this.tableProducts.TitleProductColumn]));
  3113. }
  3114. catch (global::System.InvalidCastException e) {
  3115. throw new global::System.Data.StrongTypingException("The value for column \'TitleProduct\' in table \'Products\' is DBNull.", e);
  3116. }
  3117. }
  3118. set {
  3119. this[this.tableProducts.TitleProductColumn] = value;
  3120. }
  3121. }
  3122. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3123. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3124. public int Lenght {
  3125. get {
  3126. try {
  3127. return ((int)(this[this.tableProducts.LenghtColumn]));
  3128. }
  3129. catch (global::System.InvalidCastException e) {
  3130. throw new global::System.Data.StrongTypingException("The value for column \'Lenght\' in table \'Products\' is DBNull.", e);
  3131. }
  3132. }
  3133. set {
  3134. this[this.tableProducts.LenghtColumn] = value;
  3135. }
  3136. }
  3137. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3138. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3139. public int Width {
  3140. get {
  3141. try {
  3142. return ((int)(this[this.tableProducts.WidthColumn]));
  3143. }
  3144. catch (global::System.InvalidCastException e) {
  3145. throw new global::System.Data.StrongTypingException("The value for column \'Width\' in table \'Products\' is DBNull.", e);
  3146. }
  3147. }
  3148. set {
  3149. this[this.tableProducts.WidthColumn] = value;
  3150. }
  3151. }
  3152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3154. public bool IsTitleProductNull() {
  3155. return this.IsNull(this.tableProducts.TitleProductColumn);
  3156. }
  3157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3159. public void SetTitleProductNull() {
  3160. this[this.tableProducts.TitleProductColumn] = global::System.Convert.DBNull;
  3161. }
  3162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3163. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3164. public bool IsLenghtNull() {
  3165. return this.IsNull(this.tableProducts.LenghtColumn);
  3166. }
  3167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3169. public void SetLenghtNull() {
  3170. this[this.tableProducts.LenghtColumn] = global::System.Convert.DBNull;
  3171. }
  3172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3174. public bool IsWidthNull() {
  3175. return this.IsNull(this.tableProducts.WidthColumn);
  3176. }
  3177. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3178. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3179. public void SetWidthNull() {
  3180. this[this.tableProducts.WidthColumn] = global::System.Convert.DBNull;
  3181. }
  3182. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3183. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3184. public OrdersRow[] GetOrdersRows() {
  3185. if ((this.Table.ChildRelations["FK_Orders_Products"] == null)) {
  3186. return new OrdersRow[0];
  3187. }
  3188. else {
  3189. return ((OrdersRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Orders_Products"])));
  3190. }
  3191. }
  3192. }
  3193. /// <summary>
  3194. ///Represents strongly named DataRow class.
  3195. ///</summary>
  3196. public partial class RolesRow : global::System.Data.DataRow {
  3197. private RolesDataTable tableRoles;
  3198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3199. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3200. internal RolesRow(global::System.Data.DataRowBuilder rb) :
  3201. base(rb) {
  3202. this.tableRoles = ((RolesDataTable)(this.Table));
  3203. }
  3204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3205. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3206. public int IdRole {
  3207. get {
  3208. return ((int)(this[this.tableRoles.IdRoleColumn]));
  3209. }
  3210. set {
  3211. this[this.tableRoles.IdRoleColumn] = value;
  3212. }
  3213. }
  3214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3215. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3216. public string Title {
  3217. get {
  3218. return ((string)(this[this.tableRoles.TitleColumn]));
  3219. }
  3220. set {
  3221. this[this.tableRoles.TitleColumn] = value;
  3222. }
  3223. }
  3224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3225. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3226. public UsersRow[] GetUsersRows() {
  3227. if ((this.Table.ChildRelations["FK_Users_Roles"] == null)) {
  3228. return new UsersRow[0];
  3229. }
  3230. else {
  3231. return ((UsersRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Users_Roles"])));
  3232. }
  3233. }
  3234. }
  3235. /// <summary>
  3236. ///Represents strongly named DataRow class.
  3237. ///</summary>
  3238. public partial class UsersRow : global::System.Data.DataRow {
  3239. private UsersDataTable tableUsers;
  3240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3241. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3242. internal UsersRow(global::System.Data.DataRowBuilder rb) :
  3243. base(rb) {
  3244. this.tableUsers = ((UsersDataTable)(this.Table));
  3245. }
  3246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3247. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3248. public int IdUser {
  3249. get {
  3250. return ((int)(this[this.tableUsers.IdUserColumn]));
  3251. }
  3252. set {
  3253. this[this.tableUsers.IdUserColumn] = value;
  3254. }
  3255. }
  3256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3258. public string Login {
  3259. get {
  3260. try {
  3261. return ((string)(this[this.tableUsers.LoginColumn]));
  3262. }
  3263. catch (global::System.InvalidCastException e) {
  3264. throw new global::System.Data.StrongTypingException("The value for column \'Login\' in table \'Users\' is DBNull.", e);
  3265. }
  3266. }
  3267. set {
  3268. this[this.tableUsers.LoginColumn] = value;
  3269. }
  3270. }
  3271. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3272. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3273. public string Password {
  3274. get {
  3275. try {
  3276. return ((string)(this[this.tableUsers.PasswordColumn]));
  3277. }
  3278. catch (global::System.InvalidCastException e) {
  3279. throw new global::System.Data.StrongTypingException("The value for column \'Password\' in table \'Users\' is DBNull.", e);
  3280. }
  3281. }
  3282. set {
  3283. this[this.tableUsers.PasswordColumn] = value;
  3284. }
  3285. }
  3286. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3287. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3288. public int Role {
  3289. get {
  3290. try {
  3291. return ((int)(this[this.tableUsers.RoleColumn]));
  3292. }
  3293. catch (global::System.InvalidCastException e) {
  3294. throw new global::System.Data.StrongTypingException("The value for column \'Role\' in table \'Users\' is DBNull.", e);
  3295. }
  3296. }
  3297. set {
  3298. this[this.tableUsers.RoleColumn] = value;
  3299. }
  3300. }
  3301. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3302. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3303. public string Fam {
  3304. get {
  3305. try {
  3306. return ((string)(this[this.tableUsers.FamColumn]));
  3307. }
  3308. catch (global::System.InvalidCastException e) {
  3309. throw new global::System.Data.StrongTypingException("The value for column \'Fam\' in table \'Users\' is DBNull.", e);
  3310. }
  3311. }
  3312. set {
  3313. this[this.tableUsers.FamColumn] = value;
  3314. }
  3315. }
  3316. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3317. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3318. public string Name {
  3319. get {
  3320. try {
  3321. return ((string)(this[this.tableUsers.NameColumn]));
  3322. }
  3323. catch (global::System.InvalidCastException e) {
  3324. throw new global::System.Data.StrongTypingException("The value for column \'Name\' in table \'Users\' is DBNull.", e);
  3325. }
  3326. }
  3327. set {
  3328. this[this.tableUsers.NameColumn] = value;
  3329. }
  3330. }
  3331. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3332. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3333. public string Otch {
  3334. get {
  3335. try {
  3336. return ((string)(this[this.tableUsers.OtchColumn]));
  3337. }
  3338. catch (global::System.InvalidCastException e) {
  3339. throw new global::System.Data.StrongTypingException("The value for column \'Otch\' in table \'Users\' is DBNull.", e);
  3340. }
  3341. }
  3342. set {
  3343. this[this.tableUsers.OtchColumn] = value;
  3344. }
  3345. }
  3346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3347. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3348. public string Phone {
  3349. get {
  3350. try {
  3351. return ((string)(this[this.tableUsers.PhoneColumn]));
  3352. }
  3353. catch (global::System.InvalidCastException e) {
  3354. throw new global::System.Data.StrongTypingException("The value for column \'Phone\' in table \'Users\' is DBNull.", e);
  3355. }
  3356. }
  3357. set {
  3358. this[this.tableUsers.PhoneColumn] = value;
  3359. }
  3360. }
  3361. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3362. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3363. public RolesRow RolesRow {
  3364. get {
  3365. return ((RolesRow)(this.GetParentRow(this.Table.ParentRelations["FK_Users_Roles"])));
  3366. }
  3367. set {
  3368. this.SetParentRow(value, this.Table.ParentRelations["FK_Users_Roles"]);
  3369. }
  3370. }
  3371. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3372. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3373. public bool IsLoginNull() {
  3374. return this.IsNull(this.tableUsers.LoginColumn);
  3375. }
  3376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3378. public void SetLoginNull() {
  3379. this[this.tableUsers.LoginColumn] = global::System.Convert.DBNull;
  3380. }
  3381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3382. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3383. public bool IsPasswordNull() {
  3384. return this.IsNull(this.tableUsers.PasswordColumn);
  3385. }
  3386. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3387. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3388. public void SetPasswordNull() {
  3389. this[this.tableUsers.PasswordColumn] = global::System.Convert.DBNull;
  3390. }
  3391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3392. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3393. public bool IsRoleNull() {
  3394. return this.IsNull(this.tableUsers.RoleColumn);
  3395. }
  3396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3398. public void SetRoleNull() {
  3399. this[this.tableUsers.RoleColumn] = global::System.Convert.DBNull;
  3400. }
  3401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3402. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3403. public bool IsFamNull() {
  3404. return this.IsNull(this.tableUsers.FamColumn);
  3405. }
  3406. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3407. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3408. public void SetFamNull() {
  3409. this[this.tableUsers.FamColumn] = global::System.Convert.DBNull;
  3410. }
  3411. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3412. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3413. public bool IsNameNull() {
  3414. return this.IsNull(this.tableUsers.NameColumn);
  3415. }
  3416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3418. public void SetNameNull() {
  3419. this[this.tableUsers.NameColumn] = global::System.Convert.DBNull;
  3420. }
  3421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3422. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3423. public bool IsOtchNull() {
  3424. return this.IsNull(this.tableUsers.OtchColumn);
  3425. }
  3426. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3427. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3428. public void SetOtchNull() {
  3429. this[this.tableUsers.OtchColumn] = global::System.Convert.DBNull;
  3430. }
  3431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3433. public bool IsPhoneNull() {
  3434. return this.IsNull(this.tableUsers.PhoneColumn);
  3435. }
  3436. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3437. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3438. public void SetPhoneNull() {
  3439. this[this.tableUsers.PhoneColumn] = global::System.Convert.DBNull;
  3440. }
  3441. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3442. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3443. public OrdersRow[] GetOrdersRowsByFK_Orders_Users_Client() {
  3444. if ((this.Table.ChildRelations["FK_Orders_Users_Client"] == null)) {
  3445. return new OrdersRow[0];
  3446. }
  3447. else {
  3448. return ((OrdersRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Orders_Users_Client"])));
  3449. }
  3450. }
  3451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3452. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3453. public OrdersRow[] GetOrdersRowsByFK_Orders_Users_Manager() {
  3454. if ((this.Table.ChildRelations["FK_Orders_Users_Manager"] == null)) {
  3455. return new OrdersRow[0];
  3456. }
  3457. else {
  3458. return ((OrdersRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Orders_Users_Manager"])));
  3459. }
  3460. }
  3461. }
  3462. /// <summary>
  3463. ///Row event argument class
  3464. ///</summary>
  3465. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3466. public class ClothRowChangeEvent : global::System.EventArgs {
  3467. private ClothRow eventRow;
  3468. private global::System.Data.DataRowAction eventAction;
  3469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3470. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3471. public ClothRowChangeEvent(ClothRow row, global::System.Data.DataRowAction action) {
  3472. this.eventRow = row;
  3473. this.eventAction = action;
  3474. }
  3475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3477. public ClothRow Row {
  3478. get {
  3479. return this.eventRow;
  3480. }
  3481. }
  3482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3484. public global::System.Data.DataRowAction Action {
  3485. get {
  3486. return this.eventAction;
  3487. }
  3488. }
  3489. }
  3490. /// <summary>
  3491. ///Row event argument class
  3492. ///</summary>
  3493. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3494. public class ColorsRowChangeEvent : global::System.EventArgs {
  3495. private ColorsRow eventRow;
  3496. private global::System.Data.DataRowAction eventAction;
  3497. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3498. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3499. public ColorsRowChangeEvent(ColorsRow row, global::System.Data.DataRowAction action) {
  3500. this.eventRow = row;
  3501. this.eventAction = action;
  3502. }
  3503. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3504. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3505. public ColorsRow Row {
  3506. get {
  3507. return this.eventRow;
  3508. }
  3509. }
  3510. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3511. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3512. public global::System.Data.DataRowAction Action {
  3513. get {
  3514. return this.eventAction;
  3515. }
  3516. }
  3517. }
  3518. /// <summary>
  3519. ///Row event argument class
  3520. ///</summary>
  3521. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3522. public class FurnituraRowChangeEvent : global::System.EventArgs {
  3523. private FurnituraRow eventRow;
  3524. private global::System.Data.DataRowAction eventAction;
  3525. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3526. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3527. public FurnituraRowChangeEvent(FurnituraRow row, global::System.Data.DataRowAction action) {
  3528. this.eventRow = row;
  3529. this.eventAction = action;
  3530. }
  3531. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3532. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3533. public FurnituraRow Row {
  3534. get {
  3535. return this.eventRow;
  3536. }
  3537. }
  3538. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3539. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3540. public global::System.Data.DataRowAction Action {
  3541. get {
  3542. return this.eventAction;
  3543. }
  3544. }
  3545. }
  3546. /// <summary>
  3547. ///Row event argument class
  3548. ///</summary>
  3549. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3550. public class OrdersRowChangeEvent : global::System.EventArgs {
  3551. private OrdersRow eventRow;
  3552. private global::System.Data.DataRowAction eventAction;
  3553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3555. public OrdersRowChangeEvent(OrdersRow row, global::System.Data.DataRowAction action) {
  3556. this.eventRow = row;
  3557. this.eventAction = action;
  3558. }
  3559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3561. public OrdersRow Row {
  3562. get {
  3563. return this.eventRow;
  3564. }
  3565. }
  3566. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3567. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3568. public global::System.Data.DataRowAction Action {
  3569. get {
  3570. return this.eventAction;
  3571. }
  3572. }
  3573. }
  3574. /// <summary>
  3575. ///Row event argument class
  3576. ///</summary>
  3577. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3578. public class ProductsRowChangeEvent : global::System.EventArgs {
  3579. private ProductsRow eventRow;
  3580. private global::System.Data.DataRowAction eventAction;
  3581. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3582. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3583. public ProductsRowChangeEvent(ProductsRow row, global::System.Data.DataRowAction action) {
  3584. this.eventRow = row;
  3585. this.eventAction = action;
  3586. }
  3587. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3588. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3589. public ProductsRow Row {
  3590. get {
  3591. return this.eventRow;
  3592. }
  3593. }
  3594. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3595. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3596. public global::System.Data.DataRowAction Action {
  3597. get {
  3598. return this.eventAction;
  3599. }
  3600. }
  3601. }
  3602. /// <summary>
  3603. ///Row event argument class
  3604. ///</summary>
  3605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3606. public class RolesRowChangeEvent : global::System.EventArgs {
  3607. private RolesRow eventRow;
  3608. private global::System.Data.DataRowAction eventAction;
  3609. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3610. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3611. public RolesRowChangeEvent(RolesRow row, global::System.Data.DataRowAction action) {
  3612. this.eventRow = row;
  3613. this.eventAction = action;
  3614. }
  3615. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3616. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3617. public RolesRow Row {
  3618. get {
  3619. return this.eventRow;
  3620. }
  3621. }
  3622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3623. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3624. public global::System.Data.DataRowAction Action {
  3625. get {
  3626. return this.eventAction;
  3627. }
  3628. }
  3629. }
  3630. /// <summary>
  3631. ///Row event argument class
  3632. ///</summary>
  3633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3634. public class UsersRowChangeEvent : global::System.EventArgs {
  3635. private UsersRow eventRow;
  3636. private global::System.Data.DataRowAction eventAction;
  3637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3638. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3639. public UsersRowChangeEvent(UsersRow row, global::System.Data.DataRowAction action) {
  3640. this.eventRow = row;
  3641. this.eventAction = action;
  3642. }
  3643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3644. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3645. public UsersRow Row {
  3646. get {
  3647. return this.eventRow;
  3648. }
  3649. }
  3650. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3651. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3652. public global::System.Data.DataRowAction Action {
  3653. get {
  3654. return this.eventAction;
  3655. }
  3656. }
  3657. }
  3658. }
  3659. }
  3660. namespace СУБД_Швейная_фабрика.FabrikaLDADataSetTableAdapters {
  3661. /// <summary>
  3662. ///Represents the connection and commands used to retrieve and save data.
  3663. ///</summary>
  3664. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3665. [global::System.ComponentModel.ToolboxItem(true)]
  3666. [global::System.ComponentModel.DataObjectAttribute(true)]
  3667. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  3668. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3669. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3670. public partial class ClothTableAdapter : global::System.ComponentModel.Component {
  3671. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  3672. private global::System.Data.SqlClient.SqlConnection _connection;
  3673. private global::System.Data.SqlClient.SqlTransaction _transaction;
  3674. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  3675. private bool _clearBeforeFill;
  3676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3677. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3678. public ClothTableAdapter() {
  3679. this.ClearBeforeFill = true;
  3680. }
  3681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3682. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3683. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  3684. get {
  3685. if ((this._adapter == null)) {
  3686. this.InitAdapter();
  3687. }
  3688. return this._adapter;
  3689. }
  3690. }
  3691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3692. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3693. internal global::System.Data.SqlClient.SqlConnection Connection {
  3694. get {
  3695. if ((this._connection == null)) {
  3696. this.InitConnection();
  3697. }
  3698. return this._connection;
  3699. }
  3700. set {
  3701. this._connection = value;
  3702. if ((this.Adapter.InsertCommand != null)) {
  3703. this.Adapter.InsertCommand.Connection = value;
  3704. }
  3705. if ((this.Adapter.DeleteCommand != null)) {
  3706. this.Adapter.DeleteCommand.Connection = value;
  3707. }
  3708. if ((this.Adapter.UpdateCommand != null)) {
  3709. this.Adapter.UpdateCommand.Connection = value;
  3710. }
  3711. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3712. if ((this.CommandCollection[i] != null)) {
  3713. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  3714. }
  3715. }
  3716. }
  3717. }
  3718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3719. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3720. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  3721. get {
  3722. return this._transaction;
  3723. }
  3724. set {
  3725. this._transaction = value;
  3726. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3727. this.CommandCollection[i].Transaction = this._transaction;
  3728. }
  3729. if (((this.Adapter != null)
  3730. && (this.Adapter.DeleteCommand != null))) {
  3731. this.Adapter.DeleteCommand.Transaction = this._transaction;
  3732. }
  3733. if (((this.Adapter != null)
  3734. && (this.Adapter.InsertCommand != null))) {
  3735. this.Adapter.InsertCommand.Transaction = this._transaction;
  3736. }
  3737. if (((this.Adapter != null)
  3738. && (this.Adapter.UpdateCommand != null))) {
  3739. this.Adapter.UpdateCommand.Transaction = this._transaction;
  3740. }
  3741. }
  3742. }
  3743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3745. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  3746. get {
  3747. if ((this._commandCollection == null)) {
  3748. this.InitCommandCollection();
  3749. }
  3750. return this._commandCollection;
  3751. }
  3752. }
  3753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3755. public bool ClearBeforeFill {
  3756. get {
  3757. return this._clearBeforeFill;
  3758. }
  3759. set {
  3760. this._clearBeforeFill = value;
  3761. }
  3762. }
  3763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3764. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3765. private void InitAdapter() {
  3766. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  3767. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  3768. tableMapping.SourceTable = "Table";
  3769. tableMapping.DataSetTable = "Cloth";
  3770. tableMapping.ColumnMappings.Add("IdCloth", "IdCloth");
  3771. tableMapping.ColumnMappings.Add("Title", "Title");
  3772. tableMapping.ColumnMappings.Add("IdColor", "IdColor");
  3773. tableMapping.ColumnMappings.Add("Weight", "Weight");
  3774. tableMapping.ColumnMappings.Add("Height", "Height");
  3775. tableMapping.ColumnMappings.Add("Note", "Note");
  3776. tableMapping.ColumnMappings.Add("Photo", "Photo");
  3777. this._adapter.TableMappings.Add(tableMapping);
  3778. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  3779. this._adapter.DeleteCommand.Connection = this.Connection;
  3780. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Cloth] WHERE (([IdCloth] = @Original_IdCloth) AND ((@IsNull_Title = 1 AND [Title] IS NULL) OR ([Title] = @Original_Title)) AND ((@IsNull_IdColor = 1 AND [IdColor] IS NULL) OR ([IdColor] = @Original_IdColor)) AND ((@IsNull_Weight = 1 AND [Weight] IS NULL) OR ([Weight] = @Original_Weight)) AND ((@IsNull_Height = 1 AND [Height] IS NULL) OR ([Height] = @Original_Height)) AND ((@IsNull_Note = 1 AND [Note] IS NULL) OR ([Note] = @Original_Note)) AND ((@IsNull_Photo = 1 AND [Photo] IS NULL) OR ([Photo] = @Original_Photo)))";
  3781. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  3782. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdCloth", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdCloth", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3783. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Title", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3784. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3785. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IdColor", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdColor", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3786. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdColor", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdColor", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3787. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Weight", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Weight", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3788. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Weight", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Weight", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3789. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Height", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Height", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3790. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Height", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Height", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3791. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Note", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Note", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3792. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Note", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Note", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3793. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Photo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Photo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3794. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Photo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Photo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3795. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  3796. this._adapter.InsertCommand.Connection = this.Connection;
  3797. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Cloth] ([Title], [IdColor], [Weight], [Height], [Note], [Photo" +
  3798. "]) VALUES (@Title, @IdColor, @Weight, @Height, @Note, @Photo);\r\nSELECT IdCloth, " +
  3799. "Title, IdColor, Weight, Height, Note, Photo FROM Cloth WHERE (IdCloth = SCOPE_ID" +
  3800. "ENTITY())";
  3801. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  3802. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3803. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdColor", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdColor", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3804. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Weight", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Weight", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3805. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Height", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Height", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3806. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Note", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3807. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Photo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Photo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3808. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  3809. this._adapter.UpdateCommand.Connection = this.Connection;
  3810. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Cloth] SET [Title] = @Title, [IdColor] = @IdColor, [Weight] = @Weight, [Height] = @Height, [Note] = @Note, [Photo] = @Photo WHERE (([IdCloth] = @Original_IdCloth) AND ((@IsNull_Title = 1 AND [Title] IS NULL) OR ([Title] = @Original_Title)) AND ((@IsNull_IdColor = 1 AND [IdColor] IS NULL) OR ([IdColor] = @Original_IdColor)) AND ((@IsNull_Weight = 1 AND [Weight] IS NULL) OR ([Weight] = @Original_Weight)) AND ((@IsNull_Height = 1 AND [Height] IS NULL) OR ([Height] = @Original_Height)) AND ((@IsNull_Note = 1 AND [Note] IS NULL) OR ([Note] = @Original_Note)) AND ((@IsNull_Photo = 1 AND [Photo] IS NULL) OR ([Photo] = @Original_Photo)));
  3811. SELECT IdCloth, Title, IdColor, Weight, Height, Note, Photo FROM Cloth WHERE (IdCloth = @IdCloth)";
  3812. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  3813. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3814. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdColor", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdColor", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3815. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Weight", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Weight", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3816. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Height", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Height", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3817. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Note", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3818. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Photo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Photo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3819. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdCloth", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdCloth", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3820. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Title", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3821. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3822. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IdColor", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdColor", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3823. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdColor", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdColor", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3824. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Weight", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Weight", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3825. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Weight", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Weight", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3826. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Height", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Height", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3827. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Height", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Height", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3828. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Note", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Note", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3829. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Note", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Note", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3830. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Photo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Photo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  3831. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Photo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Photo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3832. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdCloth", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IdCloth", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3833. }
  3834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3835. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3836. private void InitConnection() {
  3837. this._connection = new global::System.Data.SqlClient.SqlConnection();
  3838. this._connection.ConnectionString = global::СУБД_Швейная_фабрика.Properties.Settings.Default.FabrikaLDAConnectionString;
  3839. }
  3840. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3841. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3842. private void InitCommandCollection() {
  3843. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  3844. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  3845. this._commandCollection[0].Connection = this.Connection;
  3846. this._commandCollection[0].CommandText = "SELECT IdCloth, Title, IdColor, Weight, Height, Note, Photo FROM dbo.Cloth";
  3847. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  3848. }
  3849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3850. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3851. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3852. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  3853. public virtual int Fill(FabrikaLDADataSet.ClothDataTable dataTable) {
  3854. this.Adapter.SelectCommand = this.CommandCollection[0];
  3855. if ((this.ClearBeforeFill == true)) {
  3856. dataTable.Clear();
  3857. }
  3858. int returnValue = this.Adapter.Fill(dataTable);
  3859. return returnValue;
  3860. }
  3861. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3862. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3863. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3864. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  3865. public virtual FabrikaLDADataSet.ClothDataTable GetData() {
  3866. this.Adapter.SelectCommand = this.CommandCollection[0];
  3867. FabrikaLDADataSet.ClothDataTable dataTable = new FabrikaLDADataSet.ClothDataTable();
  3868. this.Adapter.Fill(dataTable);
  3869. return dataTable;
  3870. }
  3871. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3872. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3873. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3874. public virtual int Update(FabrikaLDADataSet.ClothDataTable dataTable) {
  3875. return this.Adapter.Update(dataTable);
  3876. }
  3877. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3878. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3879. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3880. public virtual int Update(FabrikaLDADataSet dataSet) {
  3881. return this.Adapter.Update(dataSet, "Cloth");
  3882. }
  3883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3884. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3885. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3886. public virtual int Update(global::System.Data.DataRow dataRow) {
  3887. return this.Adapter.Update(new global::System.Data.DataRow[] {
  3888. dataRow});
  3889. }
  3890. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3891. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3892. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3893. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  3894. return this.Adapter.Update(dataRows);
  3895. }
  3896. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3897. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3898. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3899. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  3900. public virtual int Delete(int Original_IdCloth, string Original_Title, global::System.Nullable<int> Original_IdColor, global::System.Nullable<int> Original_Weight, global::System.Nullable<int> Original_Height, string Original_Note, string Original_Photo) {
  3901. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdCloth));
  3902. if ((Original_Title == null)) {
  3903. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  3904. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  3905. }
  3906. else {
  3907. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  3908. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Title));
  3909. }
  3910. if ((Original_IdColor.HasValue == true)) {
  3911. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  3912. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_IdColor.Value));
  3913. }
  3914. else {
  3915. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  3916. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  3917. }
  3918. if ((Original_Weight.HasValue == true)) {
  3919. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  3920. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_Weight.Value));
  3921. }
  3922. else {
  3923. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  3924. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  3925. }
  3926. if ((Original_Height.HasValue == true)) {
  3927. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  3928. this.Adapter.DeleteCommand.Parameters[8].Value = ((int)(Original_Height.Value));
  3929. }
  3930. else {
  3931. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  3932. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  3933. }
  3934. if ((Original_Note == null)) {
  3935. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  3936. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  3937. }
  3938. else {
  3939. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  3940. this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_Note));
  3941. }
  3942. if ((Original_Photo == null)) {
  3943. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  3944. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  3945. }
  3946. else {
  3947. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  3948. this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_Photo));
  3949. }
  3950. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  3951. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3952. != global::System.Data.ConnectionState.Open)) {
  3953. this.Adapter.DeleteCommand.Connection.Open();
  3954. }
  3955. try {
  3956. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  3957. return returnValue;
  3958. }
  3959. finally {
  3960. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3961. this.Adapter.DeleteCommand.Connection.Close();
  3962. }
  3963. }
  3964. }
  3965. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3966. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3967. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3968. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  3969. public virtual int Insert(string Title, global::System.Nullable<int> IdColor, global::System.Nullable<int> Weight, global::System.Nullable<int> Height, string Note, string Photo) {
  3970. if ((Title == null)) {
  3971. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  3972. }
  3973. else {
  3974. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  3975. }
  3976. if ((IdColor.HasValue == true)) {
  3977. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(IdColor.Value));
  3978. }
  3979. else {
  3980. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  3981. }
  3982. if ((Weight.HasValue == true)) {
  3983. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Weight.Value));
  3984. }
  3985. else {
  3986. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  3987. }
  3988. if ((Height.HasValue == true)) {
  3989. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(Height.Value));
  3990. }
  3991. else {
  3992. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  3993. }
  3994. if ((Note == null)) {
  3995. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  3996. }
  3997. else {
  3998. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Note));
  3999. }
  4000. if ((Photo == null)) {
  4001. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  4002. }
  4003. else {
  4004. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Photo));
  4005. }
  4006. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  4007. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4008. != global::System.Data.ConnectionState.Open)) {
  4009. this.Adapter.InsertCommand.Connection.Open();
  4010. }
  4011. try {
  4012. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  4013. return returnValue;
  4014. }
  4015. finally {
  4016. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4017. this.Adapter.InsertCommand.Connection.Close();
  4018. }
  4019. }
  4020. }
  4021. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4022. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4023. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4024. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4025. public virtual int Update(string Title, global::System.Nullable<int> IdColor, global::System.Nullable<int> Weight, global::System.Nullable<int> Height, string Note, string Photo, int Original_IdCloth, string Original_Title, global::System.Nullable<int> Original_IdColor, global::System.Nullable<int> Original_Weight, global::System.Nullable<int> Original_Height, string Original_Note, string Original_Photo, int IdCloth) {
  4026. if ((Title == null)) {
  4027. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  4028. }
  4029. else {
  4030. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  4031. }
  4032. if ((IdColor.HasValue == true)) {
  4033. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(IdColor.Value));
  4034. }
  4035. else {
  4036. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  4037. }
  4038. if ((Weight.HasValue == true)) {
  4039. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Weight.Value));
  4040. }
  4041. else {
  4042. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  4043. }
  4044. if ((Height.HasValue == true)) {
  4045. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Height.Value));
  4046. }
  4047. else {
  4048. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  4049. }
  4050. if ((Note == null)) {
  4051. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  4052. }
  4053. else {
  4054. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Note));
  4055. }
  4056. if ((Photo == null)) {
  4057. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  4058. }
  4059. else {
  4060. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Photo));
  4061. }
  4062. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_IdCloth));
  4063. if ((Original_Title == null)) {
  4064. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  4065. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  4066. }
  4067. else {
  4068. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  4069. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_Title));
  4070. }
  4071. if ((Original_IdColor.HasValue == true)) {
  4072. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  4073. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_IdColor.Value));
  4074. }
  4075. else {
  4076. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  4077. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  4078. }
  4079. if ((Original_Weight.HasValue == true)) {
  4080. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  4081. this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(Original_Weight.Value));
  4082. }
  4083. else {
  4084. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  4085. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  4086. }
  4087. if ((Original_Height.HasValue == true)) {
  4088. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
  4089. this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(Original_Height.Value));
  4090. }
  4091. else {
  4092. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
  4093. this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
  4094. }
  4095. if ((Original_Note == null)) {
  4096. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
  4097. this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
  4098. }
  4099. else {
  4100. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
  4101. this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_Note));
  4102. }
  4103. if ((Original_Photo == null)) {
  4104. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
  4105. this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
  4106. }
  4107. else {
  4108. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
  4109. this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_Photo));
  4110. }
  4111. this.Adapter.UpdateCommand.Parameters[19].Value = ((int)(IdCloth));
  4112. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  4113. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4114. != global::System.Data.ConnectionState.Open)) {
  4115. this.Adapter.UpdateCommand.Connection.Open();
  4116. }
  4117. try {
  4118. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  4119. return returnValue;
  4120. }
  4121. finally {
  4122. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4123. this.Adapter.UpdateCommand.Connection.Close();
  4124. }
  4125. }
  4126. }
  4127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4128. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4129. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4130. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4131. public virtual int Update(string Title, global::System.Nullable<int> IdColor, global::System.Nullable<int> Weight, global::System.Nullable<int> Height, string Note, string Photo, int Original_IdCloth, string Original_Title, global::System.Nullable<int> Original_IdColor, global::System.Nullable<int> Original_Weight, global::System.Nullable<int> Original_Height, string Original_Note, string Original_Photo) {
  4132. return this.Update(Title, IdColor, Weight, Height, Note, Photo, Original_IdCloth, Original_Title, Original_IdColor, Original_Weight, Original_Height, Original_Note, Original_Photo, Original_IdCloth);
  4133. }
  4134. }
  4135. /// <summary>
  4136. ///Represents the connection and commands used to retrieve and save data.
  4137. ///</summary>
  4138. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4139. [global::System.ComponentModel.ToolboxItem(true)]
  4140. [global::System.ComponentModel.DataObjectAttribute(true)]
  4141. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4142. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4143. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4144. public partial class ColorsTableAdapter : global::System.ComponentModel.Component {
  4145. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4146. private global::System.Data.SqlClient.SqlConnection _connection;
  4147. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4148. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4149. private bool _clearBeforeFill;
  4150. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4151. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4152. public ColorsTableAdapter() {
  4153. this.ClearBeforeFill = true;
  4154. }
  4155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4156. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4157. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4158. get {
  4159. if ((this._adapter == null)) {
  4160. this.InitAdapter();
  4161. }
  4162. return this._adapter;
  4163. }
  4164. }
  4165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4167. internal global::System.Data.SqlClient.SqlConnection Connection {
  4168. get {
  4169. if ((this._connection == null)) {
  4170. this.InitConnection();
  4171. }
  4172. return this._connection;
  4173. }
  4174. set {
  4175. this._connection = value;
  4176. if ((this.Adapter.InsertCommand != null)) {
  4177. this.Adapter.InsertCommand.Connection = value;
  4178. }
  4179. if ((this.Adapter.DeleteCommand != null)) {
  4180. this.Adapter.DeleteCommand.Connection = value;
  4181. }
  4182. if ((this.Adapter.UpdateCommand != null)) {
  4183. this.Adapter.UpdateCommand.Connection = value;
  4184. }
  4185. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4186. if ((this.CommandCollection[i] != null)) {
  4187. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4188. }
  4189. }
  4190. }
  4191. }
  4192. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4193. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4194. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4195. get {
  4196. return this._transaction;
  4197. }
  4198. set {
  4199. this._transaction = value;
  4200. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4201. this.CommandCollection[i].Transaction = this._transaction;
  4202. }
  4203. if (((this.Adapter != null)
  4204. && (this.Adapter.DeleteCommand != null))) {
  4205. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4206. }
  4207. if (((this.Adapter != null)
  4208. && (this.Adapter.InsertCommand != null))) {
  4209. this.Adapter.InsertCommand.Transaction = this._transaction;
  4210. }
  4211. if (((this.Adapter != null)
  4212. && (this.Adapter.UpdateCommand != null))) {
  4213. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4214. }
  4215. }
  4216. }
  4217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4218. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4219. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4220. get {
  4221. if ((this._commandCollection == null)) {
  4222. this.InitCommandCollection();
  4223. }
  4224. return this._commandCollection;
  4225. }
  4226. }
  4227. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4228. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4229. public bool ClearBeforeFill {
  4230. get {
  4231. return this._clearBeforeFill;
  4232. }
  4233. set {
  4234. this._clearBeforeFill = value;
  4235. }
  4236. }
  4237. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4238. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4239. private void InitAdapter() {
  4240. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4241. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4242. tableMapping.SourceTable = "Table";
  4243. tableMapping.DataSetTable = "Colors";
  4244. tableMapping.ColumnMappings.Add("IdColor", "IdColor");
  4245. tableMapping.ColumnMappings.Add("Title", "Title");
  4246. this._adapter.TableMappings.Add(tableMapping);
  4247. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4248. this._adapter.DeleteCommand.Connection = this.Connection;
  4249. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Colors] WHERE (([IdColor] = @Original_IdColor) AND ((@IsNull_T" +
  4250. "itle = 1 AND [Title] IS NULL) OR ([Title] = @Original_Title)))";
  4251. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4252. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdColor", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdColor", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4253. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Title", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4254. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4255. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4256. this._adapter.InsertCommand.Connection = this.Connection;
  4257. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Colors] ([Title]) VALUES (@Title);\r\nSELECT IdColor, Title FROM" +
  4258. " Colors WHERE (IdColor = SCOPE_IDENTITY())";
  4259. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4260. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4261. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  4262. this._adapter.UpdateCommand.Connection = this.Connection;
  4263. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Colors] SET [Title] = @Title WHERE (([IdColor] = @Original_IdColor)" +
  4264. " AND ((@IsNull_Title = 1 AND [Title] IS NULL) OR ([Title] = @Original_Title)));\r" +
  4265. "\nSELECT IdColor, Title FROM Colors WHERE (IdColor = @IdColor)";
  4266. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4267. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4268. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdColor", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdColor", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4269. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Title", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4270. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4271. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdColor", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IdColor", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4272. }
  4273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4274. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4275. private void InitConnection() {
  4276. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4277. this._connection.ConnectionString = global::СУБД_Швейная_фабрика.Properties.Settings.Default.FabrikaLDAConnectionString;
  4278. }
  4279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4280. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4281. private void InitCommandCollection() {
  4282. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4283. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4284. this._commandCollection[0].Connection = this.Connection;
  4285. this._commandCollection[0].CommandText = "SELECT IdColor, Title FROM dbo.Colors";
  4286. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4287. }
  4288. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4289. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4290. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4291. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4292. public virtual int Fill(FabrikaLDADataSet.ColorsDataTable dataTable) {
  4293. this.Adapter.SelectCommand = this.CommandCollection[0];
  4294. if ((this.ClearBeforeFill == true)) {
  4295. dataTable.Clear();
  4296. }
  4297. int returnValue = this.Adapter.Fill(dataTable);
  4298. return returnValue;
  4299. }
  4300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4301. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4302. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4303. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4304. public virtual FabrikaLDADataSet.ColorsDataTable GetData() {
  4305. this.Adapter.SelectCommand = this.CommandCollection[0];
  4306. FabrikaLDADataSet.ColorsDataTable dataTable = new FabrikaLDADataSet.ColorsDataTable();
  4307. this.Adapter.Fill(dataTable);
  4308. return dataTable;
  4309. }
  4310. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4311. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4312. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4313. public virtual int Update(FabrikaLDADataSet.ColorsDataTable dataTable) {
  4314. return this.Adapter.Update(dataTable);
  4315. }
  4316. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4317. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4318. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4319. public virtual int Update(FabrikaLDADataSet dataSet) {
  4320. return this.Adapter.Update(dataSet, "Colors");
  4321. }
  4322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4323. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4324. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4325. public virtual int Update(global::System.Data.DataRow dataRow) {
  4326. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4327. dataRow});
  4328. }
  4329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4331. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4332. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  4333. return this.Adapter.Update(dataRows);
  4334. }
  4335. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4336. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4337. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4338. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  4339. public virtual int Delete(int Original_IdColor, string Original_Title) {
  4340. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdColor));
  4341. if ((Original_Title == null)) {
  4342. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  4343. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  4344. }
  4345. else {
  4346. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  4347. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Title));
  4348. }
  4349. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  4350. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4351. != global::System.Data.ConnectionState.Open)) {
  4352. this.Adapter.DeleteCommand.Connection.Open();
  4353. }
  4354. try {
  4355. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  4356. return returnValue;
  4357. }
  4358. finally {
  4359. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4360. this.Adapter.DeleteCommand.Connection.Close();
  4361. }
  4362. }
  4363. }
  4364. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4365. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4366. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4367. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  4368. public virtual int Insert(string Title) {
  4369. if ((Title == null)) {
  4370. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  4371. }
  4372. else {
  4373. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Title));
  4374. }
  4375. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  4376. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4377. != global::System.Data.ConnectionState.Open)) {
  4378. this.Adapter.InsertCommand.Connection.Open();
  4379. }
  4380. try {
  4381. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  4382. return returnValue;
  4383. }
  4384. finally {
  4385. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4386. this.Adapter.InsertCommand.Connection.Close();
  4387. }
  4388. }
  4389. }
  4390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4392. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4393. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4394. public virtual int Update(string Title, int Original_IdColor, string Original_Title, int IdColor) {
  4395. if ((Title == null)) {
  4396. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  4397. }
  4398. else {
  4399. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Title));
  4400. }
  4401. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_IdColor));
  4402. if ((Original_Title == null)) {
  4403. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  4404. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  4405. }
  4406. else {
  4407. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  4408. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Title));
  4409. }
  4410. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(IdColor));
  4411. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  4412. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4413. != global::System.Data.ConnectionState.Open)) {
  4414. this.Adapter.UpdateCommand.Connection.Open();
  4415. }
  4416. try {
  4417. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  4418. return returnValue;
  4419. }
  4420. finally {
  4421. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4422. this.Adapter.UpdateCommand.Connection.Close();
  4423. }
  4424. }
  4425. }
  4426. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4427. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4428. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4429. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4430. public virtual int Update(string Title, int Original_IdColor, string Original_Title) {
  4431. return this.Update(Title, Original_IdColor, Original_Title, Original_IdColor);
  4432. }
  4433. }
  4434. /// <summary>
  4435. ///Represents the connection and commands used to retrieve and save data.
  4436. ///</summary>
  4437. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4438. [global::System.ComponentModel.ToolboxItem(true)]
  4439. [global::System.ComponentModel.DataObjectAttribute(true)]
  4440. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4441. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4442. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4443. public partial class FurnituraTableAdapter : global::System.ComponentModel.Component {
  4444. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4445. private global::System.Data.SqlClient.SqlConnection _connection;
  4446. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4447. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4448. private bool _clearBeforeFill;
  4449. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4450. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4451. public FurnituraTableAdapter() {
  4452. this.ClearBeforeFill = true;
  4453. }
  4454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4455. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4456. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4457. get {
  4458. if ((this._adapter == null)) {
  4459. this.InitAdapter();
  4460. }
  4461. return this._adapter;
  4462. }
  4463. }
  4464. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4465. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4466. internal global::System.Data.SqlClient.SqlConnection Connection {
  4467. get {
  4468. if ((this._connection == null)) {
  4469. this.InitConnection();
  4470. }
  4471. return this._connection;
  4472. }
  4473. set {
  4474. this._connection = value;
  4475. if ((this.Adapter.InsertCommand != null)) {
  4476. this.Adapter.InsertCommand.Connection = value;
  4477. }
  4478. if ((this.Adapter.DeleteCommand != null)) {
  4479. this.Adapter.DeleteCommand.Connection = value;
  4480. }
  4481. if ((this.Adapter.UpdateCommand != null)) {
  4482. this.Adapter.UpdateCommand.Connection = value;
  4483. }
  4484. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4485. if ((this.CommandCollection[i] != null)) {
  4486. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4487. }
  4488. }
  4489. }
  4490. }
  4491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4492. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4493. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4494. get {
  4495. return this._transaction;
  4496. }
  4497. set {
  4498. this._transaction = value;
  4499. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4500. this.CommandCollection[i].Transaction = this._transaction;
  4501. }
  4502. if (((this.Adapter != null)
  4503. && (this.Adapter.DeleteCommand != null))) {
  4504. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4505. }
  4506. if (((this.Adapter != null)
  4507. && (this.Adapter.InsertCommand != null))) {
  4508. this.Adapter.InsertCommand.Transaction = this._transaction;
  4509. }
  4510. if (((this.Adapter != null)
  4511. && (this.Adapter.UpdateCommand != null))) {
  4512. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4513. }
  4514. }
  4515. }
  4516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4517. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4518. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4519. get {
  4520. if ((this._commandCollection == null)) {
  4521. this.InitCommandCollection();
  4522. }
  4523. return this._commandCollection;
  4524. }
  4525. }
  4526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4528. public bool ClearBeforeFill {
  4529. get {
  4530. return this._clearBeforeFill;
  4531. }
  4532. set {
  4533. this._clearBeforeFill = value;
  4534. }
  4535. }
  4536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4537. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4538. private void InitAdapter() {
  4539. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4540. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4541. tableMapping.SourceTable = "Table";
  4542. tableMapping.DataSetTable = "Furnitura";
  4543. tableMapping.ColumnMappings.Add("idfur", "idfur");
  4544. tableMapping.ColumnMappings.Add("namefur", "namefur");
  4545. tableMapping.ColumnMappings.Add("photo", "photo");
  4546. tableMapping.ColumnMappings.Add("countfur", "countfur");
  4547. this._adapter.TableMappings.Add(tableMapping);
  4548. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4549. this._adapter.DeleteCommand.Connection = this.Connection;
  4550. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Furnitura] WHERE (([idfur] = @Original_idfur) AND ((@IsNull_namefur = 1 AND [namefur] IS NULL) OR ([namefur] = @Original_namefur)) AND ((@IsNull_photo = 1 AND [photo] IS NULL) OR ([photo] = @Original_photo)) AND ((@IsNull_countfur = 1 AND [countfur] IS NULL) OR ([countfur] = @Original_countfur)))";
  4551. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4552. 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, "", "", ""));
  4553. 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, "", "", ""));
  4554. 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, "", "", ""));
  4555. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_photo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "photo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4556. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_photo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "photo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4557. 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, "", "", ""));
  4558. 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, "", "", ""));
  4559. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4560. this._adapter.InsertCommand.Connection = this.Connection;
  4561. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Furnitura] ([namefur], [photo], [countfur]) VALUES (@namefur, " +
  4562. "@photo, @countfur);\r\nSELECT idfur, namefur, photo, countfur FROM Furnitura WHERE" +
  4563. " (idfur = SCOPE_IDENTITY())";
  4564. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4565. 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, "", "", ""));
  4566. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@photo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "photo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4567. 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, "", "", ""));
  4568. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  4569. this._adapter.UpdateCommand.Connection = this.Connection;
  4570. 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_photo = 1 AND [photo] IS NULL) OR ([photo] = @Original_photo)) AND ((@IsNull_countfur = 1 AND [countfur] IS NULL) OR ([countfur] = @Original_countfur)));
  4571. SELECT idfur, namefur, photo, countfur FROM Furnitura WHERE (idfur = @idfur)";
  4572. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4573. 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, "", "", ""));
  4574. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@photo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "photo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4575. 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, "", "", ""));
  4576. 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, "", "", ""));
  4577. 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, "", "", ""));
  4578. 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, "", "", ""));
  4579. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_photo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "photo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4580. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_photo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "photo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4581. 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, "", "", ""));
  4582. 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, "", "", ""));
  4583. 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, "", "", ""));
  4584. }
  4585. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4586. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4587. private void InitConnection() {
  4588. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4589. this._connection.ConnectionString = global::СУБД_Швейная_фабрика.Properties.Settings.Default.FabrikaLDAConnectionString;
  4590. }
  4591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4592. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4593. private void InitCommandCollection() {
  4594. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4595. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4596. this._commandCollection[0].Connection = this.Connection;
  4597. this._commandCollection[0].CommandText = "SELECT idfur, namefur, photo, countfur FROM dbo.Furnitura";
  4598. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4599. }
  4600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4601. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4602. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4603. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4604. public virtual int Fill(FabrikaLDADataSet.FurnituraDataTable dataTable) {
  4605. this.Adapter.SelectCommand = this.CommandCollection[0];
  4606. if ((this.ClearBeforeFill == true)) {
  4607. dataTable.Clear();
  4608. }
  4609. int returnValue = this.Adapter.Fill(dataTable);
  4610. return returnValue;
  4611. }
  4612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4614. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4615. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4616. public virtual FabrikaLDADataSet.FurnituraDataTable GetData() {
  4617. this.Adapter.SelectCommand = this.CommandCollection[0];
  4618. FabrikaLDADataSet.FurnituraDataTable dataTable = new FabrikaLDADataSet.FurnituraDataTable();
  4619. this.Adapter.Fill(dataTable);
  4620. return dataTable;
  4621. }
  4622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4623. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4624. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4625. public virtual int Update(FabrikaLDADataSet.FurnituraDataTable dataTable) {
  4626. return this.Adapter.Update(dataTable);
  4627. }
  4628. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4630. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4631. public virtual int Update(FabrikaLDADataSet dataSet) {
  4632. return this.Adapter.Update(dataSet, "Furnitura");
  4633. }
  4634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4636. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4637. public virtual int Update(global::System.Data.DataRow dataRow) {
  4638. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4639. dataRow});
  4640. }
  4641. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4642. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4643. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4644. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  4645. return this.Adapter.Update(dataRows);
  4646. }
  4647. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4648. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4649. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4650. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  4651. public virtual int Delete(int Original_idfur, string Original_namefur, string Original_photo, global::System.Nullable<int> Original_countfur) {
  4652. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idfur));
  4653. if ((Original_namefur == null)) {
  4654. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  4655. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  4656. }
  4657. else {
  4658. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  4659. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_namefur));
  4660. }
  4661. if ((Original_photo == null)) {
  4662. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  4663. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  4664. }
  4665. else {
  4666. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  4667. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_photo));
  4668. }
  4669. if ((Original_countfur.HasValue == true)) {
  4670. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  4671. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_countfur.Value));
  4672. }
  4673. else {
  4674. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  4675. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  4676. }
  4677. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  4678. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4679. != global::System.Data.ConnectionState.Open)) {
  4680. this.Adapter.DeleteCommand.Connection.Open();
  4681. }
  4682. try {
  4683. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  4684. return returnValue;
  4685. }
  4686. finally {
  4687. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4688. this.Adapter.DeleteCommand.Connection.Close();
  4689. }
  4690. }
  4691. }
  4692. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4693. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4694. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4695. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  4696. public virtual int Insert(string namefur, string photo, global::System.Nullable<int> countfur) {
  4697. if ((namefur == null)) {
  4698. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  4699. }
  4700. else {
  4701. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(namefur));
  4702. }
  4703. if ((photo == null)) {
  4704. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  4705. }
  4706. else {
  4707. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(photo));
  4708. }
  4709. if ((countfur.HasValue == true)) {
  4710. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(countfur.Value));
  4711. }
  4712. else {
  4713. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  4714. }
  4715. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  4716. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4717. != global::System.Data.ConnectionState.Open)) {
  4718. this.Adapter.InsertCommand.Connection.Open();
  4719. }
  4720. try {
  4721. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  4722. return returnValue;
  4723. }
  4724. finally {
  4725. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4726. this.Adapter.InsertCommand.Connection.Close();
  4727. }
  4728. }
  4729. }
  4730. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4731. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4732. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4733. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4734. public virtual int Update(string namefur, string photo, global::System.Nullable<int> countfur, int Original_idfur, string Original_namefur, string Original_photo, global::System.Nullable<int> Original_countfur, int idfur) {
  4735. if ((namefur == null)) {
  4736. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  4737. }
  4738. else {
  4739. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(namefur));
  4740. }
  4741. if ((photo == null)) {
  4742. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  4743. }
  4744. else {
  4745. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(photo));
  4746. }
  4747. if ((countfur.HasValue == true)) {
  4748. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(countfur.Value));
  4749. }
  4750. else {
  4751. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  4752. }
  4753. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_idfur));
  4754. if ((Original_namefur == null)) {
  4755. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  4756. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  4757. }
  4758. else {
  4759. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  4760. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_namefur));
  4761. }
  4762. if ((Original_photo == null)) {
  4763. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  4764. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  4765. }
  4766. else {
  4767. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  4768. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_photo));
  4769. }
  4770. if ((Original_countfur.HasValue == true)) {
  4771. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  4772. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_countfur.Value));
  4773. }
  4774. else {
  4775. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  4776. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  4777. }
  4778. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(idfur));
  4779. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  4780. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4781. != global::System.Data.ConnectionState.Open)) {
  4782. this.Adapter.UpdateCommand.Connection.Open();
  4783. }
  4784. try {
  4785. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  4786. return returnValue;
  4787. }
  4788. finally {
  4789. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4790. this.Adapter.UpdateCommand.Connection.Close();
  4791. }
  4792. }
  4793. }
  4794. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4795. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4796. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4797. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4798. public virtual int Update(string namefur, string photo, global::System.Nullable<int> countfur, int Original_idfur, string Original_namefur, string Original_photo, global::System.Nullable<int> Original_countfur) {
  4799. return this.Update(namefur, photo, countfur, Original_idfur, Original_namefur, Original_photo, Original_countfur, Original_idfur);
  4800. }
  4801. }
  4802. /// <summary>
  4803. ///Represents the connection and commands used to retrieve and save data.
  4804. ///</summary>
  4805. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4806. [global::System.ComponentModel.ToolboxItem(true)]
  4807. [global::System.ComponentModel.DataObjectAttribute(true)]
  4808. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4809. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4810. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4811. public partial class OrdersTableAdapter : global::System.ComponentModel.Component {
  4812. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4813. private global::System.Data.SqlClient.SqlConnection _connection;
  4814. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4815. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4816. private bool _clearBeforeFill;
  4817. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4818. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4819. public OrdersTableAdapter() {
  4820. this.ClearBeforeFill = true;
  4821. }
  4822. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4823. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4824. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4825. get {
  4826. if ((this._adapter == null)) {
  4827. this.InitAdapter();
  4828. }
  4829. return this._adapter;
  4830. }
  4831. }
  4832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4833. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4834. internal global::System.Data.SqlClient.SqlConnection Connection {
  4835. get {
  4836. if ((this._connection == null)) {
  4837. this.InitConnection();
  4838. }
  4839. return this._connection;
  4840. }
  4841. set {
  4842. this._connection = value;
  4843. if ((this.Adapter.InsertCommand != null)) {
  4844. this.Adapter.InsertCommand.Connection = value;
  4845. }
  4846. if ((this.Adapter.DeleteCommand != null)) {
  4847. this.Adapter.DeleteCommand.Connection = value;
  4848. }
  4849. if ((this.Adapter.UpdateCommand != null)) {
  4850. this.Adapter.UpdateCommand.Connection = value;
  4851. }
  4852. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4853. if ((this.CommandCollection[i] != null)) {
  4854. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4855. }
  4856. }
  4857. }
  4858. }
  4859. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4860. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4861. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4862. get {
  4863. return this._transaction;
  4864. }
  4865. set {
  4866. this._transaction = value;
  4867. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4868. this.CommandCollection[i].Transaction = this._transaction;
  4869. }
  4870. if (((this.Adapter != null)
  4871. && (this.Adapter.DeleteCommand != null))) {
  4872. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4873. }
  4874. if (((this.Adapter != null)
  4875. && (this.Adapter.InsertCommand != null))) {
  4876. this.Adapter.InsertCommand.Transaction = this._transaction;
  4877. }
  4878. if (((this.Adapter != null)
  4879. && (this.Adapter.UpdateCommand != null))) {
  4880. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4881. }
  4882. }
  4883. }
  4884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4886. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4887. get {
  4888. if ((this._commandCollection == null)) {
  4889. this.InitCommandCollection();
  4890. }
  4891. return this._commandCollection;
  4892. }
  4893. }
  4894. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4895. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4896. public bool ClearBeforeFill {
  4897. get {
  4898. return this._clearBeforeFill;
  4899. }
  4900. set {
  4901. this._clearBeforeFill = value;
  4902. }
  4903. }
  4904. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4905. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4906. private void InitAdapter() {
  4907. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4908. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4909. tableMapping.SourceTable = "Table";
  4910. tableMapping.DataSetTable = "Orders";
  4911. tableMapping.ColumnMappings.Add("IdOrder", "IdOrder");
  4912. tableMapping.ColumnMappings.Add("IdProduct", "IdProduct");
  4913. tableMapping.ColumnMappings.Add("IdClient", "IdClient");
  4914. tableMapping.ColumnMappings.Add("IdManager", "IdManager");
  4915. tableMapping.ColumnMappings.Add("IdCloth", "IdCloth");
  4916. tableMapping.ColumnMappings.Add("IdFur", "IdFur");
  4917. tableMapping.ColumnMappings.Add("CountFurnitura", "CountFurnitura");
  4918. tableMapping.ColumnMappings.Add("CountProduct", "CountProduct");
  4919. this._adapter.TableMappings.Add(tableMapping);
  4920. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4921. this._adapter.DeleteCommand.Connection = this.Connection;
  4922. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Orders] WHERE (([IdOrder] = @Original_IdOrder) AND ((@IsNull_IdProduct = 1 AND [IdProduct] IS NULL) OR ([IdProduct] = @Original_IdProduct)) AND ((@IsNull_IdClient = 1 AND [IdClient] IS NULL) OR ([IdClient] = @Original_IdClient)) AND ((@IsNull_IdManager = 1 AND [IdManager] IS NULL) OR ([IdManager] = @Original_IdManager)) AND ((@IsNull_IdCloth = 1 AND [IdCloth] IS NULL) OR ([IdCloth] = @Original_IdCloth)) AND ((@IsNull_IdFur = 1 AND [IdFur] IS NULL) OR ([IdFur] = @Original_IdFur)) AND ((@IsNull_CountFurnitura = 1 AND [CountFurnitura] IS NULL) OR ([CountFurnitura] = @Original_CountFurnitura)) AND ((@IsNull_CountProduct = 1 AND [CountProduct] IS NULL) OR ([CountProduct] = @Original_CountProduct)))";
  4923. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4924. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdOrder", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdOrder", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4925. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IdProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdProduct", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4926. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4927. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IdClient", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdClient", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4928. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdClient", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdClient", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4929. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IdManager", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdManager", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4930. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdManager", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdManager", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4931. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IdCloth", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdCloth", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4932. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdCloth", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdCloth", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4933. 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, "", "", ""));
  4934. 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, "", "", ""));
  4935. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CountFurnitura", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountFurnitura", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4936. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CountFurnitura", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountFurnitura", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4937. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CountProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountProduct", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4938. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CountProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4939. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4940. this._adapter.InsertCommand.Connection = this.Connection;
  4941. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Orders] ([IdProduct], [IdClient], [IdManager], [IdCloth], [IdFur], [CountFurnitura], [CountProduct]) VALUES (@IdProduct, @IdClient, @IdManager, @IdCloth, @IdFur, @CountFurnitura, @CountProduct);
  4942. SELECT IdOrder, IdProduct, IdClient, IdManager, IdCloth, IdFur, CountFurnitura, CountProduct FROM Orders WHERE (IdOrder = SCOPE_IDENTITY())";
  4943. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4944. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdProduct", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4945. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdClient", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdClient", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4946. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdManager", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdManager", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4947. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdCloth", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdCloth", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4948. 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, "", "", ""));
  4949. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CountFurnitura", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountFurnitura", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4950. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CountProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountProduct", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4951. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  4952. this._adapter.UpdateCommand.Connection = this.Connection;
  4953. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Orders] SET [IdProduct] = @IdProduct, [IdClient] = @IdClient, [IdManager] = @IdManager, [IdCloth] = @IdCloth, [IdFur] = @IdFur, [CountFurnitura] = @CountFurnitura, [CountProduct] = @CountProduct WHERE (([IdOrder] = @Original_IdOrder) AND ((@IsNull_IdProduct = 1 AND [IdProduct] IS NULL) OR ([IdProduct] = @Original_IdProduct)) AND ((@IsNull_IdClient = 1 AND [IdClient] IS NULL) OR ([IdClient] = @Original_IdClient)) AND ((@IsNull_IdManager = 1 AND [IdManager] IS NULL) OR ([IdManager] = @Original_IdManager)) AND ((@IsNull_IdCloth = 1 AND [IdCloth] IS NULL) OR ([IdCloth] = @Original_IdCloth)) AND ((@IsNull_IdFur = 1 AND [IdFur] IS NULL) OR ([IdFur] = @Original_IdFur)) AND ((@IsNull_CountFurnitura = 1 AND [CountFurnitura] IS NULL) OR ([CountFurnitura] = @Original_CountFurnitura)) AND ((@IsNull_CountProduct = 1 AND [CountProduct] IS NULL) OR ([CountProduct] = @Original_CountProduct)));
  4954. SELECT IdOrder, IdProduct, IdClient, IdManager, IdCloth, IdFur, CountFurnitura, CountProduct FROM Orders WHERE (IdOrder = @IdOrder)";
  4955. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4956. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdProduct", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4957. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdClient", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdClient", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4958. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdManager", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdManager", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4959. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdCloth", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdCloth", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4960. 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, "", "", ""));
  4961. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CountFurnitura", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountFurnitura", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4962. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CountProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountProduct", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4963. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdOrder", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdOrder", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4964. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IdProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdProduct", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4965. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4966. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IdClient", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdClient", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4967. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdClient", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdClient", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4968. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IdManager", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdManager", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4969. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdManager", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdManager", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4970. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IdCloth", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdCloth", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4971. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdCloth", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdCloth", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4972. 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, "", "", ""));
  4973. 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, "", "", ""));
  4974. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CountFurnitura", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountFurnitura", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4975. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CountFurnitura", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountFurnitura", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4976. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CountProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountProduct", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4977. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CountProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4978. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdOrder", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IdOrder", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4979. }
  4980. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4981. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4982. private void InitConnection() {
  4983. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4984. this._connection.ConnectionString = global::СУБД_Швейная_фабрика.Properties.Settings.Default.FabrikaLDAConnectionString;
  4985. }
  4986. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4987. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4988. private void InitCommandCollection() {
  4989. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4990. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4991. this._commandCollection[0].Connection = this.Connection;
  4992. this._commandCollection[0].CommandText = "SELECT IdOrder, IdProduct, IdClient, IdManager, IdCloth, IdFur, CountFurnitura, C" +
  4993. "ountProduct FROM dbo.Orders";
  4994. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4995. }
  4996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4997. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4998. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4999. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5000. public virtual int Fill(FabrikaLDADataSet.OrdersDataTable dataTable) {
  5001. this.Adapter.SelectCommand = this.CommandCollection[0];
  5002. if ((this.ClearBeforeFill == true)) {
  5003. dataTable.Clear();
  5004. }
  5005. int returnValue = this.Adapter.Fill(dataTable);
  5006. return returnValue;
  5007. }
  5008. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5009. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5010. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5011. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5012. public virtual FabrikaLDADataSet.OrdersDataTable GetData() {
  5013. this.Adapter.SelectCommand = this.CommandCollection[0];
  5014. FabrikaLDADataSet.OrdersDataTable dataTable = new FabrikaLDADataSet.OrdersDataTable();
  5015. this.Adapter.Fill(dataTable);
  5016. return dataTable;
  5017. }
  5018. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5019. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5020. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5021. public virtual int Update(FabrikaLDADataSet.OrdersDataTable dataTable) {
  5022. return this.Adapter.Update(dataTable);
  5023. }
  5024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5025. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5026. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5027. public virtual int Update(FabrikaLDADataSet dataSet) {
  5028. return this.Adapter.Update(dataSet, "Orders");
  5029. }
  5030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5032. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5033. public virtual int Update(global::System.Data.DataRow dataRow) {
  5034. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5035. dataRow});
  5036. }
  5037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5038. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5039. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5040. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5041. return this.Adapter.Update(dataRows);
  5042. }
  5043. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5044. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5045. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5046. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5047. public virtual int Delete(int Original_IdOrder, global::System.Nullable<int> Original_IdProduct, global::System.Nullable<int> Original_IdClient, global::System.Nullable<int> Original_IdManager, global::System.Nullable<int> Original_IdCloth, global::System.Nullable<int> Original_IdFur, global::System.Nullable<int> Original_CountFurnitura, global::System.Nullable<int> Original_CountProduct) {
  5048. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdOrder));
  5049. if ((Original_IdProduct.HasValue == true)) {
  5050. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  5051. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_IdProduct.Value));
  5052. }
  5053. else {
  5054. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  5055. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  5056. }
  5057. if ((Original_IdClient.HasValue == true)) {
  5058. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  5059. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_IdClient.Value));
  5060. }
  5061. else {
  5062. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  5063. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  5064. }
  5065. if ((Original_IdManager.HasValue == true)) {
  5066. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  5067. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_IdManager.Value));
  5068. }
  5069. else {
  5070. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  5071. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  5072. }
  5073. if ((Original_IdCloth.HasValue == true)) {
  5074. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  5075. this.Adapter.DeleteCommand.Parameters[8].Value = ((int)(Original_IdCloth.Value));
  5076. }
  5077. else {
  5078. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  5079. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  5080. }
  5081. if ((Original_IdFur.HasValue == true)) {
  5082. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  5083. this.Adapter.DeleteCommand.Parameters[10].Value = ((int)(Original_IdFur.Value));
  5084. }
  5085. else {
  5086. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  5087. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  5088. }
  5089. if ((Original_CountFurnitura.HasValue == true)) {
  5090. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  5091. this.Adapter.DeleteCommand.Parameters[12].Value = ((int)(Original_CountFurnitura.Value));
  5092. }
  5093. else {
  5094. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  5095. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  5096. }
  5097. if ((Original_CountProduct.HasValue == true)) {
  5098. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
  5099. this.Adapter.DeleteCommand.Parameters[14].Value = ((int)(Original_CountProduct.Value));
  5100. }
  5101. else {
  5102. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
  5103. this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
  5104. }
  5105. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5106. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5107. != global::System.Data.ConnectionState.Open)) {
  5108. this.Adapter.DeleteCommand.Connection.Open();
  5109. }
  5110. try {
  5111. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5112. return returnValue;
  5113. }
  5114. finally {
  5115. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5116. this.Adapter.DeleteCommand.Connection.Close();
  5117. }
  5118. }
  5119. }
  5120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5121. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5122. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5123. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5124. public virtual int Insert(global::System.Nullable<int> IdProduct, global::System.Nullable<int> IdClient, global::System.Nullable<int> IdManager, global::System.Nullable<int> IdCloth, global::System.Nullable<int> IdFur, global::System.Nullable<int> CountFurnitura, global::System.Nullable<int> CountProduct) {
  5125. if ((IdProduct.HasValue == true)) {
  5126. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(IdProduct.Value));
  5127. }
  5128. else {
  5129. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  5130. }
  5131. if ((IdClient.HasValue == true)) {
  5132. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(IdClient.Value));
  5133. }
  5134. else {
  5135. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  5136. }
  5137. if ((IdManager.HasValue == true)) {
  5138. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(IdManager.Value));
  5139. }
  5140. else {
  5141. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  5142. }
  5143. if ((IdCloth.HasValue == true)) {
  5144. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(IdCloth.Value));
  5145. }
  5146. else {
  5147. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  5148. }
  5149. if ((IdFur.HasValue == true)) {
  5150. this.Adapter.InsertCommand.Parameters[4].Value = ((int)(IdFur.Value));
  5151. }
  5152. else {
  5153. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  5154. }
  5155. if ((CountFurnitura.HasValue == true)) {
  5156. this.Adapter.InsertCommand.Parameters[5].Value = ((int)(CountFurnitura.Value));
  5157. }
  5158. else {
  5159. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  5160. }
  5161. if ((CountProduct.HasValue == true)) {
  5162. this.Adapter.InsertCommand.Parameters[6].Value = ((int)(CountProduct.Value));
  5163. }
  5164. else {
  5165. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  5166. }
  5167. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5168. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5169. != global::System.Data.ConnectionState.Open)) {
  5170. this.Adapter.InsertCommand.Connection.Open();
  5171. }
  5172. try {
  5173. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5174. return returnValue;
  5175. }
  5176. finally {
  5177. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5178. this.Adapter.InsertCommand.Connection.Close();
  5179. }
  5180. }
  5181. }
  5182. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5183. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5184. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5185. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5186. public virtual int Update(
  5187. global::System.Nullable<int> IdProduct,
  5188. global::System.Nullable<int> IdClient,
  5189. global::System.Nullable<int> IdManager,
  5190. global::System.Nullable<int> IdCloth,
  5191. global::System.Nullable<int> IdFur,
  5192. global::System.Nullable<int> CountFurnitura,
  5193. global::System.Nullable<int> CountProduct,
  5194. int Original_IdOrder,
  5195. global::System.Nullable<int> Original_IdProduct,
  5196. global::System.Nullable<int> Original_IdClient,
  5197. global::System.Nullable<int> Original_IdManager,
  5198. global::System.Nullable<int> Original_IdCloth,
  5199. global::System.Nullable<int> Original_IdFur,
  5200. global::System.Nullable<int> Original_CountFurnitura,
  5201. global::System.Nullable<int> Original_CountProduct,
  5202. int IdOrder) {
  5203. if ((IdProduct.HasValue == true)) {
  5204. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(IdProduct.Value));
  5205. }
  5206. else {
  5207. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  5208. }
  5209. if ((IdClient.HasValue == true)) {
  5210. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(IdClient.Value));
  5211. }
  5212. else {
  5213. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  5214. }
  5215. if ((IdManager.HasValue == true)) {
  5216. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(IdManager.Value));
  5217. }
  5218. else {
  5219. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  5220. }
  5221. if ((IdCloth.HasValue == true)) {
  5222. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(IdCloth.Value));
  5223. }
  5224. else {
  5225. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  5226. }
  5227. if ((IdFur.HasValue == true)) {
  5228. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(IdFur.Value));
  5229. }
  5230. else {
  5231. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  5232. }
  5233. if ((CountFurnitura.HasValue == true)) {
  5234. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(CountFurnitura.Value));
  5235. }
  5236. else {
  5237. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  5238. }
  5239. if ((CountProduct.HasValue == true)) {
  5240. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(CountProduct.Value));
  5241. }
  5242. else {
  5243. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  5244. }
  5245. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_IdOrder));
  5246. if ((Original_IdProduct.HasValue == true)) {
  5247. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  5248. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_IdProduct.Value));
  5249. }
  5250. else {
  5251. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  5252. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  5253. }
  5254. if ((Original_IdClient.HasValue == true)) {
  5255. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  5256. this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(Original_IdClient.Value));
  5257. }
  5258. else {
  5259. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  5260. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  5261. }
  5262. if ((Original_IdManager.HasValue == true)) {
  5263. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  5264. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Original_IdManager.Value));
  5265. }
  5266. else {
  5267. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  5268. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  5269. }
  5270. if ((Original_IdCloth.HasValue == true)) {
  5271. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
  5272. this.Adapter.UpdateCommand.Parameters[15].Value = ((int)(Original_IdCloth.Value));
  5273. }
  5274. else {
  5275. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
  5276. this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
  5277. }
  5278. if ((Original_IdFur.HasValue == true)) {
  5279. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
  5280. this.Adapter.UpdateCommand.Parameters[17].Value = ((int)(Original_IdFur.Value));
  5281. }
  5282. else {
  5283. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
  5284. this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
  5285. }
  5286. if ((Original_CountFurnitura.HasValue == true)) {
  5287. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
  5288. this.Adapter.UpdateCommand.Parameters[19].Value = ((int)(Original_CountFurnitura.Value));
  5289. }
  5290. else {
  5291. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
  5292. this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
  5293. }
  5294. if ((Original_CountProduct.HasValue == true)) {
  5295. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
  5296. this.Adapter.UpdateCommand.Parameters[21].Value = ((int)(Original_CountProduct.Value));
  5297. }
  5298. else {
  5299. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
  5300. this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
  5301. }
  5302. this.Adapter.UpdateCommand.Parameters[22].Value = ((int)(IdOrder));
  5303. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5304. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5305. != global::System.Data.ConnectionState.Open)) {
  5306. this.Adapter.UpdateCommand.Connection.Open();
  5307. }
  5308. try {
  5309. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5310. return returnValue;
  5311. }
  5312. finally {
  5313. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5314. this.Adapter.UpdateCommand.Connection.Close();
  5315. }
  5316. }
  5317. }
  5318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5319. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5320. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5321. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5322. public virtual int Update(global::System.Nullable<int> IdProduct, global::System.Nullable<int> IdClient, global::System.Nullable<int> IdManager, global::System.Nullable<int> IdCloth, global::System.Nullable<int> IdFur, global::System.Nullable<int> CountFurnitura, global::System.Nullable<int> CountProduct, int Original_IdOrder, global::System.Nullable<int> Original_IdProduct, global::System.Nullable<int> Original_IdClient, global::System.Nullable<int> Original_IdManager, global::System.Nullable<int> Original_IdCloth, global::System.Nullable<int> Original_IdFur, global::System.Nullable<int> Original_CountFurnitura, global::System.Nullable<int> Original_CountProduct) {
  5323. return this.Update(IdProduct, IdClient, IdManager, IdCloth, IdFur, CountFurnitura, CountProduct, Original_IdOrder, Original_IdProduct, Original_IdClient, Original_IdManager, Original_IdCloth, Original_IdFur, Original_CountFurnitura, Original_CountProduct, Original_IdOrder);
  5324. }
  5325. }
  5326. /// <summary>
  5327. ///Represents the connection and commands used to retrieve and save data.
  5328. ///</summary>
  5329. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5330. [global::System.ComponentModel.ToolboxItem(true)]
  5331. [global::System.ComponentModel.DataObjectAttribute(true)]
  5332. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5333. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5334. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5335. public partial class ProductsTableAdapter : global::System.ComponentModel.Component {
  5336. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5337. private global::System.Data.SqlClient.SqlConnection _connection;
  5338. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5339. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5340. private bool _clearBeforeFill;
  5341. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5342. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5343. public ProductsTableAdapter() {
  5344. this.ClearBeforeFill = true;
  5345. }
  5346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5347. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5348. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5349. get {
  5350. if ((this._adapter == null)) {
  5351. this.InitAdapter();
  5352. }
  5353. return this._adapter;
  5354. }
  5355. }
  5356. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5357. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5358. internal global::System.Data.SqlClient.SqlConnection Connection {
  5359. get {
  5360. if ((this._connection == null)) {
  5361. this.InitConnection();
  5362. }
  5363. return this._connection;
  5364. }
  5365. set {
  5366. this._connection = value;
  5367. if ((this.Adapter.InsertCommand != null)) {
  5368. this.Adapter.InsertCommand.Connection = value;
  5369. }
  5370. if ((this.Adapter.DeleteCommand != null)) {
  5371. this.Adapter.DeleteCommand.Connection = value;
  5372. }
  5373. if ((this.Adapter.UpdateCommand != null)) {
  5374. this.Adapter.UpdateCommand.Connection = value;
  5375. }
  5376. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5377. if ((this.CommandCollection[i] != null)) {
  5378. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5379. }
  5380. }
  5381. }
  5382. }
  5383. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5384. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5385. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5386. get {
  5387. return this._transaction;
  5388. }
  5389. set {
  5390. this._transaction = value;
  5391. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5392. this.CommandCollection[i].Transaction = this._transaction;
  5393. }
  5394. if (((this.Adapter != null)
  5395. && (this.Adapter.DeleteCommand != null))) {
  5396. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5397. }
  5398. if (((this.Adapter != null)
  5399. && (this.Adapter.InsertCommand != null))) {
  5400. this.Adapter.InsertCommand.Transaction = this._transaction;
  5401. }
  5402. if (((this.Adapter != null)
  5403. && (this.Adapter.UpdateCommand != null))) {
  5404. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5405. }
  5406. }
  5407. }
  5408. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5409. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5410. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5411. get {
  5412. if ((this._commandCollection == null)) {
  5413. this.InitCommandCollection();
  5414. }
  5415. return this._commandCollection;
  5416. }
  5417. }
  5418. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5419. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5420. public bool ClearBeforeFill {
  5421. get {
  5422. return this._clearBeforeFill;
  5423. }
  5424. set {
  5425. this._clearBeforeFill = value;
  5426. }
  5427. }
  5428. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5429. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5430. private void InitAdapter() {
  5431. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5432. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5433. tableMapping.SourceTable = "Table";
  5434. tableMapping.DataSetTable = "Products";
  5435. tableMapping.ColumnMappings.Add("IdProduct", "IdProduct");
  5436. tableMapping.ColumnMappings.Add("TitleProduct", "TitleProduct");
  5437. tableMapping.ColumnMappings.Add("Lenght", "Lenght");
  5438. tableMapping.ColumnMappings.Add("Width", "Width");
  5439. this._adapter.TableMappings.Add(tableMapping);
  5440. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5441. this._adapter.DeleteCommand.Connection = this.Connection;
  5442. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Products] WHERE (([IdProduct] = @Original_IdProduct) AND ((@IsNull_TitleProduct = 1 AND [TitleProduct] IS NULL) OR ([TitleProduct] = @Original_TitleProduct)) AND ((@IsNull_Lenght = 1 AND [Lenght] IS NULL) OR ([Lenght] = @Original_Lenght)) AND ((@IsNull_Width = 1 AND [Width] IS NULL) OR ([Width] = @Original_Width)))";
  5443. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5444. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5445. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TitleProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TitleProduct", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5446. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TitleProduct", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TitleProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5447. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Lenght", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Lenght", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5448. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Lenght", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Lenght", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5449. 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, "", "", ""));
  5450. 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, "", "", ""));
  5451. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5452. this._adapter.InsertCommand.Connection = this.Connection;
  5453. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Products] ([TitleProduct], [Lenght], [Width]) VALUES (@TitlePr" +
  5454. "oduct, @Lenght, @Width);\r\nSELECT IdProduct, TitleProduct, Lenght, Width FROM Pro" +
  5455. "ducts WHERE (IdProduct = SCOPE_IDENTITY())";
  5456. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5457. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TitleProduct", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TitleProduct", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5458. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Lenght", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Lenght", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5459. 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, "", "", ""));
  5460. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5461. this._adapter.UpdateCommand.Connection = this.Connection;
  5462. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Products] SET [TitleProduct] = @TitleProduct, [Lenght] = @Lenght, [Width] = @Width WHERE (([IdProduct] = @Original_IdProduct) AND ((@IsNull_TitleProduct = 1 AND [TitleProduct] IS NULL) OR ([TitleProduct] = @Original_TitleProduct)) AND ((@IsNull_Lenght = 1 AND [Lenght] IS NULL) OR ([Lenght] = @Original_Lenght)) AND ((@IsNull_Width = 1 AND [Width] IS NULL) OR ([Width] = @Original_Width)));
  5463. SELECT IdProduct, TitleProduct, Lenght, Width FROM Products WHERE (IdProduct = @IdProduct)";
  5464. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5465. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TitleProduct", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TitleProduct", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5466. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Lenght", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Lenght", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5467. 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, "", "", ""));
  5468. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5469. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TitleProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TitleProduct", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5470. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TitleProduct", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TitleProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5471. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Lenght", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Lenght", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5472. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Lenght", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Lenght", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5473. 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, "", "", ""));
  5474. 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, "", "", ""));
  5475. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdProduct", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IdProduct", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5476. }
  5477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5479. private void InitConnection() {
  5480. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5481. this._connection.ConnectionString = global::СУБД_Швейная_фабрика.Properties.Settings.Default.FabrikaLDAConnectionString;
  5482. }
  5483. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5484. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5485. private void InitCommandCollection() {
  5486. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5487. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5488. this._commandCollection[0].Connection = this.Connection;
  5489. this._commandCollection[0].CommandText = "SELECT IdProduct, TitleProduct, Lenght, Width FROM dbo.Products";
  5490. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5491. }
  5492. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5493. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5494. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5495. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5496. public virtual int Fill(FabrikaLDADataSet.ProductsDataTable dataTable) {
  5497. this.Adapter.SelectCommand = this.CommandCollection[0];
  5498. if ((this.ClearBeforeFill == true)) {
  5499. dataTable.Clear();
  5500. }
  5501. int returnValue = this.Adapter.Fill(dataTable);
  5502. return returnValue;
  5503. }
  5504. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5505. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5506. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5507. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5508. public virtual FabrikaLDADataSet.ProductsDataTable GetData() {
  5509. this.Adapter.SelectCommand = this.CommandCollection[0];
  5510. FabrikaLDADataSet.ProductsDataTable dataTable = new FabrikaLDADataSet.ProductsDataTable();
  5511. this.Adapter.Fill(dataTable);
  5512. return dataTable;
  5513. }
  5514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5515. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5516. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5517. public virtual int Update(FabrikaLDADataSet.ProductsDataTable dataTable) {
  5518. return this.Adapter.Update(dataTable);
  5519. }
  5520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5521. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5522. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5523. public virtual int Update(FabrikaLDADataSet dataSet) {
  5524. return this.Adapter.Update(dataSet, "Products");
  5525. }
  5526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5528. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5529. public virtual int Update(global::System.Data.DataRow dataRow) {
  5530. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5531. dataRow});
  5532. }
  5533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5535. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5536. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5537. return this.Adapter.Update(dataRows);
  5538. }
  5539. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5540. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5541. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5542. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5543. public virtual int Delete(int Original_IdProduct, string Original_TitleProduct, global::System.Nullable<int> Original_Lenght, global::System.Nullable<int> Original_Width) {
  5544. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdProduct));
  5545. if ((Original_TitleProduct == null)) {
  5546. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  5547. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  5548. }
  5549. else {
  5550. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  5551. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_TitleProduct));
  5552. }
  5553. if ((Original_Lenght.HasValue == true)) {
  5554. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  5555. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_Lenght.Value));
  5556. }
  5557. else {
  5558. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  5559. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  5560. }
  5561. if ((Original_Width.HasValue == true)) {
  5562. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  5563. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_Width.Value));
  5564. }
  5565. else {
  5566. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  5567. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  5568. }
  5569. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5570. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5571. != global::System.Data.ConnectionState.Open)) {
  5572. this.Adapter.DeleteCommand.Connection.Open();
  5573. }
  5574. try {
  5575. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5576. return returnValue;
  5577. }
  5578. finally {
  5579. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5580. this.Adapter.DeleteCommand.Connection.Close();
  5581. }
  5582. }
  5583. }
  5584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5586. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5587. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5588. public virtual int Insert(string TitleProduct, global::System.Nullable<int> Lenght, global::System.Nullable<int> Width) {
  5589. if ((TitleProduct == null)) {
  5590. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  5591. }
  5592. else {
  5593. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(TitleProduct));
  5594. }
  5595. if ((Lenght.HasValue == true)) {
  5596. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(Lenght.Value));
  5597. }
  5598. else {
  5599. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  5600. }
  5601. if ((Width.HasValue == true)) {
  5602. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Width.Value));
  5603. }
  5604. else {
  5605. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  5606. }
  5607. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5608. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5609. != global::System.Data.ConnectionState.Open)) {
  5610. this.Adapter.InsertCommand.Connection.Open();
  5611. }
  5612. try {
  5613. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5614. return returnValue;
  5615. }
  5616. finally {
  5617. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5618. this.Adapter.InsertCommand.Connection.Close();
  5619. }
  5620. }
  5621. }
  5622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5623. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5624. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5625. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5626. public virtual int Update(string TitleProduct, global::System.Nullable<int> Lenght, global::System.Nullable<int> Width, int Original_IdProduct, string Original_TitleProduct, global::System.Nullable<int> Original_Lenght, global::System.Nullable<int> Original_Width, int IdProduct) {
  5627. if ((TitleProduct == null)) {
  5628. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  5629. }
  5630. else {
  5631. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(TitleProduct));
  5632. }
  5633. if ((Lenght.HasValue == true)) {
  5634. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Lenght.Value));
  5635. }
  5636. else {
  5637. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  5638. }
  5639. if ((Width.HasValue == true)) {
  5640. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Width.Value));
  5641. }
  5642. else {
  5643. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  5644. }
  5645. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_IdProduct));
  5646. if ((Original_TitleProduct == null)) {
  5647. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  5648. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  5649. }
  5650. else {
  5651. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  5652. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_TitleProduct));
  5653. }
  5654. if ((Original_Lenght.HasValue == true)) {
  5655. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  5656. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_Lenght.Value));
  5657. }
  5658. else {
  5659. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  5660. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  5661. }
  5662. if ((Original_Width.HasValue == true)) {
  5663. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  5664. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_Width.Value));
  5665. }
  5666. else {
  5667. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  5668. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  5669. }
  5670. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(IdProduct));
  5671. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5672. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5673. != global::System.Data.ConnectionState.Open)) {
  5674. this.Adapter.UpdateCommand.Connection.Open();
  5675. }
  5676. try {
  5677. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5678. return returnValue;
  5679. }
  5680. finally {
  5681. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5682. this.Adapter.UpdateCommand.Connection.Close();
  5683. }
  5684. }
  5685. }
  5686. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5687. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5688. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5689. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5690. public virtual int Update(string TitleProduct, global::System.Nullable<int> Lenght, global::System.Nullable<int> Width, int Original_IdProduct, string Original_TitleProduct, global::System.Nullable<int> Original_Lenght, global::System.Nullable<int> Original_Width) {
  5691. return this.Update(TitleProduct, Lenght, Width, Original_IdProduct, Original_TitleProduct, Original_Lenght, Original_Width, Original_IdProduct);
  5692. }
  5693. }
  5694. /// <summary>
  5695. ///Represents the connection and commands used to retrieve and save data.
  5696. ///</summary>
  5697. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5698. [global::System.ComponentModel.ToolboxItem(true)]
  5699. [global::System.ComponentModel.DataObjectAttribute(true)]
  5700. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5701. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5702. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5703. public partial class RolesTableAdapter : global::System.ComponentModel.Component {
  5704. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5705. private global::System.Data.SqlClient.SqlConnection _connection;
  5706. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5707. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5708. private bool _clearBeforeFill;
  5709. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5710. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5711. public RolesTableAdapter() {
  5712. this.ClearBeforeFill = true;
  5713. }
  5714. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5715. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5716. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5717. get {
  5718. if ((this._adapter == null)) {
  5719. this.InitAdapter();
  5720. }
  5721. return this._adapter;
  5722. }
  5723. }
  5724. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5725. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5726. internal global::System.Data.SqlClient.SqlConnection Connection {
  5727. get {
  5728. if ((this._connection == null)) {
  5729. this.InitConnection();
  5730. }
  5731. return this._connection;
  5732. }
  5733. set {
  5734. this._connection = value;
  5735. if ((this.Adapter.InsertCommand != null)) {
  5736. this.Adapter.InsertCommand.Connection = value;
  5737. }
  5738. if ((this.Adapter.DeleteCommand != null)) {
  5739. this.Adapter.DeleteCommand.Connection = value;
  5740. }
  5741. if ((this.Adapter.UpdateCommand != null)) {
  5742. this.Adapter.UpdateCommand.Connection = value;
  5743. }
  5744. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5745. if ((this.CommandCollection[i] != null)) {
  5746. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5747. }
  5748. }
  5749. }
  5750. }
  5751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5753. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5754. get {
  5755. return this._transaction;
  5756. }
  5757. set {
  5758. this._transaction = value;
  5759. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5760. this.CommandCollection[i].Transaction = this._transaction;
  5761. }
  5762. if (((this.Adapter != null)
  5763. && (this.Adapter.DeleteCommand != null))) {
  5764. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5765. }
  5766. if (((this.Adapter != null)
  5767. && (this.Adapter.InsertCommand != null))) {
  5768. this.Adapter.InsertCommand.Transaction = this._transaction;
  5769. }
  5770. if (((this.Adapter != null)
  5771. && (this.Adapter.UpdateCommand != null))) {
  5772. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5773. }
  5774. }
  5775. }
  5776. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5777. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5778. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5779. get {
  5780. if ((this._commandCollection == null)) {
  5781. this.InitCommandCollection();
  5782. }
  5783. return this._commandCollection;
  5784. }
  5785. }
  5786. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5787. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5788. public bool ClearBeforeFill {
  5789. get {
  5790. return this._clearBeforeFill;
  5791. }
  5792. set {
  5793. this._clearBeforeFill = value;
  5794. }
  5795. }
  5796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5797. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5798. private void InitAdapter() {
  5799. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5800. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5801. tableMapping.SourceTable = "Table";
  5802. tableMapping.DataSetTable = "Roles";
  5803. tableMapping.ColumnMappings.Add("IdRole", "IdRole");
  5804. tableMapping.ColumnMappings.Add("Title", "Title");
  5805. this._adapter.TableMappings.Add(tableMapping);
  5806. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5807. this._adapter.DeleteCommand.Connection = this.Connection;
  5808. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Roles] WHERE (([IdRole] = @Original_IdRole) AND ([Title] = @Or" +
  5809. "iginal_Title))";
  5810. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5811. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdRole", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdRole", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5812. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5813. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5814. this._adapter.InsertCommand.Connection = this.Connection;
  5815. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Roles] ([IdRole], [Title]) VALUES (@IdRole, @Title);\r\nSELECT I" +
  5816. "dRole, Title FROM Roles WHERE (IdRole = @IdRole)";
  5817. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5818. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdRole", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdRole", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5819. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5820. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5821. this._adapter.UpdateCommand.Connection = this.Connection;
  5822. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Roles] SET [IdRole] = @IdRole, [Title] = @Title WHERE (([IdRole] = " +
  5823. "@Original_IdRole) AND ([Title] = @Original_Title));\r\nSELECT IdRole, Title FROM R" +
  5824. "oles WHERE (IdRole = @IdRole)";
  5825. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5826. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdRole", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdRole", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5827. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5828. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdRole", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdRole", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5829. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Title", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5830. }
  5831. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5832. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5833. private void InitConnection() {
  5834. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5835. this._connection.ConnectionString = global::СУБД_Швейная_фабрика.Properties.Settings.Default.FabrikaLDAConnectionString;
  5836. }
  5837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5839. private void InitCommandCollection() {
  5840. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5841. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5842. this._commandCollection[0].Connection = this.Connection;
  5843. this._commandCollection[0].CommandText = "SELECT IdRole, Title FROM dbo.Roles";
  5844. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5845. }
  5846. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5847. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5848. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5849. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5850. public virtual int Fill(FabrikaLDADataSet.RolesDataTable dataTable) {
  5851. this.Adapter.SelectCommand = this.CommandCollection[0];
  5852. if ((this.ClearBeforeFill == true)) {
  5853. dataTable.Clear();
  5854. }
  5855. int returnValue = this.Adapter.Fill(dataTable);
  5856. return returnValue;
  5857. }
  5858. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5859. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5860. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5861. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5862. public virtual FabrikaLDADataSet.RolesDataTable GetData() {
  5863. this.Adapter.SelectCommand = this.CommandCollection[0];
  5864. FabrikaLDADataSet.RolesDataTable dataTable = new FabrikaLDADataSet.RolesDataTable();
  5865. this.Adapter.Fill(dataTable);
  5866. return dataTable;
  5867. }
  5868. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5869. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5870. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5871. public virtual int Update(FabrikaLDADataSet.RolesDataTable dataTable) {
  5872. return this.Adapter.Update(dataTable);
  5873. }
  5874. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5875. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5876. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5877. public virtual int Update(FabrikaLDADataSet dataSet) {
  5878. return this.Adapter.Update(dataSet, "Roles");
  5879. }
  5880. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5881. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5882. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5883. public virtual int Update(global::System.Data.DataRow dataRow) {
  5884. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5885. dataRow});
  5886. }
  5887. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5888. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5889. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5890. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5891. return this.Adapter.Update(dataRows);
  5892. }
  5893. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5894. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5895. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5896. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5897. public virtual int Delete(int Original_IdRole, string Original_Title) {
  5898. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdRole));
  5899. if ((Original_Title == null)) {
  5900. throw new global::System.ArgumentNullException("Original_Title");
  5901. }
  5902. else {
  5903. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Title));
  5904. }
  5905. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5906. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5907. != global::System.Data.ConnectionState.Open)) {
  5908. this.Adapter.DeleteCommand.Connection.Open();
  5909. }
  5910. try {
  5911. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5912. return returnValue;
  5913. }
  5914. finally {
  5915. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5916. this.Adapter.DeleteCommand.Connection.Close();
  5917. }
  5918. }
  5919. }
  5920. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5921. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5922. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5923. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5924. public virtual int Insert(int IdRole, string Title) {
  5925. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(IdRole));
  5926. if ((Title == null)) {
  5927. throw new global::System.ArgumentNullException("Title");
  5928. }
  5929. else {
  5930. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Title));
  5931. }
  5932. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5933. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5934. != global::System.Data.ConnectionState.Open)) {
  5935. this.Adapter.InsertCommand.Connection.Open();
  5936. }
  5937. try {
  5938. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5939. return returnValue;
  5940. }
  5941. finally {
  5942. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5943. this.Adapter.InsertCommand.Connection.Close();
  5944. }
  5945. }
  5946. }
  5947. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5948. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5949. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5950. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5951. public virtual int Update(int IdRole, string Title, int Original_IdRole, string Original_Title) {
  5952. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(IdRole));
  5953. if ((Title == null)) {
  5954. throw new global::System.ArgumentNullException("Title");
  5955. }
  5956. else {
  5957. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Title));
  5958. }
  5959. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_IdRole));
  5960. if ((Original_Title == null)) {
  5961. throw new global::System.ArgumentNullException("Original_Title");
  5962. }
  5963. else {
  5964. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Title));
  5965. }
  5966. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5967. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5968. != global::System.Data.ConnectionState.Open)) {
  5969. this.Adapter.UpdateCommand.Connection.Open();
  5970. }
  5971. try {
  5972. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5973. return returnValue;
  5974. }
  5975. finally {
  5976. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5977. this.Adapter.UpdateCommand.Connection.Close();
  5978. }
  5979. }
  5980. }
  5981. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5982. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5983. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5984. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5985. public virtual int Update(string Title, int Original_IdRole, string Original_Title) {
  5986. return this.Update(Original_IdRole, Title, Original_IdRole, Original_Title);
  5987. }
  5988. }
  5989. /// <summary>
  5990. ///Represents the connection and commands used to retrieve and save data.
  5991. ///</summary>
  5992. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5993. [global::System.ComponentModel.ToolboxItem(true)]
  5994. [global::System.ComponentModel.DataObjectAttribute(true)]
  5995. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5996. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5997. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5998. public partial class UsersTableAdapter : global::System.ComponentModel.Component {
  5999. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6000. private global::System.Data.SqlClient.SqlConnection _connection;
  6001. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6002. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6003. private bool _clearBeforeFill;
  6004. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6005. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6006. public UsersTableAdapter() {
  6007. this.ClearBeforeFill = true;
  6008. }
  6009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6011. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6012. get {
  6013. if ((this._adapter == null)) {
  6014. this.InitAdapter();
  6015. }
  6016. return this._adapter;
  6017. }
  6018. }
  6019. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6020. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6021. internal global::System.Data.SqlClient.SqlConnection Connection {
  6022. get {
  6023. if ((this._connection == null)) {
  6024. this.InitConnection();
  6025. }
  6026. return this._connection;
  6027. }
  6028. set {
  6029. this._connection = value;
  6030. if ((this.Adapter.InsertCommand != null)) {
  6031. this.Adapter.InsertCommand.Connection = value;
  6032. }
  6033. if ((this.Adapter.DeleteCommand != null)) {
  6034. this.Adapter.DeleteCommand.Connection = value;
  6035. }
  6036. if ((this.Adapter.UpdateCommand != null)) {
  6037. this.Adapter.UpdateCommand.Connection = value;
  6038. }
  6039. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6040. if ((this.CommandCollection[i] != null)) {
  6041. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6042. }
  6043. }
  6044. }
  6045. }
  6046. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6047. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6048. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6049. get {
  6050. return this._transaction;
  6051. }
  6052. set {
  6053. this._transaction = value;
  6054. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6055. this.CommandCollection[i].Transaction = this._transaction;
  6056. }
  6057. if (((this.Adapter != null)
  6058. && (this.Adapter.DeleteCommand != null))) {
  6059. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6060. }
  6061. if (((this.Adapter != null)
  6062. && (this.Adapter.InsertCommand != null))) {
  6063. this.Adapter.InsertCommand.Transaction = this._transaction;
  6064. }
  6065. if (((this.Adapter != null)
  6066. && (this.Adapter.UpdateCommand != null))) {
  6067. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6068. }
  6069. }
  6070. }
  6071. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6072. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6073. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6074. get {
  6075. if ((this._commandCollection == null)) {
  6076. this.InitCommandCollection();
  6077. }
  6078. return this._commandCollection;
  6079. }
  6080. }
  6081. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6082. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6083. public bool ClearBeforeFill {
  6084. get {
  6085. return this._clearBeforeFill;
  6086. }
  6087. set {
  6088. this._clearBeforeFill = value;
  6089. }
  6090. }
  6091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6093. private void InitAdapter() {
  6094. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6095. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6096. tableMapping.SourceTable = "Table";
  6097. tableMapping.DataSetTable = "Users";
  6098. tableMapping.ColumnMappings.Add("IdUser", "IdUser");
  6099. tableMapping.ColumnMappings.Add("Login", "Login");
  6100. tableMapping.ColumnMappings.Add("Password", "Password");
  6101. tableMapping.ColumnMappings.Add("Role", "Role");
  6102. tableMapping.ColumnMappings.Add("Fam", "Fam");
  6103. tableMapping.ColumnMappings.Add("Name", "Name");
  6104. tableMapping.ColumnMappings.Add("Otch", "Otch");
  6105. tableMapping.ColumnMappings.Add("Phone", "Phone");
  6106. this._adapter.TableMappings.Add(tableMapping);
  6107. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6108. this._adapter.DeleteCommand.Connection = this.Connection;
  6109. 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_Password = 1 AND [Password] IS NULL) OR ([Password] = @Original_Password)) 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)))";
  6110. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6111. 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, "", "", ""));
  6112. 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, "", "", ""));
  6113. 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, "", "", ""));
  6114. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Password", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6115. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Password", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6116. 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, "", "", ""));
  6117. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Role", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Role", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6118. 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, "", "", ""));
  6119. 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, "", "", ""));
  6120. 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, "", "", ""));
  6121. 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, "", "", ""));
  6122. 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, "", "", ""));
  6123. 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, "", "", ""));
  6124. 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, "", "", ""));
  6125. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Phone", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6126. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6127. this._adapter.InsertCommand.Connection = this.Connection;
  6128. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Users] ([Login], [Password], [Role], [Fam], [Name], [Otch], [Phone]) VALUES (@Login, @Password, @Role, @Fam, @Name, @Otch, @Phone);
  6129. SELECT IdUser, Login, Password, Role, Fam, Name, Otch, Phone FROM Users WHERE (IdUser = SCOPE_IDENTITY())";
  6130. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6131. 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, "", "", ""));
  6132. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Password", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6133. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Role", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Role", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6134. 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, "", "", ""));
  6135. 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, "", "", ""));
  6136. 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, "", "", ""));
  6137. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Phone", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6138. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6139. this._adapter.UpdateCommand.Connection = this.Connection;
  6140. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Users] SET [Login] = @Login, [Password] = @Password, [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_Password = 1 AND [Password] IS NULL) OR ([Password] = @Original_Password)) 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)));
  6141. SELECT IdUser, Login, Password, Role, Fam, Name, Otch, Phone FROM Users WHERE (IdUser = @IdUser)";
  6142. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6143. 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, "", "", ""));
  6144. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Password", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6145. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Role", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Role", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6146. 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, "", "", ""));
  6147. 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, "", "", ""));
  6148. 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, "", "", ""));
  6149. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Phone", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6150. 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, "", "", ""));
  6151. 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, "", "", ""));
  6152. 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, "", "", ""));
  6153. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Password", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6154. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Password", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6155. 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, "", "", ""));
  6156. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Role", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Role", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6157. 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, "", "", ""));
  6158. 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, "", "", ""));
  6159. 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, "", "", ""));
  6160. 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, "", "", ""));
  6161. 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, "", "", ""));
  6162. 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, "", "", ""));
  6163. 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, "", "", ""));
  6164. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Phone", global::System.Data.SqlDbType.Char, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6165. 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, "", "", ""));
  6166. }
  6167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6169. private void InitConnection() {
  6170. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6171. this._connection.ConnectionString = global::СУБД_Швейная_фабрика.Properties.Settings.Default.FabrikaLDAConnectionString;
  6172. }
  6173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6175. private void InitCommandCollection() {
  6176. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6177. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6178. this._commandCollection[0].Connection = this.Connection;
  6179. this._commandCollection[0].CommandText = "SELECT IdUser, Login, Password, Role, Fam, Name, Otch, Phone FROM dbo.Users";
  6180. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6181. }
  6182. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6183. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6184. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6185. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6186. public virtual int Fill(FabrikaLDADataSet.UsersDataTable dataTable) {
  6187. this.Adapter.SelectCommand = this.CommandCollection[0];
  6188. if ((this.ClearBeforeFill == true)) {
  6189. dataTable.Clear();
  6190. }
  6191. int returnValue = this.Adapter.Fill(dataTable);
  6192. return returnValue;
  6193. }
  6194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6196. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6197. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6198. public virtual FabrikaLDADataSet.UsersDataTable GetData() {
  6199. this.Adapter.SelectCommand = this.CommandCollection[0];
  6200. FabrikaLDADataSet.UsersDataTable dataTable = new FabrikaLDADataSet.UsersDataTable();
  6201. this.Adapter.Fill(dataTable);
  6202. return dataTable;
  6203. }
  6204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6205. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6206. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6207. public virtual int Update(FabrikaLDADataSet.UsersDataTable dataTable) {
  6208. return this.Adapter.Update(dataTable);
  6209. }
  6210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6212. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6213. public virtual int Update(FabrikaLDADataSet dataSet) {
  6214. return this.Adapter.Update(dataSet, "Users");
  6215. }
  6216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6218. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6219. public virtual int Update(global::System.Data.DataRow dataRow) {
  6220. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6221. dataRow});
  6222. }
  6223. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6224. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6225. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6226. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6227. return this.Adapter.Update(dataRows);
  6228. }
  6229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6230. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6231. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6232. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6233. public virtual int Delete(int Original_IdUser, string Original_Login, string Original_Password, global::System.Nullable<int> Original_Role, string Original_Fam, string Original_Name, string Original_Otch, string Original_Phone) {
  6234. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdUser));
  6235. if ((Original_Login == null)) {
  6236. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  6237. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  6238. }
  6239. else {
  6240. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  6241. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Login));
  6242. }
  6243. if ((Original_Password == null)) {
  6244. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  6245. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  6246. }
  6247. else {
  6248. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  6249. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Password));
  6250. }
  6251. if ((Original_Role.HasValue == true)) {
  6252. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  6253. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_Role.Value));
  6254. }
  6255. else {
  6256. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  6257. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  6258. }
  6259. if ((Original_Fam == null)) {
  6260. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  6261. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  6262. }
  6263. else {
  6264. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  6265. this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Fam));
  6266. }
  6267. if ((Original_Name == null)) {
  6268. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  6269. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  6270. }
  6271. else {
  6272. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  6273. this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_Name));
  6274. }
  6275. if ((Original_Otch == null)) {
  6276. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  6277. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  6278. }
  6279. else {
  6280. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  6281. this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_Otch));
  6282. }
  6283. if ((Original_Phone == null)) {
  6284. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
  6285. this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
  6286. }
  6287. else {
  6288. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
  6289. this.Adapter.DeleteCommand.Parameters[14].Value = ((string)(Original_Phone));
  6290. }
  6291. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6292. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6293. != global::System.Data.ConnectionState.Open)) {
  6294. this.Adapter.DeleteCommand.Connection.Open();
  6295. }
  6296. try {
  6297. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6298. return returnValue;
  6299. }
  6300. finally {
  6301. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6302. this.Adapter.DeleteCommand.Connection.Close();
  6303. }
  6304. }
  6305. }
  6306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6307. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6308. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6309. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6310. public virtual int Insert(string Login, string Password, global::System.Nullable<int> Role, string Fam, string Name, string Otch, string Phone) {
  6311. if ((Login == null)) {
  6312. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  6313. }
  6314. else {
  6315. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Login));
  6316. }
  6317. if ((Password == null)) {
  6318. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  6319. }
  6320. else {
  6321. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Password));
  6322. }
  6323. if ((Role.HasValue == true)) {
  6324. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Role.Value));
  6325. }
  6326. else {
  6327. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  6328. }
  6329. if ((Fam == null)) {
  6330. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  6331. }
  6332. else {
  6333. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Fam));
  6334. }
  6335. if ((Name == null)) {
  6336. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  6337. }
  6338. else {
  6339. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Name));
  6340. }
  6341. if ((Otch == null)) {
  6342. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  6343. }
  6344. else {
  6345. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Otch));
  6346. }
  6347. if ((Phone == null)) {
  6348. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  6349. }
  6350. else {
  6351. this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Phone));
  6352. }
  6353. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6354. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6355. != global::System.Data.ConnectionState.Open)) {
  6356. this.Adapter.InsertCommand.Connection.Open();
  6357. }
  6358. try {
  6359. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6360. return returnValue;
  6361. }
  6362. finally {
  6363. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6364. this.Adapter.InsertCommand.Connection.Close();
  6365. }
  6366. }
  6367. }
  6368. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6369. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6370. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6371. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6372. public virtual int Update(
  6373. string Login,
  6374. string Password,
  6375. global::System.Nullable<int> Role,
  6376. string Fam,
  6377. string Name,
  6378. string Otch,
  6379. string Phone,
  6380. int Original_IdUser,
  6381. string Original_Login,
  6382. string Original_Password,
  6383. global::System.Nullable<int> Original_Role,
  6384. string Original_Fam,
  6385. string Original_Name,
  6386. string Original_Otch,
  6387. string Original_Phone,
  6388. int IdUser) {
  6389. if ((Login == null)) {
  6390. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  6391. }
  6392. else {
  6393. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Login));
  6394. }
  6395. if ((Password == null)) {
  6396. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  6397. }
  6398. else {
  6399. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Password));
  6400. }
  6401. if ((Role.HasValue == true)) {
  6402. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Role.Value));
  6403. }
  6404. else {
  6405. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  6406. }
  6407. if ((Fam == null)) {
  6408. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  6409. }
  6410. else {
  6411. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Fam));
  6412. }
  6413. if ((Name == null)) {
  6414. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  6415. }
  6416. else {
  6417. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Name));
  6418. }
  6419. if ((Otch == null)) {
  6420. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  6421. }
  6422. else {
  6423. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Otch));
  6424. }
  6425. if ((Phone == null)) {
  6426. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  6427. }
  6428. else {
  6429. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Phone));
  6430. }
  6431. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_IdUser));
  6432. if ((Original_Login == null)) {
  6433. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  6434. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  6435. }
  6436. else {
  6437. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  6438. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_Login));
  6439. }
  6440. if ((Original_Password == null)) {
  6441. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  6442. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  6443. }
  6444. else {
  6445. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  6446. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_Password));
  6447. }
  6448. if ((Original_Role.HasValue == true)) {
  6449. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  6450. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Original_Role.Value));
  6451. }
  6452. else {
  6453. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  6454. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  6455. }
  6456. if ((Original_Fam == null)) {
  6457. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
  6458. this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
  6459. }
  6460. else {
  6461. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
  6462. this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_Fam));
  6463. }
  6464. if ((Original_Name == null)) {
  6465. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
  6466. this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
  6467. }
  6468. else {
  6469. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
  6470. this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_Name));
  6471. }
  6472. if ((Original_Otch == null)) {
  6473. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
  6474. this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
  6475. }
  6476. else {
  6477. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
  6478. this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_Otch));
  6479. }
  6480. if ((Original_Phone == null)) {
  6481. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
  6482. this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
  6483. }
  6484. else {
  6485. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
  6486. this.Adapter.UpdateCommand.Parameters[21].Value = ((string)(Original_Phone));
  6487. }
  6488. this.Adapter.UpdateCommand.Parameters[22].Value = ((int)(IdUser));
  6489. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6490. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6491. != global::System.Data.ConnectionState.Open)) {
  6492. this.Adapter.UpdateCommand.Connection.Open();
  6493. }
  6494. try {
  6495. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6496. return returnValue;
  6497. }
  6498. finally {
  6499. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6500. this.Adapter.UpdateCommand.Connection.Close();
  6501. }
  6502. }
  6503. }
  6504. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6505. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6506. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6507. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6508. public virtual int Update(string Login, string Password, global::System.Nullable<int> Role, string Fam, string Name, string Otch, string Phone, int Original_IdUser, string Original_Login, string Original_Password, global::System.Nullable<int> Original_Role, string Original_Fam, string Original_Name, string Original_Otch, string Original_Phone) {
  6509. return this.Update(Login, Password, Role, Fam, Name, Otch, Phone, Original_IdUser, Original_Login, Original_Password, Original_Role, Original_Fam, Original_Name, Original_Otch, Original_Phone, Original_IdUser);
  6510. }
  6511. }
  6512. /// <summary>
  6513. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  6514. ///</summary>
  6515. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6516. [global::System.ComponentModel.ToolboxItem(true)]
  6517. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  6518. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6519. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  6520. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  6521. private UpdateOrderOption _updateOrder;
  6522. private ClothTableAdapter _clothTableAdapter;
  6523. private ColorsTableAdapter _colorsTableAdapter;
  6524. private FurnituraTableAdapter _furnituraTableAdapter;
  6525. private OrdersTableAdapter _ordersTableAdapter;
  6526. private ProductsTableAdapter _productsTableAdapter;
  6527. private RolesTableAdapter _rolesTableAdapter;
  6528. private UsersTableAdapter _usersTableAdapter;
  6529. private bool _backupDataSetBeforeUpdate;
  6530. private global::System.Data.IDbConnection _connection;
  6531. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6532. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6533. public UpdateOrderOption UpdateOrder {
  6534. get {
  6535. return this._updateOrder;
  6536. }
  6537. set {
  6538. this._updateOrder = value;
  6539. }
  6540. }
  6541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6543. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6544. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6545. "a", "System.Drawing.Design.UITypeEditor")]
  6546. public ClothTableAdapter ClothTableAdapter {
  6547. get {
  6548. return this._clothTableAdapter;
  6549. }
  6550. set {
  6551. this._clothTableAdapter = value;
  6552. }
  6553. }
  6554. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6555. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6556. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6557. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6558. "a", "System.Drawing.Design.UITypeEditor")]
  6559. public ColorsTableAdapter ColorsTableAdapter {
  6560. get {
  6561. return this._colorsTableAdapter;
  6562. }
  6563. set {
  6564. this._colorsTableAdapter = value;
  6565. }
  6566. }
  6567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6569. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6570. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6571. "a", "System.Drawing.Design.UITypeEditor")]
  6572. public FurnituraTableAdapter FurnituraTableAdapter {
  6573. get {
  6574. return this._furnituraTableAdapter;
  6575. }
  6576. set {
  6577. this._furnituraTableAdapter = value;
  6578. }
  6579. }
  6580. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6581. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6582. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6583. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6584. "a", "System.Drawing.Design.UITypeEditor")]
  6585. public OrdersTableAdapter OrdersTableAdapter {
  6586. get {
  6587. return this._ordersTableAdapter;
  6588. }
  6589. set {
  6590. this._ordersTableAdapter = value;
  6591. }
  6592. }
  6593. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6594. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6595. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6596. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6597. "a", "System.Drawing.Design.UITypeEditor")]
  6598. public ProductsTableAdapter ProductsTableAdapter {
  6599. get {
  6600. return this._productsTableAdapter;
  6601. }
  6602. set {
  6603. this._productsTableAdapter = value;
  6604. }
  6605. }
  6606. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6607. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6608. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6609. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6610. "a", "System.Drawing.Design.UITypeEditor")]
  6611. public RolesTableAdapter RolesTableAdapter {
  6612. get {
  6613. return this._rolesTableAdapter;
  6614. }
  6615. set {
  6616. this._rolesTableAdapter = value;
  6617. }
  6618. }
  6619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6621. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  6622. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  6623. "a", "System.Drawing.Design.UITypeEditor")]
  6624. public UsersTableAdapter UsersTableAdapter {
  6625. get {
  6626. return this._usersTableAdapter;
  6627. }
  6628. set {
  6629. this._usersTableAdapter = value;
  6630. }
  6631. }
  6632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6634. public bool BackupDataSetBeforeUpdate {
  6635. get {
  6636. return this._backupDataSetBeforeUpdate;
  6637. }
  6638. set {
  6639. this._backupDataSetBeforeUpdate = value;
  6640. }
  6641. }
  6642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6644. [global::System.ComponentModel.Browsable(false)]
  6645. public global::System.Data.IDbConnection Connection {
  6646. get {
  6647. if ((this._connection != null)) {
  6648. return this._connection;
  6649. }
  6650. if (((this._clothTableAdapter != null)
  6651. && (this._clothTableAdapter.Connection != null))) {
  6652. return this._clothTableAdapter.Connection;
  6653. }
  6654. if (((this._colorsTableAdapter != null)
  6655. && (this._colorsTableAdapter.Connection != null))) {
  6656. return this._colorsTableAdapter.Connection;
  6657. }
  6658. if (((this._furnituraTableAdapter != null)
  6659. && (this._furnituraTableAdapter.Connection != null))) {
  6660. return this._furnituraTableAdapter.Connection;
  6661. }
  6662. if (((this._ordersTableAdapter != null)
  6663. && (this._ordersTableAdapter.Connection != null))) {
  6664. return this._ordersTableAdapter.Connection;
  6665. }
  6666. if (((this._productsTableAdapter != null)
  6667. && (this._productsTableAdapter.Connection != null))) {
  6668. return this._productsTableAdapter.Connection;
  6669. }
  6670. if (((this._rolesTableAdapter != null)
  6671. && (this._rolesTableAdapter.Connection != null))) {
  6672. return this._rolesTableAdapter.Connection;
  6673. }
  6674. if (((this._usersTableAdapter != null)
  6675. && (this._usersTableAdapter.Connection != null))) {
  6676. return this._usersTableAdapter.Connection;
  6677. }
  6678. return null;
  6679. }
  6680. set {
  6681. this._connection = value;
  6682. }
  6683. }
  6684. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6685. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6686. [global::System.ComponentModel.Browsable(false)]
  6687. public int TableAdapterInstanceCount {
  6688. get {
  6689. int count = 0;
  6690. if ((this._clothTableAdapter != null)) {
  6691. count = (count + 1);
  6692. }
  6693. if ((this._colorsTableAdapter != null)) {
  6694. count = (count + 1);
  6695. }
  6696. if ((this._furnituraTableAdapter != null)) {
  6697. count = (count + 1);
  6698. }
  6699. if ((this._ordersTableAdapter != null)) {
  6700. count = (count + 1);
  6701. }
  6702. if ((this._productsTableAdapter != null)) {
  6703. count = (count + 1);
  6704. }
  6705. if ((this._rolesTableAdapter != null)) {
  6706. count = (count + 1);
  6707. }
  6708. if ((this._usersTableAdapter != null)) {
  6709. count = (count + 1);
  6710. }
  6711. return count;
  6712. }
  6713. }
  6714. /// <summary>
  6715. ///Update rows in top-down order.
  6716. ///</summary>
  6717. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6718. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6719. private int UpdateUpdatedRows(FabrikaLDADataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  6720. int result = 0;
  6721. if ((this._colorsTableAdapter != null)) {
  6722. global::System.Data.DataRow[] updatedRows = dataSet.Colors.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6723. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6724. if (((updatedRows != null)
  6725. && (0 < updatedRows.Length))) {
  6726. result = (result + this._colorsTableAdapter.Update(updatedRows));
  6727. allChangedRows.AddRange(updatedRows);
  6728. }
  6729. }
  6730. if ((this._rolesTableAdapter != null)) {
  6731. global::System.Data.DataRow[] updatedRows = dataSet.Roles.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6732. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6733. if (((updatedRows != null)
  6734. && (0 < updatedRows.Length))) {
  6735. result = (result + this._rolesTableAdapter.Update(updatedRows));
  6736. allChangedRows.AddRange(updatedRows);
  6737. }
  6738. }
  6739. if ((this._clothTableAdapter != null)) {
  6740. global::System.Data.DataRow[] updatedRows = dataSet.Cloth.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6741. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6742. if (((updatedRows != null)
  6743. && (0 < updatedRows.Length))) {
  6744. result = (result + this._clothTableAdapter.Update(updatedRows));
  6745. allChangedRows.AddRange(updatedRows);
  6746. }
  6747. }
  6748. if ((this._furnituraTableAdapter != null)) {
  6749. global::System.Data.DataRow[] updatedRows = dataSet.Furnitura.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6750. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6751. if (((updatedRows != null)
  6752. && (0 < updatedRows.Length))) {
  6753. result = (result + this._furnituraTableAdapter.Update(updatedRows));
  6754. allChangedRows.AddRange(updatedRows);
  6755. }
  6756. }
  6757. if ((this._productsTableAdapter != null)) {
  6758. global::System.Data.DataRow[] updatedRows = dataSet.Products.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6759. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6760. if (((updatedRows != null)
  6761. && (0 < updatedRows.Length))) {
  6762. result = (result + this._productsTableAdapter.Update(updatedRows));
  6763. allChangedRows.AddRange(updatedRows);
  6764. }
  6765. }
  6766. if ((this._usersTableAdapter != null)) {
  6767. global::System.Data.DataRow[] updatedRows = dataSet.Users.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6768. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6769. if (((updatedRows != null)
  6770. && (0 < updatedRows.Length))) {
  6771. result = (result + this._usersTableAdapter.Update(updatedRows));
  6772. allChangedRows.AddRange(updatedRows);
  6773. }
  6774. }
  6775. if ((this._ordersTableAdapter != null)) {
  6776. global::System.Data.DataRow[] updatedRows = dataSet.Orders.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  6777. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  6778. if (((updatedRows != null)
  6779. && (0 < updatedRows.Length))) {
  6780. result = (result + this._ordersTableAdapter.Update(updatedRows));
  6781. allChangedRows.AddRange(updatedRows);
  6782. }
  6783. }
  6784. return result;
  6785. }
  6786. /// <summary>
  6787. ///Insert rows in top-down order.
  6788. ///</summary>
  6789. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6790. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6791. private int UpdateInsertedRows(FabrikaLDADataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  6792. int result = 0;
  6793. if ((this._colorsTableAdapter != null)) {
  6794. global::System.Data.DataRow[] addedRows = dataSet.Colors.Select(null, null, global::System.Data.DataViewRowState.Added);
  6795. if (((addedRows != null)
  6796. && (0 < addedRows.Length))) {
  6797. result = (result + this._colorsTableAdapter.Update(addedRows));
  6798. allAddedRows.AddRange(addedRows);
  6799. }
  6800. }
  6801. if ((this._rolesTableAdapter != null)) {
  6802. global::System.Data.DataRow[] addedRows = dataSet.Roles.Select(null, null, global::System.Data.DataViewRowState.Added);
  6803. if (((addedRows != null)
  6804. && (0 < addedRows.Length))) {
  6805. result = (result + this._rolesTableAdapter.Update(addedRows));
  6806. allAddedRows.AddRange(addedRows);
  6807. }
  6808. }
  6809. if ((this._clothTableAdapter != null)) {
  6810. global::System.Data.DataRow[] addedRows = dataSet.Cloth.Select(null, null, global::System.Data.DataViewRowState.Added);
  6811. if (((addedRows != null)
  6812. && (0 < addedRows.Length))) {
  6813. result = (result + this._clothTableAdapter.Update(addedRows));
  6814. allAddedRows.AddRange(addedRows);
  6815. }
  6816. }
  6817. if ((this._furnituraTableAdapter != null)) {
  6818. global::System.Data.DataRow[] addedRows = dataSet.Furnitura.Select(null, null, global::System.Data.DataViewRowState.Added);
  6819. if (((addedRows != null)
  6820. && (0 < addedRows.Length))) {
  6821. result = (result + this._furnituraTableAdapter.Update(addedRows));
  6822. allAddedRows.AddRange(addedRows);
  6823. }
  6824. }
  6825. if ((this._productsTableAdapter != null)) {
  6826. global::System.Data.DataRow[] addedRows = dataSet.Products.Select(null, null, global::System.Data.DataViewRowState.Added);
  6827. if (((addedRows != null)
  6828. && (0 < addedRows.Length))) {
  6829. result = (result + this._productsTableAdapter.Update(addedRows));
  6830. allAddedRows.AddRange(addedRows);
  6831. }
  6832. }
  6833. if ((this._usersTableAdapter != null)) {
  6834. global::System.Data.DataRow[] addedRows = dataSet.Users.Select(null, null, global::System.Data.DataViewRowState.Added);
  6835. if (((addedRows != null)
  6836. && (0 < addedRows.Length))) {
  6837. result = (result + this._usersTableAdapter.Update(addedRows));
  6838. allAddedRows.AddRange(addedRows);
  6839. }
  6840. }
  6841. if ((this._ordersTableAdapter != null)) {
  6842. global::System.Data.DataRow[] addedRows = dataSet.Orders.Select(null, null, global::System.Data.DataViewRowState.Added);
  6843. if (((addedRows != null)
  6844. && (0 < addedRows.Length))) {
  6845. result = (result + this._ordersTableAdapter.Update(addedRows));
  6846. allAddedRows.AddRange(addedRows);
  6847. }
  6848. }
  6849. return result;
  6850. }
  6851. /// <summary>
  6852. ///Delete rows in bottom-up order.
  6853. ///</summary>
  6854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6855. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6856. private int UpdateDeletedRows(FabrikaLDADataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  6857. int result = 0;
  6858. if ((this._ordersTableAdapter != null)) {
  6859. global::System.Data.DataRow[] deletedRows = dataSet.Orders.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6860. if (((deletedRows != null)
  6861. && (0 < deletedRows.Length))) {
  6862. result = (result + this._ordersTableAdapter.Update(deletedRows));
  6863. allChangedRows.AddRange(deletedRows);
  6864. }
  6865. }
  6866. if ((this._usersTableAdapter != null)) {
  6867. global::System.Data.DataRow[] deletedRows = dataSet.Users.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6868. if (((deletedRows != null)
  6869. && (0 < deletedRows.Length))) {
  6870. result = (result + this._usersTableAdapter.Update(deletedRows));
  6871. allChangedRows.AddRange(deletedRows);
  6872. }
  6873. }
  6874. if ((this._productsTableAdapter != null)) {
  6875. global::System.Data.DataRow[] deletedRows = dataSet.Products.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6876. if (((deletedRows != null)
  6877. && (0 < deletedRows.Length))) {
  6878. result = (result + this._productsTableAdapter.Update(deletedRows));
  6879. allChangedRows.AddRange(deletedRows);
  6880. }
  6881. }
  6882. if ((this._furnituraTableAdapter != null)) {
  6883. global::System.Data.DataRow[] deletedRows = dataSet.Furnitura.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6884. if (((deletedRows != null)
  6885. && (0 < deletedRows.Length))) {
  6886. result = (result + this._furnituraTableAdapter.Update(deletedRows));
  6887. allChangedRows.AddRange(deletedRows);
  6888. }
  6889. }
  6890. if ((this._clothTableAdapter != null)) {
  6891. global::System.Data.DataRow[] deletedRows = dataSet.Cloth.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6892. if (((deletedRows != null)
  6893. && (0 < deletedRows.Length))) {
  6894. result = (result + this._clothTableAdapter.Update(deletedRows));
  6895. allChangedRows.AddRange(deletedRows);
  6896. }
  6897. }
  6898. if ((this._rolesTableAdapter != null)) {
  6899. global::System.Data.DataRow[] deletedRows = dataSet.Roles.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6900. if (((deletedRows != null)
  6901. && (0 < deletedRows.Length))) {
  6902. result = (result + this._rolesTableAdapter.Update(deletedRows));
  6903. allChangedRows.AddRange(deletedRows);
  6904. }
  6905. }
  6906. if ((this._colorsTableAdapter != null)) {
  6907. global::System.Data.DataRow[] deletedRows = dataSet.Colors.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  6908. if (((deletedRows != null)
  6909. && (0 < deletedRows.Length))) {
  6910. result = (result + this._colorsTableAdapter.Update(deletedRows));
  6911. allChangedRows.AddRange(deletedRows);
  6912. }
  6913. }
  6914. return result;
  6915. }
  6916. /// <summary>
  6917. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  6918. ///</summary>
  6919. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6920. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6921. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  6922. if (((updatedRows == null)
  6923. || (updatedRows.Length < 1))) {
  6924. return updatedRows;
  6925. }
  6926. if (((allAddedRows == null)
  6927. || (allAddedRows.Count < 1))) {
  6928. return updatedRows;
  6929. }
  6930. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  6931. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  6932. global::System.Data.DataRow row = updatedRows[i];
  6933. if ((allAddedRows.Contains(row) == false)) {
  6934. realUpdatedRows.Add(row);
  6935. }
  6936. }
  6937. return realUpdatedRows.ToArray();
  6938. }
  6939. /// <summary>
  6940. ///Update all changes to the dataset.
  6941. ///</summary>
  6942. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6943. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6944. public virtual int UpdateAll(FabrikaLDADataSet dataSet) {
  6945. if ((dataSet == null)) {
  6946. throw new global::System.ArgumentNullException("dataSet");
  6947. }
  6948. if ((dataSet.HasChanges() == false)) {
  6949. return 0;
  6950. }
  6951. if (((this._clothTableAdapter != null)
  6952. && (this.MatchTableAdapterConnection(this._clothTableAdapter.Connection) == false))) {
  6953. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  6954. "tring.");
  6955. }
  6956. if (((this._colorsTableAdapter != null)
  6957. && (this.MatchTableAdapterConnection(this._colorsTableAdapter.Connection) == false))) {
  6958. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  6959. "tring.");
  6960. }
  6961. if (((this._furnituraTableAdapter != null)
  6962. && (this.MatchTableAdapterConnection(this._furnituraTableAdapter.Connection) == false))) {
  6963. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  6964. "tring.");
  6965. }
  6966. if (((this._ordersTableAdapter != null)
  6967. && (this.MatchTableAdapterConnection(this._ordersTableAdapter.Connection) == false))) {
  6968. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  6969. "tring.");
  6970. }
  6971. if (((this._productsTableAdapter != null)
  6972. && (this.MatchTableAdapterConnection(this._productsTableAdapter.Connection) == false))) {
  6973. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  6974. "tring.");
  6975. }
  6976. if (((this._rolesTableAdapter != null)
  6977. && (this.MatchTableAdapterConnection(this._rolesTableAdapter.Connection) == false))) {
  6978. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  6979. "tring.");
  6980. }
  6981. if (((this._usersTableAdapter != null)
  6982. && (this.MatchTableAdapterConnection(this._usersTableAdapter.Connection) == false))) {
  6983. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  6984. "tring.");
  6985. }
  6986. global::System.Data.IDbConnection workConnection = this.Connection;
  6987. if ((workConnection == null)) {
  6988. throw new global::System.ApplicationException("TableAdapterManager contains no connection information. Set each TableAdapterMana" +
  6989. "ger TableAdapter property to a valid TableAdapter instance.");
  6990. }
  6991. bool workConnOpened = false;
  6992. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  6993. == global::System.Data.ConnectionState.Broken)) {
  6994. workConnection.Close();
  6995. }
  6996. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  6997. workConnection.Open();
  6998. workConnOpened = true;
  6999. }
  7000. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  7001. if ((workTransaction == null)) {
  7002. throw new global::System.ApplicationException("The transaction cannot begin. The current data connection does not support transa" +
  7003. "ctions or the current state is not allowing the transaction to begin.");
  7004. }
  7005. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  7006. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  7007. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  7008. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  7009. int result = 0;
  7010. global::System.Data.DataSet backupDataSet = null;
  7011. if (this.BackupDataSetBeforeUpdate) {
  7012. backupDataSet = new global::System.Data.DataSet();
  7013. backupDataSet.Merge(dataSet);
  7014. }
  7015. try {
  7016. // ---- Prepare for update -----------
  7017. //
  7018. if ((this._clothTableAdapter != null)) {
  7019. revertConnections.Add(this._clothTableAdapter, this._clothTableAdapter.Connection);
  7020. this._clothTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  7021. this._clothTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  7022. if (this._clothTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  7023. this._clothTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  7024. adaptersWithAcceptChangesDuringUpdate.Add(this._clothTableAdapter.Adapter);
  7025. }
  7026. }
  7027. if ((this._colorsTableAdapter != null)) {
  7028. revertConnections.Add(this._colorsTableAdapter, this._colorsTableAdapter.Connection);
  7029. this._colorsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  7030. this._colorsTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  7031. if (this._colorsTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  7032. this._colorsTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  7033. adaptersWithAcceptChangesDuringUpdate.Add(this._colorsTableAdapter.Adapter);
  7034. }
  7035. }
  7036. if ((this._furnituraTableAdapter != null)) {
  7037. revertConnections.Add(this._furnituraTableAdapter, this._furnituraTableAdapter.Connection);
  7038. this._furnituraTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  7039. this._furnituraTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  7040. if (this._furnituraTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  7041. this._furnituraTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  7042. adaptersWithAcceptChangesDuringUpdate.Add(this._furnituraTableAdapter.Adapter);
  7043. }
  7044. }
  7045. if ((this._ordersTableAdapter != null)) {
  7046. revertConnections.Add(this._ordersTableAdapter, this._ordersTableAdapter.Connection);
  7047. this._ordersTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  7048. this._ordersTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  7049. if (this._ordersTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  7050. this._ordersTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  7051. adaptersWithAcceptChangesDuringUpdate.Add(this._ordersTableAdapter.Adapter);
  7052. }
  7053. }
  7054. if ((this._productsTableAdapter != null)) {
  7055. revertConnections.Add(this._productsTableAdapter, this._productsTableAdapter.Connection);
  7056. this._productsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  7057. this._productsTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  7058. if (this._productsTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  7059. this._productsTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  7060. adaptersWithAcceptChangesDuringUpdate.Add(this._productsTableAdapter.Adapter);
  7061. }
  7062. }
  7063. if ((this._rolesTableAdapter != null)) {
  7064. revertConnections.Add(this._rolesTableAdapter, this._rolesTableAdapter.Connection);
  7065. this._rolesTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  7066. this._rolesTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  7067. if (this._rolesTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  7068. this._rolesTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  7069. adaptersWithAcceptChangesDuringUpdate.Add(this._rolesTableAdapter.Adapter);
  7070. }
  7071. }
  7072. if ((this._usersTableAdapter != null)) {
  7073. revertConnections.Add(this._usersTableAdapter, this._usersTableAdapter.Connection);
  7074. this._usersTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  7075. this._usersTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  7076. if (this._usersTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  7077. this._usersTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  7078. adaptersWithAcceptChangesDuringUpdate.Add(this._usersTableAdapter.Adapter);
  7079. }
  7080. }
  7081. //
  7082. //---- Perform updates -----------
  7083. //
  7084. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  7085. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  7086. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  7087. }
  7088. else {
  7089. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  7090. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  7091. }
  7092. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  7093. //
  7094. //---- Commit updates -----------
  7095. //
  7096. workTransaction.Commit();
  7097. if ((0 < allAddedRows.Count)) {
  7098. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  7099. allAddedRows.CopyTo(rows);
  7100. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  7101. global::System.Data.DataRow row = rows[i];
  7102. row.AcceptChanges();
  7103. }
  7104. }
  7105. if ((0 < allChangedRows.Count)) {
  7106. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  7107. allChangedRows.CopyTo(rows);
  7108. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  7109. global::System.Data.DataRow row = rows[i];
  7110. row.AcceptChanges();
  7111. }
  7112. }
  7113. }
  7114. catch (global::System.Exception ex) {
  7115. workTransaction.Rollback();
  7116. // ---- Restore the dataset -----------
  7117. if (this.BackupDataSetBeforeUpdate) {
  7118. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  7119. dataSet.Clear();
  7120. dataSet.Merge(backupDataSet);
  7121. }
  7122. else {
  7123. if ((0 < allAddedRows.Count)) {
  7124. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  7125. allAddedRows.CopyTo(rows);
  7126. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  7127. global::System.Data.DataRow row = rows[i];
  7128. row.AcceptChanges();
  7129. row.SetAdded();
  7130. }
  7131. }
  7132. }
  7133. throw ex;
  7134. }
  7135. finally {
  7136. if (workConnOpened) {
  7137. workConnection.Close();
  7138. }
  7139. if ((this._clothTableAdapter != null)) {
  7140. this._clothTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._clothTableAdapter]));
  7141. this._clothTableAdapter.Transaction = null;
  7142. }
  7143. if ((this._colorsTableAdapter != null)) {
  7144. this._colorsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._colorsTableAdapter]));
  7145. this._colorsTableAdapter.Transaction = null;
  7146. }
  7147. if ((this._furnituraTableAdapter != null)) {
  7148. this._furnituraTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._furnituraTableAdapter]));
  7149. this._furnituraTableAdapter.Transaction = null;
  7150. }
  7151. if ((this._ordersTableAdapter != null)) {
  7152. this._ordersTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._ordersTableAdapter]));
  7153. this._ordersTableAdapter.Transaction = null;
  7154. }
  7155. if ((this._productsTableAdapter != null)) {
  7156. this._productsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productsTableAdapter]));
  7157. this._productsTableAdapter.Transaction = null;
  7158. }
  7159. if ((this._rolesTableAdapter != null)) {
  7160. this._rolesTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._rolesTableAdapter]));
  7161. this._rolesTableAdapter.Transaction = null;
  7162. }
  7163. if ((this._usersTableAdapter != null)) {
  7164. this._usersTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._usersTableAdapter]));
  7165. this._usersTableAdapter.Transaction = null;
  7166. }
  7167. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  7168. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  7169. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  7170. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  7171. global::System.Data.Common.DataAdapter adapter = adapters[i];
  7172. adapter.AcceptChangesDuringUpdate = true;
  7173. }
  7174. }
  7175. }
  7176. return result;
  7177. }
  7178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7180. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  7181. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  7182. }
  7183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7185. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  7186. if ((this._connection != null)) {
  7187. return true;
  7188. }
  7189. if (((this.Connection == null)
  7190. || (inputConnection == null))) {
  7191. return true;
  7192. }
  7193. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  7194. return true;
  7195. }
  7196. return false;
  7197. }
  7198. /// <summary>
  7199. ///Update Order Option
  7200. ///</summary>
  7201. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7202. public enum UpdateOrderOption {
  7203. InsertUpdateDelete = 0,
  7204. UpdateInsertDelete = 1,
  7205. }
  7206. /// <summary>
  7207. ///Used to sort self-referenced table's rows
  7208. ///</summary>
  7209. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7210. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  7211. private global::System.Data.DataRelation _relation;
  7212. private int _childFirst;
  7213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7214. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7215. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  7216. this._relation = relation;
  7217. if (childFirst) {
  7218. this._childFirst = -1;
  7219. }
  7220. else {
  7221. this._childFirst = 1;
  7222. }
  7223. }
  7224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7225. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7226. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  7227. global::System.Diagnostics.Debug.Assert((row != null));
  7228. global::System.Data.DataRow root = row;
  7229. distance = 0;
  7230. 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>();
  7231. traversedRows[row] = row;
  7232. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  7233. for (
  7234. ; ((parent != null)
  7235. && (traversedRows.ContainsKey(parent) == false));
  7236. ) {
  7237. distance = (distance + 1);
  7238. root = parent;
  7239. traversedRows[parent] = parent;
  7240. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  7241. }
  7242. if ((distance == 0)) {
  7243. traversedRows.Clear();
  7244. traversedRows[row] = row;
  7245. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  7246. for (
  7247. ; ((parent != null)
  7248. && (traversedRows.ContainsKey(parent) == false));
  7249. ) {
  7250. distance = (distance + 1);
  7251. root = parent;
  7252. traversedRows[parent] = parent;
  7253. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  7254. }
  7255. }
  7256. return root;
  7257. }
  7258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7260. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  7261. if (object.ReferenceEquals(row1, row2)) {
  7262. return 0;
  7263. }
  7264. if ((row1 == null)) {
  7265. return -1;
  7266. }
  7267. if ((row2 == null)) {
  7268. return 1;
  7269. }
  7270. int distance1 = 0;
  7271. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  7272. int distance2 = 0;
  7273. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  7274. if (object.ReferenceEquals(root1, root2)) {
  7275. return (this._childFirst * distance1.CompareTo(distance2));
  7276. }
  7277. else {
  7278. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  7279. && (root2.Table != null)));
  7280. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  7281. return -1;
  7282. }
  7283. else {
  7284. return 1;
  7285. }
  7286. }
  7287. }
  7288. }
  7289. }
  7290. }
  7291. #pragma warning restore 1591