SewingFactoryMURDataSet.Designer.cs 433 KB

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